Class: ConnectWise::WorkflowNotifyTypesApi

Inherits:
Object
  • Object
show all
Defined in:
lib/connect_wise/api/workflow_notify_types_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ WorkflowNotifyTypesApi

Returns a new instance of WorkflowNotifyTypesApi.



17
18
19
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 17

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



15
16
17
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 15

def api_client
  @api_client
end

Instance Method Details

#get_system_workflows_by_parent_id_notify_types(parent_id, client_id, opts = {}) ⇒ Array<WorkflowNotifyType>

Get List of WorkflowNotifyType

Parameters:

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:



34
35
36
37
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 34

def get_system_workflows_by_parent_id_notify_types(parent_id, client_id, opts = {})
  data, _status_code, _headers = get_system_workflows_by_parent_id_notify_types_with_http_info(parent_id, client_id, opts)
  data
end

#get_system_workflows_by_parent_id_notify_types_by_id(id, parent_id, client_id, opts = {}) ⇒ WorkflowNotifyType

Get WorkflowNotifyType

Parameters:

  • id (Integer)

    notifyTypeId

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:



120
121
122
123
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 120

def get_system_workflows_by_parent_id_notify_types_by_id(id, parent_id, client_id, opts = {})
  data, _status_code, _headers = get_system_workflows_by_parent_id_notify_types_by_id_with_http_info(id, parent_id, client_id, opts)
  data
end

#get_system_workflows_by_parent_id_notify_types_by_id_info(id, parent_id, client_id, opts = {}) ⇒ WorkflowNotifyTypeInfo

Get WorkflowNotifyTypeInfo

Parameters:

  • id (Integer)

    notifyTypeId

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:



209
210
211
212
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 209

def get_system_workflows_by_parent_id_notify_types_by_id_info(id, parent_id, client_id, opts = {})
  data, _status_code, _headers = get_system_workflows_by_parent_id_notify_types_by_id_info_with_http_info(id, parent_id, client_id, opts)
  data
end

#get_system_workflows_by_parent_id_notify_types_by_id_info_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(WorkflowNotifyTypeInfo, Integer, Hash)>

Get WorkflowNotifyTypeInfo

Parameters:

  • id (Integer)

    notifyTypeId

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:

  • (Array<(WorkflowNotifyTypeInfo, Integer, Hash)>)

    WorkflowNotifyTypeInfo data, response status code and response headers

Raises:

  • (ArgumentError)


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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 228

def get_system_workflows_by_parent_id_notify_types_by_id_info_with_http_info(id, parent_id, client_id, opts = {})
  @api_client.config.logger.debug 'Calling API: WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_by_id_info ...' if @api_client.config.debugging
  # verify the required parameter 'id' is set
  raise ArgumentError, "Missing the required parameter 'id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_by_id_info" 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 WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_by_id_info" if @api_client.config.client_side_validation && parent_id.nil?
  # verify the required parameter 'client_id' is set
  raise ArgumentError, "Missing the required parameter 'client_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_by_id_info" if @api_client.config.client_side_validation && client_id.nil?

  # resource path
  local_var_path = '/system/workflows/{parentId}/notifyTypes/{id}/info'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_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] || 'WorkflowNotifyTypeInfo'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    operation: :'WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_by_id_info',
    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, new_options)
  @api_client.config.logger.debug "API called: WorkflowNotifyTypesApi#get_system_workflows_by_parent_id_notify_types_by_id_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
  [data, status_code, headers]
end

#get_system_workflows_by_parent_id_notify_types_by_id_with_http_info(id, parent_id, client_id, opts = {}) ⇒ Array<(WorkflowNotifyType, Integer, Hash)>

Get WorkflowNotifyType

Parameters:

  • id (Integer)

    notifyTypeId

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:

  • (Array<(WorkflowNotifyType, Integer, Hash)>)

    WorkflowNotifyType data, response status code and response headers

Raises:

  • (ArgumentError)


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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 139

def get_system_workflows_by_parent_id_notify_types_by_id_with_http_info(id, parent_id, client_id, opts = {})
  @api_client.config.logger.debug 'Calling API: WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_by_id ...' if @api_client.config.debugging
  # verify the required parameter 'id' is set
  raise ArgumentError, "Missing the required parameter 'id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_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 WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_by_id" if @api_client.config.client_side_validation && parent_id.nil?
  # verify the required parameter 'client_id' is set
  raise ArgumentError, "Missing the required parameter 'client_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_by_id" if @api_client.config.client_side_validation && client_id.nil?

  # resource path
  local_var_path = '/system/workflows/{parentId}/notifyTypes/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'parentId' + '}', CGI.escape(parent_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] || 'WorkflowNotifyType'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    operation: :'WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_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, new_options)
  @api_client.config.logger.debug "API called: WorkflowNotifyTypesApi#get_system_workflows_by_parent_id_notify_types_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
  [data, status_code, headers]
end

#get_system_workflows_by_parent_id_notify_types_count(parent_id, client_id, opts = {}) ⇒ Count

Get Count of WorkflowNotifyType

Parameters:

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:



297
298
299
300
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 297

def get_system_workflows_by_parent_id_notify_types_count(parent_id, client_id, opts = {})
  data, _status_code, _headers = get_system_workflows_by_parent_id_notify_types_count_with_http_info(parent_id, client_id, opts)
  data
end

#get_system_workflows_by_parent_id_notify_types_count_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Count, Integer, Hash)>

Get Count of WorkflowNotifyType

Parameters:

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:

  • (Array<(Count, Integer, Hash)>)

    Count data, response status code and response headers

Raises:

  • (ArgumentError)


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
362
363
364
365
366
367
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 315

def get_system_workflows_by_parent_id_notify_types_count_with_http_info(parent_id, client_id, opts = {})
  @api_client.config.logger.debug 'Calling API: WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_count ...' if @api_client.config.debugging
  # verify the required parameter 'parent_id' is set
  raise ArgumentError, "Missing the required parameter 'parent_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_count" if @api_client.config.client_side_validation && parent_id.nil?
  # verify the required parameter 'client_id' is set
  raise ArgumentError, "Missing the required parameter 'client_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_count" if @api_client.config.client_side_validation && client_id.nil?

  # resource path
  local_var_path = '/system/workflows/{parentId}/notifyTypes/count'.sub('{' + 'parentId' + '}', CGI.escape(parent_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] || []

  new_options = opts.merge(
    operation: :'WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_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, new_options)
  @api_client.config.logger.debug "API called: WorkflowNotifyTypesApi#get_system_workflows_by_parent_id_notify_types_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
  [data, status_code, headers]
end

#get_system_workflows_by_parent_id_notify_types_info(parent_id, client_id, opts = {}) ⇒ Array<WorkflowNotifyTypeInfo>

Get List of WorkflowNotifyTypeInfo

Parameters:

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:



382
383
384
385
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 382

def get_system_workflows_by_parent_id_notify_types_info(parent_id, client_id, opts = {})
  data, _status_code, _headers = get_system_workflows_by_parent_id_notify_types_info_with_http_info(parent_id, client_id, opts)
  data
end

#get_system_workflows_by_parent_id_notify_types_info_count(parent_id, client_id, opts = {}) ⇒ Count

Get Count of WorkflowNotifyTypeInfo

Parameters:

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:



467
468
469
470
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 467

def get_system_workflows_by_parent_id_notify_types_info_count(parent_id, client_id, opts = {})
  data, _status_code, _headers = get_system_workflows_by_parent_id_notify_types_info_count_with_http_info(parent_id, client_id, opts)
  data
end

#get_system_workflows_by_parent_id_notify_types_info_count_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Count, Integer, Hash)>

Get Count of WorkflowNotifyTypeInfo

Parameters:

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:

  • (Array<(Count, Integer, Hash)>)

    Count data, response status code and response headers

Raises:

  • (ArgumentError)


485
486
487
488
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
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 485

def get_system_workflows_by_parent_id_notify_types_info_count_with_http_info(parent_id, client_id, opts = {})
  @api_client.config.logger.debug 'Calling API: WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_info_count ...' if @api_client.config.debugging
  # verify the required parameter 'parent_id' is set
  raise ArgumentError, "Missing the required parameter 'parent_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_info_count" if @api_client.config.client_side_validation && parent_id.nil?
  # verify the required parameter 'client_id' is set
  raise ArgumentError, "Missing the required parameter 'client_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_info_count" if @api_client.config.client_side_validation && client_id.nil?

  # resource path
  local_var_path = '/system/workflows/{parentId}/notifyTypes/info/count'.sub('{' + 'parentId' + '}', CGI.escape(parent_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] || []

  new_options = opts.merge(
    operation: :'WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_info_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, new_options)
  @api_client.config.logger.debug "API called: WorkflowNotifyTypesApi#get_system_workflows_by_parent_id_notify_types_info_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
  [data, status_code, headers]
end

#get_system_workflows_by_parent_id_notify_types_info_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Array<WorkflowNotifyTypeInfo>, Integer, Hash)>

Get List of WorkflowNotifyTypeInfo

Parameters:

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:

  • (Array<(Array<WorkflowNotifyTypeInfo>, Integer, Hash)>)

    Array<WorkflowNotifyTypeInfo> data, response status code and response headers

Raises:

  • (ArgumentError)


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
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 400

def get_system_workflows_by_parent_id_notify_types_info_with_http_info(parent_id, client_id, opts = {})
  @api_client.config.logger.debug 'Calling API: WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_info ...' if @api_client.config.debugging
  # verify the required parameter 'parent_id' is set
  raise ArgumentError, "Missing the required parameter 'parent_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_info" if @api_client.config.client_side_validation && parent_id.nil?
  # verify the required parameter 'client_id' is set
  raise ArgumentError, "Missing the required parameter 'client_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_info" if @api_client.config.client_side_validation && client_id.nil?

  # resource path
  local_var_path = '/system/workflows/{parentId}/notifyTypes/info'.sub('{' + 'parentId' + '}', CGI.escape(parent_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<WorkflowNotifyTypeInfo>'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    operation: :'WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types_info',
    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, new_options)
  @api_client.config.logger.debug "API called: WorkflowNotifyTypesApi#get_system_workflows_by_parent_id_notify_types_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
  [data, status_code, headers]
end

#get_system_workflows_by_parent_id_notify_types_with_http_info(parent_id, client_id, opts = {}) ⇒ Array<(Array<WorkflowNotifyType>, Integer, Hash)>

Get List of WorkflowNotifyType

Parameters:

  • parent_id (Integer)

    workflowId

  • client_id (String)
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :conditions (String)
  • :child_conditions (String)
  • :custom_field_conditions (String)
  • :order_by (String)
  • :fields (String)
  • :page (Integer)
  • :page_size (Integer)
  • :page_id (Integer)

Returns:

  • (Array<(Array<WorkflowNotifyType>, Integer, Hash)>)

    Array<WorkflowNotifyType> data, response status code and response headers

Raises:

  • (ArgumentError)


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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# File 'lib/connect_wise/api/workflow_notify_types_api.rb', line 52

def get_system_workflows_by_parent_id_notify_types_with_http_info(parent_id, client_id, opts = {})
  @api_client.config.logger.debug 'Calling API: WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types ...' if @api_client.config.debugging
  # verify the required parameter 'parent_id' is set
  raise ArgumentError, "Missing the required parameter 'parent_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types" if @api_client.config.client_side_validation && parent_id.nil?
  # verify the required parameter 'client_id' is set
  raise ArgumentError, "Missing the required parameter 'client_id' when calling WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types" if @api_client.config.client_side_validation && client_id.nil?

  # resource path
  local_var_path = '/system/workflows/{parentId}/notifyTypes'.sub('{' + 'parentId' + '}', CGI.escape(parent_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<WorkflowNotifyType>'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    operation: :'WorkflowNotifyTypesApi.get_system_workflows_by_parent_id_notify_types',
    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, new_options)
  @api_client.config.logger.debug "API called: WorkflowNotifyTypesApi#get_system_workflows_by_parent_id_notify_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" if @api_client.config.debugging
  [data, status_code, headers]
end