From 41a6f1197f861ce51c1ea9bf7d8e59051382be7e Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Wed, 7 Aug 2024 10:05:52 +0000 Subject: [PATCH] fix(specs): ingestion search endpoint (#3487) (generated) [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Vannicatte --- .../Models/Ingestion/TransformationSearch.cs | 23 +++----- .../ingestion/model_transformation_search.go | 54 ++++++++++++------- .../model/ingestion/TransformationSearch.java | 29 +++++----- .../ingestion/model/transformationSearch.ts | 2 +- .../packages/ingestion/src/ingestionClient.ts | 6 --- .../model/ingestion/TransformationSearch.kt | 4 +- .../lib/Api/IngestionClient.php | 2 +- .../Model/Ingestion/TransformationSearch.php | 38 ++++++------- .../ingestion/models/transformation_search.py | 8 +-- .../models/ingestion/transformation_search.rb | 18 +++---- .../ingestion/TransformationSearch.scala | 2 +- .../Models/TransformationSearch.swift | 14 ++--- snippets/csharp/src/Ingestion.cs | 2 +- snippets/go/src/ingestion.go | 2 +- snippets/guides/ingestion-snippets.json | 20 +++---- .../src/test/java/com/algolia/Ingestion.java | 2 +- snippets/javascript/src/ingestion.ts | 2 +- .../kotlin/com/algolia/snippets/Ingestion.kt | 2 +- snippets/php/src/Ingestion.php | 2 +- snippets/python/ingestion.py | 2 +- snippets/ruby/ingestion.rb | 2 +- snippets/scala/src/main/scala/Ingestion.scala | 10 ++-- snippets/swift/Sources/Ingestion.swift | 2 +- specs/bundled/ingestion.doc.yml | 30 ++++++----- specs/bundled/ingestion.yml | 2 +- .../src/generated/requests/Ingestion.test.cs | 4 +- .../go/tests/requests/ingestion_test.go | 4 +- .../com/algolia/requests/Ingestion.test.java | 4 +- .../javascript/src/requests/ingestion.test.ts | 4 +- .../com/algolia/requests/IngestionTest.kt | 4 +- .../output/php/src/requests/IngestionTest.php | 4 +- .../python/tests/requests/ingestion_test.py | 4 +- .../ruby/test/requests/ingestion_test.rb | 4 +- .../requests/IngestionTest.scala | 12 +++-- .../swift/Tests/requests/IngestionTests.swift | 4 +- 35 files changed, 168 insertions(+), 160 deletions(-) diff --git a/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationSearch.cs b/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationSearch.cs index 88d02148b8..7a4eaa0358 100644 --- a/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationSearch.cs +++ b/clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/TransformationSearch.cs @@ -19,22 +19,15 @@ public partial class TransformationSearch /// /// Initializes a new instance of the TransformationSearch class. /// - [JsonConstructor] - public TransformationSearch() { } - /// - /// Initializes a new instance of the TransformationSearch class. - /// - /// transformationsIDs (required). - public TransformationSearch(List transformationsIDs) + public TransformationSearch() { - TransformationsIDs = transformationsIDs ?? throw new ArgumentNullException(nameof(transformationsIDs)); } /// - /// Gets or Sets TransformationsIDs + /// Gets or Sets TransformationIDs /// - [JsonPropertyName("transformationsIDs")] - public List TransformationsIDs { get; set; } + [JsonPropertyName("transformationIDs")] + public List TransformationIDs { get; set; } /// /// Returns the string presentation of the object @@ -44,7 +37,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class TransformationSearch {\n"); - sb.Append(" TransformationsIDs: ").Append(TransformationsIDs).Append("\n"); + sb.Append(" TransformationIDs: ").Append(TransformationIDs).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -71,7 +64,7 @@ public override bool Equals(object obj) } return - (TransformationsIDs == input.TransformationsIDs || TransformationsIDs != null && input.TransformationsIDs != null && TransformationsIDs.SequenceEqual(input.TransformationsIDs)); + (TransformationIDs == input.TransformationIDs || TransformationIDs != null && input.TransformationIDs != null && TransformationIDs.SequenceEqual(input.TransformationIDs)); } /// @@ -83,9 +76,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (TransformationsIDs != null) + if (TransformationIDs != null) { - hashCode = (hashCode * 59) + TransformationsIDs.GetHashCode(); + hashCode = (hashCode * 59) + TransformationIDs.GetHashCode(); } return hashCode; } diff --git a/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_search.go b/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_search.go index 328b2bcf85..4cc21259d2 100644 --- a/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_search.go +++ b/clients/algoliasearch-client-go/algolia/ingestion/model_transformation_search.go @@ -8,16 +8,26 @@ import ( // TransformationSearch struct for TransformationSearch. type TransformationSearch struct { - TransformationsIDs []string `json:"transformationsIDs"` + TransformationIDs []string `json:"transformationIDs,omitempty"` +} + +type TransformationSearchOption func(f *TransformationSearch) + +func WithTransformationSearchTransformationIDs(val []string) TransformationSearchOption { + return func(f *TransformationSearch) { + f.TransformationIDs = val + } } // NewTransformationSearch instantiates a new TransformationSearch object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed. -func NewTransformationSearch(transformationsIDs []string) *TransformationSearch { +func NewTransformationSearch(opts ...TransformationSearchOption) *TransformationSearch { this := &TransformationSearch{} - this.TransformationsIDs = transformationsIDs + for _, opt := range opts { + opt(this) + } return this } @@ -26,35 +36,43 @@ func NewEmptyTransformationSearch() *TransformationSearch { return &TransformationSearch{} } -// GetTransformationsIDs returns the TransformationsIDs field value. -func (o *TransformationSearch) GetTransformationsIDs() []string { - if o == nil { +// GetTransformationIDs returns the TransformationIDs field value if set, zero value otherwise. +func (o *TransformationSearch) GetTransformationIDs() []string { + if o == nil || o.TransformationIDs == nil { var ret []string return ret } - - return o.TransformationsIDs + return o.TransformationIDs } -// GetTransformationsIDsOk returns a tuple with the TransformationsIDs field value +// GetTransformationIDsOk returns a tuple with the TransformationIDs field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *TransformationSearch) GetTransformationsIDsOk() ([]string, bool) { - if o == nil { +func (o *TransformationSearch) GetTransformationIDsOk() ([]string, bool) { + if o == nil || o.TransformationIDs == nil { return nil, false } - return o.TransformationsIDs, true + return o.TransformationIDs, true +} + +// HasTransformationIDs returns a boolean if a field has been set. +func (o *TransformationSearch) HasTransformationIDs() bool { + if o != nil && o.TransformationIDs != nil { + return true + } + + return false } -// SetTransformationsIDs sets field value. -func (o *TransformationSearch) SetTransformationsIDs(v []string) *TransformationSearch { - o.TransformationsIDs = v +// SetTransformationIDs gets a reference to the given []string and assigns it to the TransformationIDs field. +func (o *TransformationSearch) SetTransformationIDs(v []string) *TransformationSearch { + o.TransformationIDs = v return o } func (o TransformationSearch) MarshalJSON() ([]byte, error) { toSerialize := map[string]any{} - if true { - toSerialize["transformationsIDs"] = o.TransformationsIDs + if o.TransformationIDs != nil { + toSerialize["transformationIDs"] = o.TransformationIDs } serialized, err := json.Marshal(toSerialize) if err != nil { @@ -66,6 +84,6 @@ func (o TransformationSearch) MarshalJSON() ([]byte, error) { func (o TransformationSearch) String() string { out := "" - out += fmt.Sprintf(" transformationsIDs=%v\n", o.TransformationsIDs) + out += fmt.Sprintf(" transformationIDs=%v\n", o.TransformationIDs) return fmt.Sprintf("TransformationSearch {\n%s}", out) } diff --git a/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/TransformationSearch.java b/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/TransformationSearch.java index d245794498..09bd9ab234 100644 --- a/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/TransformationSearch.java +++ b/clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/TransformationSearch.java @@ -12,23 +12,26 @@ /** TransformationSearch */ public class TransformationSearch { - @JsonProperty("transformationsIDs") - private List transformationsIDs = new ArrayList<>(); + @JsonProperty("transformationIDs") + private List transformationIDs; - public TransformationSearch setTransformationsIDs(List transformationsIDs) { - this.transformationsIDs = transformationsIDs; + public TransformationSearch setTransformationIDs(List transformationIDs) { + this.transformationIDs = transformationIDs; return this; } - public TransformationSearch addTransformationsIDs(String transformationsIDsItem) { - this.transformationsIDs.add(transformationsIDsItem); + public TransformationSearch addTransformationIDs(String transformationIDsItem) { + if (this.transformationIDs == null) { + this.transformationIDs = new ArrayList<>(); + } + this.transformationIDs.add(transformationIDsItem); return this; } - /** Get transformationsIDs */ - @javax.annotation.Nonnull - public List getTransformationsIDs() { - return transformationsIDs; + /** Get transformationIDs */ + @javax.annotation.Nullable + public List getTransformationIDs() { + return transformationIDs; } @Override @@ -40,19 +43,19 @@ public boolean equals(Object o) { return false; } TransformationSearch transformationSearch = (TransformationSearch) o; - return Objects.equals(this.transformationsIDs, transformationSearch.transformationsIDs); + return Objects.equals(this.transformationIDs, transformationSearch.transformationIDs); } @Override public int hashCode() { - return Objects.hash(transformationsIDs); + return Objects.hash(transformationIDs); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TransformationSearch {\n"); - sb.append(" transformationsIDs: ").append(toIndentedString(transformationsIDs)).append("\n"); + sb.append(" transformationIDs: ").append(toIndentedString(transformationIDs)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/clients/algoliasearch-client-javascript/packages/ingestion/model/transformationSearch.ts b/clients/algoliasearch-client-javascript/packages/ingestion/model/transformationSearch.ts index b446274278..fe1ed08a1a 100644 --- a/clients/algoliasearch-client-javascript/packages/ingestion/model/transformationSearch.ts +++ b/clients/algoliasearch-client-javascript/packages/ingestion/model/transformationSearch.ts @@ -1,5 +1,5 @@ // 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. export type TransformationSearch = { - transformationsIDs: string[]; + transformationIDs?: string[]; }; diff --git a/clients/algoliasearch-client-javascript/packages/ingestion/src/ingestionClient.ts b/clients/algoliasearch-client-javascript/packages/ingestion/src/ingestionClient.ts index e25e676589..7a2cb2fcb9 100644 --- a/clients/algoliasearch-client-javascript/packages/ingestion/src/ingestionClient.ts +++ b/clients/algoliasearch-client-javascript/packages/ingestion/src/ingestionClient.ts @@ -2351,12 +2351,6 @@ export function createIngestionClient({ ); } - if (!transformationSearch.transformationsIDs) { - throw new Error( - 'Parameter `transformationSearch.transformationsIDs` is required when calling `searchTransformations`.' - ); - } - const requestPath = '/1/transformations/search'; const headers: Headers = {}; const queryParameters: QueryParameters = {}; diff --git a/clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationSearch.kt b/clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationSearch.kt index eefcb3df35..1f348f0d75 100644 --- a/clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationSearch.kt +++ b/clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/TransformationSearch.kt @@ -7,10 +7,10 @@ import kotlinx.serialization.json.* /** * TransformationSearch * - * @param transformationsIDs + * @param transformationIDs */ @Serializable public data class TransformationSearch( - @SerialName(value = "transformationsIDs") val transformationsIDs: List, + @SerialName(value = "transformationIDs") val transformationIDs: List? = null, ) diff --git a/clients/algoliasearch-client-php/lib/Api/IngestionClient.php b/clients/algoliasearch-client-php/lib/Api/IngestionClient.php index abe8ee35d2..115d964bf7 100644 --- a/clients/algoliasearch-client-php/lib/Api/IngestionClient.php +++ b/clients/algoliasearch-client-php/lib/Api/IngestionClient.php @@ -2173,7 +2173,7 @@ public function searchTasksV1($taskSearch, $requestOptions = []) * - editSettings * * @param array $transformationSearch transformationSearch (required) - * - $transformationSearch['transformationsIDs'] => (array) (required) + * - $transformationSearch['transformationIDs'] => (array) * * @see TransformationSearch * diff --git a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationSearch.php b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationSearch.php index 217f5b686d..975bb16e1e 100644 --- a/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationSearch.php +++ b/clients/algoliasearch-client-php/lib/Model/Ingestion/TransformationSearch.php @@ -19,7 +19,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr * @var string[] */ protected static $modelTypes = [ - 'transformationsIDs' => 'string[]', + 'transformationIDs' => 'string[]', ]; /** @@ -28,7 +28,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr * @var string[] */ protected static $modelFormats = [ - 'transformationsIDs' => null, + 'transformationIDs' => null, ]; /** @@ -38,7 +38,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr * @var string[] */ protected static $attributeMap = [ - 'transformationsIDs' => 'transformationsIDs', + 'transformationIDs' => 'transformationIDs', ]; /** @@ -47,7 +47,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr * @var string[] */ protected static $setters = [ - 'transformationsIDs' => 'setTransformationsIDs', + 'transformationIDs' => 'setTransformationIDs', ]; /** @@ -56,7 +56,7 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr * @var string[] */ protected static $getters = [ - 'transformationsIDs' => 'getTransformationsIDs', + 'transformationIDs' => 'getTransformationIDs', ]; /** @@ -73,8 +73,8 @@ class TransformationSearch extends AbstractModel implements ModelInterface, \Arr */ public function __construct(?array $data = null) { - if (isset($data['transformationsIDs'])) { - $this->container['transformationsIDs'] = $data['transformationsIDs']; + if (isset($data['transformationIDs'])) { + $this->container['transformationIDs'] = $data['transformationIDs']; } } @@ -136,13 +136,7 @@ public static function getters() */ public function listInvalidProperties() { - $invalidProperties = []; - - if (!isset($this->container['transformationsIDs']) || null === $this->container['transformationsIDs']) { - $invalidProperties[] = "'transformationsIDs' can't be null"; - } - - return $invalidProperties; + return []; } /** @@ -157,25 +151,25 @@ public function valid() } /** - * Gets transformationsIDs. + * Gets transformationIDs. * - * @return string[] + * @return null|string[] */ - public function getTransformationsIDs() + public function getTransformationIDs() { - return $this->container['transformationsIDs'] ?? null; + return $this->container['transformationIDs'] ?? null; } /** - * Sets transformationsIDs. + * Sets transformationIDs. * - * @param string[] $transformationsIDs transformationsIDs + * @param null|string[] $transformationIDs transformationIDs * * @return self */ - public function setTransformationsIDs($transformationsIDs) + public function setTransformationIDs($transformationIDs) { - $this->container['transformationsIDs'] = $transformationsIDs; + $this->container['transformationIDs'] = $transformationIDs; return $this; } diff --git a/clients/algoliasearch-client-python/algoliasearch/ingestion/models/transformation_search.py b/clients/algoliasearch-client-python/algoliasearch/ingestion/models/transformation_search.py index c822e5461a..334e56fb3e 100644 --- a/clients/algoliasearch-client-python/algoliasearch/ingestion/models/transformation_search.py +++ b/clients/algoliasearch-client-python/algoliasearch/ingestion/models/transformation_search.py @@ -7,7 +7,7 @@ from __future__ import annotations from json import loads -from typing import Any, Dict, List, Self +from typing import Any, Dict, List, Optional, Self from pydantic import BaseModel, ConfigDict, Field, StrictStr @@ -17,7 +17,9 @@ class TransformationSearch(BaseModel): TransformationSearch """ - transformations_ids: List[StrictStr] = Field(alias="transformationsIDs") + transformation_ids: Optional[List[StrictStr]] = Field( + default=None, alias="transformationIDs" + ) model_config = ConfigDict( use_enum_values=True, populate_by_name=True, validate_assignment=True @@ -57,5 +59,5 @@ def from_dict(cls, obj: Dict) -> Self: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({"transformationsIDs": obj.get("transformationsIDs")}) + _obj = cls.model_validate({"transformationIDs": obj.get("transformationIDs")}) return _obj diff --git a/clients/algoliasearch-client-ruby/lib/algolia/models/ingestion/transformation_search.rb b/clients/algoliasearch-client-ruby/lib/algolia/models/ingestion/transformation_search.rb index 7b4070910a..00c78d3689 100644 --- a/clients/algoliasearch-client-ruby/lib/algolia/models/ingestion/transformation_search.rb +++ b/clients/algoliasearch-client-ruby/lib/algolia/models/ingestion/transformation_search.rb @@ -6,12 +6,12 @@ module Algolia module Ingestion class TransformationSearch - attr_accessor :transformations_ids + attr_accessor :transformation_ids # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :transformations_ids => :transformationsIDs + :transformation_ids => :transformationIDs } end @@ -23,7 +23,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.types_mapping { - :transformations_ids => :"Array" + :transformation_ids => :"Array" } end @@ -57,12 +57,10 @@ def initialize(attributes = {}) h[k.to_sym] = v } - if attributes.key?(:transformations_ids) - if (value = attributes[:transformations_ids]).is_a?(Array) - self.transformations_ids = value + if attributes.key?(:transformation_ids) + if (value = attributes[:transformation_ids]).is_a?(Array) + self.transformation_ids = value end - else - self.transformations_ids = nil end end @@ -71,7 +69,7 @@ def initialize(attributes = {}) def ==(other) return true if self.equal?(other) self.class == other.class && - transformations_ids == other.transformations_ids + transformation_ids == other.transformation_ids end # @see the `==` method @@ -83,7 +81,7 @@ def eql?(other) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [transformations_ids].hash + [transformation_ids].hash end # Builds the object from hash diff --git a/clients/algoliasearch-client-scala/src/main/scala/algoliasearch/ingestion/TransformationSearch.scala b/clients/algoliasearch-client-scala/src/main/scala/algoliasearch/ingestion/TransformationSearch.scala index 3a88e20edf..7e3bc081c3 100644 --- a/clients/algoliasearch-client-scala/src/main/scala/algoliasearch/ingestion/TransformationSearch.scala +++ b/clients/algoliasearch-client-scala/src/main/scala/algoliasearch/ingestion/TransformationSearch.scala @@ -26,5 +26,5 @@ package algoliasearch.ingestion /** TransformationSearch */ case class TransformationSearch( - transformationsIDs: Seq[String] + transformationIDs: Option[Seq[String]] = scala.None ) diff --git a/clients/algoliasearch-client-swift/Sources/Ingestion/Models/TransformationSearch.swift b/clients/algoliasearch-client-swift/Sources/Ingestion/Models/TransformationSearch.swift index 647f73ee0a..400190f0d0 100644 --- a/clients/algoliasearch-client-swift/Sources/Ingestion/Models/TransformationSearch.swift +++ b/clients/algoliasearch-client-swift/Sources/Ingestion/Models/TransformationSearch.swift @@ -7,32 +7,32 @@ import Foundation #endif public struct TransformationSearch: Codable, JSONEncodable { - public var transformationsIDs: [String] + public var transformationIDs: [String]? - public init(transformationsIDs: [String]) { - self.transformationsIDs = transformationsIDs + public init(transformationIDs: [String]? = nil) { + self.transformationIDs = transformationIDs } public enum CodingKeys: String, CodingKey, CaseIterable { - case transformationsIDs + case transformationIDs } // Encodable protocol methods public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(self.transformationsIDs, forKey: .transformationsIDs) + try container.encodeIfPresent(self.transformationIDs, forKey: .transformationIDs) } } extension TransformationSearch: Equatable { public static func ==(lhs: TransformationSearch, rhs: TransformationSearch) -> Bool { - lhs.transformationsIDs == rhs.transformationsIDs + lhs.transformationIDs == rhs.transformationIDs } } extension TransformationSearch: Hashable { public func hash(into hasher: inout Hasher) { - hasher.combine(self.transformationsIDs.hashValue) + hasher.combine(self.transformationIDs?.hashValue) } } diff --git a/snippets/csharp/src/Ingestion.cs b/snippets/csharp/src/Ingestion.cs index b2074d4c86..c0cc53f134 100644 --- a/snippets/csharp/src/Ingestion.cs +++ b/snippets/csharp/src/Ingestion.cs @@ -991,7 +991,7 @@ public async Task SnippetForIngestionClientSearchTransformations() var response = await client.SearchTransformationsAsync( new TransformationSearch { - TransformationsIDs = new List + TransformationIDs = new List { "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", diff --git a/snippets/go/src/ingestion.go b/snippets/go/src/ingestion.go index 55affd731f..305416f272 100644 --- a/snippets/go/src/ingestion.go +++ b/snippets/go/src/ingestion.go @@ -1323,7 +1323,7 @@ func SnippetForSearchTransformationsOfIngestion() { // Call the API response, err := client.SearchTransformations(client.NewApiSearchTransformationsRequest( - ingestion.NewEmptyTransformationSearch().SetTransformationsIDs( + ingestion.NewEmptyTransformationSearch().SetTransformationIDs( []string{"6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"}), )) if err != nil { diff --git a/snippets/guides/ingestion-snippets.json b/snippets/guides/ingestion-snippets.json index 5e07b72444..33906168cb 100644 --- a/snippets/guides/ingestion-snippets.json +++ b/snippets/guides/ingestion-snippets.json @@ -142,7 +142,7 @@ "default": "var response = await client.SearchTasksV1Async(\n new TaskSearch\n {\n TaskIDs = new List\n {\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n },\n }\n);" }, "searchTransformations": { - "default": "var response = await client.SearchTransformationsAsync(\n new TransformationSearch\n {\n TransformationsIDs = new List\n {\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n },\n }\n);" + "default": "var response = await client.SearchTransformationsAsync(\n new TransformationSearch\n {\n TransformationIDs = new List\n {\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n },\n }\n);" }, "triggerDockerSourceDiscover": { "default": "var response = await client.TriggerDockerSourceDiscoverAsync(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n);" @@ -349,7 +349,7 @@ "default": "// Initialize the client with your application region, eg. ingestion.YOUR_APP_ID_REGION\nclient, err := ingestion.NewClient(\"YOUR_APP_ID\", \"YOUR_API_KEY\", ingestion.US)\nif err != nil {\n // The client can fail to initialize if you pass an invalid parameter.\n panic(err)\n}\n\n// Call the API\nresponse, err := client.SearchTasksV1(client.NewApiSearchTasksV1Request(\n\n ingestion.NewEmptyTaskSearch().SetTaskIDs(\n []string{\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"}),\n))\nif err != nil {\n // handle the eventual error\n panic(err)\n}\n\n// use the model directly\nprint(response)\n" }, "searchTransformations": { - "default": "// Initialize the client with your application region, eg. ingestion.YOUR_APP_ID_REGION\nclient, err := ingestion.NewClient(\"YOUR_APP_ID\", \"YOUR_API_KEY\", ingestion.US)\nif err != nil {\n // The client can fail to initialize if you pass an invalid parameter.\n panic(err)\n}\n\n// Call the API\nresponse, err := client.SearchTransformations(client.NewApiSearchTransformationsRequest(\n\n ingestion.NewEmptyTransformationSearch().SetTransformationsIDs(\n []string{\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"}),\n))\nif err != nil {\n // handle the eventual error\n panic(err)\n}\n\n// use the model directly\nprint(response)\n" + "default": "// Initialize the client with your application region, eg. ingestion.YOUR_APP_ID_REGION\nclient, err := ingestion.NewClient(\"YOUR_APP_ID\", \"YOUR_API_KEY\", ingestion.US)\nif err != nil {\n // The client can fail to initialize if you pass an invalid parameter.\n panic(err)\n}\n\n// Call the API\nresponse, err := client.SearchTransformations(client.NewApiSearchTransformationsRequest(\n\n ingestion.NewEmptyTransformationSearch().SetTransformationIDs(\n []string{\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"}),\n))\nif err != nil {\n // handle the eventual error\n panic(err)\n}\n\n// use the model directly\nprint(response)\n" }, "triggerDockerSourceDiscover": { "default": "// Initialize the client with your application region, eg. ingestion.YOUR_APP_ID_REGION\nclient, err := ingestion.NewClient(\"YOUR_APP_ID\", \"YOUR_API_KEY\", ingestion.US)\nif err != nil {\n // The client can fail to initialize if you pass an invalid parameter.\n panic(err)\n}\n\n// Call the API\nresponse, err := client.TriggerDockerSourceDiscover(client.NewApiTriggerDockerSourceDiscoverRequest(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n))\nif err != nil {\n // handle the eventual error\n panic(err)\n}\n\n// use the model directly\nprint(response)\n" @@ -538,7 +538,7 @@ "default": "client.searchTasksV1(\n new TaskSearch()\n .setTaskIDs(\n List.of(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\")\n )\n);" }, "searchTransformations": { - "default": "client.searchTransformations(\n new TransformationSearch()\n .setTransformationsIDs(\n List.of(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\")\n )\n);" + "default": "client.searchTransformations(\n new TransformationSearch()\n .setTransformationIDs(\n List.of(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\")\n )\n);" }, "triggerDockerSourceDiscover": { "default": "client.triggerDockerSourceDiscover(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\");" @@ -730,7 +730,7 @@ "default": "const response = await client.searchTasksV1({\n taskIDs: [\n '6c02aeb1-775e-418e-870b-1faccd4b2c0f',\n '947ac9c4-7e58-4c87-b1e7-14a68e99699a',\n '76ab4c2a-ce17-496f-b7a6-506dc59ee498',\n ],\n});\n\n// use typed response\nconsole.log(response);" }, "searchTransformations": { - "default": "const response = await client.searchTransformations({\n transformationsIDs: [\n '6c02aeb1-775e-418e-870b-1faccd4b2c0f',\n '947ac9c4-7e58-4c87-b1e7-14a68e99699a',\n '76ab4c2a-ce17-496f-b7a6-506dc59ee498',\n ],\n});\n\n// use typed response\nconsole.log(response);" + "default": "const response = await client.searchTransformations({\n transformationIDs: [\n '6c02aeb1-775e-418e-870b-1faccd4b2c0f',\n '947ac9c4-7e58-4c87-b1e7-14a68e99699a',\n '76ab4c2a-ce17-496f-b7a6-506dc59ee498',\n ],\n});\n\n// use typed response\nconsole.log(response);" }, "triggerDockerSourceDiscover": { "default": "const response = await client.triggerDockerSourceDiscover({\n sourceID: '6c02aeb1-775e-418e-870b-1faccd4b2c0f',\n});\n\n// use typed response\nconsole.log(response);" @@ -922,7 +922,7 @@ "default": "var response = client.searchTasksV1(\n taskSearch = TaskSearch(\n taskIDs = listOf(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"),\n ),\n)\n\n// Use the response\nprintln(response)" }, "searchTransformations": { - "default": "var response = client.searchTransformations(\n transformationSearch = TransformationSearch(\n transformationsIDs = listOf(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"),\n ),\n)\n\n// Use the response\nprintln(response)" + "default": "var response = client.searchTransformations(\n transformationSearch = TransformationSearch(\n transformationIDs = listOf(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\", \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"),\n ),\n)\n\n// Use the response\nprintln(response)" }, "triggerDockerSourceDiscover": { "default": "var response = client.triggerDockerSourceDiscover(\n sourceID = \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n)\n\n// Use the response\nprintln(response)" @@ -1114,7 +1114,7 @@ "default": "$response = $client->searchTasksV1(\n ['taskIDs' => [\n '6c02aeb1-775e-418e-870b-1faccd4b2c0f',\n\n '947ac9c4-7e58-4c87-b1e7-14a68e99699a',\n\n '76ab4c2a-ce17-496f-b7a6-506dc59ee498',\n ],\n ],\n);\n\n// play with the response\nvar_dump($response);" }, "searchTransformations": { - "default": "$response = $client->searchTransformations(\n ['transformationsIDs' => [\n '6c02aeb1-775e-418e-870b-1faccd4b2c0f',\n\n '947ac9c4-7e58-4c87-b1e7-14a68e99699a',\n\n '76ab4c2a-ce17-496f-b7a6-506dc59ee498',\n ],\n ],\n);\n\n// play with the response\nvar_dump($response);" + "default": "$response = $client->searchTransformations(\n ['transformationIDs' => [\n '6c02aeb1-775e-418e-870b-1faccd4b2c0f',\n\n '947ac9c4-7e58-4c87-b1e7-14a68e99699a',\n\n '76ab4c2a-ce17-496f-b7a6-506dc59ee498',\n ],\n ],\n);\n\n// play with the response\nvar_dump($response);" }, "triggerDockerSourceDiscover": { "default": "$response = $client->triggerDockerSourceDiscover(\n '6c02aeb1-775e-418e-870b-1faccd4b2c0f',\n);\n\n// play with the response\nvar_dump($response);" @@ -1306,7 +1306,7 @@ "default": "response = await _client.search_tasks_v1(\n task_search={\n \"taskIDs\": [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\",\n ],\n },\n)\n\n# use the class directly\nprint(response)\n\n# print the JSON response\nprint(response.to_json())" }, "searchTransformations": { - "default": "response = await _client.search_transformations(\n transformation_search={\n \"transformationsIDs\": [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\",\n ],\n },\n)\n\n# use the class directly\nprint(response)\n\n# print the JSON response\nprint(response.to_json())" + "default": "response = await _client.search_transformations(\n transformation_search={\n \"transformationIDs\": [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\",\n ],\n },\n)\n\n# use the class directly\nprint(response)\n\n# print the JSON response\nprint(response.to_json())" }, "triggerDockerSourceDiscover": { "default": "response = await _client.trigger_docker_source_discover(\n source_id=\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n)\n\n# use the class directly\nprint(response)\n\n# print the JSON response\nprint(response.to_json())" @@ -1498,7 +1498,7 @@ "default": "response = client.search_tasks_v1(\n TaskSearch.new(\n task_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)\n\n# use the class directly\nputs(response)\n\n# print the JSON response\nputs(response.to_json)" }, "searchTransformations": { - "default": "response = client.search_transformations(\n TransformationSearch.new(\n transformations_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)\n\n# use the class directly\nputs(response)\n\n# print the JSON response\nputs(response.to_json)" + "default": "response = client.search_transformations(\n TransformationSearch.new(\n transformation_ids: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n ]\n )\n)\n\n# use the class directly\nputs(response)\n\n# print the JSON response\nputs(response.to_json)" }, "triggerDockerSourceDiscover": { "default": "response = client.trigger_docker_source_discover(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\")\n\n# use the class directly\nputs(response)\n\n# print the JSON response\nputs(response.to_json)" @@ -1690,7 +1690,7 @@ "default": "val response = client.searchTasksV1(\n taskSearch = TaskSearch(\n taskIDs = Seq(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n )\n )\n)\n\n// Use the response\nval value = Await.result(response, Duration(100, \"sec\"))" }, "searchTransformations": { - "default": "val response = client.searchTransformations(\n transformationSearch = TransformationSearch(\n transformationsIDs = Seq(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n )\n )\n)\n\n// Use the response\nval value = Await.result(response, Duration(100, \"sec\"))" + "default": "val response = client.searchTransformations(\n transformationSearch = TransformationSearch(\n transformationIDs = Some(\n Seq(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"\n )\n )\n )\n)\n\n// Use the response\nval value = Await.result(response, Duration(100, \"sec\"))" }, "triggerDockerSourceDiscover": { "default": "val response = client.triggerDockerSourceDiscover(\n sourceID = \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n)\n\n// Use the response\nval value = Await.result(response, Duration(100, \"sec\"))" @@ -1882,7 +1882,7 @@ "default": "let response = try await client.searchTasksV1(taskSearch: TaskSearch(taskIDs: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\",\n]))" }, "searchTransformations": { - "default": "let response = try await client\n .searchTransformations(transformationSearch: TransformationSearch(transformationsIDs: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\",\n ]))" + "default": "let response = try await client\n .searchTransformations(transformationSearch: TransformationSearch(transformationIDs: [\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\n \"76ab4c2a-ce17-496f-b7a6-506dc59ee498\",\n ]))" }, "triggerDockerSourceDiscover": { "default": "let response = try await client.triggerDockerSourceDiscover(sourceID: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\")" diff --git a/snippets/java/src/test/java/com/algolia/Ingestion.java b/snippets/java/src/test/java/com/algolia/Ingestion.java index 0af3c60939..4d992e4695 100644 --- a/snippets/java/src/test/java/com/algolia/Ingestion.java +++ b/snippets/java/src/test/java/com/algolia/Ingestion.java @@ -678,7 +678,7 @@ void snippetForSearchTransformations() { // Call the API client.searchTransformations( new TransformationSearch() - .setTransformationsIDs( + .setTransformationIDs( List.of("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498") ) ); diff --git a/snippets/javascript/src/ingestion.ts b/snippets/javascript/src/ingestion.ts index adadce58e0..0ece0ba03e 100644 --- a/snippets/javascript/src/ingestion.ts +++ b/snippets/javascript/src/ingestion.ts @@ -1060,7 +1060,7 @@ export async function snippetForSearchTransformations(): Promise { // Call the API const response = await client.searchTransformations({ - transformationsIDs: [ + transformationIDs: [ '6c02aeb1-775e-418e-870b-1faccd4b2c0f', '947ac9c4-7e58-4c87-b1e7-14a68e99699a', '76ab4c2a-ce17-496f-b7a6-506dc59ee498', diff --git a/snippets/kotlin/src/main/kotlin/com/algolia/snippets/Ingestion.kt b/snippets/kotlin/src/main/kotlin/com/algolia/snippets/Ingestion.kt index f3e4c61da6..1392e5e755 100644 --- a/snippets/kotlin/src/main/kotlin/com/algolia/snippets/Ingestion.kt +++ b/snippets/kotlin/src/main/kotlin/com/algolia/snippets/Ingestion.kt @@ -870,7 +870,7 @@ class SnippetIngestionClient { // Call the API var response = client.searchTransformations( transformationSearch = TransformationSearch( - transformationsIDs = listOf("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"), + transformationIDs = listOf("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"), ), ) diff --git a/snippets/php/src/Ingestion.php b/snippets/php/src/Ingestion.php index 378e3dd759..f9a4f56ca1 100644 --- a/snippets/php/src/Ingestion.php +++ b/snippets/php/src/Ingestion.php @@ -1064,7 +1064,7 @@ public function snippetForSearchTransformations() // Call the API $response = $client->searchTransformations( - ['transformationsIDs' => [ + ['transformationIDs' => [ '6c02aeb1-775e-418e-870b-1faccd4b2c0f', '947ac9c4-7e58-4c87-b1e7-14a68e99699a', diff --git a/snippets/python/ingestion.py b/snippets/python/ingestion.py index fb31f4244e..99f445d5df 100644 --- a/snippets/python/ingestion.py +++ b/snippets/python/ingestion.py @@ -1160,7 +1160,7 @@ async def snippet_for_search_transformations(): # Call the API response = await _client.search_transformations( transformation_search={ - "transformationsIDs": [ + "transformationIDs": [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498", diff --git a/snippets/ruby/ingestion.rb b/snippets/ruby/ingestion.rb index 2033c9f90e..26a52d8570 100644 --- a/snippets/ruby/ingestion.rb +++ b/snippets/ruby/ingestion.rb @@ -964,7 +964,7 @@ def snippet_for_search_transformations # Call the API response = client.search_transformations( TransformationSearch.new( - transformations_ids: [ + transformation_ids: [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498" diff --git a/snippets/scala/src/main/scala/Ingestion.scala b/snippets/scala/src/main/scala/Ingestion.scala index 310741b7a5..d795a24178 100644 --- a/snippets/scala/src/main/scala/Ingestion.scala +++ b/snippets/scala/src/main/scala/Ingestion.scala @@ -972,10 +972,12 @@ class SnippetIngestionClient { // Call the API val response = client.searchTransformations( transformationSearch = TransformationSearch( - transformationsIDs = Seq( - "6c02aeb1-775e-418e-870b-1faccd4b2c0f", - "947ac9c4-7e58-4c87-b1e7-14a68e99699a", - "76ab4c2a-ce17-496f-b7a6-506dc59ee498" + transformationIDs = Some( + Seq( + "6c02aeb1-775e-418e-870b-1faccd4b2c0f", + "947ac9c4-7e58-4c87-b1e7-14a68e99699a", + "76ab4c2a-ce17-496f-b7a6-506dc59ee498" + ) ) ) ) diff --git a/snippets/swift/Sources/Ingestion.swift b/snippets/swift/Sources/Ingestion.swift index 23816e9a96..f65a80ce0d 100644 --- a/snippets/swift/Sources/Ingestion.swift +++ b/snippets/swift/Sources/Ingestion.swift @@ -681,7 +681,7 @@ final class IngestionClientSnippet { // Call the API let response = try await client - .searchTransformations(transformationSearch: TransformationSearch(transformationsIDs: [ + .searchTransformations(transformationSearch: TransformationSearch(transformationIDs: [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498", diff --git a/specs/bundled/ingestion.doc.yml b/specs/bundled/ingestion.doc.yml index 88236755d8..cbc0d49f0f 100644 --- a/specs/bundled/ingestion.doc.yml +++ b/specs/bundled/ingestion.doc.yml @@ -11494,7 +11494,7 @@ paths: var response = await client.SearchTransformationsAsync( new TransformationSearch { - TransformationsIDs = new List + TransformationIDs = new List { "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", @@ -11522,7 +11522,7 @@ paths: response, err := client.SearchTransformations(client.NewApiSearchTransformationsRequest( - ingestion.NewEmptyTransformationSearch().SetTransformationsIDs( + ingestion.NewEmptyTransformationSearch().SetTransformationIDs( []string{"6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"}), )) @@ -11548,7 +11548,7 @@ paths: client.searchTransformations( new TransformationSearch() - .setTransformationsIDs( + .setTransformationIDs( List.of("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498") ) ); @@ -11564,7 +11564,7 @@ paths: // Call the API const response = await client.searchTransformations({ - transformationsIDs: [ + transformationIDs: [ '6c02aeb1-775e-418e-870b-1faccd4b2c0f', '947ac9c4-7e58-4c87-b1e7-14a68e99699a', '76ab4c2a-ce17-496f-b7a6-506dc59ee498', @@ -11586,7 +11586,7 @@ paths: var response = client.searchTransformations( transformationSearch = TransformationSearch( - transformationsIDs = listOf("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"), + transformationIDs = listOf("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"), ), ) @@ -11606,7 +11606,7 @@ paths: // Call the API $response = $client->searchTransformations( - ['transformationsIDs' => [ + ['transformationIDs' => [ '6c02aeb1-775e-418e-870b-1faccd4b2c0f', '947ac9c4-7e58-4c87-b1e7-14a68e99699a', @@ -11633,7 +11633,7 @@ paths: response = await _client.search_transformations( transformation_search={ - "transformationsIDs": [ + "transformationIDs": [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498", @@ -11663,7 +11663,7 @@ paths: response = client.search_transformations( TransformationSearch.new( - transformations_ids: [ + transformation_ids: [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498" @@ -11693,10 +11693,12 @@ paths: val response = client.searchTransformations( transformationSearch = TransformationSearch( - transformationsIDs = Seq( - "6c02aeb1-775e-418e-870b-1faccd4b2c0f", - "947ac9c4-7e58-4c87-b1e7-14a68e99699a", - "76ab4c2a-ce17-496f-b7a6-506dc59ee498" + transformationIDs = Some( + Seq( + "6c02aeb1-775e-418e-870b-1faccd4b2c0f", + "947ac9c4-7e58-4c87-b1e7-14a68e99699a", + "76ab4c2a-ce17-496f-b7a6-506dc59ee498" + ) ) ) ) @@ -11717,7 +11719,7 @@ paths: // Call the API let response = try await client - .searchTransformations(transformationSearch: TransformationSearch(transformationsIDs: [ + .searchTransformations(transformationSearch: TransformationSearch(transformationIDs: [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498", @@ -15679,7 +15681,7 @@ components: type: object additionalProperties: false properties: - transformationsIDs: + transformationIDs: type: array items: $ref: '#/components/schemas/transformationID' diff --git a/specs/bundled/ingestion.yml b/specs/bundled/ingestion.yml index 73e1a94970..b9f44a809f 100644 --- a/specs/bundled/ingestion.yml +++ b/specs/bundled/ingestion.yml @@ -3900,7 +3900,7 @@ components: type: object additionalProperties: false properties: - transformationsIDs: + transformationIDs: type: array items: $ref: '#/components/schemas/transformationID' diff --git a/tests/output/csharp/src/generated/requests/Ingestion.test.cs b/tests/output/csharp/src/generated/requests/Ingestion.test.cs index df232594fa..9531454a94 100644 --- a/tests/output/csharp/src/generated/requests/Ingestion.test.cs +++ b/tests/output/csharp/src/generated/requests/Ingestion.test.cs @@ -1335,7 +1335,7 @@ public async Task SearchTransformationsTest() await client.SearchTransformationsAsync( new TransformationSearch { - TransformationsIDs = new List + TransformationIDs = new List { "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", @@ -1348,7 +1348,7 @@ await client.SearchTransformationsAsync( Assert.Equal("/1/transformations/search", req.Path); Assert.Equal("POST", req.Method.ToString()); JsonAssert.EqualOverrideDefault( - "{\"transformationsIDs\":[\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"]}", + "{\"transformationIDs\":[\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"]}", req.Body, new JsonDiffConfig(false) ); diff --git a/tests/output/go/tests/requests/ingestion_test.go b/tests/output/go/tests/requests/ingestion_test.go index ae6474277a..11e616cb44 100644 --- a/tests/output/go/tests/requests/ingestion_test.go +++ b/tests/output/go/tests/requests/ingestion_test.go @@ -1222,7 +1222,7 @@ func TestIngestion_SearchTransformations(t *testing.T) { t.Run("searchTransformations", func(t *testing.T) { _, err := client.SearchTransformations(client.NewApiSearchTransformationsRequest( - ingestion.NewEmptyTransformationSearch().SetTransformationsIDs( + ingestion.NewEmptyTransformationSearch().SetTransformationIDs( []string{"6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"}), )) require.NoError(t, err) @@ -1231,7 +1231,7 @@ func TestIngestion_SearchTransformations(t *testing.T) { require.Equal(t, "POST", echo.Method) ja := jsonassert.New(t) - ja.Assertf(*echo.Body, `{"transformationsIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}`) + ja.Assertf(*echo.Body, `{"transformationIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}`) }) } diff --git a/tests/output/java/src/test/java/com/algolia/requests/Ingestion.test.java b/tests/output/java/src/test/java/com/algolia/requests/Ingestion.test.java index c88f925cdf..d1aa65db26 100644 --- a/tests/output/java/src/test/java/com/algolia/requests/Ingestion.test.java +++ b/tests/output/java/src/test/java/com/algolia/requests/Ingestion.test.java @@ -1340,7 +1340,7 @@ void searchTransformationsTest() { assertDoesNotThrow(() -> { client.searchTransformations( new TransformationSearch() - .setTransformationsIDs( + .setTransformationIDs( List.of("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498") ) ); @@ -1350,7 +1350,7 @@ void searchTransformationsTest() { assertEquals("POST", req.method); assertDoesNotThrow(() -> JSONAssert.assertEquals( - "{\"transformationsIDs\":[\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"]}", + "{\"transformationIDs\":[\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"]}", req.body, JSONCompareMode.STRICT ) diff --git a/tests/output/javascript/src/requests/ingestion.test.ts b/tests/output/javascript/src/requests/ingestion.test.ts index 6cad47a675..ac391c4a98 100644 --- a/tests/output/javascript/src/requests/ingestion.test.ts +++ b/tests/output/javascript/src/requests/ingestion.test.ts @@ -1127,7 +1127,7 @@ describe('searchTasksV1', () => { describe('searchTransformations', () => { test('searchTransformations', async () => { const req = (await client.searchTransformations({ - transformationsIDs: [ + transformationIDs: [ '6c02aeb1-775e-418e-870b-1faccd4b2c0f', '947ac9c4-7e58-4c87-b1e7-14a68e99699a', '76ab4c2a-ce17-496f-b7a6-506dc59ee498', @@ -1137,7 +1137,7 @@ describe('searchTransformations', () => { expect(req.path).toEqual('/1/transformations/search'); expect(req.method).toEqual('POST'); expect(req.data).toEqual({ - transformationsIDs: [ + transformationIDs: [ '6c02aeb1-775e-418e-870b-1faccd4b2c0f', '947ac9c4-7e58-4c87-b1e7-14a68e99699a', '76ab4c2a-ce17-496f-b7a6-506dc59ee498', diff --git a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/IngestionTest.kt b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/IngestionTest.kt index af36de4e6e..28d831a613 100644 --- a/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/IngestionTest.kt +++ b/tests/output/kotlin/src/commonTest/kotlin/com/algolia/requests/IngestionTest.kt @@ -1436,14 +1436,14 @@ class IngestionTest { call = { searchTransformations( transformationSearch = TransformationSearch( - transformationsIDs = listOf("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"), + transformationIDs = listOf("6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498"), ), ) }, intercept = { assertEquals("/1/transformations/search".toPathSegments(), it.url.pathSegments) assertEquals(HttpMethod.parse("POST"), it.method) - assertJsonBody("""{"transformationsIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}""", it.body) + assertJsonBody("""{"transformationIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}""", it.body) }, ) } diff --git a/tests/output/php/src/requests/IngestionTest.php b/tests/output/php/src/requests/IngestionTest.php index 9a970b7cfd..6bfbde92ea 100644 --- a/tests/output/php/src/requests/IngestionTest.php +++ b/tests/output/php/src/requests/IngestionTest.php @@ -1396,7 +1396,7 @@ public function testSearchTransformations() { $client = $this->getClient(); $client->searchTransformations( - ['transformationsIDs' => [ + ['transformationIDs' => [ '6c02aeb1-775e-418e-870b-1faccd4b2c0f', '947ac9c4-7e58-4c87-b1e7-14a68e99699a', @@ -1410,7 +1410,7 @@ public function testSearchTransformations() [ 'path' => '/1/transformations/search', 'method' => 'POST', - 'body' => json_decode('{"transformationsIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}'), + 'body' => json_decode('{"transformationIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}'), ], ]); } diff --git a/tests/output/python/tests/requests/ingestion_test.py b/tests/output/python/tests/requests/ingestion_test.py index 505cc14671..8c0e827625 100644 --- a/tests/output/python/tests/requests/ingestion_test.py +++ b/tests/output/python/tests/requests/ingestion_test.py @@ -1250,7 +1250,7 @@ async def test_search_transformations_(self): """ _req = await self._client.search_transformations_with_http_info( transformation_search={ - "transformationsIDs": [ + "transformationIDs": [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498", @@ -1263,7 +1263,7 @@ async def test_search_transformations_(self): assert _req.query_parameters.items() == {}.items() assert _req.headers.items() >= {}.items() assert loads(_req.data) == loads( - """{"transformationsIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}""" + """{"transformationIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}""" ) async def test_trigger_docker_source_discover_(self): diff --git a/tests/output/ruby/test/requests/ingestion_test.rb b/tests/output/ruby/test/requests/ingestion_test.rb index e3a64ee998..038fa1435d 100644 --- a/tests/output/ruby/test/requests/ingestion_test.rb +++ b/tests/output/ruby/test/requests/ingestion_test.rb @@ -1033,7 +1033,7 @@ def test_search_tasks_v1 def test_search_transformations req = @client.search_transformations_with_http_info( TransformationSearch.new( - transformations_ids: [ + transformation_ids: [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498" @@ -1047,7 +1047,7 @@ def test_search_transformations assert(({}.to_a - req.headers.to_a).empty?, req.headers.to_s) assert_equal( JSON.parse( - "{\"transformationsIDs\":[\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"]}" + "{\"transformationIDs\":[\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"]}" ), JSON.parse(req.body) ) diff --git a/tests/output/scala/src/test/scala/algoliasearch/requests/IngestionTest.scala b/tests/output/scala/src/test/scala/algoliasearch/requests/IngestionTest.scala index 321e0c6c12..931eb2e95c 100644 --- a/tests/output/scala/src/test/scala/algoliasearch/requests/IngestionTest.scala +++ b/tests/output/scala/src/test/scala/algoliasearch/requests/IngestionTest.scala @@ -1373,10 +1373,12 @@ class IngestionTest extends AnyFunSuite { val (client, echo) = testClient() val future = client.searchTransformations( transformationSearch = TransformationSearch( - transformationsIDs = Seq( - "6c02aeb1-775e-418e-870b-1faccd4b2c0f", - "947ac9c4-7e58-4c87-b1e7-14a68e99699a", - "76ab4c2a-ce17-496f-b7a6-506dc59ee498" + transformationIDs = Some( + Seq( + "6c02aeb1-775e-418e-870b-1faccd4b2c0f", + "947ac9c4-7e58-4c87-b1e7-14a68e99699a", + "76ab4c2a-ce17-496f-b7a6-506dc59ee498" + ) ) ) ) @@ -1387,7 +1389,7 @@ class IngestionTest extends AnyFunSuite { assert(res.path == "/1/transformations/search") assert(res.method == "POST") val expectedBody = parse( - """{"transformationsIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}""" + """{"transformationIDs":["6c02aeb1-775e-418e-870b-1faccd4b2c0f","947ac9c4-7e58-4c87-b1e7-14a68e99699a","76ab4c2a-ce17-496f-b7a6-506dc59ee498"]}""" ) val actualBody = parse(res.body.get) assert(actualBody == expectedBody) diff --git a/tests/output/swift/Tests/requests/IngestionTests.swift b/tests/output/swift/Tests/requests/IngestionTests.swift index c1dcc242bc..4650fd7970 100644 --- a/tests/output/swift/Tests/requests/IngestionTests.swift +++ b/tests/output/swift/Tests/requests/IngestionTests.swift @@ -2041,7 +2041,7 @@ final class IngestionClientRequestsTests: XCTestCase { let client = IngestionClient(configuration: configuration, transporter: transporter) let response = try await client - .searchTransformationsWithHTTPInfo(transformationSearch: TransformationSearch(transformationsIDs: [ + .searchTransformationsWithHTTPInfo(transformationSearch: TransformationSearch(transformationIDs: [ "6c02aeb1-775e-418e-870b-1faccd4b2c0f", "947ac9c4-7e58-4c87-b1e7-14a68e99699a", "76ab4c2a-ce17-496f-b7a6-506dc59ee498", @@ -2053,7 +2053,7 @@ final class IngestionClientRequestsTests: XCTestCase { let echoResponseBodyJSON = try XCTUnwrap(echoResponseBodyData.jsonString) let expectedBodyData = - "{\"transformationsIDs\":[\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"]}" + "{\"transformationIDs\":[\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\"947ac9c4-7e58-4c87-b1e7-14a68e99699a\",\"76ab4c2a-ce17-496f-b7a6-506dc59ee498\"]}" .data(using: .utf8) let expectedBodyJSON = try XCTUnwrap(expectedBodyData?.jsonString)