Class: ConnectWise::ConfigurationTypeQuestionValuesApi
- Inherits:
-
Object
- Object
- ConnectWise::ConfigurationTypeQuestionValuesApi
- Defined in:
- lib/connect_wise/api/configuration_type_question_values_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ nil
Delete ConfigurationTypeQuestionValue.
-
#delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete ConfigurationTypeQuestionValue.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values(parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<ConfigurationTypeQuestionValue>
Get List of ConfigurationTypeQuestionValue.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ ConfigurationTypeQuestionValue
Get ConfigurationTypeQuestionValue.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<Usage>
Get List of Usage.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<Usage>
Get List of Usage.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(Array<Usage>, Integer, Hash)>
Get List of Usage.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(Array<Usage>, Integer, Hash)>
Get List of Usage.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(ConfigurationTypeQuestionValue, Integer, Hash)>
Get ConfigurationTypeQuestionValue.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count(parent_id, grandparent_id, client_id, opts = {}) ⇒ Count
Get Count of ConfigurationTypeQuestionValue.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count_with_http_info(parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(Count, Integer, Hash)>
Get Count of ConfigurationTypeQuestionValue.
-
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_with_http_info(parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(Array<ConfigurationTypeQuestionValue>, Integer, Hash)>
Get List of ConfigurationTypeQuestionValue.
-
#initialize(api_client = ApiClient.default) ⇒ ConfigurationTypeQuestionValuesApi
constructor
A new instance of ConfigurationTypeQuestionValuesApi.
-
#patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, patch_operation, opts = {}) ⇒ ConfigurationTypeQuestionValue
Patch ConfigurationTypeQuestionValue.
-
#patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, patch_operation, opts = {}) ⇒ Array<(ConfigurationTypeQuestionValue, Integer, Hash)>
Patch ConfigurationTypeQuestionValue.
-
#post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values(parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) ⇒ ConfigurationTypeQuestionValue
Post ConfigurationTypeQuestionValue.
-
#post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_with_http_info(parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) ⇒ Array<(ConfigurationTypeQuestionValue, Integer, Hash)>
Post ConfigurationTypeQuestionValue.
-
#put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) ⇒ ConfigurationTypeQuestionValue
Put ConfigurationTypeQuestionValue.
-
#put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) ⇒ Array<(ConfigurationTypeQuestionValue, Integer, Hash)>
Put ConfigurationTypeQuestionValue.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ ConfigurationTypeQuestionValuesApi
Returns a new instance of ConfigurationTypeQuestionValuesApi.
17 18 19 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 17 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
15 16 17 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 15 def api_client @api_client end |
Instance Method Details
#delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ nil
Delete ConfigurationTypeQuestionValue
28 29 30 31 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 28 def delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, opts = {}) delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, opts) nil end |
#delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>
Delete ConfigurationTypeQuestionValue
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 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 40 def delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling ConfigurationTypeQuestionValuesApi.delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#delete_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values(parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<ConfigurationTypeQuestionValue>
Get List of ConfigurationTypeQuestionValue
102 103 104 105 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 102 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values(parent_id, grandparent_id, client_id, opts = {}) data, _status_code, _headers = get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_with_http_info(parent_id, grandparent_id, client_id, opts) data end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ ConfigurationTypeQuestionValue
Get ConfigurationTypeQuestionValue
192 193 194 195 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 192 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, opts = {}) data, _status_code, _headers = get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, opts) data end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<Usage>
Get List of Usage
285 286 287 288 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 285 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages(id, parent_id, grandparent_id, client_id, opts = {}) data, _status_code, _headers = get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_with_http_info(id, parent_id, grandparent_id, client_id, opts) data end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<Usage>
Get List of Usage
378 379 380 381 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 378 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list(id, parent_id, grandparent_id, client_id, opts = {}) data, _status_code, _headers = get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list_with_http_info(id, parent_id, grandparent_id, client_id, opts) data end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(Array<Usage>, Integer, Hash)>
Get List of Usage
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 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 452 453 454 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 398 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values/{id}/usages/list'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<Usage>' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(Array<Usage>, Integer, Hash)>
Get List of Usage
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 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 305 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values/{id}/usages'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<Usage>' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_usages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(ConfigurationTypeQuestionValue, Integer, Hash)>
Get ConfigurationTypeQuestionValue
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 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 212 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'ConfigurationTypeQuestionValue' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count(parent_id, grandparent_id, client_id, opts = {}) ⇒ Count
Get Count of ConfigurationTypeQuestionValue
470 471 472 473 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 470 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count(parent_id, grandparent_id, client_id, opts = {}) data, _status_code, _headers = get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count_with_http_info(parent_id, grandparent_id, client_id, opts) data end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count_with_http_info(parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(Count, Integer, Hash)>
Get Count of ConfigurationTypeQuestionValue
489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 489 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count_with_http_info(parent_id, grandparent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values/count'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Count' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_with_http_info(parent_id, grandparent_id, client_id, opts = {}) ⇒ Array<(Array<ConfigurationTypeQuestionValue>, Integer, Hash)>
Get List of ConfigurationTypeQuestionValue
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 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 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 121 def get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_with_http_info(parent_id, grandparent_id, client_id, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values" if @api_client.config.client_side_validation && client_id.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:conditions] = opts[:conditions] unless opts[:conditions].nil? query_params[:childConditions] = opts[:child_conditions] unless opts[:child_conditions].nil? query_params[:customFieldConditions] = opts[:custom_field_conditions] unless opts[:custom_field_conditions].nil? query_params[:orderBy] = opts[:order_by] unless opts[:order_by].nil? query_params[:fields] = opts[:fields] unless opts[:fields].nil? query_params[:page] = opts[:page] unless opts[:page].nil? query_params[:pageSize] = opts[:page_size] unless opts[:page_size].nil? query_params[:pageId] = opts[:page_id] unless opts[:page_id].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] # return_type return_type = opts[:debug_return_type] || 'Array<ConfigurationTypeQuestionValue>' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#get_company_configurations_types_by_grandparent_id_questions_by_parent_id_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, patch_operation, opts = {}) ⇒ ConfigurationTypeQuestionValue
Patch ConfigurationTypeQuestionValue
553 554 555 556 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 553 def patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, patch_operation, opts = {}) data, _status_code, _headers = patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, patch_operation, opts) data end |
#patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, patch_operation, opts = {}) ⇒ Array<(ConfigurationTypeQuestionValue, Integer, Hash)>
Patch ConfigurationTypeQuestionValue
566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 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 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 566 def patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, patch_operation, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling ConfigurationTypeQuestionValuesApi.patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'patch_operation' is set raise ArgumentError, "Missing the required parameter 'patch_operation' when calling ConfigurationTypeQuestionValuesApi.patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && patch_operation.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(patch_operation) # return_type return_type = opts[:debug_return_type] || 'ConfigurationTypeQuestionValue' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#patch_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values(parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) ⇒ ConfigurationTypeQuestionValue
Post ConfigurationTypeQuestionValue
628 629 630 631 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 628 def post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values(parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) data, _status_code, _headers = post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_with_http_info(parent_id, grandparent_id, client_id, configuration_type_question_value, opts) data end |
#post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_with_http_info(parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) ⇒ Array<(ConfigurationTypeQuestionValue, Integer, Hash)>
Post ConfigurationTypeQuestionValue
640 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 678 679 680 681 682 683 684 685 686 687 688 689 690 691 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 640 def post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_with_http_info(parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values ...' if @api_client.config.debugging # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'configuration_type_question_value' is set raise ArgumentError, "Missing the required parameter 'configuration_type_question_value' when calling ConfigurationTypeQuestionValuesApi.post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values" if @api_client.config.client_side_validation && configuration_type_question_value.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values'.sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(configuration_type_question_value) # return_type return_type = opts[:debug_return_type] || 'ConfigurationTypeQuestionValue' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#post_company_configurations_types_by_grandparent_id_questions_by_parent_id_values\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |
#put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) ⇒ ConfigurationTypeQuestionValue
Put ConfigurationTypeQuestionValue
701 702 703 704 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 701 def put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id(id, parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) data, _status_code, _headers = put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, configuration_type_question_value, opts) data end |
#put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) ⇒ Array<(ConfigurationTypeQuestionValue, Integer, Hash)>
Put ConfigurationTypeQuestionValue
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 |
# File 'lib/connect_wise/api/configuration_type_question_values_api.rb', line 714 def put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id_with_http_info(id, parent_id, grandparent_id, client_id, configuration_type_question_value, opts = {}) @api_client.config.logger.debug 'Calling API: ConfigurationTypeQuestionValuesApi.put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id ...' if @api_client.config.debugging # verify the required parameter 'id' is set raise ArgumentError, "Missing the required parameter 'id' when calling ConfigurationTypeQuestionValuesApi.put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && id.nil? # verify the required parameter 'parent_id' is set raise ArgumentError, "Missing the required parameter 'parent_id' when calling ConfigurationTypeQuestionValuesApi.put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && parent_id.nil? # verify the required parameter 'grandparent_id' is set raise ArgumentError, "Missing the required parameter 'grandparent_id' when calling ConfigurationTypeQuestionValuesApi.put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && grandparent_id.nil? # verify the required parameter 'client_id' is set raise ArgumentError, "Missing the required parameter 'client_id' when calling ConfigurationTypeQuestionValuesApi.put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && client_id.nil? # verify the required parameter 'configuration_type_question_value' is set raise ArgumentError, "Missing the required parameter 'configuration_type_question_value' when calling ConfigurationTypeQuestionValuesApi.put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id" if @api_client.config.client_side_validation && configuration_type_question_value.nil? # resource path local_var_path = '/company/configurations/types/{grandparentId}/questions/{parentId}/values/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_id.to_s)).sub('{' + 'grandparentId' + '}', CGI.escape(grandparent_id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/vnd.connectwise.com+json; version=2022.1']) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) header_params['Content-Type'] = content_type unless content_type.nil? header_params[:clientId] = client_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:debug_body] || @api_client.object_to_http_body(configuration_type_question_value) # return_type return_type = opts[:debug_return_type] || 'ConfigurationTypeQuestionValue' # auth_names auth_names = opts[:debug_auth_names] || [] = opts.merge( operation: :'ConfigurationTypeQuestionValuesApi.put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id', header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, auth_names: auth_names, return_type: return_type ) data, status_code, headers = @api_client.call_api(:PUT, local_var_path, ) @api_client.config.logger.debug "API called: ConfigurationTypeQuestionValuesApi#put_company_configurations_types_by_grandparent_id_questions_by_parent_id_values_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging [data, status_code, headers] end |