algolia 3.5.1 → 3.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/Gemfile.lock +1 -1
  4. data/lib/algolia/api/abtesting_client.rb +17 -9
  5. data/lib/algolia/api/analytics_client.rb +173 -165
  6. data/lib/algolia/api/ingestion_client.rb +38 -30
  7. data/lib/algolia/api/insights_client.rb +18 -10
  8. data/lib/algolia/api/monitoring_client.rb +22 -14
  9. data/lib/algolia/api/personalization_client.rb +16 -8
  10. data/lib/algolia/api/query_suggestions_client.rb +17 -9
  11. data/lib/algolia/api/recommend_client.rb +17 -9
  12. data/lib/algolia/api/search_client.rb +60 -52
  13. data/lib/algolia/configuration.rb +16 -1
  14. data/lib/algolia/models/abtesting/ab_test_configuration.rb +0 -2
  15. data/lib/algolia/models/abtesting/variant.rb +0 -2
  16. data/lib/algolia/models/ingestion/event.rb +1 -11
  17. data/lib/algolia/models/recommend/fallback_params.rb +3 -3
  18. data/lib/algolia/models/recommend/recommend_hit.rb +0 -2
  19. data/lib/algolia/models/recommend/recommend_search_params.rb +3 -3
  20. data/lib/algolia/models/recommend/recommendations_results.rb +13 -0
  21. data/lib/algolia/models/recommend/search_recommend_rules_params.rb +2 -2
  22. data/lib/algolia/models/recommend/trending_facet_hit.rb +0 -2
  23. data/lib/algolia/models/search/browse_params_object.rb +1 -1
  24. data/lib/algolia/models/search/browse_response.rb +13 -0
  25. data/lib/algolia/models/search/consequence_params.rb +1 -1
  26. data/lib/algolia/models/search/get_api_key_response.rb +2 -0
  27. data/lib/algolia/models/search/get_objects_response.rb +0 -2
  28. data/lib/algolia/models/search/index_settings.rb +3 -3
  29. data/lib/algolia/models/search/search_dictionary_entries_response.rb +1 -1
  30. data/lib/algolia/models/search/search_for_facets.rb +1 -1
  31. data/lib/algolia/models/search/search_for_hits.rb +1 -1
  32. data/lib/algolia/models/search/search_params_object.rb +1 -1
  33. data/lib/algolia/models/search/search_response.rb +13 -0
  34. data/lib/algolia/models/search/search_rules_params.rb +2 -2
  35. data/lib/algolia/models/search/search_user_ids_response.rb +1 -1
  36. data/lib/algolia/models/search/settings_response.rb +3 -3
  37. data/lib/algolia/user_agent.rb +8 -2
  38. data/lib/algolia/version.rb +1 -1
  39. metadata +2 -2
@@ -41,6 +41,14 @@ module Algolia
41
41
  # @return [void]
42
42
  def set_client_api_key(api_key)
43
43
  @api_client.set_client_api_key(api_key)
44
+
45
+ self
46
+ end
47
+
48
+ def add_user_agent_segment(segment, version = nil)
49
+ @api_client.config.add_user_agent_segment(segment, version)
50
+
51
+ self
44
52
  end
45
53
 
46
54
  # Creates a new API key with specific permissions and restrictions.
@@ -87,7 +95,7 @@ module Algolia
87
95
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::AddApiKeyResponse")
88
96
  end
89
97
 
90
- # If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
98
+ # If a record with the specified object ID exists, the existing record is replaced. Otherwise, a new record is added to the index. To update _some_ attributes of an existing record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject) instead. To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
91
99
  #
92
100
  # Required API Key ACLs:
93
101
  # - addObject
@@ -244,7 +252,7 @@ module Algolia
244
252
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::CreatedAtResponse")
245
253
  end
246
254
 
247
- # Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they're specified. - Actions are equivalent to the individual API requests of the same name.
255
+ # Adds, updates, or deletes records in one index with a single API request. Batching index updates reduces latency and increases data integrity. - Actions are applied in the order they're specified. - Actions are equivalent to the individual API requests of the same name.
248
256
 
249
257
  # @param index_name [String] Name of the index on which to perform the operation. (required)
250
258
  # @param batch_write_params [BatchWriteParams] (required)
@@ -290,7 +298,7 @@ module Algolia
290
298
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::BatchResponse")
291
299
  end
292
300
 
293
- # Assigns multiple user IDs to a cluster. **You can't move users with this operation**.
301
+ # Assigns multiple user IDs to a cluster. **You can't move users with this operation**.
294
302
  #
295
303
  # Required API Key ACLs:
296
304
  # - admin
@@ -404,7 +412,7 @@ module Algolia
404
412
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
405
413
  end
406
414
 
407
- # Retrieves records from an index, up to 1,000 per request. While searching retrieves _hits_ (records augmented with attributes for highlighting and ranking details), browsing _just_ returns matching records. This can be useful if you want to export your indices. - The Analytics API doesn't collect data when using `browse`. - Records are ranked by attributes and custom ranking. - There's no ranking for: typo-tolerance, number of matched words, proximity, geo distance. Browse requests automatically apply these settings: - `advancedSyntax`: `false` - `attributesToHighlight`: `[]` - `attributesToSnippet`: `[]` - `distinct`: `false` - `enablePersonalization`: `false` - `enableRules`: `false` - `facets`: `[]` - `getRankingInfo`: `false` - `ignorePlurals`: `false` - `optionalFilters`: `[]` - `typoTolerance`: `true` or `false` (`min` and `strict` evaluate to `true`) If you send these parameters with your browse requests, they'll be ignored.
415
+ # Retrieves records from an index, up to 1,000 per request. While searching retrieves _hits_ (records augmented with attributes for highlighting and ranking details), browsing _just_ returns matching records. This can be useful if you want to export your indices. - The Analytics API doesn't collect data when using `browse`. - Records are ranked by attributes and custom ranking. - There's no ranking for: typo-tolerance, number of matched words, proximity, geo distance. Browse requests automatically apply these settings: - `advancedSyntax`: `false` - `attributesToHighlight`: `[]` - `attributesToSnippet`: `[]` - `distinct`: `false` - `enablePersonalization`: `false` - `enableRules`: `false` - `facets`: `[]` - `getRankingInfo`: `false` - `ignorePlurals`: `false` - `optionalFilters`: `[]` - `typoTolerance`: `true` or `false` (`min` and `strict` evaluate to `true`) If you send these parameters with your browse requests, they'll be ignored.
408
416
  #
409
417
  # Required API Key ACLs:
410
418
  # - browse
@@ -590,7 +598,7 @@ module Algolia
590
598
 
591
599
  # This method allow you to send requests to the Algolia REST API.
592
600
 
593
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
601
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
594
602
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
595
603
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
596
604
  # @return [Http::Response] the response
@@ -622,7 +630,7 @@ module Algolia
622
630
 
623
631
  # This method allow you to send requests to the Algolia REST API.
624
632
 
625
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
633
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
626
634
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
627
635
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
628
636
  # @return [Object]
@@ -633,7 +641,7 @@ module Algolia
633
641
 
634
642
  # This method allow you to send requests to the Algolia REST API.
635
643
 
636
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
644
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
637
645
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
638
646
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
639
647
  # @return [Http::Response] the response
@@ -665,7 +673,7 @@ module Algolia
665
673
 
666
674
  # This method allow you to send requests to the Algolia REST API.
667
675
 
668
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
676
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
669
677
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
670
678
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
671
679
  # @return [Object]
@@ -676,7 +684,7 @@ module Algolia
676
684
 
677
685
  # This method allow you to send requests to the Algolia REST API.
678
686
 
679
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
687
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
680
688
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
681
689
  # @param body [Object] Parameters to send with the custom request.
682
690
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -709,7 +717,7 @@ module Algolia
709
717
 
710
718
  # This method allow you to send requests to the Algolia REST API.
711
719
 
712
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
720
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
713
721
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
714
722
  # @param body [Object] Parameters to send with the custom request.
715
723
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -721,7 +729,7 @@ module Algolia
721
729
 
722
730
  # This method allow you to send requests to the Algolia REST API.
723
731
 
724
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
732
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
725
733
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
726
734
  # @param body [Object] Parameters to send with the custom request.
727
735
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -754,7 +762,7 @@ module Algolia
754
762
 
755
763
  # This method allow you to send requests to the Algolia REST API.
756
764
 
757
- # @param path [String] Path of the endpoint, anything after \&quot;/1\&quot; must be specified. (required)
765
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
758
766
  # @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
759
767
  # @param body [Object] Parameters to send with the custom request.
760
768
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -808,7 +816,7 @@ module Algolia
808
816
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeleteApiKeyResponse")
809
817
  end
810
818
 
811
- # This operation doesn&#39;t accept empty queries or filters. It&#39;s more efficient to get a list of object IDs with the [&#x60;browse&#x60; operation](#tag/Search/operation/browse), and then delete the records using the [&#x60;batch&#x60; operation](#tag/Records/operation/batch).
819
+ # This operation doesn't accept empty queries or filters. It's more efficient to get a list of object IDs with the [`browse` operation](#tag/Search/operation/browse), and then delete the records using the [`batch` operation](#tag/Records/operation/batch).
812
820
  #
813
821
  # Required API Key ACLs:
814
822
  # - deleteIndex
@@ -858,7 +866,7 @@ module Algolia
858
866
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
859
867
  end
860
868
 
861
- # Deletes an index and all its settings. - Deleting an index doesn&#39;t delete its analytics data. - If you try to delete a non-existing index, the operation is ignored without warning. - If the index you want to delete has replica indices, the replicas become independent indices. - If the index you want to delete is a replica index, you must first unlink it from its primary index before you can delete it. For more information, see [Delete replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/).
869
+ # Deletes an index and all its settings. - Deleting an index doesn't delete its analytics data. - If you try to delete a non-existing index, the operation is ignored without warning. - If the index you want to delete has replica indices, the replicas become independent indices. - If the index you want to delete is a replica index, you must first unlink it from its primary index before you can delete it. For more information, see [Delete replica indices](https://www.algolia.com/doc/guides/managing-results/refine-results/sorting/how-to/deleting-replicas/).
862
870
  #
863
871
  # Required API Key ACLs:
864
872
  # - deleteIndex
@@ -902,7 +910,7 @@ module Algolia
902
910
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
903
911
  end
904
912
 
905
- # Deletes a record by its object ID. To delete more than one record, use the [&#x60;batch&#x60; operation](#tag/Records/operation/batch). To delete records matching a query, use the [&#x60;deleteByQuery&#x60; operation](#tag/Records/operation/deleteBy).
913
+ # Deletes a record by its object ID. To delete more than one record, use the [`batch` operation](#tag/Records/operation/batch). To delete records matching a query, use the [`deleteByQuery` operation](#tag/Records/operation/deleteBy).
906
914
  #
907
915
  # Required API Key ACLs:
908
916
  # - deleteObject
@@ -955,7 +963,7 @@ module Algolia
955
963
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
956
964
  end
957
965
 
958
- # Deletes a rule by its ID. To find the object ID for rules, use the [&#x60;search&#x60; operation](#tag/Rules/operation/searchRules).
966
+ # Deletes a rule by its ID. To find the object ID for rules, use the [`search` operation](#tag/Rules/operation/searchRules).
959
967
  #
960
968
  # Required API Key ACLs:
961
969
  # - editSettings
@@ -1054,7 +1062,7 @@ module Algolia
1054
1062
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeleteSourceResponse")
1055
1063
  end
1056
1064
 
1057
- # Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [&#x60;search&#x60; operation](#tag/Synonyms/operation/searchSynonyms).
1065
+ # Deletes a synonym by its ID. To find the object IDs of your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
1058
1066
  #
1059
1067
  # Required API Key ACLs:
1060
1068
  # - editSettings
@@ -1109,7 +1117,7 @@ module Algolia
1109
1117
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::DeletedAtResponse")
1110
1118
  end
1111
1119
 
1112
- # Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application&#39;s keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by &#x60;&lt;redacted&gt;&#x60;.
1120
+ # Gets the permissions and restrictions of an API key. When authenticating with the admin API key, you can request information for any of your application's keys. When authenticating with other API keys, you can only retrieve information for that key, with the description replaced by `<redacted>`.
1113
1121
 
1114
1122
  # @param key [String] API key. (required)
1115
1123
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
@@ -1270,7 +1278,7 @@ module Algolia
1270
1278
  )
1271
1279
  end
1272
1280
 
1273
- # The request must be authenticated by an API key with the [&#x60;logs&#x60; ACL](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl). - Logs are held for the last seven days. - Up to 1,000 API requests per server are logged. - This request counts towards your [operations quota](https://support.algolia.com/hc/en-us/articles/4406981829777-How-does-Algolia-count-records-and-operations-) but doesn&#39;t appear in the logs itself.
1281
+ # The request must be authenticated by an API key with the [`logs` ACL](https://www.algolia.com/doc/guides/security/api-keys/#access-control-list-acl). - Logs are held for the last seven days. - Up to 1,000 API requests per server are logged. - This request counts towards your [operations quota](https://support.algolia.com/hc/en-us/articles/4406981829777-How-does-Algolia-count-records-and-operations-) but doesn't appear in the logs itself.
1274
1282
  #
1275
1283
  # Required API Key ACLs:
1276
1284
  # - logs
@@ -1319,13 +1327,13 @@ module Algolia
1319
1327
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::GetLogsResponse")
1320
1328
  end
1321
1329
 
1322
- # Retrieves one record by its object ID. To retrieve more than one record, use the [&#x60;objects&#x60; operation](#tag/Records/operation/getObjects).
1330
+ # Retrieves one record by its object ID. To retrieve more than one record, use the [`objects` operation](#tag/Records/operation/getObjects).
1323
1331
  #
1324
1332
  # Required API Key ACLs:
1325
1333
  # - search
1326
1334
  # @param index_name [String] Name of the index on which to perform the operation. (required)
1327
1335
  # @param object_id [String] Unique record identifier. (required)
1328
- # @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. &#x60;objectID&#x60; is always retrieved. Attributes included in &#x60;unretrievableAttributes&#x60; won&#39;t be retrieved unless the request is authenticated with the admin API key.
1336
+ # @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won't be retrieved unless the request is authenticated with the admin API key.
1329
1337
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1330
1338
  # @return [Http::Response] the response
1331
1339
  def get_object_with_http_info(index_name, object_id, attributes_to_retrieve = nil, request_options = {})
@@ -1370,7 +1378,7 @@ module Algolia
1370
1378
  # - search
1371
1379
  # @param index_name [String] Name of the index on which to perform the operation. (required)
1372
1380
  # @param object_id [String] Unique record identifier. (required)
1373
- # @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. &#x60;objectID&#x60; is always retrieved. Attributes included in &#x60;unretrievableAttributes&#x60; won&#39;t be retrieved unless the request is authenticated with the admin API key.
1381
+ # @param attributes_to_retrieve [Array<String>] Attributes to include with the records in the response. This is useful to reduce the size of the API response. By default, all retrievable attributes are returned. `objectID` is always retrieved. Attributes included in `unretrievableAttributes` won't be retrieved unless the request is authenticated with the admin API key.
1374
1382
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1375
1383
  # @return [Object]
1376
1384
  def get_object(index_name, object_id, attributes_to_retrieve = nil, request_options = {})
@@ -1422,7 +1430,7 @@ module Algolia
1422
1430
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::GetObjectsResponse")
1423
1431
  end
1424
1432
 
1425
- # Retrieves a rule by its ID. To find the object ID of rules, use the [&#x60;search&#x60; operation](#tag/Rules/operation/searchRules).
1433
+ # Retrieves a rule by its ID. To find the object ID of rules, use the [`search` operation](#tag/Rules/operation/searchRules).
1426
1434
  #
1427
1435
  # Required API Key ACLs:
1428
1436
  # - settings
@@ -1555,7 +1563,7 @@ module Algolia
1555
1563
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Array<Search::Source>")
1556
1564
  end
1557
1565
 
1558
- # Retrieves a synonym by its ID. To find the object IDs for your synonyms, use the [&#x60;search&#x60; operation](#tag/Synonyms/operation/searchSynonyms).
1566
+ # Retrieves a synonym by its ID. To find the object IDs for your synonyms, use the [`search` operation](#tag/Synonyms/operation/searchSynonyms).
1559
1567
  #
1560
1568
  # Required API Key ACLs:
1561
1569
  # - settings
@@ -1607,7 +1615,7 @@ module Algolia
1607
1615
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SynonymHit")
1608
1616
  end
1609
1617
 
1610
- # Checks the status of a given task. Indexing tasks are asynchronous. When you add, update, or delete records or indices, a task is created on a queue and completed depending on the load on the server. The indexing tasks&#39; responses include a task ID that you can use to check the status.
1618
+ # Checks the status of a given task. Indexing tasks are asynchronous. When you add, update, or delete records or indices, a task is created on a queue and completed depending on the load on the server. The indexing tasks' responses include a task ID that you can use to check the status.
1611
1619
  #
1612
1620
  # Required API Key ACLs:
1613
1621
  # - addObject
@@ -1659,7 +1667,7 @@ module Algolia
1659
1667
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::GetTaskResponse")
1660
1668
  end
1661
1669
 
1662
- # Get the IDs of the 10 users with the highest number of records per cluster. Since it can take a few seconds to get the data from the different clusters, the response isn&#39;t real-time.
1670
+ # Get the IDs of the 10 users with the highest number of records per cluster. Since it can take a few seconds to get the data from the different clusters, the response isn't real-time.
1663
1671
  #
1664
1672
  # Required API Key ACLs:
1665
1673
  # - admin
@@ -1696,7 +1704,7 @@ module Algolia
1696
1704
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::GetTopUserIdsResponse")
1697
1705
  end
1698
1706
 
1699
- # Returns the user ID data stored in the mapping. Since it can take a few seconds to get the data from the different clusters, the response isn&#39;t real-time.
1707
+ # Returns the user ID data stored in the mapping. Since it can take a few seconds to get the data from the different clusters, the response isn't real-time.
1700
1708
  #
1701
1709
  # Required API Key ACLs:
1702
1710
  # - admin
@@ -1744,7 +1752,7 @@ module Algolia
1744
1752
  #
1745
1753
  # Required API Key ACLs:
1746
1754
  # - admin
1747
- # @param get_clusters [Boolean] Whether to include the cluster&#39;s pending mapping state in the response.
1755
+ # @param get_clusters [Boolean] Whether to include the cluster's pending mapping state in the response.
1748
1756
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1749
1757
  # @return [Http::Response] the response
1750
1758
  def has_pending_mappings_with_http_info(get_clusters = nil, request_options = {})
@@ -1772,7 +1780,7 @@ module Algolia
1772
1780
  #
1773
1781
  # Required API Key ACLs:
1774
1782
  # - admin
1775
- # @param get_clusters [Boolean] Whether to include the cluster&#39;s pending mapping state in the response.
1783
+ # @param get_clusters [Boolean] Whether to include the cluster's pending mapping state in the response.
1776
1784
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1777
1785
  # @return [HasPendingMappingsResponse]
1778
1786
  def has_pending_mappings(get_clusters = nil, request_options = {})
@@ -1861,7 +1869,7 @@ module Algolia
1861
1869
  #
1862
1870
  # Required API Key ACLs:
1863
1871
  # - listIndexes
1864
- # @param page [Integer] Requested page of the API response. If &#x60;null&#x60;, the API response is not paginated.
1872
+ # @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
1865
1873
  # @param hits_per_page [Integer] Number of hits per page. (default to 100)
1866
1874
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1867
1875
  # @return [Http::Response] the response
@@ -1891,7 +1899,7 @@ module Algolia
1891
1899
  #
1892
1900
  # Required API Key ACLs:
1893
1901
  # - listIndexes
1894
- # @param page [Integer] Requested page of the API response. If &#x60;null&#x60;, the API response is not paginated.
1902
+ # @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
1895
1903
  # @param hits_per_page [Integer] Number of hits per page. (default to 100)
1896
1904
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1897
1905
  # @return [ListIndicesResponse]
@@ -1900,11 +1908,11 @@ module Algolia
1900
1908
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::ListIndicesResponse")
1901
1909
  end
1902
1910
 
1903
- # Lists the userIDs assigned to a multi-cluster application. Since it can take a few seconds to get the data from the different clusters, the response isn&#39;t real-time.
1911
+ # Lists the userIDs assigned to a multi-cluster application. Since it can take a few seconds to get the data from the different clusters, the response isn't real-time.
1904
1912
  #
1905
1913
  # Required API Key ACLs:
1906
1914
  # - admin
1907
- # @param page [Integer] Requested page of the API response. If &#x60;null&#x60;, the API response is not paginated.
1915
+ # @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
1908
1916
  # @param hits_per_page [Integer] Number of hits per page. (default to 100)
1909
1917
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1910
1918
  # @return [Http::Response] the response
@@ -1934,7 +1942,7 @@ module Algolia
1934
1942
  #
1935
1943
  # Required API Key ACLs:
1936
1944
  # - admin
1937
- # @param page [Integer] Requested page of the API response. If &#x60;null&#x60;, the API response is not paginated.
1945
+ # @param page [Integer] Requested page of the API response. If `null`, the API response is not paginated.
1938
1946
  # @param hits_per_page [Integer] Number of hits per page. (default to 100)
1939
1947
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
1940
1948
  # @return [ListUserIdsResponse]
@@ -1983,7 +1991,7 @@ module Algolia
1983
1991
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::MultipleBatchResponse")
1984
1992
  end
1985
1993
 
1986
- # Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are overwritten, except for their analytics data. - If the destination index doesn&#39;t exist yet, it&#39;ll be created. **Copy** - Copying a source index that doesn&#39;t exist creates a new index with 0 records and default settings. - The API keys of the source index are merged with the existing keys in the destination index. - You can&#39;t copy the &#x60;enableReRanking&#x60;, &#x60;mode&#x60;, and &#x60;replicas&#x60; settings. - You can&#39;t copy to a destination index that already has replicas. - Be aware of the [size limits](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits). - Related guide: [Copy indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/) **Move** - Moving a source index that doesn&#39;t exist is ignored without returning an error. - When moving an index, the analytics data keeps its original name, and a new set of analytics data is started for the new name. To access the original analytics in the dashboard, create an index with the original name. - If the destination index has replicas, moving will overwrite the existing index and copy the data to the replica indices. - Related guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).
1994
+ # Copies or moves (renames) an index within the same Algolia application. - Existing destination indices are overwritten, except for their analytics data. - If the destination index doesn't exist yet, it'll be created. **Copy** - Copying a source index that doesn't exist creates a new index with 0 records and default settings. - The API keys of the source index are merged with the existing keys in the destination index. - You can't copy the `enableReRanking`, `mode`, and `replicas` settings. - You can't copy to a destination index that already has replicas. - Be aware of the [size limits](https://www.algolia.com/doc/guides/scaling/algolia-service-limits/#application-record-and-index-limits). - Related guide: [Copy indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/copy-indices/) **Move** - Moving a source index that doesn't exist is ignored without returning an error. - When moving an index, the analytics data keeps its original name, and a new set of analytics data is started for the new name. To access the original analytics in the dashboard, create an index with the original name. - If the destination index has replicas, moving will overwrite the existing index and copy the data to the replica indices. - Related guide: [Move indices](https://www.algolia.com/doc/guides/sending-and-managing-data/manage-indices-and-apps/manage-indices/how-to/move-indices/).
1987
1995
  #
1988
1996
  # Required API Key ACLs:
1989
1997
  # - addObject
@@ -2033,14 +2041,14 @@ module Algolia
2033
2041
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
2034
2042
  end
2035
2043
 
2036
- # Adds new attributes to a record, or updates existing ones. - If a record with the specified object ID doesn&#39;t exist, a new record is added to the index **if** &#x60;createIfNotExists&#x60; is true. - If the index doesn&#39;t exist yet, this method creates a new index. - You can use any first-level attribute but not nested attributes. If you specify a nested attribute, the engine treats it as a replacement for its first-level ancestor. To update an attribute without pushing the entire record, you can use these built-in operations. These operations can be helpful if you don&#39;t have access to your initial data. - Increment: increment a numeric attribute - Decrement: decrement a numeric attribute - Add: append a number or string element to an array attribute - Remove: remove all matching number or string elements from an array attribute made of numbers or strings - AddUnique: add a number or string element to an array attribute made of numbers or strings only if it&#39;s not already present - IncrementFrom: increment a numeric integer attribute only if the provided value matches the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementFrom value of 2 for the version attribute, but the current value of the attribute is 1, the engine ignores the update. If the object doesn&#39;t exist, the engine only creates it if you pass an IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if the provided value is greater than the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the engine updates the object. If the object doesn&#39;t exist yet, the engine only creates it if you pass an IncrementSet value greater than 0. You can specify an operation by providing an object with the attribute to update as the key and its value being an object with the following properties: - _operation: the operation to apply on the attribute - value: the right-hand side argument to the operation, for example, increment or decrement step, value to add or remove.
2044
+ # Adds new attributes to a record, or updates existing ones. - If a record with the specified object ID doesn't exist, a new record is added to the index **if** `createIfNotExists` is true. - If the index doesn't exist yet, this method creates a new index. - You can use any first-level attribute but not nested attributes. If you specify a nested attribute, the engine treats it as a replacement for its first-level ancestor. To update an attribute without pushing the entire record, you can use these built-in operations. These operations can be helpful if you don't have access to your initial data. - Increment: increment a numeric attribute - Decrement: decrement a numeric attribute - Add: append a number or string element to an array attribute - Remove: remove all matching number or string elements from an array attribute made of numbers or strings - AddUnique: add a number or string element to an array attribute made of numbers or strings only if it's not already present - IncrementFrom: increment a numeric integer attribute only if the provided value matches the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementFrom value of 2 for the version attribute, but the current value of the attribute is 1, the engine ignores the update. If the object doesn't exist, the engine only creates it if you pass an IncrementFrom value of 0. - IncrementSet: increment a numeric integer attribute only if the provided value is greater than the current value, and otherwise ignore the whole object update. For example, if you pass an IncrementSet value of 2 for the version attribute, and the current value of the attribute is 1, the engine updates the object. If the object doesn't exist yet, the engine only creates it if you pass an IncrementSet value greater than 0. You can specify an operation by providing an object with the attribute to update as the key and its value being an object with the following properties: - _operation: the operation to apply on the attribute - value: the right-hand side argument to the operation, for example, increment or decrement step, value to add or remove.
2037
2045
  #
2038
2046
  # Required API Key ACLs:
2039
2047
  # - addObject
2040
2048
  # @param index_name [String] Name of the index on which to perform the operation. (required)
2041
2049
  # @param object_id [String] Unique record identifier. (required)
2042
2050
  # @param attributes_to_update [Object] Attributes with their values. (required)
2043
- # @param create_if_not_exists [Boolean] Whether to create a new record if it doesn&#39;t exist. (default to true)
2051
+ # @param create_if_not_exists [Boolean] Whether to create a new record if it doesn't exist. (default to true)
2044
2052
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
2045
2053
  # @return [Http::Response] the response
2046
2054
  def partial_update_object_with_http_info(
@@ -2092,7 +2100,7 @@ module Algolia
2092
2100
  # @param index_name [String] Name of the index on which to perform the operation. (required)
2093
2101
  # @param object_id [String] Unique record identifier. (required)
2094
2102
  # @param attributes_to_update [Object] Attributes with their values. (required)
2095
- # @param create_if_not_exists [Boolean] Whether to create a new record if it doesn&#39;t exist. (default to true)
2103
+ # @param create_if_not_exists [Boolean] Whether to create a new record if it doesn't exist. (default to true)
2096
2104
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
2097
2105
  # @return [UpdatedAtWithObjectIdResponse]
2098
2106
  def partial_update_object(
@@ -2203,7 +2211,7 @@ module Algolia
2203
2211
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::ReplaceSourceResponse")
2204
2212
  end
2205
2213
 
2206
- # Restores a deleted API key. Restoring resets the &#x60;validity&#x60; attribute to &#x60;0&#x60;. Algolia stores up to 1,000 API keys per application. If you create more, the oldest API keys are deleted and can&#39;t be restored.
2214
+ # Restores a deleted API key. Restoring resets the `validity` attribute to `0`. Algolia stores up to 1,000 API keys per application. If you create more, the oldest API keys are deleted and can't be restored.
2207
2215
  #
2208
2216
  # Required API Key ACLs:
2209
2217
  # - admin
@@ -2247,7 +2255,7 @@ module Algolia
2247
2255
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::AddApiKeyResponse")
2248
2256
  end
2249
2257
 
2250
- # Adds a record to an index or replace it. - If the record doesn&#39;t have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn&#39;t exist, a new record is added to your index. - If you add a record to an index that doesn&#39;t exist yet, a new index is created. To update _some_ attributes of a record, use the [&#x60;partial&#x60; operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [&#x60;batch&#x60; operation](#tag/Records/operation/batch).
2258
+ # Adds a record to an index or replace it. - If the record doesn't have an object ID, a new record with an auto-generated object ID is added to your index. - If a record with the specified object ID exists, the existing record is replaced. - If a record with the specified object ID doesn't exist, a new record is added to your index. - If you add a record to an index that doesn't exist yet, a new index is created. To update _some_ attributes of a record, use the [`partial` operation](#tag/Records/operation/partialUpdateObject). To add, update, or replace multiple records, use the [`batch` operation](#tag/Records/operation/batch).
2251
2259
  #
2252
2260
  # Required API Key ACLs:
2253
2261
  # - addObject
@@ -2297,7 +2305,7 @@ module Algolia
2297
2305
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SaveObjectResponse")
2298
2306
  end
2299
2307
 
2300
- # If a rule with the specified object ID doesn&#39;t exist, it&#39;s created. Otherwise, the existing rule is replaced. To create or update more than one rule, use the [&#x60;batch&#x60; operation](#tag/Rules/operation/saveRules).
2308
+ # If a rule with the specified object ID doesn't exist, it's created. Otherwise, the existing rule is replaced. To create or update more than one rule, use the [`batch` operation](#tag/Rules/operation/saveRules).
2301
2309
  #
2302
2310
  # Required API Key ACLs:
2303
2311
  # - editSettings
@@ -2358,7 +2366,7 @@ module Algolia
2358
2366
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedRuleResponse")
2359
2367
  end
2360
2368
 
2361
- # Create or update multiple rules. If a rule with the specified object ID doesn&#39;t exist, Algolia creates a new one. Otherwise, existing rules are replaced.
2369
+ # Create or update multiple rules. If a rule with the specified object ID doesn't exist, Algolia creates a new one. Otherwise, existing rules are replaced.
2362
2370
  #
2363
2371
  # Required API Key ACLs:
2364
2372
  # - editSettings
@@ -2426,7 +2434,7 @@ module Algolia
2426
2434
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
2427
2435
  end
2428
2436
 
2429
- # If a synonym with the specified object ID doesn&#39;t exist, Algolia adds a new one. Otherwise, the existing synonym is replaced. To add multiple synonyms in a single API request, use the [&#x60;batch&#x60; operation](#tag/Synonyms/operation/saveSynonyms).
2437
+ # If a synonym with the specified object ID doesn't exist, Algolia adds a new one. Otherwise, the existing synonym is replaced. To add multiple synonyms in a single API request, use the [`batch` operation](#tag/Synonyms/operation/saveSynonyms).
2430
2438
  #
2431
2439
  # Required API Key ACLs:
2432
2440
  # - editSettings
@@ -2487,7 +2495,7 @@ module Algolia
2487
2495
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SaveSynonymResponse")
2488
2496
  end
2489
2497
 
2490
- # If a synonym with the &#x60;objectID&#x60; doesn&#39;t exist, Algolia adds a new one. Otherwise, existing synonyms are replaced.
2498
+ # If a synonym with the `objectID` doesn't exist, Algolia adds a new one. Otherwise, existing synonyms are replaced.
2491
2499
  #
2492
2500
  # Required API Key ACLs:
2493
2501
  # - editSettings
@@ -2672,12 +2680,12 @@ module Algolia
2672
2680
  )
2673
2681
  end
2674
2682
 
2675
- # Searches for values of a specified facet attribute. - By default, facet values are sorted by decreasing count. You can adjust this with the &#x60;sortFacetValueBy&#x60; parameter. - Searching for facet values doesn&#39;t work if you have **more than 65 searchable facets and searchable attributes combined**.
2683
+ # Searches for values of a specified facet attribute. - By default, facet values are sorted by decreasing count. You can adjust this with the `sortFacetValueBy` parameter. - Searching for facet values doesn't work if you have **more than 65 searchable facets and searchable attributes combined**.
2676
2684
  #
2677
2685
  # Required API Key ACLs:
2678
2686
  # - search
2679
2687
  # @param index_name [String] Name of the index on which to perform the operation. (required)
2680
- # @param facet_name [String] Facet attribute in which to search for values. This attribute must be included in the &#x60;attributesForFaceting&#x60; index setting with the &#x60;searchable()&#x60; modifier. (required)
2688
+ # @param facet_name [String] Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier. (required)
2681
2689
  # @param search_for_facet_values_request [SearchForFacetValuesRequest]
2682
2690
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
2683
2691
  # @return [Http::Response] the response
@@ -2722,7 +2730,7 @@ module Algolia
2722
2730
  # Required API Key ACLs:
2723
2731
  # - search
2724
2732
  # @param index_name [String] Name of the index on which to perform the operation. (required)
2725
- # @param facet_name [String] Facet attribute in which to search for values. This attribute must be included in the &#x60;attributesForFaceting&#x60; index setting with the &#x60;searchable()&#x60; modifier. (required)
2733
+ # @param facet_name [String] Facet attribute in which to search for values. This attribute must be included in the `attributesForFaceting` index setting with the `searchable()` modifier. (required)
2726
2734
  # @param search_for_facet_values_request [SearchForFacetValuesRequest]
2727
2735
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
2728
2736
  # @return [SearchForFacetValuesResponse]
@@ -2785,7 +2793,7 @@ module Algolia
2785
2793
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SearchRulesResponse")
2786
2794
  end
2787
2795
 
2788
- # Searches a single index and returns matching search results (_hits_). This method lets you retrieve up to 1,000 hits. If you need more, use the [&#x60;browse&#x60; operation](#tag/Search/operation/browse) or increase the &#x60;paginatedLimitedTo&#x60; index setting.
2796
+ # Searches a single index and returns matching search results (_hits_). This method lets you retrieve up to 1,000 hits. If you need more, use the [`browse` operation](#tag/Search/operation/browse) or increase the `paginatedLimitedTo` index setting.
2789
2797
  #
2790
2798
  # Required API Key ACLs:
2791
2799
  # - search
@@ -2836,7 +2844,7 @@ module Algolia
2836
2844
  # Required API Key ACLs:
2837
2845
  # - settings
2838
2846
  # @param index_name [String] Name of the index on which to perform the operation. (required)
2839
- # @param search_synonyms_params [SearchSynonymsParams] Body of the &#x60;searchSynonyms&#x60; operation.
2847
+ # @param search_synonyms_params [SearchSynonymsParams] Body of the `searchSynonyms` operation.
2840
2848
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
2841
2849
  # @return [Http::Response] the response
2842
2850
  def search_synonyms_with_http_info(index_name, search_synonyms_params = nil, request_options = {})
@@ -2872,7 +2880,7 @@ module Algolia
2872
2880
  # Required API Key ACLs:
2873
2881
  # - settings
2874
2882
  # @param index_name [String] Name of the index on which to perform the operation. (required)
2875
- # @param search_synonyms_params [SearchSynonymsParams] Body of the &#x60;searchSynonyms&#x60; operation.
2883
+ # @param search_synonyms_params [SearchSynonymsParams] Body of the `searchSynonyms` operation.
2876
2884
  # @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
2877
2885
  # @return [SearchSynonymsResponse]
2878
2886
  def search_synonyms(index_name, search_synonyms_params = nil, request_options = {})
@@ -2880,7 +2888,7 @@ module Algolia
2880
2888
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::SearchSynonymsResponse")
2881
2889
  end
2882
2890
 
2883
- # Since it can take a few seconds to get the data from the different clusters, the response isn&#39;t real-time. To ensure rapid updates, the user IDs index isn&#39;t built at the same time as the mapping. Instead, it&#39;s built every 12 hours, at the same time as the update of user ID usage. For example, if you add or move a user ID, the search will show an old value until the next time the mapping is rebuilt (every 12 hours).
2891
+ # Since it can take a few seconds to get the data from the different clusters, the response isn't real-time. To ensure rapid updates, the user IDs index isn't built at the same time as the mapping. Instead, it's built every 12 hours, at the same time as the update of user ID usage. For example, if you add or move a user ID, the search will show an old value until the next time the mapping is rebuilt (every 12 hours).
2884
2892
  #
2885
2893
  # Required API Key ACLs:
2886
2894
  # - admin
@@ -2971,7 +2979,7 @@ module Algolia
2971
2979
  @api_client.deserialize(response.body, request_options[:debug_return_type] || "Search::UpdatedAtResponse")
2972
2980
  end
2973
2981
 
2974
- # Update the specified index settings. Index settings that you don&#39;t specify are left unchanged. Specify &#x60;null&#x60; to reset a setting to its default value. For best performance, update the index settings before you add new records to your index.
2982
+ # Update the specified index settings. Index settings that you don't specify are left unchanged. Specify `null` to reset a setting to its default value. For best performance, update the index settings before you add new records to your index.
2975
2983
  #
2976
2984
  # Required API Key ACLs:
2977
2985
  # - editSettings
@@ -33,11 +33,17 @@ module Algolia
33
33
 
34
34
  @user_agent = UserAgent.new.add(client_name, VERSION)
35
35
 
36
+ if opts[:user_agent_segments]
37
+ opts[:user_agent_segments].each do |segment|
38
+ @user_agent.add(segment)
39
+ end
40
+ end
41
+
36
42
  @header_params = {
37
43
  "X-Algolia-Application-Id" => app_id,
38
44
  "X-Algolia-API-Key" => api_key,
39
45
  "Content-Type" => "application/json",
40
- "User-Agent" => @user_agent
46
+ "User-Agent" => @user_agent.value
41
47
  }
42
48
  @header_params.transform_keys!(&:downcase)
43
49
 
@@ -47,11 +53,20 @@ module Algolia
47
53
  def set_client_api_key(api_key)
48
54
  @api_key = api_key
49
55
  @header_params["X-Algolia-API-Key"] = api_key
56
+
57
+ self
50
58
  end
51
59
 
52
60
  # The default Configuration object.
53
61
  def self.default
54
62
  @@default ||= Configuration.new
55
63
  end
64
+
65
+ def add_user_agent_segment(segment, version = nil)
66
+ @user_agent.add(segment, version)
67
+ @header_params["user-agent"] = @user_agent.value
68
+
69
+ self
70
+ end
56
71
  end
57
72
  end
@@ -68,8 +68,6 @@ module Algolia
68
68
 
69
69
  if attributes.key?(:outliers)
70
70
  self.outliers = attributes[:outliers]
71
- else
72
- self.outliers = nil
73
71
  end
74
72
 
75
73
  if attributes.key?(:empty_search)
@@ -201,8 +201,6 @@ module Algolia
201
201
 
202
202
  if attributes.key?(:description)
203
203
  self.description = attributes[:description]
204
- else
205
- self.description = nil
206
204
  end
207
205
 
208
206
  if attributes.key?(:estimated_sample_size)
@@ -13,9 +13,6 @@ module Algolia
13
13
  # Universally unique identifier (UUID) of a task run.
14
14
  attr_accessor :run_id
15
15
 
16
- # The parent event, the cause of this event.
17
- attr_accessor :parent_id
18
-
19
16
  attr_accessor :status
20
17
 
21
18
  attr_accessor :type
@@ -33,7 +30,6 @@ module Algolia
33
30
  {
34
31
  :event_id => :eventID,
35
32
  :run_id => :runID,
36
- :parent_id => :parentID,
37
33
  :status => :status,
38
34
  :type => :type,
39
35
  :batch_size => :batchSize,
@@ -52,7 +48,6 @@ module Algolia
52
48
  {
53
49
  :event_id => :"String",
54
50
  :run_id => :"String",
55
- :parent_id => :"String",
56
51
  :status => :"EventStatus",
57
52
  :type => :"EventType",
58
53
  :batch_size => :"Integer",
@@ -100,10 +95,6 @@ module Algolia
100
95
  self.run_id = nil
101
96
  end
102
97
 
103
- if attributes.key?(:parent_id)
104
- self.parent_id = attributes[:parent_id]
105
- end
106
-
107
98
  if attributes.key?(:status)
108
99
  self.status = attributes[:status]
109
100
  else
@@ -142,7 +133,6 @@ module Algolia
142
133
  self.class == other.class &&
143
134
  event_id == other.event_id &&
144
135
  run_id == other.run_id &&
145
- parent_id == other.parent_id &&
146
136
  status == other.status &&
147
137
  type == other.type &&
148
138
  batch_size == other.batch_size &&
@@ -159,7 +149,7 @@ module Algolia
159
149
  # Calculates hash code according to all attributes.
160
150
  # @return [Integer] Hash code
161
151
  def hash
162
- [event_id, run_id, parent_id, status, type, batch_size, data, published_at].hash
152
+ [event_id, run_id, status, type, batch_size, data, published_at].hash
163
153
  end
164
154
 
165
155
  # Builds the object from hash