Class: SwaggerClient::DecisionTreeApi
- Inherits:
-
Object
- Object
- SwaggerClient::DecisionTreeApi
- Defined in:
- lib/nucleus_api/api/decision_tree_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_decision_tree_result_using_post(decision_tree_co, opts = {}) ⇒ DecisionTreeResultVO
Decision tree result Decision tree result.
-
#create_decision_tree_result_using_post_with_http_info(decision_tree_co, opts = {}) ⇒ Array<(DecisionTreeResultVO, Fixnum, Hash)>
Decision tree result Decision tree result.
-
#create_decision_tree_using_post(decision_tree, opts = {}) ⇒ DecisionTree
Create a decision tree Create a new decision tree for your firm.
-
#create_decision_tree_using_post_with_http_info(decision_tree, opts = {}) ⇒ Array<(DecisionTree, Fixnum, Hash)>
Create a decision tree Create a new decision tree for your firm.
-
#create_node_relationship_using_post(node, opts = {}) ⇒ NodeRelationship
Create a node relationship Create a new node relationship for your firm.
-
#create_node_relationship_using_post_with_http_info(node, opts = {}) ⇒ Array<(NodeRelationship, Fixnum, Hash)>
Create a node relationship Create a new node relationship for your firm.
-
#create_node_using_post(node, opts = {}) ⇒ Node
Create a node Create a new node for your firm that can be used in a decision tree and mapped to other nodes.
-
#create_node_using_post_with_http_info(node, opts = {}) ⇒ Array<(Node, Fixnum, Hash)>
Create a node Create a new node for your firm that can be used in a decision tree and mapped to other nodes.
-
#delete_decision_tree_using_delete(decision_tree_id, opts = {}) ⇒ nil
Delete a decision tree Permanently delete a decision tree.
-
#delete_decision_tree_using_delete_with_http_info(decision_tree_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a decision tree Permanently delete a decision tree.
-
#delete_node_relationship_using_delete(node_relationship_id, opts = {}) ⇒ nil
Delete a node relationship Permanently delete a node relationship.
-
#delete_node_relationship_using_delete_with_http_info(node_relationship_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a node relationship Permanently delete a node relationship.
-
#delete_node_using_delete(node_id, opts = {}) ⇒ nil
Delete a node Permanently delete a node.
-
#delete_node_using_delete_with_http_info(node_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a node Permanently delete a node.
-
#get_decision_tree_all_using_get(opts = {}) ⇒ PageDecisionTree
List all decision tree Get the information for all decision trees defined for your firm.
-
#get_decision_tree_all_using_get_with_http_info(opts = {}) ⇒ Array<(PageDecisionTree, Fixnum, Hash)>
List all decision tree Get the information for all decision trees defined for your firm.
-
#get_decision_tree_using_get(decision_tree_id, opts = {}) ⇒ DecisionTree
Retrieve a decision tree Retrieve the information for a decision tree.
-
#get_decision_tree_using_get_with_http_info(decision_tree_id, opts = {}) ⇒ Array<(DecisionTree, Fixnum, Hash)>
Retrieve a decision tree Retrieve the information for a decision tree.
-
#get_node_all_using_get(opts = {}) ⇒ PageNode
List all nodes List all nodes that are defined for your firm.
-
#get_node_all_using_get_with_http_info(opts = {}) ⇒ Array<(PageNode, Fixnum, Hash)>
List all nodes List all nodes that are defined for your firm.
-
#get_node_relationship_all_using_get(opts = {}) ⇒ PageNodeRelationship
List all node relationships Get the information for all the node relationships defined for your firm.
-
#get_node_relationship_all_using_get_with_http_info(opts = {}) ⇒ Array<(PageNodeRelationship, Fixnum, Hash)>
List all node relationships Get the information for all the node relationships defined for your firm.
-
#get_node_relationship_using_get(node_relationship_id, opts = {}) ⇒ NodeRelationship
Retrieve a node relationship Retrieve the information for a node relationship.
-
#get_node_relationship_using_get_with_http_info(node_relationship_id, opts = {}) ⇒ Array<(NodeRelationship, Fixnum, Hash)>
Retrieve a node relationship Retrieve the information for a node relationship.
-
#get_node_using_get(node_id, opts = {}) ⇒ Node
Retrieve a node Retrieve the information for a node.
-
#get_node_using_get_with_http_info(node_id, opts = {}) ⇒ Array<(Node, Fixnum, Hash)>
Retrieve a node Retrieve the information for a node.
-
#initialize(api_client = ApiClient.default) ⇒ DecisionTreeApi
constructor
A new instance of DecisionTreeApi.
-
#update_decision_tree_using_put(decision_tree, decision_tree_id, opts = {}) ⇒ DecisionTree
Update a decision tree Updated the information for a decision tree.
-
#update_decision_tree_using_put_with_http_info(decision_tree, decision_tree_id, opts = {}) ⇒ Array<(DecisionTree, Fixnum, Hash)>
Update a decision tree Updated the information for a decision tree.
-
#update_node_relationship_using_put(json_node, node_relationship_id, opts = {}) ⇒ NodeRelationship
Update a node relationship Update the information for a node relationship.
-
#update_node_relationship_using_put_with_http_info(json_node, node_relationship_id, opts = {}) ⇒ Array<(NodeRelationship, Fixnum, Hash)>
Update a node relationship Update the information for a node relationship.
-
#update_node_using_put(json_node, node_id, opts = {}) ⇒ Node
Update a node Updated the information for a node.
-
#update_node_using_put_with_http_info(json_node, node_id, opts = {}) ⇒ Array<(Node, Fixnum, Hash)>
Update a node Updated the information for a node.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ DecisionTreeApi
19 20 21 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#create_decision_tree_result_using_post(decision_tree_co, opts = {}) ⇒ DecisionTreeResultVO
Decision tree result Decision tree result.
27 28 29 30 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 27 def create_decision_tree_result_using_post(decision_tree_co, opts = {}) data, _status_code, _headers = create_decision_tree_result_using_post_with_http_info(decision_tree_co, opts) data end |
#create_decision_tree_result_using_post_with_http_info(decision_tree_co, opts = {}) ⇒ Array<(DecisionTreeResultVO, Fixnum, Hash)>
Decision tree result Decision tree result.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 37 def create_decision_tree_result_using_post_with_http_info(decision_tree_co, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.create_decision_tree_result_using_post ...' end # verify the required parameter 'decision_tree_co' is set if @api_client.config.client_side_validation && decision_tree_co.nil? fail ArgumentError, "Missing the required parameter 'decision_tree_co' when calling DecisionTreeApi.create_decision_tree_result_using_post" end # resource path local_var_path = '/nucleus/v1/decision_tree_result' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(decision_tree_co) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DecisionTreeResultVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#create_decision_tree_result_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_decision_tree_using_post(decision_tree, opts = {}) ⇒ DecisionTree
Create a decision tree Create a new decision tree for your firm.
81 82 83 84 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 81 def create_decision_tree_using_post(decision_tree, opts = {}) data, _status_code, _headers = create_decision_tree_using_post_with_http_info(decision_tree, opts) data end |
#create_decision_tree_using_post_with_http_info(decision_tree, opts = {}) ⇒ Array<(DecisionTree, Fixnum, Hash)>
Create a decision tree Create a new decision tree for your firm.
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 91 def create_decision_tree_using_post_with_http_info(decision_tree, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.create_decision_tree_using_post ...' end # verify the required parameter 'decision_tree' is set if @api_client.config.client_side_validation && decision_tree.nil? fail ArgumentError, "Missing the required parameter 'decision_tree' when calling DecisionTreeApi.create_decision_tree_using_post" end # resource path local_var_path = '/nucleus/v1/decision_tree' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(decision_tree) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DecisionTree') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#create_decision_tree_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_node_relationship_using_post(node, opts = {}) ⇒ NodeRelationship
Create a node relationship Create a new node relationship for your firm.
135 136 137 138 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 135 def create_node_relationship_using_post(node, opts = {}) data, _status_code, _headers = create_node_relationship_using_post_with_http_info(node, opts) data end |
#create_node_relationship_using_post_with_http_info(node, opts = {}) ⇒ Array<(NodeRelationship, Fixnum, Hash)>
Create a node relationship Create a new node relationship for your firm.
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 145 def create_node_relationship_using_post_with_http_info(node, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.create_node_relationship_using_post ...' end # verify the required parameter 'node' is set if @api_client.config.client_side_validation && node.nil? fail ArgumentError, "Missing the required parameter 'node' when calling DecisionTreeApi.create_node_relationship_using_post" end # resource path local_var_path = '/nucleus/v1/node_relationship' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(node) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'NodeRelationship') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#create_node_relationship_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_node_using_post(node, opts = {}) ⇒ Node
Create a node Create a new node for your firm that can be used in a decision tree and mapped to other nodes.
189 190 191 192 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 189 def create_node_using_post(node, opts = {}) data, _status_code, _headers = create_node_using_post_with_http_info(node, opts) data end |
#create_node_using_post_with_http_info(node, opts = {}) ⇒ Array<(Node, Fixnum, Hash)>
Create a node Create a new node for your firm that can be used in a decision tree and mapped to other nodes.
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 199 def create_node_using_post_with_http_info(node, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.create_node_using_post ...' end # verify the required parameter 'node' is set if @api_client.config.client_side_validation && node.nil? fail ArgumentError, "Missing the required parameter 'node' when calling DecisionTreeApi.create_node_using_post" end # resource path local_var_path = '/nucleus/v1/node' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(node) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Node') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#create_node_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_decision_tree_using_delete(decision_tree_id, opts = {}) ⇒ nil
Delete a decision tree Permanently delete a decision tree.
243 244 245 246 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 243 def delete_decision_tree_using_delete(decision_tree_id, opts = {}) delete_decision_tree_using_delete_with_http_info(decision_tree_id, opts) nil end |
#delete_decision_tree_using_delete_with_http_info(decision_tree_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a decision tree Permanently delete a decision tree.
253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 253 def delete_decision_tree_using_delete_with_http_info(decision_tree_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.delete_decision_tree_using_delete ...' end # verify the required parameter 'decision_tree_id' is set if @api_client.config.client_side_validation && decision_tree_id.nil? fail ArgumentError, "Missing the required parameter 'decision_tree_id' when calling DecisionTreeApi.delete_decision_tree_using_delete" end # resource path local_var_path = '/nucleus/v1/decision_tree/{decision_tree_id}'.sub('{' + 'decision_tree_id' + '}', decision_tree_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#delete_decision_tree_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_node_relationship_using_delete(node_relationship_id, opts = {}) ⇒ nil
Delete a node relationship Permanently delete a node relationship.
294 295 296 297 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 294 def delete_node_relationship_using_delete(node_relationship_id, opts = {}) delete_node_relationship_using_delete_with_http_info(node_relationship_id, opts) nil end |
#delete_node_relationship_using_delete_with_http_info(node_relationship_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a node relationship Permanently delete a node relationship.
304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 304 def delete_node_relationship_using_delete_with_http_info(node_relationship_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.delete_node_relationship_using_delete ...' end # verify the required parameter 'node_relationship_id' is set if @api_client.config.client_side_validation && node_relationship_id.nil? fail ArgumentError, "Missing the required parameter 'node_relationship_id' when calling DecisionTreeApi.delete_node_relationship_using_delete" end # resource path local_var_path = '/nucleus/v1/node_relationship/{node_relationship_id}'.sub('{' + 'node_relationship_id' + '}', node_relationship_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#delete_node_relationship_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_node_using_delete(node_id, opts = {}) ⇒ nil
Delete a node Permanently delete a node.
345 346 347 348 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 345 def delete_node_using_delete(node_id, opts = {}) delete_node_using_delete_with_http_info(node_id, opts) nil end |
#delete_node_using_delete_with_http_info(node_id, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete a node Permanently delete a node.
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 355 def delete_node_using_delete_with_http_info(node_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.delete_node_using_delete ...' end # verify the required parameter 'node_id' is set if @api_client.config.client_side_validation && node_id.nil? fail ArgumentError, "Missing the required parameter 'node_id' when calling DecisionTreeApi.delete_node_using_delete" end # resource path local_var_path = '/nucleus/v1/node/{node_id}'.sub('{' + 'node_id' + '}', node_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#delete_node_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_decision_tree_all_using_get(opts = {}) ⇒ PageDecisionTree
List all decision tree Get the information for all decision trees defined for your firm.
400 401 402 403 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 400 def get_decision_tree_all_using_get(opts = {}) data, _status_code, _headers = get_decision_tree_all_using_get_with_http_info(opts) data end |
#get_decision_tree_all_using_get_with_http_info(opts = {}) ⇒ Array<(PageDecisionTree, Fixnum, Hash)>
List all decision tree Get the information for all decision trees defined for your firm.
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 414 def get_decision_tree_all_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.get_decision_tree_all_using_get ...' end # resource path local_var_path = '/nucleus/v1/decision_tree' # query parameters query_params = {} query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PageDecisionTree') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#get_decision_tree_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_decision_tree_using_get(decision_tree_id, opts = {}) ⇒ DecisionTree
Retrieve a decision tree Retrieve the information for a decision tree.
457 458 459 460 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 457 def get_decision_tree_using_get(decision_tree_id, opts = {}) data, _status_code, _headers = get_decision_tree_using_get_with_http_info(decision_tree_id, opts) data end |
#get_decision_tree_using_get_with_http_info(decision_tree_id, opts = {}) ⇒ Array<(DecisionTree, Fixnum, Hash)>
Retrieve a decision tree Retrieve the information for a decision tree.
467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 467 def get_decision_tree_using_get_with_http_info(decision_tree_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.get_decision_tree_using_get ...' end # verify the required parameter 'decision_tree_id' is set if @api_client.config.client_side_validation && decision_tree_id.nil? fail ArgumentError, "Missing the required parameter 'decision_tree_id' when calling DecisionTreeApi.get_decision_tree_using_get" end # resource path local_var_path = '/nucleus/v1/decision_tree/{decision_tree_id}'.sub('{' + 'decision_tree_id' + '}', decision_tree_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DecisionTree') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#get_decision_tree_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_node_all_using_get(opts = {}) ⇒ PageNode
List all nodes List all nodes that are defined for your firm.
513 514 515 516 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 513 def get_node_all_using_get(opts = {}) data, _status_code, _headers = get_node_all_using_get_with_http_info(opts) data end |
#get_node_all_using_get_with_http_info(opts = {}) ⇒ Array<(PageNode, Fixnum, Hash)>
List all nodes List all nodes that are defined for your firm.
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 527 def get_node_all_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.get_node_all_using_get ...' end # resource path local_var_path = '/nucleus/v1/node' # query parameters query_params = {} query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PageNode') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#get_node_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_node_relationship_all_using_get(opts = {}) ⇒ PageNodeRelationship
List all node relationships Get the information for all the node relationships defined for your firm.
574 575 576 577 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 574 def get_node_relationship_all_using_get(opts = {}) data, _status_code, _headers = get_node_relationship_all_using_get_with_http_info(opts) data end |
#get_node_relationship_all_using_get_with_http_info(opts = {}) ⇒ Array<(PageNodeRelationship, Fixnum, Hash)>
List all node relationships Get the information for all the node relationships defined for your firm.
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 588 def get_node_relationship_all_using_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.get_node_relationship_all_using_get ...' end # resource path local_var_path = '/nucleus/v1/node_relationship' # query parameters query_params = {} query_params[:'ascending'] = opts[:'ascending'] if !opts[:'ascending'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil? # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PageNodeRelationship') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#get_node_relationship_all_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_node_relationship_using_get(node_relationship_id, opts = {}) ⇒ NodeRelationship
Retrieve a node relationship Retrieve the information for a node relationship.
631 632 633 634 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 631 def get_node_relationship_using_get(node_relationship_id, opts = {}) data, _status_code, _headers = get_node_relationship_using_get_with_http_info(node_relationship_id, opts) data end |
#get_node_relationship_using_get_with_http_info(node_relationship_id, opts = {}) ⇒ Array<(NodeRelationship, Fixnum, Hash)>
Retrieve a node relationship Retrieve the information for a node relationship.
641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 641 def get_node_relationship_using_get_with_http_info(node_relationship_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.get_node_relationship_using_get ...' end # verify the required parameter 'node_relationship_id' is set if @api_client.config.client_side_validation && node_relationship_id.nil? fail ArgumentError, "Missing the required parameter 'node_relationship_id' when calling DecisionTreeApi.get_node_relationship_using_get" end # resource path local_var_path = '/nucleus/v1/node_relationship/{node_relationship_id}'.sub('{' + 'node_relationship_id' + '}', node_relationship_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'NodeRelationship') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#get_node_relationship_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_node_using_get(node_id, opts = {}) ⇒ Node
Retrieve a node Retrieve the information for a node.
683 684 685 686 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 683 def get_node_using_get(node_id, opts = {}) data, _status_code, _headers = get_node_using_get_with_http_info(node_id, opts) data end |
#get_node_using_get_with_http_info(node_id, opts = {}) ⇒ Array<(Node, Fixnum, Hash)>
Retrieve a node Retrieve the information for a node.
693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 693 def get_node_using_get_with_http_info(node_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.get_node_using_get ...' end # verify the required parameter 'node_id' is set if @api_client.config.client_side_validation && node_id.nil? fail ArgumentError, "Missing the required parameter 'node_id' when calling DecisionTreeApi.get_node_using_get" end # resource path local_var_path = '/nucleus/v1/node/{node_id}'.sub('{' + 'node_id' + '}', node_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Node') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#get_node_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_decision_tree_using_put(decision_tree, decision_tree_id, opts = {}) ⇒ DecisionTree
Update a decision tree Updated the information for a decision tree.
736 737 738 739 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 736 def update_decision_tree_using_put(decision_tree, decision_tree_id, opts = {}) data, _status_code, _headers = update_decision_tree_using_put_with_http_info(decision_tree, decision_tree_id, opts) data end |
#update_decision_tree_using_put_with_http_info(decision_tree, decision_tree_id, opts = {}) ⇒ Array<(DecisionTree, Fixnum, Hash)>
Update a decision tree Updated the information for a decision tree.
747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 747 def update_decision_tree_using_put_with_http_info(decision_tree, decision_tree_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.update_decision_tree_using_put ...' end # verify the required parameter 'decision_tree' is set if @api_client.config.client_side_validation && decision_tree.nil? fail ArgumentError, "Missing the required parameter 'decision_tree' when calling DecisionTreeApi.update_decision_tree_using_put" end # verify the required parameter 'decision_tree_id' is set if @api_client.config.client_side_validation && decision_tree_id.nil? fail ArgumentError, "Missing the required parameter 'decision_tree_id' when calling DecisionTreeApi.update_decision_tree_using_put" end # resource path local_var_path = '/nucleus/v1/decision_tree/{decision_tree_id}'.sub('{' + 'decision_tree_id' + '}', decision_tree_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(decision_tree) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DecisionTree') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#update_decision_tree_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_node_relationship_using_put(json_node, node_relationship_id, opts = {}) ⇒ NodeRelationship
Update a node relationship Update the information for a node relationship.
796 797 798 799 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 796 def update_node_relationship_using_put(json_node, node_relationship_id, opts = {}) data, _status_code, _headers = update_node_relationship_using_put_with_http_info(json_node, node_relationship_id, opts) data end |
#update_node_relationship_using_put_with_http_info(json_node, node_relationship_id, opts = {}) ⇒ Array<(NodeRelationship, Fixnum, Hash)>
Update a node relationship Update the information for a node relationship.
807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 807 def update_node_relationship_using_put_with_http_info(json_node, node_relationship_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.update_node_relationship_using_put ...' end # verify the required parameter 'json_node' is set if @api_client.config.client_side_validation && json_node.nil? fail ArgumentError, "Missing the required parameter 'json_node' when calling DecisionTreeApi.update_node_relationship_using_put" end # verify the required parameter 'node_relationship_id' is set if @api_client.config.client_side_validation && node_relationship_id.nil? fail ArgumentError, "Missing the required parameter 'node_relationship_id' when calling DecisionTreeApi.update_node_relationship_using_put" end # resource path local_var_path = '/nucleus/v1/node_relationship/{node_relationship_id}'.sub('{' + 'node_relationship_id' + '}', node_relationship_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(json_node) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'NodeRelationship') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#update_node_relationship_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_node_using_put(json_node, node_id, opts = {}) ⇒ Node
Update a node Updated the information for a node.
856 857 858 859 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 856 def update_node_using_put(json_node, node_id, opts = {}) data, _status_code, _headers = update_node_using_put_with_http_info(json_node, node_id, opts) data end |
#update_node_using_put_with_http_info(json_node, node_id, opts = {}) ⇒ Array<(Node, Fixnum, Hash)>
Update a node Updated the information for a node.
867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 |
# File 'lib/nucleus_api/api/decision_tree_api.rb', line 867 def update_node_using_put_with_http_info(json_node, node_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DecisionTreeApi.update_node_using_put ...' end # verify the required parameter 'json_node' is set if @api_client.config.client_side_validation && json_node.nil? fail ArgumentError, "Missing the required parameter 'json_node' when calling DecisionTreeApi.update_node_using_put" end # verify the required parameter 'node_id' is set if @api_client.config.client_side_validation && node_id.nil? fail ArgumentError, "Missing the required parameter 'node_id' when calling DecisionTreeApi.update_node_using_put" end # resource path local_var_path = '/nucleus/v1/node/{node_id}'.sub('{' + 'node_id' + '}', node_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['*/*']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(json_node) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Node') if @api_client.config.debugging @api_client.config.logger.debug "API called: DecisionTreeApi#update_node_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |