|
1279 | 1279 | "default": "require \"algolia\""
|
1280 | 1280 | },
|
1281 | 1281 | "createAuthentication": {
|
1282 |
| - "default": "response = client.create_authentication(\n AuthenticationCreate.new(\n type: \"oauth\",\n name: \"authName\",\n input: AuthOAuth.new(url: \"http://test.oauth\", client_id: \"myID\", client_secret: \"mySecret\")\n )\n)" |
| 1282 | + "default": "response = client.create_authentication(\n Algolia::Ingestion::AuthenticationCreate.new(\n type: \"oauth\",\n name: \"authName\",\n input: Algolia::Ingestion::AuthOAuth.new(url: \"http://test.oauth\", client_id: \"myID\", client_secret: \"mySecret\")\n )\n)" |
1283 | 1283 | },
|
1284 | 1284 | "createDestination": {
|
1285 |
| - "default": "response = client.create_destination(\n DestinationCreate.new(\n type: \"search\",\n name: \"destinationName\",\n input: DestinationIndexName.new(index_name: \"<YOUR_INDEX_NAME>\"),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)" |
| 1285 | + "default": "response = client.create_destination(\n Algolia::Ingestion::DestinationCreate.new(\n type: \"search\",\n name: \"destinationName\",\n input: Algolia::Ingestion::DestinationIndexName.new(index_name: \"<YOUR_INDEX_NAME>\"),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)" |
1286 | 1286 | },
|
1287 | 1287 | "createSource": {
|
1288 |
| - "default": "response = client.create_source(\n SourceCreate.new(\n type: \"commercetools\",\n name: \"sourceName\",\n input: SourceCommercetools.new(\n store_keys: [\"myStore\"],\n locales: [\"de\"],\n url: \"http://commercetools.com\",\n project_key: \"keyID\"\n ),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)" |
| 1288 | + "default": "response = client.create_source(\n Algolia::Ingestion::SourceCreate.new(\n type: \"commercetools\",\n name: \"sourceName\",\n input: Algolia::Ingestion::SourceCommercetools.new(\n store_keys: [\"myStore\"],\n locales: [\"de\"],\n url: \"http://commercetools.com\",\n project_key: \"keyID\"\n ),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)" |
1289 | 1289 | },
|
1290 | 1290 | "createTask": {
|
1291 |
| - "default": "response = client.create_task(\n TaskCreate.new(source_id: \"search\", destination_id: \"destinationName\", action: \"replace\")\n)" |
| 1291 | + "default": "response = client.create_task(\n Algolia::Ingestion::TaskCreate.new(source_id: \"search\", destination_id: \"destinationName\", action: \"replace\")\n)" |
1292 | 1292 | },
|
1293 | 1293 | "createTaskV1": {
|
1294 |
| - "default": "response = client.create_task_v1(\n TaskCreateV1.new(\n source_id: \"search\",\n destination_id: \"destinationName\",\n trigger: OnDemandTriggerInput.new(type: \"onDemand\"),\n action: \"replace\"\n )\n)" |
| 1294 | + "default": "response = client.create_task_v1(\n Algolia::Ingestion::TaskCreateV1.new(\n source_id: \"search\",\n destination_id: \"destinationName\",\n trigger: Algolia::Ingestion::OnDemandTriggerInput.new(type: \"onDemand\"),\n action: \"replace\"\n )\n)" |
1295 | 1295 | },
|
1296 | 1296 | "createTransformation": {
|
1297 |
| - "default": "response = client.create_transformation(TransformationCreate.new(code: \"foo\", name: \"bar\", description: \"baz\"))" |
| 1297 | + "default": "response = client.create_transformation(\n Algolia::Ingestion::TransformationCreate.new(code: \"foo\", name: \"bar\", description: \"baz\")\n)" |
1298 | 1298 | },
|
1299 | 1299 | "customDelete": {
|
1300 | 1300 | "default": "response = client.custom_delete(\"test/minimal\")"
|
|
1387 | 1387 | "default": "response = client.list_transformations"
|
1388 | 1388 | },
|
1389 | 1389 | "pushTask": {
|
1390 |
| - "default": "response = client.push_task(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n PushTaskPayload.new(\n action: \"addObject\",\n records: [\n PushTaskRecords.new(key: \"bar\", foo: \"1\", object_id: \"o\"),\n PushTaskRecords.new(key: \"baz\", foo: \"2\", object_id: \"k\")\n ]\n )\n)" |
| 1390 | + "default": "response = client.push_task(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::PushTaskPayload.new(\n action: \"addObject\",\n records: [\n Algolia::Ingestion::PushTaskRecords.new(key: \"bar\", foo: \"1\", object_id: \"o\"),\n Algolia::Ingestion::PushTaskRecords.new(key: \"baz\", foo: \"2\", object_id: \"k\")\n ]\n )\n)" |
1391 | 1391 | },
|
1392 | 1392 | "runSource": {
|
1393 |
| - "default": "response = client.run_source(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n RunSourcePayload.new(\n index_to_include: [\"products_us\", \"products eu\"],\n entity_ids: [\"1234\", \"5678\"],\n entity_type: \"product\"\n )\n)" |
| 1393 | + "default": "response = client.run_source(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::RunSourcePayload.new(\n index_to_include: [\"products_us\", \"products eu\"],\n entity_ids: [\"1234\", \"5678\"],\n entity_type: \"product\"\n )\n)" |
1394 | 1394 | },
|
1395 | 1395 | "runTask": {
|
1396 | 1396 | "default": "response = client.run_task(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\")"
|
|
1399 | 1399 | "default": "response = client.run_task_v1(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\")"
|
1400 | 1400 | },
|
1401 | 1401 | "searchAuthentications": {
|
1402 |
| - "default": "response = client.search_authentications(\n AuthenticationSearch.new(\n authentication_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)" |
| 1402 | + "default": "response = client.search_authentications(\n Algolia::Ingestion::AuthenticationSearch.new(\n authentication_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)" |
1403 | 1403 | },
|
1404 | 1404 | "searchDestinations": {
|
1405 |
| - "default": "response = client.search_destinations(\n DestinationSearch.new(\n destination_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)" |
| 1405 | + "default": "response = client.search_destinations(\n Algolia::Ingestion::DestinationSearch.new(\n destination_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)" |
1406 | 1406 | },
|
1407 | 1407 | "searchSources": {
|
1408 |
| - "default": "response = client.search_sources(\n SourceSearch.new(source_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"])\n)" |
| 1408 | + "default": "response = client.search_sources(\n Algolia::Ingestion::SourceSearch.new(\n source_ids: [\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", \"947ac9c4-7e58-4c87-b1e7-14a68e99699a\"]\n )\n)" |
1409 | 1409 | },
|
1410 | 1410 | "searchTasks": {
|
1411 |
| - "default": "response = client.search_tasks(\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)" |
| 1411 | + "default": "response = client.search_tasks(\n Algolia::Ingestion::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)" |
1412 | 1412 | },
|
1413 | 1413 | "searchTasksV1": {
|
1414 |
| - "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)" |
| 1414 | + "default": "response = client.search_tasks_v1(\n Algolia::Ingestion::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)" |
1415 | 1415 | },
|
1416 | 1416 | "searchTransformations": {
|
1417 |
| - "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)" |
| 1417 | + "default": "response = client.search_transformations(\n Algolia::Ingestion::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)" |
1418 | 1418 | },
|
1419 | 1419 | "setClientApiKey": {
|
1420 | 1420 | "default": "client.set_client_api_key(\"updated-api-key\")"
|
|
1423 | 1423 | "default": "response = client.trigger_docker_source_discover(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\")"
|
1424 | 1424 | },
|
1425 | 1425 | "tryTransformation": {
|
1426 |
| - "default": "response = client.try_transformation(TransformationTry.new(code: \"foo\", sample_record: {bar: \"baz\"}))" |
| 1426 | + "default": "response = client.try_transformation(\n Algolia::Ingestion::TransformationTry.new(code: \"foo\", sample_record: {bar: \"baz\"})\n)" |
1427 | 1427 | },
|
1428 | 1428 | "tryTransformationBeforeUpdate": {
|
1429 |
| - "default": "response = client.try_transformation_before_update(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n TransformationTry.new(code: \"foo\", sample_record: {bar: \"baz\"})\n)" |
| 1429 | + "default": "response = client.try_transformation_before_update(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::TransformationTry.new(code: \"foo\", sample_record: {bar: \"baz\"})\n)" |
1430 | 1430 | },
|
1431 | 1431 | "updateAuthentication": {
|
1432 |
| - "default": "response = client.update_authentication(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n AuthenticationUpdate.new(name: \"newName\")\n)" |
| 1432 | + "default": "response = client.update_authentication(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::AuthenticationUpdate.new(name: \"newName\")\n)" |
1433 | 1433 | },
|
1434 | 1434 | "updateDestination": {
|
1435 |
| - "default": "response = client.update_destination(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", DestinationUpdate.new(name: \"newName\"))" |
| 1435 | + "default": "response = client.update_destination(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::DestinationUpdate.new(name: \"newName\")\n)" |
1436 | 1436 | },
|
1437 | 1437 | "updateSource": {
|
1438 |
| - "default": "response = client.update_source(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", SourceUpdate.new(name: \"newName\"))" |
| 1438 | + "default": "response = client.update_source(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::SourceUpdate.new(name: \"newName\")\n)" |
1439 | 1439 | },
|
1440 | 1440 | "updateTask": {
|
1441 |
| - "default": "response = client.update_task(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n TaskUpdate.new(enabled: false, cron: \"* * * * *\")\n)" |
| 1441 | + "default": "response = client.update_task(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::TaskUpdate.new(enabled: false, cron: \"* * * * *\")\n)" |
1442 | 1442 | },
|
1443 | 1443 | "updateTaskV1": {
|
1444 |
| - "default": "response = client.update_task_v1(\"6c02aeb1-775e-418e-870b-1faccd4b2c0f\", TaskUpdateV1.new(enabled: false))" |
| 1444 | + "default": "response = client.update_task_v1(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::TaskUpdateV1.new(enabled: false)\n)" |
1445 | 1445 | },
|
1446 | 1446 | "updateTransformation": {
|
1447 |
| - "default": "response = client.update_transformation(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n TransformationCreate.new(code: \"foo\", name: \"bar\", description: \"baz\")\n)" |
| 1447 | + "default": "response = client.update_transformation(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::TransformationCreate.new(code: \"foo\", name: \"bar\", description: \"baz\")\n)" |
1448 | 1448 | },
|
1449 | 1449 | "validateSource": {
|
1450 |
| - "default": "response = client.validate_source(\n SourceCreate.new(\n type: \"commercetools\",\n name: \"sourceName\",\n input: SourceCommercetools.new(\n store_keys: [\"myStore\"],\n locales: [\"de\"],\n url: \"http://commercetools.com\",\n project_key: \"keyID\"\n ),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)" |
| 1450 | + "default": "response = client.validate_source(\n Algolia::Ingestion::SourceCreate.new(\n type: \"commercetools\",\n name: \"sourceName\",\n input: Algolia::Ingestion::SourceCommercetools.new(\n store_keys: [\"myStore\"],\n locales: [\"de\"],\n url: \"http://commercetools.com\",\n project_key: \"keyID\"\n ),\n authentication_id: \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\"\n )\n)" |
1451 | 1451 | },
|
1452 | 1452 | "validateSourceBeforeUpdate": {
|
1453 |
| - "default": "response = client.validate_source_before_update(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n SourceUpdate.new(name: \"newName\")\n)" |
| 1453 | + "default": "response = client.validate_source_before_update(\n \"6c02aeb1-775e-418e-870b-1faccd4b2c0f\",\n Algolia::Ingestion::SourceUpdate.new(name: \"newName\")\n)" |
1454 | 1454 | },
|
1455 | 1455 | "init": {
|
1456 | 1456 | "default": "client = Algolia::IngestionClient.create(\"ALGOLIA_APPLICATION_ID\", \"ALGOLIA_API_KEY\", \"ALGOLIA_APPLICATION_REGION\")"
|
|
0 commit comments