datarobot-ai_api 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/Gemfile +3 -0
  4. data/README.md +12 -0
  5. data/Rakefile +54 -0
  6. data/datarobot-ai_api.gemspec +19 -0
  7. data/lib/datarobot.rb +1 -0
  8. data/lib/datarobot/ai_api.rb +190 -0
  9. data/lib/datarobot/ai_api/ai.rb +191 -0
  10. data/lib/datarobot/ai_api/dataset.rb +99 -0
  11. data/lib/datarobot/ai_api/deployment.rb +20 -0
  12. data/lib/datarobot/ai_api/evaluation.rb +21 -0
  13. data/lib/datarobot/ai_api/learning_session.rb +112 -0
  14. data/lib/datarobot/ai_api/output.rb +58 -0
  15. data/lib/datarobot/ai_api/page.rb +50 -0
  16. data/lib/datarobot/ai_api/prediction.rb +20 -0
  17. data/lib/datarobot/ai_api/refreshable.rb +20 -0
  18. data/lib/datarobot/ai_api/task.rb +86 -0
  19. data/test/cassettes/Datarobot_AiApi/_ping/returns_unauthorized_when_not_authorized.yml +41 -0
  20. data/test/cassettes/Datarobot_AiApi/_ping/works_when_authorized.yml +58 -0
  21. data/test/cassettes/Datarobot_AiApi/_ping_me/returns_unauthorized_when_not_authorized.yml +41 -0
  22. data/test/cassettes/Datarobot_AiApi/_ping_me/works_when_authorized.yml +58 -0
  23. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/404s_if_there_is_no_matching_output.yml +190 -0
  24. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_find/should_accept_a_block.yml +66 -0
  25. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_next_page/can_go_to_the_next_page.yml +132 -0
  26. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_next_page/returns_the_same_page_if_there_is_no_next_page.yml +123 -0
  27. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_previous_page/can_go_to_the_previous_page.yml +262 -0
  28. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_previous_page/returns_the_same_page_if_there_is_no_previous_page.yml +67 -0
  29. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_refresh/can_refresh_to_a_new_object.yml +129 -0
  30. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/_refresh_/can_refresh_its_values.yml +129 -0
  31. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_add_datasets_to_AIs.yml +120 -0
  32. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_add_learning_sessions_to_AIs.yml +120 -0
  33. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_be_trained.yml +4554 -0
  34. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_create_AIs.yml +120 -0
  35. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_delete_AIs.yml +58 -0
  36. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_find_AIs.yml +63 -0
  37. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_get_AI_datasets.yml +131 -0
  38. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_get_AI_outputs.yml +124 -0
  39. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_list_AIs.yml +123 -0
  40. data/test/cassettes/Datarobot_AiApi_AI/when_authorized/can_predict_things.yml +190 -0
  41. data/test/cassettes/Datarobot_AiApi_AI/when_not_authorized/can_not_create_AIs.yml +43 -0
  42. data/test/cassettes/Datarobot_AiApi_AI/when_not_authorized/can_not_find_AIs.yml +43 -0
  43. data/test/cassettes/Datarobot_AiApi_AI/when_not_authorized/can_not_list_AIs.yml +45 -0
  44. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_find/should_accept_a_block.yml +64 -0
  45. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_next_page/can_go_to_the_next_page.yml +126 -0
  46. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_next_page/returns_the_same_page_if_there_is_no_next_page.yml +113 -0
  47. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_previous_page/can_go_to_the_previous_page.yml +250 -0
  48. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_previous_page/returns_the_same_page_if_there_is_no_previous_page.yml +64 -0
  49. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_refresh/can_refresh_to_a_new_object.yml +125 -0
  50. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/_refresh_/can_refresh_its_values.yml +125 -0
  51. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_delete_datasets.yml +58 -0
  52. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_find_datasets.yml +61 -0
  53. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_import_a_dataset_from_a_file.yml +1077 -0
  54. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_import_a_dataset_from_a_url.yml +55 -0
  55. data/test/cassettes/Datarobot_AiApi_Dataset/when_authorized/can_list_datasets.yml +113 -0
  56. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_find/should_accept_a_block.yml +67 -0
  57. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_next_page/can_go_to_the_next_page.yml +67 -0
  58. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_next_page/returns_the_same_page_if_there_is_no_next_page.yml +100 -0
  59. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_previous_page/can_go_to_the_previous_page.yml +67 -0
  60. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_previous_page/returns_the_same_page_if_there_is_no_previous_page.yml +100 -0
  61. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_refresh/can_refresh_to_a_new_object.yml +131 -0
  62. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/_refresh_/can_refresh_its_values.yml +130 -0
  63. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_create_learning_sessions.yml +2815 -0
  64. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_delete_learning_sessions.yml +58 -0
  65. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_find_learning_sessions.yml +63 -0
  66. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_get_learning_session_deployment_data.yml +123 -0
  67. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_get_learning_session_evaluation_data.yml +67 -0
  68. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_get_learning_session_features.yml +127 -0
  69. data/test/cassettes/Datarobot_AiApi_LearningSession/when_authorized/can_list_learning_sessions.yml +100 -0
  70. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_create_outputs.yml +60 -0
  71. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_find_named_outputs.yml +123 -0
  72. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_get_features_of_an_output.yml +184 -0
  73. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_get_the_evaluation_of_an_output.yml +131 -0
  74. data/test/cassettes/Datarobot_AiApi_Output/when_authorized/can_list_outputs.yml +124 -0
  75. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/_find/should_accept_a_block.yml +63 -0
  76. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/_refresh/can_refresh_to_a_new_object.yml +124 -0
  77. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/_refresh_/can_refresh_its_values.yml +125 -0
  78. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/can_stop_a_task.yml +58 -0
  79. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/can_wait_until_completed.yml +1138 -0
  80. data/test/cassettes/Datarobot_AiApi_Task/when_authorized/check_the_status_of_a_task.yml +64 -0
  81. data/test/data/delete-me.csv +8037 -0
  82. data/test/data/test.csv +8037 -0
  83. data/test/datarobot/ai_api/test_ai.rb +133 -0
  84. data/test/datarobot/ai_api/test_dataset.rb +64 -0
  85. data/test/datarobot/ai_api/test_learning_session.rb +77 -0
  86. data/test/datarobot/ai_api/test_output.rb +54 -0
  87. data/test/datarobot/ai_api/test_page.rb +50 -0
  88. data/test/datarobot/ai_api/test_prediction.rb +0 -0
  89. data/test/datarobot/ai_api/test_refreshable.rb +39 -0
  90. data/test/datarobot/ai_api/test_task.rb +53 -0
  91. data/test/datarobot/test_ai_api.rb +52 -0
  92. data/test/test_helper.rb +40 -0
  93. metadata +217 -0
@@ -0,0 +1,132 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://developers.datarobot.com/aiapi/ais/?limit=1&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Host:
17
+ - developers.datarobot.com
18
+ Content-Type:
19
+ - application/json
20
+ Authorization:
21
+ - Bearer testingKey
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Thu, 29 Aug 2019 03:45:36 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '569'
33
+ Connection:
34
+ - keep-alive
35
+ Server:
36
+ - openresty
37
+ Set-Cookie:
38
+ - SERVERID=blue; path=/
39
+ Strict-Transport-Security:
40
+ - max-age=16070400; includeSubDomains
41
+ Vary:
42
+ - Origin
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Datarobot-Request-Id:
46
+ - cd566872d95480b748bb3f0d0e549337
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Ratelimit-Limit:
50
+ - "-1"
51
+ X-Ratelimit-Remaining:
52
+ - '0'
53
+ X-Ratelimit-Reset:
54
+ - '1562953893'
55
+ X-Xss-Protection:
56
+ - 1; mode=block
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"total": 15, "data": [{"name": "Bird classifier", "links": {"outputsList":
60
+ "https://developers.datarobot.com/aiapi/ais/5d322e625c142b15dff826fc/outputs/",
61
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d322e625c142b15dff826fc",
62
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d322e625c142b15dff826fc"},
63
+ "outputCount": 1, "datasetCount": 3, "learningSessionCount": 2, "id": "5d322e625c142b15dff826fc"}],
64
+ "links": {"previous": null, "next": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=1"}}'
65
+ http_version:
66
+ recorded_at: Thu, 29 Aug 2019 03:45:36 GMT
67
+ - request:
68
+ method: get
69
+ uri: https://developers.datarobot.com/aiapi/ais/?limit=1&offset=1
70
+ body:
71
+ encoding: US-ASCII
72
+ string: ''
73
+ headers:
74
+ Accept-Encoding:
75
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
76
+ Accept:
77
+ - "*/*"
78
+ User-Agent:
79
+ - datarobot-ai/ruby
80
+ Host:
81
+ - developers.datarobot.com
82
+ Content-Type:
83
+ - application/json
84
+ Authorization:
85
+ - Bearer testingKey
86
+ response:
87
+ status:
88
+ code: 200
89
+ message: OK
90
+ headers:
91
+ Date:
92
+ - Thu, 29 Aug 2019 03:45:36 GMT
93
+ Content-Type:
94
+ - application/json
95
+ Content-Length:
96
+ - '635'
97
+ Connection:
98
+ - keep-alive
99
+ Server:
100
+ - openresty
101
+ Set-Cookie:
102
+ - SERVERID=blue; path=/
103
+ Strict-Transport-Security:
104
+ - max-age=16070400; includeSubDomains
105
+ Vary:
106
+ - Origin
107
+ X-Content-Type-Options:
108
+ - nosniff
109
+ X-Datarobot-Request-Id:
110
+ - db9dfe24aac36988f46df9fad91386f5
111
+ X-Frame-Options:
112
+ - SAMEORIGIN
113
+ X-Ratelimit-Limit:
114
+ - "-1"
115
+ X-Ratelimit-Remaining:
116
+ - '0'
117
+ X-Ratelimit-Reset:
118
+ - '1562953893'
119
+ X-Xss-Protection:
120
+ - 1; mode=block
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"total": 15, "data": [{"name": "Soccer Match prediction", "links":
124
+ {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d4205d6d8c81f05fe732a42/outputs/",
125
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d4205d6d8c81f05fe732a42",
126
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d4205d6d8c81f05fe732a42"},
127
+ "outputCount": 1, "datasetCount": 7, "learningSessionCount": 6, "id": "5d4205d6d8c81f05fe732a42"}],
128
+ "links": {"previous": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=0",
129
+ "next": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=2"}}'
130
+ http_version:
131
+ recorded_at: Thu, 29 Aug 2019 03:45:36 GMT
132
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,123 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://developers.datarobot.com/aiapi/ais/?limit=100&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Host:
17
+ - developers.datarobot.com
18
+ Content-Type:
19
+ - application/json
20
+ Authorization:
21
+ - Bearer testingKey
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Thu, 29 Aug 2019 03:45:36 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '800'
33
+ Connection:
34
+ - keep-alive
35
+ Server:
36
+ - openresty
37
+ Set-Cookie:
38
+ - SERVERID=blue; path=/
39
+ Strict-Transport-Security:
40
+ - max-age=16070400; includeSubDomains
41
+ Vary:
42
+ - Origin
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Datarobot-Request-Id:
46
+ - d7a30cfa2cab0d1f302a46dec0419288
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Ratelimit-Limit:
50
+ - "-1"
51
+ X-Ratelimit-Remaining:
52
+ - '0'
53
+ X-Ratelimit-Reset:
54
+ - '1562953893'
55
+ X-Xss-Protection:
56
+ - 1; mode=block
57
+ body:
58
+ encoding: ASCII-8BIT
59
+ string: '{"total": 15, "data": [{"name": "Bird classifier", "links": {"outputsList":
60
+ "https://developers.datarobot.com/aiapi/ais/5d322e625c142b15dff826fc/outputs/",
61
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d322e625c142b15dff826fc",
62
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d322e625c142b15dff826fc"},
63
+ "outputCount": 1, "datasetCount": 3, "learningSessionCount": 2, "id": "5d322e625c142b15dff826fc"},
64
+ {"name": "Soccer Match prediction", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d4205d6d8c81f05fe732a42/outputs/",
65
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d4205d6d8c81f05fe732a42",
66
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d4205d6d8c81f05fe732a42"},
67
+ "outputCount": 1, "datasetCount": 7, "learningSessionCount": 6, "id": "5d4205d6d8c81f05fe732a42"},
68
+ {"name": "chord progressor", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d4b1fe87741a3050e17174b/outputs/",
69
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d4b1fe87741a3050e17174b",
70
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d4b1fe87741a3050e17174b"},
71
+ "outputCount": 0, "datasetCount": 1, "learningSessionCount": 0, "id": "5d4b1fe87741a3050e17174b"},
72
+ {"name": "ai", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d5c6ab942eabf0ca066f2a0/outputs/",
73
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d5c6ab942eabf0ca066f2a0",
74
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d5c6ab942eabf0ca066f2a0"},
75
+ "outputCount": 0, "datasetCount": 0, "learningSessionCount": 0, "id": "5d5c6ab942eabf0ca066f2a0"},
76
+ {"name": "ai", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d5c6c7a42eabf0c8b66f2e1/outputs/",
77
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d5c6c7a42eabf0c8b66f2e1",
78
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d5c6c7a42eabf0c8b66f2e1"},
79
+ "outputCount": 0, "datasetCount": 0, "learningSessionCount": 0, "id": "5d5c6c7a42eabf0c8b66f2e1"},
80
+ {"name": "a testing AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d5c6f7c42eabf0cb166f2c6/outputs/",
81
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d5c6f7c42eabf0cb166f2c6",
82
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d5c6f7c42eabf0cb166f2c6"},
83
+ "outputCount": 1, "datasetCount": 0, "learningSessionCount": 1, "id": "5d5c6f7c42eabf0cb166f2c6"},
84
+ {"name": "Demo AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d60268242eabf14d666f2db/outputs/",
85
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d60268242eabf14d666f2db",
86
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d60268242eabf14d666f2db"},
87
+ "outputCount": 1, "datasetCount": 0, "learningSessionCount": 1, "id": "5d60268242eabf14d666f2db"},
88
+ {"name": "test AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d645f4842eabf1d7a66f32c/outputs/",
89
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d645f4842eabf1d7a66f32c",
90
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d645f4842eabf1d7a66f32c"},
91
+ "outputCount": 0, "datasetCount": 1, "learningSessionCount": 0, "id": "5d645f4842eabf1d7a66f32c"},
92
+ {"name": "test AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d64603342eabf1d2466f337/outputs/",
93
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d64603342eabf1d2466f337",
94
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d64603342eabf1d2466f337"},
95
+ "outputCount": 0, "datasetCount": 1, "learningSessionCount": 0, "id": "5d64603342eabf1d2466f337"},
96
+ {"name": "test AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d64617842eabf1d9266f2e0/outputs/",
97
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d64617842eabf1d9266f2e0",
98
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d64617842eabf1d9266f2e0"},
99
+ "outputCount": 0, "datasetCount": 0, "learningSessionCount": 0, "id": "5d64617842eabf1d9266f2e0"},
100
+ {"name": "test AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d64671442eabf1db466f302/outputs/",
101
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d64671442eabf1db466f302",
102
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d64671442eabf1db466f302"},
103
+ "outputCount": 0, "datasetCount": 0, "learningSessionCount": 0, "id": "5d64671442eabf1db466f302"},
104
+ {"name": "test AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d6477f642eabf1dea66f2d8/outputs/",
105
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d6477f642eabf1dea66f2d8",
106
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d6477f642eabf1dea66f2d8"},
107
+ "outputCount": 0, "datasetCount": 0, "learningSessionCount": 0, "id": "5d6477f642eabf1dea66f2d8"},
108
+ {"name": "test AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d64784a42eabf1dea66f2f1/outputs/",
109
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d64784a42eabf1dea66f2f1",
110
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d64784a42eabf1dea66f2f1"},
111
+ "outputCount": 0, "datasetCount": 1, "learningSessionCount": 0, "id": "5d64784a42eabf1dea66f2f1"},
112
+ {"name": "test AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d6478eb42eabf1e0266f2ac/outputs/",
113
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d6478eb42eabf1e0266f2ac",
114
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d6478eb42eabf1e0266f2ac"},
115
+ "outputCount": 0, "datasetCount": 1, "learningSessionCount": 0, "id": "5d6478eb42eabf1e0266f2ac"},
116
+ {"name": "test AI", "links": {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d6479f742eabf1dea66f2fc/outputs/",
117
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d6479f742eabf1dea66f2fc",
118
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d6479f742eabf1dea66f2fc"},
119
+ "outputCount": 0, "datasetCount": 1, "learningSessionCount": 1, "id": "5d6479f742eabf1dea66f2fc"}],
120
+ "links": {"previous": null, "next": null}}'
121
+ http_version:
122
+ recorded_at: Thu, 29 Aug 2019 03:45:36 GMT
123
+ recorded_with: VCR 5.0.0
@@ -0,0 +1,262 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://developers.datarobot.com/aiapi/ais/?limit=1&offset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - datarobot-ai/ruby
16
+ Host:
17
+ - developers.datarobot.com
18
+ Content-Type:
19
+ - application/json
20
+ Authorization:
21
+ - Bearer testingKey
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Thu, 29 Aug 2019 03:45:37 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - '569'
33
+ Connection:
34
+ - keep-alive
35
+ Server:
36
+ - openresty
37
+ Set-Cookie:
38
+ - SERVERID=blue; path=/
39
+ Strict-Transport-Security:
40
+ - max-age=16070400; includeSubDomains
41
+ Vary:
42
+ - Origin
43
+ X-Content-Type-Options:
44
+ - nosniff
45
+ X-Datarobot-Request-Id:
46
+ - 91adbe843629eebb5d4a345cf51e205e
47
+ X-Frame-Options:
48
+ - SAMEORIGIN
49
+ X-Ratelimit-Limit:
50
+ - "-1"
51
+ X-Ratelimit-Remaining:
52
+ - '0'
53
+ X-Ratelimit-Reset:
54
+ - '1562953893'
55
+ X-Xss-Protection:
56
+ - 1; mode=block
57
+ body:
58
+ encoding: UTF-8
59
+ string: '{"total": 15, "data": [{"name": "Bird classifier", "links": {"outputsList":
60
+ "https://developers.datarobot.com/aiapi/ais/5d322e625c142b15dff826fc/outputs/",
61
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d322e625c142b15dff826fc",
62
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d322e625c142b15dff826fc"},
63
+ "outputCount": 1, "datasetCount": 3, "learningSessionCount": 2, "id": "5d322e625c142b15dff826fc"}],
64
+ "links": {"previous": null, "next": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=1"}}'
65
+ http_version:
66
+ recorded_at: Thu, 29 Aug 2019 03:45:37 GMT
67
+ - request:
68
+ method: get
69
+ uri: https://developers.datarobot.com/aiapi/ais/?limit=1&offset=1
70
+ body:
71
+ encoding: US-ASCII
72
+ string: ''
73
+ headers:
74
+ Accept-Encoding:
75
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
76
+ Accept:
77
+ - "*/*"
78
+ User-Agent:
79
+ - datarobot-ai/ruby
80
+ Host:
81
+ - developers.datarobot.com
82
+ Content-Type:
83
+ - application/json
84
+ Authorization:
85
+ - Bearer testingKey
86
+ response:
87
+ status:
88
+ code: 200
89
+ message: OK
90
+ headers:
91
+ Date:
92
+ - Thu, 29 Aug 2019 03:45:37 GMT
93
+ Content-Type:
94
+ - application/json
95
+ Content-Length:
96
+ - '635'
97
+ Connection:
98
+ - keep-alive
99
+ Server:
100
+ - openresty
101
+ Set-Cookie:
102
+ - SERVERID=blue; path=/
103
+ Strict-Transport-Security:
104
+ - max-age=16070400; includeSubDomains
105
+ Vary:
106
+ - Origin
107
+ X-Content-Type-Options:
108
+ - nosniff
109
+ X-Datarobot-Request-Id:
110
+ - cc8ec260411ad92f595a1daf61fbeedf
111
+ X-Frame-Options:
112
+ - SAMEORIGIN
113
+ X-Ratelimit-Limit:
114
+ - "-1"
115
+ X-Ratelimit-Remaining:
116
+ - '0'
117
+ X-Ratelimit-Reset:
118
+ - '1562953893'
119
+ X-Xss-Protection:
120
+ - 1; mode=block
121
+ body:
122
+ encoding: UTF-8
123
+ string: '{"total": 15, "data": [{"name": "Soccer Match prediction", "links":
124
+ {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d4205d6d8c81f05fe732a42/outputs/",
125
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d4205d6d8c81f05fe732a42",
126
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d4205d6d8c81f05fe732a42"},
127
+ "outputCount": 1, "datasetCount": 7, "learningSessionCount": 6, "id": "5d4205d6d8c81f05fe732a42"}],
128
+ "links": {"previous": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=0",
129
+ "next": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=2"}}'
130
+ http_version:
131
+ recorded_at: Thu, 29 Aug 2019 03:45:37 GMT
132
+ - request:
133
+ method: get
134
+ uri: https://developers.datarobot.com/aiapi/ais/?limit=1&offset=2
135
+ body:
136
+ encoding: US-ASCII
137
+ string: ''
138
+ headers:
139
+ Accept-Encoding:
140
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
141
+ Accept:
142
+ - "*/*"
143
+ User-Agent:
144
+ - datarobot-ai/ruby
145
+ Host:
146
+ - developers.datarobot.com
147
+ Content-Type:
148
+ - application/json
149
+ Authorization:
150
+ - Bearer testingKey
151
+ response:
152
+ status:
153
+ code: 200
154
+ message: OK
155
+ headers:
156
+ Date:
157
+ - Thu, 29 Aug 2019 03:45:38 GMT
158
+ Content-Type:
159
+ - application/json
160
+ Content-Length:
161
+ - '628'
162
+ Connection:
163
+ - keep-alive
164
+ Server:
165
+ - openresty
166
+ Set-Cookie:
167
+ - SERVERID=blue; path=/
168
+ Strict-Transport-Security:
169
+ - max-age=16070400; includeSubDomains
170
+ Vary:
171
+ - Origin
172
+ X-Content-Type-Options:
173
+ - nosniff
174
+ X-Datarobot-Request-Id:
175
+ - 13bc899be077e62a519a8cb087bff80b
176
+ X-Frame-Options:
177
+ - SAMEORIGIN
178
+ X-Ratelimit-Limit:
179
+ - "-1"
180
+ X-Ratelimit-Remaining:
181
+ - '0'
182
+ X-Ratelimit-Reset:
183
+ - '1562953893'
184
+ X-Xss-Protection:
185
+ - 1; mode=block
186
+ body:
187
+ encoding: UTF-8
188
+ string: '{"total": 15, "data": [{"name": "chord progressor", "links": {"outputsList":
189
+ "https://developers.datarobot.com/aiapi/ais/5d4b1fe87741a3050e17174b/outputs/",
190
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d4b1fe87741a3050e17174b",
191
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d4b1fe87741a3050e17174b"},
192
+ "outputCount": 0, "datasetCount": 1, "learningSessionCount": 0, "id": "5d4b1fe87741a3050e17174b"}],
193
+ "links": {"previous": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=1",
194
+ "next": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=3"}}'
195
+ http_version:
196
+ recorded_at: Thu, 29 Aug 2019 03:45:38 GMT
197
+ - request:
198
+ method: get
199
+ uri: https://developers.datarobot.com/aiapi/ais/?limit=1&offset=1
200
+ body:
201
+ encoding: US-ASCII
202
+ string: ''
203
+ headers:
204
+ Accept-Encoding:
205
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
206
+ Accept:
207
+ - "*/*"
208
+ User-Agent:
209
+ - datarobot-ai/ruby
210
+ Host:
211
+ - developers.datarobot.com
212
+ Content-Type:
213
+ - application/json
214
+ Authorization:
215
+ - Bearer testingKey
216
+ response:
217
+ status:
218
+ code: 200
219
+ message: OK
220
+ headers:
221
+ Date:
222
+ - Thu, 29 Aug 2019 03:45:38 GMT
223
+ Content-Type:
224
+ - application/json
225
+ Content-Length:
226
+ - '635'
227
+ Connection:
228
+ - keep-alive
229
+ Server:
230
+ - openresty
231
+ Set-Cookie:
232
+ - SERVERID=blue; path=/
233
+ Strict-Transport-Security:
234
+ - max-age=16070400; includeSubDomains
235
+ Vary:
236
+ - Origin
237
+ X-Content-Type-Options:
238
+ - nosniff
239
+ X-Datarobot-Request-Id:
240
+ - f0cbe48c1de4b40cc19a66cd67d55e13
241
+ X-Frame-Options:
242
+ - SAMEORIGIN
243
+ X-Ratelimit-Limit:
244
+ - "-1"
245
+ X-Ratelimit-Remaining:
246
+ - '0'
247
+ X-Ratelimit-Reset:
248
+ - '1562953893'
249
+ X-Xss-Protection:
250
+ - 1; mode=block
251
+ body:
252
+ encoding: UTF-8
253
+ string: '{"total": 15, "data": [{"name": "Soccer Match prediction", "links":
254
+ {"outputsList": "https://developers.datarobot.com/aiapi/ais/5d4205d6d8c81f05fe732a42/outputs/",
255
+ "datasetsList": "https://developers.datarobot.com/aiapi/datasets/?aiId=5d4205d6d8c81f05fe732a42",
256
+ "learningSessionsList": "https://developers.datarobot.com/aiapi/learningSessions/?aiId=5d4205d6d8c81f05fe732a42"},
257
+ "outputCount": 1, "datasetCount": 7, "learningSessionCount": 6, "id": "5d4205d6d8c81f05fe732a42"}],
258
+ "links": {"previous": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=0",
259
+ "next": "https://developers.datarobot.com/aiapi/ais/?limit=1&offset=2"}}'
260
+ http_version:
261
+ recorded_at: Thu, 29 Aug 2019 03:45:38 GMT
262
+ recorded_with: VCR 5.0.0