Skip to content

Commit

Permalink
fix(specs): remove models from ingestion specs [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3774

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
  • Loading branch information
algolia-bot and shortcuts committed Sep 19, 2024
1 parent a1b1b93 commit 95a6225
Show file tree
Hide file tree
Showing 18 changed files with 476 additions and 2,755 deletions.
95 changes: 0 additions & 95 deletions lib/algolia/api/ingestion_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -961,60 +961,6 @@ def enable_task_v1(task_id, request_options = {})
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::TaskUpdateResponse")
end

# Generates code for the selected model based on the given prompt.
#
# Required API Key ACLs:
# - addObject
# - deleteIndex
# - editSettings
# @param generate_transformation_code_payload [GenerateTransformationCodePayload] (required)
# @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)
# @return [Http::Response] the response
def generate_transformation_code_with_http_info(generate_transformation_code_payload, request_options = {})
# verify the required parameter 'generate_transformation_code_payload' is set
if @api_client.config.client_side_validation && generate_transformation_code_payload.nil?
raise(
ArgumentError,
"Parameter `generate_transformation_code_payload` is required when calling `generate_transformation_code`."
)
end

path = "/1/transformations/models"
query_params = {}
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
header_params = {}
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?

post_body = request_options[:debug_body] || @api_client.object_to_http_body(generate_transformation_code_payload)

new_options = request_options.merge(
:operation => :"IngestionClient.generate_transformation_code",
:header_params => header_params,
:query_params => query_params,
:body => post_body,
:use_read_transporter => false
)

@api_client.call_api(:POST, path, new_options)
end

# Generates code for the selected model based on the given prompt.
#
# Required API Key ACLs:
# - addObject
# - deleteIndex
# - editSettings
# @param generate_transformation_code_payload [GenerateTransformationCodePayload] (required)
# @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)
# @return [GenerateTransformationCodeResponse]
def generate_transformation_code(generate_transformation_code_payload, request_options = {})
response = generate_transformation_code_with_http_info(generate_transformation_code_payload, request_options)
@api_client.deserialize(
response.body,
request_options[:debug_return_type] || "Ingestion::GenerateTransformationCodeResponse"
)
end

# Retrieves an authentication resource by its ID.
#
# Required API Key ACLs:
Expand Down Expand Up @@ -2231,47 +2177,6 @@ def list_tasks_v1(
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::ListTasksResponseV1")
end

# Retrieves a list of existing LLM transformation helpers.
#
# Required API Key ACLs:
# - addObject
# - deleteIndex
# - editSettings
# @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)
# @return [Http::Response] the response
def list_transformation_models_with_http_info(request_options = {})
path = "/1/transformations/models"
query_params = {}
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
header_params = {}
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?

post_body = request_options[:debug_body]

new_options = request_options.merge(
:operation => :"IngestionClient.list_transformation_models",
:header_params => header_params,
:query_params => query_params,
:body => post_body,
:use_read_transporter => false
)

@api_client.call_api(:GET, path, new_options)
end

# Retrieves a list of existing LLM transformation helpers.
#
# Required API Key ACLs:
# - addObject
# - deleteIndex
# - editSettings
# @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)
# @return [TransformationModels]
def list_transformation_models(request_options = {})
response = list_transformation_models_with_http_info(request_options)
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Ingestion::TransformationModels")
end

# Retrieves a list of transformations.
#
# Required API Key ACLs:
Expand Down
233 changes: 0 additions & 233 deletions lib/algolia/models/ingestion/generate_transformation_code_payload.rb

This file was deleted.

Loading

0 comments on commit 95a6225

Please sign in to comment.