class SwaggerClient::DefaultApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/swagger_client/api/default_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

api_assets_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 25
def api_assets_batch_delete_delete(opts = {})
  api_assets_batch_delete_delete_with_http_info(opts)
  nil
end
api_assets_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 33
def api_assets_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/assets/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_assets_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 66
def api_assets_batch_edit_patch(opts = {})
  api_assets_batch_edit_patch_with_http_info(opts)
  nil
end
api_assets_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 74
def api_assets_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/assets/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_assets_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 107
def api_assets_batch_edit_put(opts = {})
  api_assets_batch_edit_put_with_http_info(opts)
  nil
end
api_assets_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 115
def api_assets_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/assets/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_assets_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 148
def api_assets_batch_new_post(opts = {})
  api_assets_batch_new_post_with_http_info(opts)
  nil
end
api_assets_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 156
def api_assets_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/assets/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_assets_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 189
def api_assets_get(opts = {})
  api_assets_get_with_http_info(opts)
  nil
end
api_assets_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 197
def api_assets_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_get ...'
  end
  # resource path
  local_var_path = '/api/assets'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_assets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 231
def api_assets_id_delete_delete(id, opts = {})
  api_assets_id_delete_delete_with_http_info(id, opts)
  nil
end
api_assets_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 240
def api_assets_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_assets_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_assets_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/assets/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_assets_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 282
def api_assets_id_edit_patch(id, opts = {})
  api_assets_id_edit_patch_with_http_info(id, opts)
  nil
end
api_assets_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 291
def api_assets_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_assets_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_assets_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/assets/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_assets_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 333
def api_assets_id_edit_put(id, opts = {})
  api_assets_id_edit_put_with_http_info(id, opts)
  nil
end
api_assets_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 342
def api_assets_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_assets_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_assets_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/assets/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_assets_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 384
def api_assets_id_get(id, opts = {})
  api_assets_id_get_with_http_info(id, opts)
  nil
end
api_assets_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 393
def api_assets_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_assets_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_assets_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/assets/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_assets_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_assets_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 434
def api_assets_new_post(opts = {})
  api_assets_new_post_with_http_info(opts)
  nil
end
api_assets_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 442
def api_assets_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_assets_new_post ...'
  end
  # resource path
  local_var_path = '/api/assets/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_assets_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 475
def api_campaigns_batch_delete_delete(opts = {})
  api_campaigns_batch_delete_delete_with_http_info(opts)
  nil
end
api_campaigns_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 483
def api_campaigns_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/campaigns/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_campaigns_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 516
def api_campaigns_batch_edit_patch(opts = {})
  api_campaigns_batch_edit_patch_with_http_info(opts)
  nil
end
api_campaigns_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 524
def api_campaigns_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/campaigns/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_campaigns_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 557
def api_campaigns_batch_edit_put(opts = {})
  api_campaigns_batch_edit_put_with_http_info(opts)
  nil
end
api_campaigns_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 565
def api_campaigns_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/campaigns/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 598
def api_campaigns_batch_new_post(opts = {})
  api_campaigns_batch_new_post_with_http_info(opts)
  nil
end
api_campaigns_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 606
def api_campaigns_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/campaigns/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_campaign_id_events_contact_contact_id_get(campaign_id, contact_id, opts = {}) click to toggle source

Get a list of events. @param campaign_id @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 641
def api_campaigns_campaign_id_events_contact_contact_id_get(campaign_id, contact_id, opts = {})
  api_campaigns_campaign_id_events_contact_contact_id_get_with_http_info(campaign_id, contact_id, opts)
  nil
end
api_campaigns_campaign_id_events_contact_contact_id_get_with_http_info(campaign_id, contact_id, opts = {}) click to toggle source

Get a list of events. @param campaign_id @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 651
def api_campaigns_campaign_id_events_contact_contact_id_get_with_http_info(campaign_id, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_campaign_id_events_contact_contact_id_get ...'
  end
  # verify the required parameter 'campaign_id' is set
  if @api_client.config.client_side_validation && campaign_id.nil?
    fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.api_campaigns_campaign_id_events_contact_contact_id_get"
  end
  if @api_client.config.client_side_validation && campaign_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'campaign_id' when calling DefaultApi.api_campaigns_campaign_id_events_contact_contact_id_get, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_campaigns_campaign_id_events_contact_contact_id_get"
  end
  if @api_client.config.client_side_validation && contact_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'contact_id' when calling DefaultApi.api_campaigns_campaign_id_events_contact_contact_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/{campaignId}/events/contact/{contactId}'.sub('{' + 'campaignId' + '}', campaign_id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_campaign_id_events_contact_contact_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_clone_campaign_id_post(campaign_id, opts = {}) click to toggle source

@param campaign_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 700
def api_campaigns_clone_campaign_id_post(campaign_id, opts = {})
  api_campaigns_clone_campaign_id_post_with_http_info(campaign_id, opts)
  nil
end
api_campaigns_clone_campaign_id_post_with_http_info(campaign_id, opts = {}) click to toggle source

@param campaign_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 708
def api_campaigns_clone_campaign_id_post_with_http_info(campaign_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_clone_campaign_id_post ...'
  end
  # verify the required parameter 'campaign_id' is set
  if @api_client.config.client_side_validation && campaign_id.nil?
    fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.api_campaigns_clone_campaign_id_post"
  end
  if @api_client.config.client_side_validation && campaign_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'campaign_id' when calling DefaultApi.api_campaigns_clone_campaign_id_post, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/clone/{campaignId}'.sub('{' + 'campaignId' + '}', campaign_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_clone_campaign_id_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_events_batch_edit_put(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 748
def api_campaigns_events_batch_edit_put(opts = {})
  api_campaigns_events_batch_edit_put_with_http_info(opts)
  nil
end
api_campaigns_events_batch_edit_put_with_http_info(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 755
def api_campaigns_events_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_events_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/campaigns/events/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_events_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_events_contact_contact_id_get(contact_id, opts = {}) click to toggle source

Get a list of events. @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 789
def api_campaigns_events_contact_contact_id_get(contact_id, opts = {})
  api_campaigns_events_contact_contact_id_get_with_http_info(contact_id, opts)
  nil
end
api_campaigns_events_contact_contact_id_get_with_http_info(contact_id, opts = {}) click to toggle source

Get a list of events. @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 798
def api_campaigns_events_contact_contact_id_get_with_http_info(contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_events_contact_contact_id_get ...'
  end
  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_campaigns_events_contact_contact_id_get"
  end
  if @api_client.config.client_side_validation && contact_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'contact_id' when calling DefaultApi.api_campaigns_events_contact_contact_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/events/contact/{contactId}'.sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_events_contact_contact_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_events_event_id_contact_contact_id_edit_put(event_id, contact_id, opts = {}) click to toggle source

@param event_id @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 840
def api_campaigns_events_event_id_contact_contact_id_edit_put(event_id, contact_id, opts = {})
  api_campaigns_events_event_id_contact_contact_id_edit_put_with_http_info(event_id, contact_id, opts)
  nil
end
api_campaigns_events_event_id_contact_contact_id_edit_put_with_http_info(event_id, contact_id, opts = {}) click to toggle source

@param event_id @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 849
def api_campaigns_events_event_id_contact_contact_id_edit_put_with_http_info(event_id, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_events_event_id_contact_contact_id_edit_put ...'
  end
  # verify the required parameter 'event_id' is set
  if @api_client.config.client_side_validation && event_id.nil?
    fail ArgumentError, "Missing the required parameter 'event_id' when calling DefaultApi.api_campaigns_events_event_id_contact_contact_id_edit_put"
  end
  if @api_client.config.client_side_validation && event_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'event_id' when calling DefaultApi.api_campaigns_events_event_id_contact_contact_id_edit_put, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_campaigns_events_event_id_contact_contact_id_edit_put"
  end
  if @api_client.config.client_side_validation && contact_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'contact_id' when calling DefaultApi.api_campaigns_events_event_id_contact_contact_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/events/{eventId}/contact/{contactId}/edit'.sub('{' + 'eventId' + '}', event_id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_events_event_id_contact_contact_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_events_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 898
def api_campaigns_events_get(opts = {})
  api_campaigns_events_get_with_http_info(opts)
  nil
end
api_campaigns_events_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 906
def api_campaigns_events_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_events_get ...'
  end
  # resource path
  local_var_path = '/api/campaigns/events'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_events_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_events_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 940
def api_campaigns_events_id_get(id, opts = {})
  api_campaigns_events_id_get_with_http_info(id, opts)
  nil
end
api_campaigns_events_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 949
def api_campaigns_events_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_events_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_campaigns_events_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_campaigns_events_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/events/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_events_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 990
def api_campaigns_get(opts = {})
  api_campaigns_get_with_http_info(opts)
  nil
end
api_campaigns_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 998
def api_campaigns_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_get ...'
  end
  # resource path
  local_var_path = '/api/campaigns'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_id_contact_lead_id_add_post(id, lead_id, opts = {}) click to toggle source

Adds a lead to a campaign. @param id @param lead_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1033
def api_campaigns_id_contact_lead_id_add_post(id, lead_id, opts = {})
  api_campaigns_id_contact_lead_id_add_post_with_http_info(id, lead_id, opts)
  nil
end
api_campaigns_id_contact_lead_id_add_post_with_http_info(id, lead_id, opts = {}) click to toggle source

Adds a lead to a campaign. @param id @param lead_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1043
def api_campaigns_id_contact_lead_id_add_post_with_http_info(id, lead_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_id_contact_lead_id_add_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_campaigns_id_contact_lead_id_add_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_campaigns_id_contact_lead_id_add_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'lead_id' is set
  if @api_client.config.client_side_validation && lead_id.nil?
    fail ArgumentError, "Missing the required parameter 'lead_id' when calling DefaultApi.api_campaigns_id_contact_lead_id_add_post"
  end
  # resource path
  local_var_path = '/api/campaigns/{id}/contact/{leadId}/add'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'leadId' + '}', lead_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_id_contact_lead_id_add_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_id_contact_lead_id_remove_post(id, lead_id, opts = {}) click to toggle source

Removes given lead from a campaign. @param id @param lead_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1090
def api_campaigns_id_contact_lead_id_remove_post(id, lead_id, opts = {})
  api_campaigns_id_contact_lead_id_remove_post_with_http_info(id, lead_id, opts)
  nil
end
api_campaigns_id_contact_lead_id_remove_post_with_http_info(id, lead_id, opts = {}) click to toggle source

Removes given lead from a campaign. @param id @param lead_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1100
def api_campaigns_id_contact_lead_id_remove_post_with_http_info(id, lead_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_id_contact_lead_id_remove_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_campaigns_id_contact_lead_id_remove_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_campaigns_id_contact_lead_id_remove_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'lead_id' is set
  if @api_client.config.client_side_validation && lead_id.nil?
    fail ArgumentError, "Missing the required parameter 'lead_id' when calling DefaultApi.api_campaigns_id_contact_lead_id_remove_post"
  end
  # resource path
  local_var_path = '/api/campaigns/{id}/contact/{leadId}/remove'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'leadId' + '}', lead_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_id_contact_lead_id_remove_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_id_contacts_get(id, opts = {}) click to toggle source

Obtains a list of campaign contacts. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1146
def api_campaigns_id_contacts_get(id, opts = {})
  api_campaigns_id_contacts_get_with_http_info(id, opts)
  nil
end
api_campaigns_id_contacts_get_with_http_info(id, opts = {}) click to toggle source

Obtains a list of campaign contacts. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1155
def api_campaigns_id_contacts_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_id_contacts_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_campaigns_id_contacts_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_campaigns_id_contacts_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/{id}/contacts'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_id_contacts_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1197
def api_campaigns_id_delete_delete(id, opts = {})
  api_campaigns_id_delete_delete_with_http_info(id, opts)
  nil
end
api_campaigns_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1206
def api_campaigns_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_campaigns_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_campaigns_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_campaigns_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1248
def api_campaigns_id_edit_patch(id, opts = {})
  api_campaigns_id_edit_patch_with_http_info(id, opts)
  nil
end
api_campaigns_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1257
def api_campaigns_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_campaigns_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_campaigns_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_campaigns_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1299
def api_campaigns_id_edit_put(id, opts = {})
  api_campaigns_id_edit_put_with_http_info(id, opts)
  nil
end
api_campaigns_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1308
def api_campaigns_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_campaigns_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_campaigns_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1350
def api_campaigns_id_get(id, opts = {})
  api_campaigns_id_get_with_http_info(id, opts)
  nil
end
api_campaigns_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1359
def api_campaigns_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_campaigns_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_campaigns_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/campaigns/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_campaigns_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1400
def api_campaigns_new_post(opts = {})
  api_campaigns_new_post_with_http_info(opts)
  nil
end
api_campaigns_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1408
def api_campaigns_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_campaigns_new_post ...'
  end
  # resource path
  local_var_path = '/api/campaigns/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_campaigns_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1441
def api_categories_batch_delete_delete(opts = {})
  api_categories_batch_delete_delete_with_http_info(opts)
  nil
end
api_categories_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1449
def api_categories_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/categories/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_categories_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1482
def api_categories_batch_edit_patch(opts = {})
  api_categories_batch_edit_patch_with_http_info(opts)
  nil
end
api_categories_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1490
def api_categories_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/categories/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_categories_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1523
def api_categories_batch_edit_put(opts = {})
  api_categories_batch_edit_put_with_http_info(opts)
  nil
end
api_categories_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1531
def api_categories_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/categories/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_categories_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1564
def api_categories_batch_new_post(opts = {})
  api_categories_batch_new_post_with_http_info(opts)
  nil
end
api_categories_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1572
def api_categories_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/categories/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_categories_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1605
def api_categories_get(opts = {})
  api_categories_get_with_http_info(opts)
  nil
end
api_categories_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1613
def api_categories_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_get ...'
  end
  # resource path
  local_var_path = '/api/categories'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_categories_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1647
def api_categories_id_delete_delete(id, opts = {})
  api_categories_id_delete_delete_with_http_info(id, opts)
  nil
end
api_categories_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1656
def api_categories_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_categories_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_categories_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/categories/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_categories_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1698
def api_categories_id_edit_patch(id, opts = {})
  api_categories_id_edit_patch_with_http_info(id, opts)
  nil
end
api_categories_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1707
def api_categories_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_categories_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_categories_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/categories/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_categories_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1749
def api_categories_id_edit_put(id, opts = {})
  api_categories_id_edit_put_with_http_info(id, opts)
  nil
end
api_categories_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1758
def api_categories_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_categories_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_categories_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/categories/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_categories_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1800
def api_categories_id_get(id, opts = {})
  api_categories_id_get_with_http_info(id, opts)
  nil
end
api_categories_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1809
def api_categories_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_categories_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_categories_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/categories/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_categories_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_categories_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1850
def api_categories_new_post(opts = {})
  api_categories_new_post_with_http_info(opts)
  nil
end
api_categories_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1858
def api_categories_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_categories_new_post ...'
  end
  # resource path
  local_var_path = '/api/categories/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_categories_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1891
def api_companies_batch_delete_delete(opts = {})
  api_companies_batch_delete_delete_with_http_info(opts)
  nil
end
api_companies_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1899
def api_companies_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/companies/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_companies_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1932
def api_companies_batch_edit_patch(opts = {})
  api_companies_batch_edit_patch_with_http_info(opts)
  nil
end
api_companies_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1940
def api_companies_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/companies/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_companies_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 1973
def api_companies_batch_edit_put(opts = {})
  api_companies_batch_edit_put_with_http_info(opts)
  nil
end
api_companies_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 1981
def api_companies_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/companies/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_companies_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2014
def api_companies_batch_new_post(opts = {})
  api_companies_batch_new_post_with_http_info(opts)
  nil
end
api_companies_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2022
def api_companies_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/companies/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_companies_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_company_id_contact_contact_id_add_post(company_id, contact_id, opts = {}) click to toggle source

Adds a contact to a company. @param company_id @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2057
def api_companies_company_id_contact_contact_id_add_post(company_id, contact_id, opts = {})
  api_companies_company_id_contact_contact_id_add_post_with_http_info(company_id, contact_id, opts)
  nil
end
api_companies_company_id_contact_contact_id_add_post_with_http_info(company_id, contact_id, opts = {}) click to toggle source

Adds a contact to a company. @param company_id @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2067
def api_companies_company_id_contact_contact_id_add_post_with_http_info(company_id, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_company_id_contact_contact_id_add_post ...'
  end
  # verify the required parameter 'company_id' is set
  if @api_client.config.client_side_validation && company_id.nil?
    fail ArgumentError, "Missing the required parameter 'company_id' when calling DefaultApi.api_companies_company_id_contact_contact_id_add_post"
  end
  if @api_client.config.client_side_validation && company_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'company_id' when calling DefaultApi.api_companies_company_id_contact_contact_id_add_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_companies_company_id_contact_contact_id_add_post"
  end
  if @api_client.config.client_side_validation && contact_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'contact_id' when calling DefaultApi.api_companies_company_id_contact_contact_id_add_post, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/companies/{companyId}/contact/{contactId}/add'.sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_companies_company_id_contact_contact_id_add_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_company_id_contact_contact_id_remove_post(company_id, contact_id, opts = {}) click to toggle source

Removes given contact from a company. @param company_id @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2118
def api_companies_company_id_contact_contact_id_remove_post(company_id, contact_id, opts = {})
  api_companies_company_id_contact_contact_id_remove_post_with_http_info(company_id, contact_id, opts)
  nil
end
api_companies_company_id_contact_contact_id_remove_post_with_http_info(company_id, contact_id, opts = {}) click to toggle source

Removes given contact from a company. @param company_id @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2128
def api_companies_company_id_contact_contact_id_remove_post_with_http_info(company_id, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_company_id_contact_contact_id_remove_post ...'
  end
  # verify the required parameter 'company_id' is set
  if @api_client.config.client_side_validation && company_id.nil?
    fail ArgumentError, "Missing the required parameter 'company_id' when calling DefaultApi.api_companies_company_id_contact_contact_id_remove_post"
  end
  if @api_client.config.client_side_validation && company_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'company_id' when calling DefaultApi.api_companies_company_id_contact_contact_id_remove_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_companies_company_id_contact_contact_id_remove_post"
  end
  if @api_client.config.client_side_validation && contact_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'contact_id' when calling DefaultApi.api_companies_company_id_contact_contact_id_remove_post, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/companies/{companyId}/contact/{contactId}/remove'.sub('{' + 'companyId' + '}', company_id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_companies_company_id_contact_contact_id_remove_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2177
def api_companies_get(opts = {})
  api_companies_get_with_http_info(opts)
  nil
end
api_companies_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2185
def api_companies_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_get ...'
  end
  # resource path
  local_var_path = '/api/companies'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2219
def api_companies_id_delete_delete(id, opts = {})
  api_companies_id_delete_delete_with_http_info(id, opts)
  nil
end
api_companies_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2228
def api_companies_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_companies_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_companies_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/companies/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_companies_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2270
def api_companies_id_edit_patch(id, opts = {})
  api_companies_id_edit_patch_with_http_info(id, opts)
  nil
end
api_companies_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2279
def api_companies_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_companies_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_companies_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/companies/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_companies_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2321
def api_companies_id_edit_put(id, opts = {})
  api_companies_id_edit_put_with_http_info(id, opts)
  nil
end
api_companies_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2330
def api_companies_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_companies_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_companies_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/companies/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_companies_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2372
def api_companies_id_get(id, opts = {})
  api_companies_id_get_with_http_info(id, opts)
  nil
end
api_companies_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2381
def api_companies_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_companies_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_companies_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/companies/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_companies_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_companies_new_post(opts = {}) click to toggle source

If an existing company is matched, it'll be merged. Otherwise it'll be created. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2422
def api_companies_new_post(opts = {})
  api_companies_new_post_with_http_info(opts)
  nil
end
api_companies_new_post_with_http_info(opts = {}) click to toggle source

If an existing company is matched, it&#39;ll be merged. Otherwise it&#39;ll be created. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2430
def api_companies_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_companies_new_post ...'
  end
  # resource path
  local_var_path = '/api/companies/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_companies_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_activity_get(opts = {}) click to toggle source

Obtains a list of contact events. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2463
def api_contacts_activity_get(opts = {})
  api_contacts_activity_get_with_http_info(opts)
  nil
end
api_contacts_activity_get_with_http_info(opts = {}) click to toggle source

Obtains a list of contact events. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2471
def api_contacts_activity_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_activity_get ...'
  end
  # resource path
  local_var_path = '/api/contacts/activity'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_activity_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2504
def api_contacts_batch_delete_delete(opts = {})
  api_contacts_batch_delete_delete_with_http_info(opts)
  nil
end
api_contacts_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2512
def api_contacts_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/contacts/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_contacts_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2545
def api_contacts_batch_edit_patch(opts = {})
  api_contacts_batch_edit_patch_with_http_info(opts)
  nil
end
api_contacts_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2553
def api_contacts_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/contacts/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_contacts_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2586
def api_contacts_batch_edit_put(opts = {})
  api_contacts_batch_edit_put_with_http_info(opts)
  nil
end
api_contacts_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2594
def api_contacts_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/contacts/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2627
def api_contacts_batch_new_post(opts = {})
  api_contacts_batch_new_post_with_http_info(opts)
  nil
end
api_contacts_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2635
def api_contacts_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/contacts/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2668
def api_contacts_get(opts = {})
  api_contacts_get_with_http_info(opts)
  nil
end
api_contacts_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2676
def api_contacts_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_get ...'
  end
  # resource path
  local_var_path = '/api/contacts'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_activity_get(id, opts = {}) click to toggle source

Obtains a list of contact events. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2710
def api_contacts_id_activity_get(id, opts = {})
  api_contacts_id_activity_get_with_http_info(id, opts)
  nil
end
api_contacts_id_activity_get_with_http_info(id, opts = {}) click to toggle source

Obtains a list of contact events. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2719
def api_contacts_id_activity_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_activity_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_activity_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_activity_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/activity'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_activity_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_campaigns_get(id, opts = {}) click to toggle source

Obtains a list of campaigns the lead is part of. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2761
def api_contacts_id_campaigns_get(id, opts = {})
  api_contacts_id_campaigns_get_with_http_info(id, opts)
  nil
end
api_contacts_id_campaigns_get_with_http_info(id, opts = {}) click to toggle source

Obtains a list of campaigns the lead is part of. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2770
def api_contacts_id_campaigns_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_campaigns_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_campaigns_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_campaigns_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/campaigns'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_campaigns_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_companies_get(id, opts = {}) click to toggle source

Obtains a list of contact companies the contact is in. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2812
def api_contacts_id_companies_get(id, opts = {})
  api_contacts_id_companies_get_with_http_info(id, opts)
  nil
end
api_contacts_id_companies_get_with_http_info(id, opts = {}) click to toggle source

Obtains a list of contact companies the contact is in. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2821
def api_contacts_id_companies_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_companies_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_companies_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_companies_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/companies'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_companies_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2863
def api_contacts_id_delete_delete(id, opts = {})
  api_contacts_id_delete_delete_with_http_info(id, opts)
  nil
end
api_contacts_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2872
def api_contacts_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_contacts_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_devices_get(id, opts = {}) click to toggle source

Obtains a list of devices on a specific lead. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2914
def api_contacts_id_devices_get(id, opts = {})
  api_contacts_id_devices_get_with_http_info(id, opts)
  nil
end
api_contacts_id_devices_get_with_http_info(id, opts = {}) click to toggle source

Obtains a list of devices on a specific lead. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2923
def api_contacts_id_devices_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_devices_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_devices_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_devices_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/devices'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_devices_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_dnc_channel_add_post(id, channel, opts = {}) click to toggle source

Adds a DNC to the contact. @param id @param channel @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 2966
def api_contacts_id_dnc_channel_add_post(id, channel, opts = {})
  api_contacts_id_dnc_channel_add_post_with_http_info(id, channel, opts)
  nil
end
api_contacts_id_dnc_channel_add_post_with_http_info(id, channel, opts = {}) click to toggle source

Adds a DNC to the contact. @param id @param channel @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 2976
def api_contacts_id_dnc_channel_add_post_with_http_info(id, channel, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_dnc_channel_add_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_dnc_channel_add_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_dnc_channel_add_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'channel' is set
  if @api_client.config.client_side_validation && channel.nil?
    fail ArgumentError, "Missing the required parameter 'channel' when calling DefaultApi.api_contacts_id_dnc_channel_add_post"
  end
  # resource path
  local_var_path = '/api/contacts/{id}/dnc/{channel}/add'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'channel' + '}', channel.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_dnc_channel_add_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_dnc_channel_remove_post(id, channel, opts = {}) click to toggle source

Removes a DNC from the contact. @param id @param channel @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3023
def api_contacts_id_dnc_channel_remove_post(id, channel, opts = {})
  api_contacts_id_dnc_channel_remove_post_with_http_info(id, channel, opts)
  nil
end
api_contacts_id_dnc_channel_remove_post_with_http_info(id, channel, opts = {}) click to toggle source

Removes a DNC from the contact. @param id @param channel @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3033
def api_contacts_id_dnc_channel_remove_post_with_http_info(id, channel, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_dnc_channel_remove_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_dnc_channel_remove_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_dnc_channel_remove_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'channel' is set
  if @api_client.config.client_side_validation && channel.nil?
    fail ArgumentError, "Missing the required parameter 'channel' when calling DefaultApi.api_contacts_id_dnc_channel_remove_post"
  end
  # resource path
  local_var_path = '/api/contacts/{id}/dnc/{channel}/remove'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'channel' + '}', channel.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_dnc_channel_remove_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3079
def api_contacts_id_edit_patch(id, opts = {})
  api_contacts_id_edit_patch_with_http_info(id, opts)
  nil
end
api_contacts_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3088
def api_contacts_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_contacts_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3130
def api_contacts_id_edit_put(id, opts = {})
  api_contacts_id_edit_put_with_http_info(id, opts)
  nil
end
api_contacts_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3139
def api_contacts_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3181
def api_contacts_id_get(id, opts = {})
  api_contacts_id_get_with_http_info(id, opts)
  nil
end
api_contacts_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3190
def api_contacts_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_notes_get(id, opts = {}) click to toggle source

Obtains a list of notes on a specific lead. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3232
def api_contacts_id_notes_get(id, opts = {})
  api_contacts_id_notes_get_with_http_info(id, opts)
  nil
end
api_contacts_id_notes_get_with_http_info(id, opts = {}) click to toggle source

Obtains a list of notes on a specific lead. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3241
def api_contacts_id_notes_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_notes_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_notes_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_notes_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/notes'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_notes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_segments_get(id, opts = {}) click to toggle source

Obtains a list of contact segments the contact is in. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3283
def api_contacts_id_segments_get(id, opts = {})
  api_contacts_id_segments_get_with_http_info(id, opts)
  nil
end
api_contacts_id_segments_get_with_http_info(id, opts = {}) click to toggle source

Obtains a list of contact segments the contact is in. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3292
def api_contacts_id_segments_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_segments_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_segments_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_segments_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/segments'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_segments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_utm_add_post(id, opts = {}) click to toggle source

Adds a UTM Tagset to the contact. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3334
def api_contacts_id_utm_add_post(id, opts = {})
  api_contacts_id_utm_add_post_with_http_info(id, opts)
  nil
end
api_contacts_id_utm_add_post_with_http_info(id, opts = {}) click to toggle source

Adds a UTM Tagset to the contact. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3343
def api_contacts_id_utm_add_post_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_utm_add_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_utm_add_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_utm_add_post, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/contacts/{id}/utm/add'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_utm_add_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_id_utm_utmid_remove_post(id, utmid, opts = {}) click to toggle source

Remove a UTM Tagset for the contact. @param id @param utmid @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3386
def api_contacts_id_utm_utmid_remove_post(id, utmid, opts = {})
  api_contacts_id_utm_utmid_remove_post_with_http_info(id, utmid, opts)
  nil
end
api_contacts_id_utm_utmid_remove_post_with_http_info(id, utmid, opts = {}) click to toggle source

Remove a UTM Tagset for the contact. @param id @param utmid @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3396
def api_contacts_id_utm_utmid_remove_post_with_http_info(id, utmid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_id_utm_utmid_remove_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_contacts_id_utm_utmid_remove_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_contacts_id_utm_utmid_remove_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'utmid' is set
  if @api_client.config.client_side_validation && utmid.nil?
    fail ArgumentError, "Missing the required parameter 'utmid' when calling DefaultApi.api_contacts_id_utm_utmid_remove_post"
  end
  # resource path
  local_var_path = '/api/contacts/{id}/utm/{utmid}/remove'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'utmid' + '}', utmid.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_id_utm_utmid_remove_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_lead_id_points_operator_delta_post(lead_id, operator, delta, opts = {}) click to toggle source

Subtract points from a lead. @param lead_id @param operator @param delta @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3444
def api_contacts_lead_id_points_operator_delta_post(lead_id, operator, delta, opts = {})
  api_contacts_lead_id_points_operator_delta_post_with_http_info(lead_id, operator, delta, opts)
  nil
end
api_contacts_lead_id_points_operator_delta_post_with_http_info(lead_id, operator, delta, opts = {}) click to toggle source

Subtract points from a lead. @param lead_id @param operator @param delta @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3455
def api_contacts_lead_id_points_operator_delta_post_with_http_info(lead_id, operator, delta, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_lead_id_points_operator_delta_post ...'
  end
  # verify the required parameter 'lead_id' is set
  if @api_client.config.client_side_validation && lead_id.nil?
    fail ArgumentError, "Missing the required parameter 'lead_id' when calling DefaultApi.api_contacts_lead_id_points_operator_delta_post"
  end
  if @api_client.config.client_side_validation && lead_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'lead_id' when calling DefaultApi.api_contacts_lead_id_points_operator_delta_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'operator' is set
  if @api_client.config.client_side_validation && operator.nil?
    fail ArgumentError, "Missing the required parameter 'operator' when calling DefaultApi.api_contacts_lead_id_points_operator_delta_post"
  end
  # verify the required parameter 'delta' is set
  if @api_client.config.client_side_validation && delta.nil?
    fail ArgumentError, "Missing the required parameter 'delta' when calling DefaultApi.api_contacts_lead_id_points_operator_delta_post"
  end
  # resource path
  local_var_path = '/api/contacts/{leadId}/points/{operator}/{delta}'.sub('{' + 'leadId' + '}', lead_id.to_s).sub('{' + 'operator' + '}', operator.to_s).sub('{' + 'delta' + '}', delta.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_lead_id_points_operator_delta_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_list_fields_get(opts = {}) click to toggle source

Obtains a list of custom fields. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3504
def api_contacts_list_fields_get(opts = {})
  api_contacts_list_fields_get_with_http_info(opts)
  nil
end
api_contacts_list_fields_get_with_http_info(opts = {}) click to toggle source

Obtains a list of custom fields. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3512
def api_contacts_list_fields_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_list_fields_get ...'
  end
  # resource path
  local_var_path = '/api/contacts/list/fields'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_list_fields_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_list_owners_get(opts = {}) click to toggle source

Obtains a list of users for lead owner edits. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3545
def api_contacts_list_owners_get(opts = {})
  api_contacts_list_owners_get_with_http_info(opts)
  nil
end
api_contacts_list_owners_get_with_http_info(opts = {}) click to toggle source

Obtains a list of users for lead owner edits. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3553
def api_contacts_list_owners_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_list_owners_get ...'
  end
  # resource path
  local_var_path = '/api/contacts/list/owners'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_list_owners_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_list_segments_get(opts = {}) click to toggle source

Obtains a list of smart lists for the user. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3586
def api_contacts_list_segments_get(opts = {})
  api_contacts_list_segments_get_with_http_info(opts)
  nil
end
api_contacts_list_segments_get_with_http_info(opts = {}) click to toggle source

Obtains a list of smart lists for the user. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3594
def api_contacts_list_segments_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_list_segments_get ...'
  end
  # resource path
  local_var_path = '/api/contacts/list/segments'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_list_segments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_contacts_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3627
def api_contacts_new_post(opts = {})
  api_contacts_new_post_with_http_info(opts)
  nil
end
api_contacts_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3635
def api_contacts_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_contacts_new_post ...'
  end
  # resource path
  local_var_path = '/api/contacts/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_contacts_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_data_get(opts = {}) click to toggle source

Obtains a list of available widget types. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3668
def api_data_get(opts = {})
  api_data_get_with_http_info(opts)
  nil
end
api_data_get_with_http_info(opts = {}) click to toggle source

Obtains a list of available widget types. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3676
def api_data_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_data_get ...'
  end
  # resource path
  local_var_path = '/api/data'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_data_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_data_type_get(type, opts = {}) click to toggle source

Obtains a list of available widget types. @param type @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3710
def api_data_type_get(type, opts = {})
  api_data_type_get_with_http_info(type, opts)
  nil
end
api_data_type_get_with_http_info(type, opts = {}) click to toggle source

Obtains a list of available widget types. @param type @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3719
def api_data_type_get_with_http_info(type, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_data_type_get ...'
  end
  # verify the required parameter 'type' is set
  if @api_client.config.client_side_validation && type.nil?
    fail ArgumentError, "Missing the required parameter 'type' when calling DefaultApi.api_data_type_get"
  end
  # resource path
  local_var_path = '/api/data/{type}'.sub('{' + 'type' + '}', type.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_data_type_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3756
def api_devices_batch_delete_delete(opts = {})
  api_devices_batch_delete_delete_with_http_info(opts)
  nil
end
api_devices_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3764
def api_devices_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/devices/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_devices_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3797
def api_devices_batch_edit_patch(opts = {})
  api_devices_batch_edit_patch_with_http_info(opts)
  nil
end
api_devices_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3805
def api_devices_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/devices/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_devices_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3838
def api_devices_batch_edit_put(opts = {})
  api_devices_batch_edit_put_with_http_info(opts)
  nil
end
api_devices_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3846
def api_devices_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/devices/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_devices_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3879
def api_devices_batch_new_post(opts = {})
  api_devices_batch_new_post_with_http_info(opts)
  nil
end
api_devices_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3887
def api_devices_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/devices/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_devices_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3920
def api_devices_get(opts = {})
  api_devices_get_with_http_info(opts)
  nil
end
api_devices_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3928
def api_devices_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_get ...'
  end
  # resource path
  local_var_path = '/api/devices'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_devices_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 3962
def api_devices_id_delete_delete(id, opts = {})
  api_devices_id_delete_delete_with_http_info(id, opts)
  nil
end
api_devices_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 3971
def api_devices_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_devices_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_devices_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/devices/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_devices_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4013
def api_devices_id_edit_patch(id, opts = {})
  api_devices_id_edit_patch_with_http_info(id, opts)
  nil
end
api_devices_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4022
def api_devices_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_devices_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_devices_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/devices/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_devices_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4064
def api_devices_id_edit_put(id, opts = {})
  api_devices_id_edit_put_with_http_info(id, opts)
  nil
end
api_devices_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4073
def api_devices_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_devices_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_devices_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/devices/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_devices_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4115
def api_devices_id_get(id, opts = {})
  api_devices_id_get_with_http_info(id, opts)
  nil
end
api_devices_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4124
def api_devices_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_devices_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_devices_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/devices/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_devices_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_devices_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4165
def api_devices_new_post(opts = {})
  api_devices_new_post_with_http_info(opts)
  nil
end
api_devices_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4173
def api_devices_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_devices_new_post ...'
  end
  # resource path
  local_var_path = '/api/devices/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_devices_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4206
def api_dynamiccontents_batch_delete_delete(opts = {})
  api_dynamiccontents_batch_delete_delete_with_http_info(opts)
  nil
end
api_dynamiccontents_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4214
def api_dynamiccontents_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/dynamiccontents/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_dynamiccontents_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4247
def api_dynamiccontents_batch_edit_patch(opts = {})
  api_dynamiccontents_batch_edit_patch_with_http_info(opts)
  nil
end
api_dynamiccontents_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4255
def api_dynamiccontents_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/dynamiccontents/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_dynamiccontents_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4288
def api_dynamiccontents_batch_edit_put(opts = {})
  api_dynamiccontents_batch_edit_put_with_http_info(opts)
  nil
end
api_dynamiccontents_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4296
def api_dynamiccontents_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/dynamiccontents/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_dynamiccontents_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4329
def api_dynamiccontents_batch_new_post(opts = {})
  api_dynamiccontents_batch_new_post_with_http_info(opts)
  nil
end
api_dynamiccontents_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4337
def api_dynamiccontents_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/dynamiccontents/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_dynamiccontents_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4370
def api_dynamiccontents_get(opts = {})
  api_dynamiccontents_get_with_http_info(opts)
  nil
end
api_dynamiccontents_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4378
def api_dynamiccontents_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_get ...'
  end
  # resource path
  local_var_path = '/api/dynamiccontents'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_dynamiccontents_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4412
def api_dynamiccontents_id_delete_delete(id, opts = {})
  api_dynamiccontents_id_delete_delete_with_http_info(id, opts)
  nil
end
api_dynamiccontents_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4421
def api_dynamiccontents_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_dynamiccontents_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_dynamiccontents_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/dynamiccontents/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_dynamiccontents_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4463
def api_dynamiccontents_id_edit_patch(id, opts = {})
  api_dynamiccontents_id_edit_patch_with_http_info(id, opts)
  nil
end
api_dynamiccontents_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4472
def api_dynamiccontents_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_dynamiccontents_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_dynamiccontents_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/dynamiccontents/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_dynamiccontents_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4514
def api_dynamiccontents_id_edit_put(id, opts = {})
  api_dynamiccontents_id_edit_put_with_http_info(id, opts)
  nil
end
api_dynamiccontents_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4523
def api_dynamiccontents_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_dynamiccontents_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_dynamiccontents_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/dynamiccontents/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_dynamiccontents_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4565
def api_dynamiccontents_id_get(id, opts = {})
  api_dynamiccontents_id_get_with_http_info(id, opts)
  nil
end
api_dynamiccontents_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4574
def api_dynamiccontents_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_dynamiccontents_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_dynamiccontents_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/dynamiccontents/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_dynamiccontents_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_dynamiccontents_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4615
def api_dynamiccontents_new_post(opts = {})
  api_dynamiccontents_new_post_with_http_info(opts)
  nil
end
api_dynamiccontents_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4623
def api_dynamiccontents_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_dynamiccontents_new_post ...'
  end
  # resource path
  local_var_path = '/api/dynamiccontents/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_dynamiccontents_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4656
def api_emails_batch_delete_delete(opts = {})
  api_emails_batch_delete_delete_with_http_info(opts)
  nil
end
api_emails_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4664
def api_emails_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/emails/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_emails_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4697
def api_emails_batch_edit_patch(opts = {})
  api_emails_batch_edit_patch_with_http_info(opts)
  nil
end
api_emails_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4705
def api_emails_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/emails/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_emails_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4738
def api_emails_batch_edit_put(opts = {})
  api_emails_batch_edit_put_with_http_info(opts)
  nil
end
api_emails_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4746
def api_emails_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/emails/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_emails_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4779
def api_emails_batch_new_post(opts = {})
  api_emails_batch_new_post_with_http_info(opts)
  nil
end
api_emails_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4787
def api_emails_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/emails/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_emails_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_get(opts = {}) click to toggle source

Obtains a list of emails. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4820
def api_emails_get(opts = {})
  api_emails_get_with_http_info(opts)
  nil
end
api_emails_get_with_http_info(opts = {}) click to toggle source

Obtains a list of emails. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4828
def api_emails_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_get ...'
  end
  # resource path
  local_var_path = '/api/emails'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_emails_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_id_contact_lead_id_send_post(id, lead_id, opts = {}) click to toggle source

Sends the email to a specific lead. @param id @param lead_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4863
def api_emails_id_contact_lead_id_send_post(id, lead_id, opts = {})
  api_emails_id_contact_lead_id_send_post_with_http_info(id, lead_id, opts)
  nil
end
api_emails_id_contact_lead_id_send_post_with_http_info(id, lead_id, opts = {}) click to toggle source

Sends the email to a specific lead. @param id @param lead_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4873
def api_emails_id_contact_lead_id_send_post_with_http_info(id, lead_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_id_contact_lead_id_send_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_emails_id_contact_lead_id_send_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_emails_id_contact_lead_id_send_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'lead_id' is set
  if @api_client.config.client_side_validation && lead_id.nil?
    fail ArgumentError, "Missing the required parameter 'lead_id' when calling DefaultApi.api_emails_id_contact_lead_id_send_post"
  end
  # resource path
  local_var_path = '/api/emails/{id}/contact/{leadId}/send'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'leadId' + '}', lead_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_emails_id_contact_lead_id_send_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4919
def api_emails_id_delete_delete(id, opts = {})
  api_emails_id_delete_delete_with_http_info(id, opts)
  nil
end
api_emails_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4928
def api_emails_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_emails_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_emails_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/emails/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_emails_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 4970
def api_emails_id_edit_patch(id, opts = {})
  api_emails_id_edit_patch_with_http_info(id, opts)
  nil
end
api_emails_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 4979
def api_emails_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_emails_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_emails_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/emails/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_emails_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5021
def api_emails_id_edit_put(id, opts = {})
  api_emails_id_edit_put_with_http_info(id, opts)
  nil
end
api_emails_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5030
def api_emails_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_emails_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_emails_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/emails/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_emails_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5072
def api_emails_id_get(id, opts = {})
  api_emails_id_get_with_http_info(id, opts)
  nil
end
api_emails_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5081
def api_emails_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_emails_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_emails_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/emails/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_emails_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_id_send_post(id, opts = {}) click to toggle source

Sends the email to it's assigned lists. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5123
def api_emails_id_send_post(id, opts = {})
  api_emails_id_send_post_with_http_info(id, opts)
  nil
end
api_emails_id_send_post_with_http_info(id, opts = {}) click to toggle source

Sends the email to it&#39;s assigned lists. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5132
def api_emails_id_send_post_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_id_send_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_emails_id_send_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_emails_id_send_post, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/emails/{id}/send'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_emails_id_send_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_emails_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5173
def api_emails_new_post(opts = {})
  api_emails_new_post_with_http_info(opts)
  nil
end
api_emails_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5181
def api_emails_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_emails_new_post ...'
  end
  # resource path
  local_var_path = '/api/emails/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_emails_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_batch_delete_delete(object, opts = {}) click to toggle source

Delete a batch of entities. @param object @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5215
def api_fields_object_batch_delete_delete(object, opts = {})
  api_fields_object_batch_delete_delete_with_http_info(object, opts)
  nil
end
api_fields_object_batch_delete_delete_with_http_info(object, opts = {}) click to toggle source

Delete a batch of entities. @param object @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5224
def api_fields_object_batch_delete_delete_with_http_info(object, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_batch_delete_delete ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_batch_delete_delete"
  end
  # resource path
  local_var_path = '/api/fields/{object}/batch/delete'.sub('{' + 'object' + '}', object.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_fields_object_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_batch_edit_patch(object, opts = {}) click to toggle source

Edit a batch of entities. @param object @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5262
def api_fields_object_batch_edit_patch(object, opts = {})
  api_fields_object_batch_edit_patch_with_http_info(object, opts)
  nil
end
api_fields_object_batch_edit_patch_with_http_info(object, opts = {}) click to toggle source

Edit a batch of entities. @param object @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5271
def api_fields_object_batch_edit_patch_with_http_info(object, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_batch_edit_patch ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_batch_edit_patch"
  end
  # resource path
  local_var_path = '/api/fields/{object}/batch/edit'.sub('{' + 'object' + '}', object.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_fields_object_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_batch_edit_put(object, opts = {}) click to toggle source

Edit a batch of entities. @param object @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5309
def api_fields_object_batch_edit_put(object, opts = {})
  api_fields_object_batch_edit_put_with_http_info(object, opts)
  nil
end
api_fields_object_batch_edit_put_with_http_info(object, opts = {}) click to toggle source

Edit a batch of entities. @param object @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5318
def api_fields_object_batch_edit_put_with_http_info(object, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_batch_edit_put ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_batch_edit_put"
  end
  # resource path
  local_var_path = '/api/fields/{object}/batch/edit'.sub('{' + 'object' + '}', object.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_fields_object_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_batch_new_post(object, opts = {}) click to toggle source

Create a batch of new entities. @param object @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5356
def api_fields_object_batch_new_post(object, opts = {})
  api_fields_object_batch_new_post_with_http_info(object, opts)
  nil
end
api_fields_object_batch_new_post_with_http_info(object, opts = {}) click to toggle source

Create a batch of new entities. @param object @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5365
def api_fields_object_batch_new_post_with_http_info(object, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_batch_new_post ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_batch_new_post"
  end
  # resource path
  local_var_path = '/api/fields/{object}/batch/new'.sub('{' + 'object' + '}', object.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_fields_object_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_get(object, opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param object @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5403
def api_fields_object_get(object, opts = {})
  api_fields_object_get_with_http_info(object, opts)
  nil
end
api_fields_object_get_with_http_info(object, opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param object @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5412
def api_fields_object_get_with_http_info(object, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_get ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_get"
  end
  # resource path
  local_var_path = '/api/fields/{object}'.sub('{' + 'object' + '}', object.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_fields_object_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_id_delete_delete(object, id, opts = {}) click to toggle source

Deletes an entity. @param object @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5451
def api_fields_object_id_delete_delete(object, id, opts = {})
  api_fields_object_id_delete_delete_with_http_info(object, id, opts)
  nil
end
api_fields_object_id_delete_delete_with_http_info(object, id, opts = {}) click to toggle source

Deletes an entity. @param object @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5461
def api_fields_object_id_delete_delete_with_http_info(object, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_id_delete_delete ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_id_delete_delete"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_fields_object_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_fields_object_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/fields/{object}/{id}/delete'.sub('{' + 'object' + '}', object.to_s).sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_fields_object_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_id_edit_patch(object, id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param object @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5508
def api_fields_object_id_edit_patch(object, id, opts = {})
  api_fields_object_id_edit_patch_with_http_info(object, id, opts)
  nil
end
api_fields_object_id_edit_patch_with_http_info(object, id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param object @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5518
def api_fields_object_id_edit_patch_with_http_info(object, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_id_edit_patch ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_id_edit_patch"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_fields_object_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_fields_object_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/fields/{object}/{id}/edit'.sub('{' + 'object' + '}', object.to_s).sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_fields_object_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_id_edit_put(object, id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param object @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5565
def api_fields_object_id_edit_put(object, id, opts = {})
  api_fields_object_id_edit_put_with_http_info(object, id, opts)
  nil
end
api_fields_object_id_edit_put_with_http_info(object, id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param object @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5575
def api_fields_object_id_edit_put_with_http_info(object, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_id_edit_put ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_id_edit_put"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_fields_object_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_fields_object_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/fields/{object}/{id}/edit'.sub('{' + 'object' + '}', object.to_s).sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_fields_object_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_id_get(object, id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param object @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5622
def api_fields_object_id_get(object, id, opts = {})
  api_fields_object_id_get_with_http_info(object, id, opts)
  nil
end
api_fields_object_id_get_with_http_info(object, id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param object @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5632
def api_fields_object_id_get_with_http_info(object, id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_id_get ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_id_get"
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_fields_object_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_fields_object_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/fields/{object}/{id}'.sub('{' + 'object' + '}', object.to_s).sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_fields_object_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_fields_object_new_post(object, opts = {}) click to toggle source

Creates a new entity. @param object @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5678
def api_fields_object_new_post(object, opts = {})
  api_fields_object_new_post_with_http_info(object, opts)
  nil
end
api_fields_object_new_post_with_http_info(object, opts = {}) click to toggle source

Creates a new entity. @param object @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5687
def api_fields_object_new_post_with_http_info(object, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_fields_object_new_post ...'
  end
  # verify the required parameter 'object' is set
  if @api_client.config.client_side_validation && object.nil?
    fail ArgumentError, "Missing the required parameter 'object' when calling DefaultApi.api_fields_object_new_post"
  end
  # resource path
  local_var_path = '/api/fields/{object}/new'.sub('{' + 'object' + '}', object.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_fields_object_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_files_dir_file_delete_delete(dir, file, opts = {}) click to toggle source

Delete a file from /media directory. @param dir @param file @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5726
def api_files_dir_file_delete_delete(dir, file, opts = {})
  api_files_dir_file_delete_delete_with_http_info(dir, file, opts)
  nil
end
api_files_dir_file_delete_delete_with_http_info(dir, file, opts = {}) click to toggle source

Delete a file from /media directory. @param dir @param file @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5736
def api_files_dir_file_delete_delete_with_http_info(dir, file, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_files_dir_file_delete_delete ...'
  end
  # verify the required parameter 'dir' is set
  if @api_client.config.client_side_validation && dir.nil?
    fail ArgumentError, "Missing the required parameter 'dir' when calling DefaultApi.api_files_dir_file_delete_delete"
  end
  # verify the required parameter 'file' is set
  if @api_client.config.client_side_validation && file.nil?
    fail ArgumentError, "Missing the required parameter 'file' when calling DefaultApi.api_files_dir_file_delete_delete"
  end
  # resource path
  local_var_path = '/api/files/{dir}/{file}/delete'.sub('{' + 'dir' + '}', dir.to_s).sub('{' + 'file' + '}', file.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_files_dir_file_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_files_dir_get(dir, opts = {}) click to toggle source

List the files in /media directory. @param dir @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5778
def api_files_dir_get(dir, opts = {})
  api_files_dir_get_with_http_info(dir, opts)
  nil
end
api_files_dir_get_with_http_info(dir, opts = {}) click to toggle source

List the files in /media directory. @param dir @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5787
def api_files_dir_get_with_http_info(dir, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_files_dir_get ...'
  end
  # verify the required parameter 'dir' is set
  if @api_client.config.client_side_validation && dir.nil?
    fail ArgumentError, "Missing the required parameter 'dir' when calling DefaultApi.api_files_dir_get"
  end
  # resource path
  local_var_path = '/api/files/{dir}'.sub('{' + 'dir' + '}', dir.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_files_dir_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_files_dir_new_post(dir, opts = {}) click to toggle source

Uploads a file. @param dir @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5825
def api_files_dir_new_post(dir, opts = {})
  api_files_dir_new_post_with_http_info(dir, opts)
  nil
end
api_files_dir_new_post_with_http_info(dir, opts = {}) click to toggle source

Uploads a file. @param dir @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5834
def api_files_dir_new_post_with_http_info(dir, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_files_dir_new_post ...'
  end
  # verify the required parameter 'dir' is set
  if @api_client.config.client_side_validation && dir.nil?
    fail ArgumentError, "Missing the required parameter 'dir' when calling DefaultApi.api_files_dir_new_post"
  end
  # resource path
  local_var_path = '/api/files/{dir}/new'.sub('{' + 'dir' + '}', dir.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_files_dir_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5871
def api_focus_batch_delete_delete(opts = {})
  api_focus_batch_delete_delete_with_http_info(opts)
  nil
end
api_focus_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5879
def api_focus_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/focus/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_focus_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5912
def api_focus_batch_edit_patch(opts = {})
  api_focus_batch_edit_patch_with_http_info(opts)
  nil
end
api_focus_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5920
def api_focus_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/focus/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_focus_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5953
def api_focus_batch_edit_put(opts = {})
  api_focus_batch_edit_put_with_http_info(opts)
  nil
end
api_focus_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 5961
def api_focus_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/focus/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_focus_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 5994
def api_focus_batch_new_post(opts = {})
  api_focus_batch_new_post_with_http_info(opts)
  nil
end
api_focus_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6002
def api_focus_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/focus/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_focus_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6035
def api_focus_get(opts = {})
  api_focus_get_with_http_info(opts)
  nil
end
api_focus_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6043
def api_focus_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_get ...'
  end
  # resource path
  local_var_path = '/api/focus'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_focus_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6077
def api_focus_id_delete_delete(id, opts = {})
  api_focus_id_delete_delete_with_http_info(id, opts)
  nil
end
api_focus_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6086
def api_focus_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_focus_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_focus_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/focus/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_focus_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6128
def api_focus_id_edit_patch(id, opts = {})
  api_focus_id_edit_patch_with_http_info(id, opts)
  nil
end
api_focus_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6137
def api_focus_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_focus_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_focus_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/focus/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_focus_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6179
def api_focus_id_edit_put(id, opts = {})
  api_focus_id_edit_put_with_http_info(id, opts)
  nil
end
api_focus_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6188
def api_focus_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_focus_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_focus_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/focus/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_focus_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6230
def api_focus_id_get(id, opts = {})
  api_focus_id_get_with_http_info(id, opts)
  nil
end
api_focus_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6239
def api_focus_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_focus_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_focus_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/focus/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_focus_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_id_js_post(id, opts = {}) click to toggle source

@param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6280
def api_focus_id_js_post(id, opts = {})
  api_focus_id_js_post_with_http_info(id, opts)
  nil
end
api_focus_id_js_post_with_http_info(id, opts = {}) click to toggle source

@param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6288
def api_focus_id_js_post_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_id_js_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_focus_id_js_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_focus_id_js_post, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/focus/{id}/js'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_focus_id_js_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_focus_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6329
def api_focus_new_post(opts = {})
  api_focus_new_post_with_http_info(opts)
  nil
end
api_focus_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6337
def api_focus_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_focus_new_post ...'
  end
  # resource path
  local_var_path = '/api/focus/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_focus_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6370
def api_forms_batch_delete_delete(opts = {})
  api_forms_batch_delete_delete_with_http_info(opts)
  nil
end
api_forms_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6378
def api_forms_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/forms/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_forms_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6411
def api_forms_batch_edit_patch(opts = {})
  api_forms_batch_edit_patch_with_http_info(opts)
  nil
end
api_forms_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6419
def api_forms_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/forms/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_forms_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6452
def api_forms_batch_edit_put(opts = {})
  api_forms_batch_edit_put_with_http_info(opts)
  nil
end
api_forms_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6460
def api_forms_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/forms/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6493
def api_forms_batch_new_post(opts = {})
  api_forms_batch_new_post_with_http_info(opts)
  nil
end
api_forms_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6501
def api_forms_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/forms/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_form_id_actions_delete_delete(form_id, opts = {}) click to toggle source

Delete fields from a form. @param form_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6535
def api_forms_form_id_actions_delete_delete(form_id, opts = {})
  api_forms_form_id_actions_delete_delete_with_http_info(form_id, opts)
  nil
end
api_forms_form_id_actions_delete_delete_with_http_info(form_id, opts = {}) click to toggle source

Delete fields from a form. @param form_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6544
def api_forms_form_id_actions_delete_delete_with_http_info(form_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_form_id_actions_delete_delete ...'
  end
  # verify the required parameter 'form_id' is set
  if @api_client.config.client_side_validation && form_id.nil?
    fail ArgumentError, "Missing the required parameter 'form_id' when calling DefaultApi.api_forms_form_id_actions_delete_delete"
  end
  if @api_client.config.client_side_validation && form_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'form_id' when calling DefaultApi.api_forms_form_id_actions_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{formId}/actions/delete'.sub('{' + 'formId' + '}', form_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_forms_form_id_actions_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_form_id_fields_delete_delete(form_id, opts = {}) click to toggle source

Delete fields from a form. @param form_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6586
def api_forms_form_id_fields_delete_delete(form_id, opts = {})
  api_forms_form_id_fields_delete_delete_with_http_info(form_id, opts)
  nil
end
api_forms_form_id_fields_delete_delete_with_http_info(form_id, opts = {}) click to toggle source

Delete fields from a form. @param form_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6595
def api_forms_form_id_fields_delete_delete_with_http_info(form_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_form_id_fields_delete_delete ...'
  end
  # verify the required parameter 'form_id' is set
  if @api_client.config.client_side_validation && form_id.nil?
    fail ArgumentError, "Missing the required parameter 'form_id' when calling DefaultApi.api_forms_form_id_fields_delete_delete"
  end
  if @api_client.config.client_side_validation && form_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'form_id' when calling DefaultApi.api_forms_form_id_fields_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{formId}/fields/delete'.sub('{' + 'formId' + '}', form_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_forms_form_id_fields_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_form_id_submissions_contact_contact_id_get(form_id, contact_id, opts = {}) click to toggle source

Obtains a list of entities for specific form and contact. @param form_id @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6638
def api_forms_form_id_submissions_contact_contact_id_get(form_id, contact_id, opts = {})
  api_forms_form_id_submissions_contact_contact_id_get_with_http_info(form_id, contact_id, opts)
  nil
end
api_forms_form_id_submissions_contact_contact_id_get_with_http_info(form_id, contact_id, opts = {}) click to toggle source

Obtains a list of entities for specific form and contact. @param form_id @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6648
def api_forms_form_id_submissions_contact_contact_id_get_with_http_info(form_id, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_form_id_submissions_contact_contact_id_get ...'
  end
  # verify the required parameter 'form_id' is set
  if @api_client.config.client_side_validation && form_id.nil?
    fail ArgumentError, "Missing the required parameter 'form_id' when calling DefaultApi.api_forms_form_id_submissions_contact_contact_id_get"
  end
  if @api_client.config.client_side_validation && form_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'form_id' when calling DefaultApi.api_forms_form_id_submissions_contact_contact_id_get, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_forms_form_id_submissions_contact_contact_id_get"
  end
  if @api_client.config.client_side_validation && contact_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'contact_id' when calling DefaultApi.api_forms_form_id_submissions_contact_contact_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{formId}/submissions/contact/{contactId}'.sub('{' + 'formId' + '}', form_id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_form_id_submissions_contact_contact_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_form_id_submissions_get(form_id, opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param form_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6698
def api_forms_form_id_submissions_get(form_id, opts = {})
  api_forms_form_id_submissions_get_with_http_info(form_id, opts)
  nil
end
api_forms_form_id_submissions_get_with_http_info(form_id, opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param form_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6707
def api_forms_form_id_submissions_get_with_http_info(form_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_form_id_submissions_get ...'
  end
  # verify the required parameter 'form_id' is set
  if @api_client.config.client_side_validation && form_id.nil?
    fail ArgumentError, "Missing the required parameter 'form_id' when calling DefaultApi.api_forms_form_id_submissions_get"
  end
  if @api_client.config.client_side_validation && form_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'form_id' when calling DefaultApi.api_forms_form_id_submissions_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{formId}/submissions'.sub('{' + 'formId' + '}', form_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_form_id_submissions_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_form_id_submissions_submission_id_get(form_id, submission_id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param form_id @param submission_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6750
def api_forms_form_id_submissions_submission_id_get(form_id, submission_id, opts = {})
  api_forms_form_id_submissions_submission_id_get_with_http_info(form_id, submission_id, opts)
  nil
end
api_forms_form_id_submissions_submission_id_get_with_http_info(form_id, submission_id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param form_id @param submission_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6760
def api_forms_form_id_submissions_submission_id_get_with_http_info(form_id, submission_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_form_id_submissions_submission_id_get ...'
  end
  # verify the required parameter 'form_id' is set
  if @api_client.config.client_side_validation && form_id.nil?
    fail ArgumentError, "Missing the required parameter 'form_id' when calling DefaultApi.api_forms_form_id_submissions_submission_id_get"
  end
  if @api_client.config.client_side_validation && form_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'form_id' when calling DefaultApi.api_forms_form_id_submissions_submission_id_get, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'submission_id' is set
  if @api_client.config.client_side_validation && submission_id.nil?
    fail ArgumentError, "Missing the required parameter 'submission_id' when calling DefaultApi.api_forms_form_id_submissions_submission_id_get"
  end
  if @api_client.config.client_side_validation && submission_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'submission_id' when calling DefaultApi.api_forms_form_id_submissions_submission_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{formId}/submissions/{submissionId}'.sub('{' + 'formId' + '}', form_id.to_s).sub('{' + 'submissionId' + '}', submission_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_form_id_submissions_submission_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6809
def api_forms_get(opts = {})
  api_forms_get_with_http_info(opts)
  nil
end
api_forms_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6817
def api_forms_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_get ...'
  end
  # resource path
  local_var_path = '/api/forms'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6851
def api_forms_id_delete_delete(id, opts = {})
  api_forms_id_delete_delete_with_http_info(id, opts)
  nil
end
api_forms_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6860
def api_forms_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_forms_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_forms_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_forms_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6902
def api_forms_id_edit_patch(id, opts = {})
  api_forms_id_edit_patch_with_http_info(id, opts)
  nil
end
api_forms_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6911
def api_forms_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_forms_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_forms_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_forms_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 6953
def api_forms_id_edit_put(id, opts = {})
  api_forms_id_edit_put_with_http_info(id, opts)
  nil
end
api_forms_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 6962
def api_forms_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_forms_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_forms_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7004
def api_forms_id_get(id, opts = {})
  api_forms_id_get_with_http_info(id, opts)
  nil
end
api_forms_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7013
def api_forms_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_forms_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_forms_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/forms/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_forms_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7054
def api_forms_new_post(opts = {})
  api_forms_new_post_with_http_info(opts)
  nil
end
api_forms_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7062
def api_forms_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_forms_new_post ...'
  end
  # resource path
  local_var_path = '/api/forms/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_forms_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7095
def api_hooks_batch_delete_delete(opts = {})
  api_hooks_batch_delete_delete_with_http_info(opts)
  nil
end
api_hooks_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7103
def api_hooks_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/hooks/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_hooks_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7136
def api_hooks_batch_edit_patch(opts = {})
  api_hooks_batch_edit_patch_with_http_info(opts)
  nil
end
api_hooks_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7144
def api_hooks_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/hooks/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_hooks_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7177
def api_hooks_batch_edit_put(opts = {})
  api_hooks_batch_edit_put_with_http_info(opts)
  nil
end
api_hooks_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7185
def api_hooks_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/hooks/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_hooks_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7218
def api_hooks_batch_new_post(opts = {})
  api_hooks_batch_new_post_with_http_info(opts)
  nil
end
api_hooks_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7226
def api_hooks_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/hooks/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_hooks_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7259
def api_hooks_get(opts = {})
  api_hooks_get_with_http_info(opts)
  nil
end
api_hooks_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7267
def api_hooks_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_get ...'
  end
  # resource path
  local_var_path = '/api/hooks'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_hooks_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7301
def api_hooks_id_delete_delete(id, opts = {})
  api_hooks_id_delete_delete_with_http_info(id, opts)
  nil
end
api_hooks_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7310
def api_hooks_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_hooks_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_hooks_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/hooks/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_hooks_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7352
def api_hooks_id_edit_patch(id, opts = {})
  api_hooks_id_edit_patch_with_http_info(id, opts)
  nil
end
api_hooks_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7361
def api_hooks_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_hooks_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_hooks_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/hooks/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_hooks_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7403
def api_hooks_id_edit_put(id, opts = {})
  api_hooks_id_edit_put_with_http_info(id, opts)
  nil
end
api_hooks_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7412
def api_hooks_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_hooks_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_hooks_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/hooks/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_hooks_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7454
def api_hooks_id_get(id, opts = {})
  api_hooks_id_get_with_http_info(id, opts)
  nil
end
api_hooks_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7463
def api_hooks_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_hooks_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_hooks_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/hooks/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_hooks_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7504
def api_hooks_new_post(opts = {})
  api_hooks_new_post_with_http_info(opts)
  nil
end
api_hooks_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7512
def api_hooks_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_new_post ...'
  end
  # resource path
  local_var_path = '/api/hooks/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_hooks_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_hooks_triggers_get(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7544
def api_hooks_triggers_get(opts = {})
  api_hooks_triggers_get_with_http_info(opts)
  nil
end
api_hooks_triggers_get_with_http_info(opts = {}) click to toggle source

@param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7551
def api_hooks_triggers_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_hooks_triggers_get ...'
  end
  # resource path
  local_var_path = '/api/hooks/triggers'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_hooks_triggers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7584
def api_messages_batch_delete_delete(opts = {})
  api_messages_batch_delete_delete_with_http_info(opts)
  nil
end
api_messages_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7592
def api_messages_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/messages/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_messages_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7625
def api_messages_batch_edit_patch(opts = {})
  api_messages_batch_edit_patch_with_http_info(opts)
  nil
end
api_messages_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7633
def api_messages_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/messages/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_messages_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7666
def api_messages_batch_edit_put(opts = {})
  api_messages_batch_edit_put_with_http_info(opts)
  nil
end
api_messages_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7674
def api_messages_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/messages/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_messages_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7707
def api_messages_batch_new_post(opts = {})
  api_messages_batch_new_post_with_http_info(opts)
  nil
end
api_messages_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7715
def api_messages_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/messages/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_messages_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7748
def api_messages_get(opts = {})
  api_messages_get_with_http_info(opts)
  nil
end
api_messages_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7756
def api_messages_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_get ...'
  end
  # resource path
  local_var_path = '/api/messages'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_messages_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7790
def api_messages_id_delete_delete(id, opts = {})
  api_messages_id_delete_delete_with_http_info(id, opts)
  nil
end
api_messages_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7799
def api_messages_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_messages_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_messages_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/messages/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_messages_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7841
def api_messages_id_edit_patch(id, opts = {})
  api_messages_id_edit_patch_with_http_info(id, opts)
  nil
end
api_messages_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7850
def api_messages_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_messages_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_messages_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/messages/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_messages_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7892
def api_messages_id_edit_put(id, opts = {})
  api_messages_id_edit_put_with_http_info(id, opts)
  nil
end
api_messages_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7901
def api_messages_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_messages_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_messages_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/messages/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_messages_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7943
def api_messages_id_get(id, opts = {})
  api_messages_id_get_with_http_info(id, opts)
  nil
end
api_messages_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 7952
def api_messages_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_messages_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_messages_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/messages/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_messages_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_messages_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 7993
def api_messages_new_post(opts = {})
  api_messages_new_post_with_http_info(opts)
  nil
end
api_messages_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8001
def api_messages_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_messages_new_post ...'
  end
  # resource path
  local_var_path = '/api/messages/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_messages_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8034
def api_notes_batch_delete_delete(opts = {})
  api_notes_batch_delete_delete_with_http_info(opts)
  nil
end
api_notes_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8042
def api_notes_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/notes/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_notes_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8075
def api_notes_batch_edit_patch(opts = {})
  api_notes_batch_edit_patch_with_http_info(opts)
  nil
end
api_notes_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8083
def api_notes_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/notes/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_notes_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8116
def api_notes_batch_edit_put(opts = {})
  api_notes_batch_edit_put_with_http_info(opts)
  nil
end
api_notes_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8124
def api_notes_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/notes/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notes_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8157
def api_notes_batch_new_post(opts = {})
  api_notes_batch_new_post_with_http_info(opts)
  nil
end
api_notes_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8165
def api_notes_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/notes/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notes_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8198
def api_notes_get(opts = {})
  api_notes_get_with_http_info(opts)
  nil
end
api_notes_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8206
def api_notes_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_get ...'
  end
  # resource path
  local_var_path = '/api/notes'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8240
def api_notes_id_delete_delete(id, opts = {})
  api_notes_id_delete_delete_with_http_info(id, opts)
  nil
end
api_notes_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8249
def api_notes_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_notes_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_notes_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/notes/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_notes_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8291
def api_notes_id_edit_patch(id, opts = {})
  api_notes_id_edit_patch_with_http_info(id, opts)
  nil
end
api_notes_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8300
def api_notes_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_notes_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_notes_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/notes/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_notes_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8342
def api_notes_id_edit_put(id, opts = {})
  api_notes_id_edit_put_with_http_info(id, opts)
  nil
end
api_notes_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8351
def api_notes_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_notes_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_notes_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/notes/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notes_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8393
def api_notes_id_get(id, opts = {})
  api_notes_id_get_with_http_info(id, opts)
  nil
end
api_notes_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8402
def api_notes_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_notes_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_notes_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/notes/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notes_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notes_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8443
def api_notes_new_post(opts = {})
  api_notes_new_post_with_http_info(opts)
  nil
end
api_notes_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8451
def api_notes_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notes_new_post ...'
  end
  # resource path
  local_var_path = '/api/notes/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notes_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8484
def api_notifications_batch_delete_delete(opts = {})
  api_notifications_batch_delete_delete_with_http_info(opts)
  nil
end
api_notifications_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8492
def api_notifications_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/notifications/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_notifications_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8525
def api_notifications_batch_edit_patch(opts = {})
  api_notifications_batch_edit_patch_with_http_info(opts)
  nil
end
api_notifications_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8533
def api_notifications_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/notifications/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_notifications_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8566
def api_notifications_batch_edit_put(opts = {})
  api_notifications_batch_edit_put_with_http_info(opts)
  nil
end
api_notifications_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8574
def api_notifications_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/notifications/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notifications_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8607
def api_notifications_batch_new_post(opts = {})
  api_notifications_batch_new_post_with_http_info(opts)
  nil
end
api_notifications_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8615
def api_notifications_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/notifications/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notifications_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8648
def api_notifications_get(opts = {})
  api_notifications_get_with_http_info(opts)
  nil
end
api_notifications_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8656
def api_notifications_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_get ...'
  end
  # resource path
  local_var_path = '/api/notifications'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notifications_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8690
def api_notifications_id_delete_delete(id, opts = {})
  api_notifications_id_delete_delete_with_http_info(id, opts)
  nil
end
api_notifications_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8699
def api_notifications_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_notifications_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_notifications_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/notifications/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_notifications_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8741
def api_notifications_id_edit_patch(id, opts = {})
  api_notifications_id_edit_patch_with_http_info(id, opts)
  nil
end
api_notifications_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8750
def api_notifications_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_notifications_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_notifications_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/notifications/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_notifications_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8792
def api_notifications_id_edit_put(id, opts = {})
  api_notifications_id_edit_put_with_http_info(id, opts)
  nil
end
api_notifications_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8801
def api_notifications_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_notifications_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_notifications_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/notifications/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notifications_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8843
def api_notifications_id_get(id, opts = {})
  api_notifications_id_get_with_http_info(id, opts)
  nil
end
api_notifications_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8852
def api_notifications_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_notifications_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_notifications_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/notifications/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notifications_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_notifications_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8893
def api_notifications_new_post(opts = {})
  api_notifications_new_post_with_http_info(opts)
  nil
end
api_notifications_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8901
def api_notifications_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_notifications_new_post ...'
  end
  # resource path
  local_var_path = '/api/notifications/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_notifications_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8934
def api_pages_batch_delete_delete(opts = {})
  api_pages_batch_delete_delete_with_http_info(opts)
  nil
end
api_pages_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8942
def api_pages_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/pages/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_pages_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 8975
def api_pages_batch_edit_patch(opts = {})
  api_pages_batch_edit_patch_with_http_info(opts)
  nil
end
api_pages_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 8983
def api_pages_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/pages/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_pages_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9016
def api_pages_batch_edit_put(opts = {})
  api_pages_batch_edit_put_with_http_info(opts)
  nil
end
api_pages_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9024
def api_pages_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/pages/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_pages_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9057
def api_pages_batch_new_post(opts = {})
  api_pages_batch_new_post_with_http_info(opts)
  nil
end
api_pages_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9065
def api_pages_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/pages/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_pages_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_get(opts = {}) click to toggle source

Obtains a list of pages. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9098
def api_pages_get(opts = {})
  api_pages_get_with_http_info(opts)
  nil
end
api_pages_get_with_http_info(opts = {}) click to toggle source

Obtains a list of pages. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9106
def api_pages_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_get ...'
  end
  # resource path
  local_var_path = '/api/pages'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_pages_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9140
def api_pages_id_delete_delete(id, opts = {})
  api_pages_id_delete_delete_with_http_info(id, opts)
  nil
end
api_pages_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9149
def api_pages_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_pages_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_pages_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/pages/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_pages_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9191
def api_pages_id_edit_patch(id, opts = {})
  api_pages_id_edit_patch_with_http_info(id, opts)
  nil
end
api_pages_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9200
def api_pages_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_pages_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_pages_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/pages/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_pages_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9242
def api_pages_id_edit_put(id, opts = {})
  api_pages_id_edit_put_with_http_info(id, opts)
  nil
end
api_pages_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9251
def api_pages_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_pages_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_pages_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/pages/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_pages_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9293
def api_pages_id_get(id, opts = {})
  api_pages_id_get_with_http_info(id, opts)
  nil
end
api_pages_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9302
def api_pages_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_pages_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_pages_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/pages/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_pages_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_pages_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9343
def api_pages_new_post(opts = {})
  api_pages_new_post_with_http_info(opts)
  nil
end
api_pages_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9351
def api_pages_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_pages_new_post ...'
  end
  # resource path
  local_var_path = '/api/pages/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_pages_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_actions_types_get(opts = {}) click to toggle source

Return array of available point action types. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9384
def api_points_actions_types_get(opts = {})
  api_points_actions_types_get_with_http_info(opts)
  nil
end
api_points_actions_types_get_with_http_info(opts = {}) click to toggle source

Return array of available point action types. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9392
def api_points_actions_types_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_actions_types_get ...'
  end
  # resource path
  local_var_path = '/api/points/actions/types'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_actions_types_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9425
def api_points_batch_delete_delete(opts = {})
  api_points_batch_delete_delete_with_http_info(opts)
  nil
end
api_points_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9433
def api_points_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/points/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_points_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9466
def api_points_batch_edit_patch(opts = {})
  api_points_batch_edit_patch_with_http_info(opts)
  nil
end
api_points_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9474
def api_points_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/points/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_points_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9507
def api_points_batch_edit_put(opts = {})
  api_points_batch_edit_put_with_http_info(opts)
  nil
end
api_points_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9515
def api_points_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/points/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9548
def api_points_batch_new_post(opts = {})
  api_points_batch_new_post_with_http_info(opts)
  nil
end
api_points_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9556
def api_points_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/points/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9589
def api_points_get(opts = {})
  api_points_get_with_http_info(opts)
  nil
end
api_points_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9597
def api_points_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_get ...'
  end
  # resource path
  local_var_path = '/api/points'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9631
def api_points_id_delete_delete(id, opts = {})
  api_points_id_delete_delete_with_http_info(id, opts)
  nil
end
api_points_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9640
def api_points_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_points_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_points_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_points_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9682
def api_points_id_edit_patch(id, opts = {})
  api_points_id_edit_patch_with_http_info(id, opts)
  nil
end
api_points_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9691
def api_points_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_points_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_points_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_points_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9733
def api_points_id_edit_put(id, opts = {})
  api_points_id_edit_put_with_http_info(id, opts)
  nil
end
api_points_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9742
def api_points_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_points_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_points_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9784
def api_points_id_get(id, opts = {})
  api_points_id_get_with_http_info(id, opts)
  nil
end
api_points_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9793
def api_points_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_points_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_points_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9834
def api_points_new_post(opts = {})
  api_points_new_post_with_http_info(opts)
  nil
end
api_points_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9842
def api_points_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_new_post ...'
  end
  # resource path
  local_var_path = '/api/points/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9875
def api_points_triggers_batch_delete_delete(opts = {})
  api_points_triggers_batch_delete_delete_with_http_info(opts)
  nil
end
api_points_triggers_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9883
def api_points_triggers_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/points/triggers/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_points_triggers_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9916
def api_points_triggers_batch_edit_patch(opts = {})
  api_points_triggers_batch_edit_patch_with_http_info(opts)
  nil
end
api_points_triggers_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9924
def api_points_triggers_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/points/triggers/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_points_triggers_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9957
def api_points_triggers_batch_edit_put(opts = {})
  api_points_triggers_batch_edit_put_with_http_info(opts)
  nil
end
api_points_triggers_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 9965
def api_points_triggers_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/points/triggers/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_triggers_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 9998
def api_points_triggers_batch_new_post(opts = {})
  api_points_triggers_batch_new_post_with_http_info(opts)
  nil
end
api_points_triggers_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10006
def api_points_triggers_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/points/triggers/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_triggers_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_events_types_get(opts = {}) click to toggle source

Return array of available point trigger event types. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10039
def api_points_triggers_events_types_get(opts = {})
  api_points_triggers_events_types_get_with_http_info(opts)
  nil
end
api_points_triggers_events_types_get_with_http_info(opts = {}) click to toggle source

Return array of available point trigger event types. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10047
def api_points_triggers_events_types_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_events_types_get ...'
  end
  # resource path
  local_var_path = '/api/points/triggers/events/types'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_triggers_events_types_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10080
def api_points_triggers_get(opts = {})
  api_points_triggers_get_with_http_info(opts)
  nil
end
api_points_triggers_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10088
def api_points_triggers_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_get ...'
  end
  # resource path
  local_var_path = '/api/points/triggers'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_triggers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10122
def api_points_triggers_id_delete_delete(id, opts = {})
  api_points_triggers_id_delete_delete_with_http_info(id, opts)
  nil
end
api_points_triggers_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10131
def api_points_triggers_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_points_triggers_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_points_triggers_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/triggers/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_points_triggers_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10173
def api_points_triggers_id_edit_patch(id, opts = {})
  api_points_triggers_id_edit_patch_with_http_info(id, opts)
  nil
end
api_points_triggers_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10182
def api_points_triggers_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_points_triggers_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_points_triggers_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/triggers/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_points_triggers_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10224
def api_points_triggers_id_edit_put(id, opts = {})
  api_points_triggers_id_edit_put_with_http_info(id, opts)
  nil
end
api_points_triggers_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10233
def api_points_triggers_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_points_triggers_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_points_triggers_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/triggers/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_triggers_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10275
def api_points_triggers_id_get(id, opts = {})
  api_points_triggers_id_get_with_http_info(id, opts)
  nil
end
api_points_triggers_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10284
def api_points_triggers_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_points_triggers_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_points_triggers_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/triggers/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_triggers_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10325
def api_points_triggers_new_post(opts = {})
  api_points_triggers_new_post_with_http_info(opts)
  nil
end
api_points_triggers_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10333
def api_points_triggers_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_new_post ...'
  end
  # resource path
  local_var_path = '/api/points/triggers/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_points_triggers_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_points_triggers_trigger_id_events_delete_delete(trigger_id, opts = {}) click to toggle source

Delete events from a point trigger. @param trigger_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10367
def api_points_triggers_trigger_id_events_delete_delete(trigger_id, opts = {})
  api_points_triggers_trigger_id_events_delete_delete_with_http_info(trigger_id, opts)
  nil
end
api_points_triggers_trigger_id_events_delete_delete_with_http_info(trigger_id, opts = {}) click to toggle source

Delete events from a point trigger. @param trigger_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10376
def api_points_triggers_trigger_id_events_delete_delete_with_http_info(trigger_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_points_triggers_trigger_id_events_delete_delete ...'
  end
  # verify the required parameter 'trigger_id' is set
  if @api_client.config.client_side_validation && trigger_id.nil?
    fail ArgumentError, "Missing the required parameter 'trigger_id' when calling DefaultApi.api_points_triggers_trigger_id_events_delete_delete"
  end
  if @api_client.config.client_side_validation && trigger_id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'trigger_id' when calling DefaultApi.api_points_triggers_trigger_id_events_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/points/triggers/{triggerId}/events/delete'.sub('{' + 'triggerId' + '}', trigger_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_points_triggers_trigger_id_events_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_reports_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10417
def api_reports_get(opts = {})
  api_reports_get_with_http_info(opts)
  nil
end
api_reports_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10425
def api_reports_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_reports_get ...'
  end
  # resource path
  local_var_path = '/api/reports'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_reports_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_reports_id_get(id, opts = {}) click to toggle source

Obtains a compiled report. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10459
def api_reports_id_get(id, opts = {})
  api_reports_id_get_with_http_info(id, opts)
  nil
end
api_reports_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a compiled report. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10468
def api_reports_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_reports_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_reports_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_reports_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/reports/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_reports_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10509
def api_roles_batch_delete_delete(opts = {})
  api_roles_batch_delete_delete_with_http_info(opts)
  nil
end
api_roles_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10517
def api_roles_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/roles/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_roles_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10550
def api_roles_batch_edit_patch(opts = {})
  api_roles_batch_edit_patch_with_http_info(opts)
  nil
end
api_roles_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10558
def api_roles_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/roles/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_roles_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10591
def api_roles_batch_edit_put(opts = {})
  api_roles_batch_edit_put_with_http_info(opts)
  nil
end
api_roles_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10599
def api_roles_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/roles/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_roles_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10632
def api_roles_batch_new_post(opts = {})
  api_roles_batch_new_post_with_http_info(opts)
  nil
end
api_roles_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10640
def api_roles_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/roles/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_roles_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10673
def api_roles_get(opts = {})
  api_roles_get_with_http_info(opts)
  nil
end
api_roles_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10681
def api_roles_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_get ...'
  end
  # resource path
  local_var_path = '/api/roles'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_roles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10715
def api_roles_id_delete_delete(id, opts = {})
  api_roles_id_delete_delete_with_http_info(id, opts)
  nil
end
api_roles_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10724
def api_roles_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_roles_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_roles_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/roles/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_roles_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10766
def api_roles_id_edit_patch(id, opts = {})
  api_roles_id_edit_patch_with_http_info(id, opts)
  nil
end
api_roles_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10775
def api_roles_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_roles_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_roles_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/roles/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_roles_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10817
def api_roles_id_edit_put(id, opts = {})
  api_roles_id_edit_put_with_http_info(id, opts)
  nil
end
api_roles_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10826
def api_roles_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_roles_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_roles_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/roles/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_roles_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10868
def api_roles_id_get(id, opts = {})
  api_roles_id_get_with_http_info(id, opts)
  nil
end
api_roles_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10877
def api_roles_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_roles_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_roles_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/roles/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_roles_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_roles_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10918
def api_roles_new_post(opts = {})
  api_roles_new_post_with_http_info(opts)
  nil
end
api_roles_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10926
def api_roles_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_roles_new_post ...'
  end
  # resource path
  local_var_path = '/api/roles/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_roles_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 10959
def api_segments_batch_delete_delete(opts = {})
  api_segments_batch_delete_delete_with_http_info(opts)
  nil
end
api_segments_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 10967
def api_segments_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/segments/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_segments_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11000
def api_segments_batch_edit_patch(opts = {})
  api_segments_batch_edit_patch_with_http_info(opts)
  nil
end
api_segments_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11008
def api_segments_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/segments/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_segments_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11041
def api_segments_batch_edit_put(opts = {})
  api_segments_batch_edit_put_with_http_info(opts)
  nil
end
api_segments_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11049
def api_segments_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/segments/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11082
def api_segments_batch_new_post(opts = {})
  api_segments_batch_new_post_with_http_info(opts)
  nil
end
api_segments_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11090
def api_segments_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/segments/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11123
def api_segments_get(opts = {})
  api_segments_get_with_http_info(opts)
  nil
end
api_segments_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11131
def api_segments_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_get ...'
  end
  # resource path
  local_var_path = '/api/segments'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_id_contact_lead_id_add_post(id, lead_id, opts = {}) click to toggle source

Adds a lead to a list. @param id @param lead_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11166
def api_segments_id_contact_lead_id_add_post(id, lead_id, opts = {})
  api_segments_id_contact_lead_id_add_post_with_http_info(id, lead_id, opts)
  nil
end
api_segments_id_contact_lead_id_add_post_with_http_info(id, lead_id, opts = {}) click to toggle source

Adds a lead to a list. @param id @param lead_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11176
def api_segments_id_contact_lead_id_add_post_with_http_info(id, lead_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_id_contact_lead_id_add_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_segments_id_contact_lead_id_add_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_segments_id_contact_lead_id_add_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'lead_id' is set
  if @api_client.config.client_side_validation && lead_id.nil?
    fail ArgumentError, "Missing the required parameter 'lead_id' when calling DefaultApi.api_segments_id_contact_lead_id_add_post"
  end
  # resource path
  local_var_path = '/api/segments/{id}/contact/{leadId}/add'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'leadId' + '}', lead_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_id_contact_lead_id_add_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_id_contact_lead_id_remove_post(id, lead_id, opts = {}) click to toggle source

Removes given contact from a list. @param id @param lead_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11223
def api_segments_id_contact_lead_id_remove_post(id, lead_id, opts = {})
  api_segments_id_contact_lead_id_remove_post_with_http_info(id, lead_id, opts)
  nil
end
api_segments_id_contact_lead_id_remove_post_with_http_info(id, lead_id, opts = {}) click to toggle source

Removes given contact from a list. @param id @param lead_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11233
def api_segments_id_contact_lead_id_remove_post_with_http_info(id, lead_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_id_contact_lead_id_remove_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_segments_id_contact_lead_id_remove_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_segments_id_contact_lead_id_remove_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'lead_id' is set
  if @api_client.config.client_side_validation && lead_id.nil?
    fail ArgumentError, "Missing the required parameter 'lead_id' when calling DefaultApi.api_segments_id_contact_lead_id_remove_post"
  end
  # resource path
  local_var_path = '/api/segments/{id}/contact/{leadId}/remove'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'leadId' + '}', lead_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_id_contact_lead_id_remove_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_id_contacts_add_post(id, opts = {}) click to toggle source

Adds a leads to a list. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11279
def api_segments_id_contacts_add_post(id, opts = {})
  api_segments_id_contacts_add_post_with_http_info(id, opts)
  nil
end
api_segments_id_contacts_add_post_with_http_info(id, opts = {}) click to toggle source

Adds a leads to a list. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11288
def api_segments_id_contacts_add_post_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_id_contacts_add_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_segments_id_contacts_add_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_segments_id_contacts_add_post, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/segments/{id}/contacts/add'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_id_contacts_add_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11330
def api_segments_id_delete_delete(id, opts = {})
  api_segments_id_delete_delete_with_http_info(id, opts)
  nil
end
api_segments_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11339
def api_segments_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_segments_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_segments_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/segments/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_segments_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11381
def api_segments_id_edit_patch(id, opts = {})
  api_segments_id_edit_patch_with_http_info(id, opts)
  nil
end
api_segments_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11390
def api_segments_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_segments_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_segments_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/segments/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_segments_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11432
def api_segments_id_edit_put(id, opts = {})
  api_segments_id_edit_put_with_http_info(id, opts)
  nil
end
api_segments_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11441
def api_segments_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_segments_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_segments_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/segments/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11483
def api_segments_id_get(id, opts = {})
  api_segments_id_get_with_http_info(id, opts)
  nil
end
api_segments_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11492
def api_segments_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_segments_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_segments_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/segments/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_segments_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11533
def api_segments_new_post(opts = {})
  api_segments_new_post_with_http_info(opts)
  nil
end
api_segments_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11541
def api_segments_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_segments_new_post ...'
  end
  # resource path
  local_var_path = '/api/segments/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_segments_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11574
def api_smses_batch_delete_delete(opts = {})
  api_smses_batch_delete_delete_with_http_info(opts)
  nil
end
api_smses_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11582
def api_smses_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/smses/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_smses_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11615
def api_smses_batch_edit_patch(opts = {})
  api_smses_batch_edit_patch_with_http_info(opts)
  nil
end
api_smses_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11623
def api_smses_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/smses/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_smses_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11656
def api_smses_batch_edit_put(opts = {})
  api_smses_batch_edit_put_with_http_info(opts)
  nil
end
api_smses_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11664
def api_smses_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/smses/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_smses_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11697
def api_smses_batch_new_post(opts = {})
  api_smses_batch_new_post_with_http_info(opts)
  nil
end
api_smses_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11705
def api_smses_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/smses/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_smses_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11738
def api_smses_get(opts = {})
  api_smses_get_with_http_info(opts)
  nil
end
api_smses_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11746
def api_smses_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_get ...'
  end
  # resource path
  local_var_path = '/api/smses'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_smses_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_id_contact_contact_id_send_get(id, contact_id, opts = {}) click to toggle source

@param id @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11780
def api_smses_id_contact_contact_id_send_get(id, contact_id, opts = {})
  api_smses_id_contact_contact_id_send_get_with_http_info(id, contact_id, opts)
  nil
end
api_smses_id_contact_contact_id_send_get_with_http_info(id, contact_id, opts = {}) click to toggle source

@param id @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11789
def api_smses_id_contact_contact_id_send_get_with_http_info(id, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_id_contact_contact_id_send_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_smses_id_contact_contact_id_send_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_smses_id_contact_contact_id_send_get, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_smses_id_contact_contact_id_send_get"
  end
  # resource path
  local_var_path = '/api/smses/{id}/contact/{contactId}/send'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_smses_id_contact_contact_id_send_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11835
def api_smses_id_delete_delete(id, opts = {})
  api_smses_id_delete_delete_with_http_info(id, opts)
  nil
end
api_smses_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11844
def api_smses_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_smses_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_smses_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/smses/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_smses_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11886
def api_smses_id_edit_patch(id, opts = {})
  api_smses_id_edit_patch_with_http_info(id, opts)
  nil
end
api_smses_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11895
def api_smses_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_smses_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_smses_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/smses/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_smses_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11937
def api_smses_id_edit_put(id, opts = {})
  api_smses_id_edit_put_with_http_info(id, opts)
  nil
end
api_smses_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11946
def api_smses_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_smses_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_smses_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/smses/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_smses_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 11988
def api_smses_id_get(id, opts = {})
  api_smses_id_get_with_http_info(id, opts)
  nil
end
api_smses_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 11997
def api_smses_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_smses_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_smses_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/smses/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_smses_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_smses_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12038
def api_smses_new_post(opts = {})
  api_smses_new_post_with_http_info(opts)
  nil
end
api_smses_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12046
def api_smses_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_smses_new_post ...'
  end
  # resource path
  local_var_path = '/api/smses/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_smses_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12079
def api_stages_batch_delete_delete(opts = {})
  api_stages_batch_delete_delete_with_http_info(opts)
  nil
end
api_stages_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12087
def api_stages_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/stages/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_stages_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12120
def api_stages_batch_edit_patch(opts = {})
  api_stages_batch_edit_patch_with_http_info(opts)
  nil
end
api_stages_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12128
def api_stages_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/stages/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_stages_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12161
def api_stages_batch_edit_put(opts = {})
  api_stages_batch_edit_put_with_http_info(opts)
  nil
end
api_stages_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12169
def api_stages_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/stages/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stages_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12202
def api_stages_batch_new_post(opts = {})
  api_stages_batch_new_post_with_http_info(opts)
  nil
end
api_stages_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12210
def api_stages_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/stages/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stages_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12243
def api_stages_get(opts = {})
  api_stages_get_with_http_info(opts)
  nil
end
api_stages_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12251
def api_stages_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_get ...'
  end
  # resource path
  local_var_path = '/api/stages'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stages_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_id_contact_contact_id_add_post(id, contact_id, opts = {}) click to toggle source

Adds a contact to a list. @param id @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12286
def api_stages_id_contact_contact_id_add_post(id, contact_id, opts = {})
  api_stages_id_contact_contact_id_add_post_with_http_info(id, contact_id, opts)
  nil
end
api_stages_id_contact_contact_id_add_post_with_http_info(id, contact_id, opts = {}) click to toggle source

Adds a contact to a list. @param id @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12296
def api_stages_id_contact_contact_id_add_post_with_http_info(id, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_id_contact_contact_id_add_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_stages_id_contact_contact_id_add_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_stages_id_contact_contact_id_add_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_stages_id_contact_contact_id_add_post"
  end
  # resource path
  local_var_path = '/api/stages/{id}/contact/{contactId}/add'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stages_id_contact_contact_id_add_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_id_contact_contact_id_remove_post(id, contact_id, opts = {}) click to toggle source

Removes given contact from a list. @param id @param contact_id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12343
def api_stages_id_contact_contact_id_remove_post(id, contact_id, opts = {})
  api_stages_id_contact_contact_id_remove_post_with_http_info(id, contact_id, opts)
  nil
end
api_stages_id_contact_contact_id_remove_post_with_http_info(id, contact_id, opts = {}) click to toggle source

Removes given contact from a list. @param id @param contact_id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12353
def api_stages_id_contact_contact_id_remove_post_with_http_info(id, contact_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_id_contact_contact_id_remove_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_stages_id_contact_contact_id_remove_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_stages_id_contact_contact_id_remove_post, must conform to the pattern /\\d+/."
  end

  # verify the required parameter 'contact_id' is set
  if @api_client.config.client_side_validation && contact_id.nil?
    fail ArgumentError, "Missing the required parameter 'contact_id' when calling DefaultApi.api_stages_id_contact_contact_id_remove_post"
  end
  # resource path
  local_var_path = '/api/stages/{id}/contact/{contactId}/remove'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'contactId' + '}', contact_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stages_id_contact_contact_id_remove_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12399
def api_stages_id_delete_delete(id, opts = {})
  api_stages_id_delete_delete_with_http_info(id, opts)
  nil
end
api_stages_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12408
def api_stages_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_stages_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_stages_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/stages/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_stages_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12450
def api_stages_id_edit_patch(id, opts = {})
  api_stages_id_edit_patch_with_http_info(id, opts)
  nil
end
api_stages_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12459
def api_stages_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_stages_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_stages_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/stages/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_stages_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12501
def api_stages_id_edit_put(id, opts = {})
  api_stages_id_edit_put_with_http_info(id, opts)
  nil
end
api_stages_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12510
def api_stages_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_stages_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_stages_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/stages/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stages_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12552
def api_stages_id_get(id, opts = {})
  api_stages_id_get_with_http_info(id, opts)
  nil
end
api_stages_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12561
def api_stages_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_stages_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_stages_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/stages/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stages_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stages_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12602
def api_stages_new_post(opts = {})
  api_stages_new_post_with_http_info(opts)
  nil
end
api_stages_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12610
def api_stages_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stages_new_post ...'
  end
  # resource path
  local_var_path = '/api/stages/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stages_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_stats_table_get(table, opts = {}) click to toggle source

Lists stats for a database table. @param table @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12644
def api_stats_table_get(table, opts = {})
  api_stats_table_get_with_http_info(table, opts)
  nil
end
api_stats_table_get_with_http_info(table, opts = {}) click to toggle source

Lists stats for a database table. @param table @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12653
def api_stats_table_get_with_http_info(table, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_stats_table_get ...'
  end
  # verify the required parameter 'table' is set
  if @api_client.config.client_side_validation && table.nil?
    fail ArgumentError, "Missing the required parameter 'table' when calling DefaultApi.api_stats_table_get"
  end
  # resource path
  local_var_path = '/api/stats/{table}'.sub('{' + 'table' + '}', table.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_stats_table_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12690
def api_tags_batch_delete_delete(opts = {})
  api_tags_batch_delete_delete_with_http_info(opts)
  nil
end
api_tags_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12698
def api_tags_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/tags/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_tags_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12731
def api_tags_batch_edit_patch(opts = {})
  api_tags_batch_edit_patch_with_http_info(opts)
  nil
end
api_tags_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12739
def api_tags_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/tags/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_tags_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12772
def api_tags_batch_edit_put(opts = {})
  api_tags_batch_edit_put_with_http_info(opts)
  nil
end
api_tags_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12780
def api_tags_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/tags/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tags_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12813
def api_tags_batch_new_post(opts = {})
  api_tags_batch_new_post_with_http_info(opts)
  nil
end
api_tags_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12821
def api_tags_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/tags/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tags_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12854
def api_tags_get(opts = {})
  api_tags_get_with_http_info(opts)
  nil
end
api_tags_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12862
def api_tags_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_get ...'
  end
  # resource path
  local_var_path = '/api/tags'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tags_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12896
def api_tags_id_delete_delete(id, opts = {})
  api_tags_id_delete_delete_with_http_info(id, opts)
  nil
end
api_tags_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12905
def api_tags_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tags_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_tags_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/tags/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_tags_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12947
def api_tags_id_edit_patch(id, opts = {})
  api_tags_id_edit_patch_with_http_info(id, opts)
  nil
end
api_tags_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 12956
def api_tags_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tags_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_tags_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/tags/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_tags_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 12998
def api_tags_id_edit_put(id, opts = {})
  api_tags_id_edit_put_with_http_info(id, opts)
  nil
end
api_tags_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13007
def api_tags_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tags_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_tags_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/tags/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tags_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13049
def api_tags_id_get(id, opts = {})
  api_tags_id_get_with_http_info(id, opts)
  nil
end
api_tags_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13058
def api_tags_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tags_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_tags_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/tags/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tags_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tags_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13099
def api_tags_new_post(opts = {})
  api_tags_new_post_with_http_info(opts)
  nil
end
api_tags_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13107
def api_tags_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tags_new_post ...'
  end
  # resource path
  local_var_path = '/api/tags/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tags_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_themes_get(opts = {}) click to toggle source

List the folders (themes) in the /themes directory. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13140
def api_themes_get(opts = {})
  api_themes_get_with_http_info(opts)
  nil
end
api_themes_get_with_http_info(opts = {}) click to toggle source

List the folders (themes) in the /themes directory. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13148
def api_themes_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_themes_get ...'
  end
  # resource path
  local_var_path = '/api/themes'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_themes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_themes_new_post(opts = {}) click to toggle source

Accepts the zip file and installs the theme from it. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13181
def api_themes_new_post(opts = {})
  api_themes_new_post_with_http_info(opts)
  nil
end
api_themes_new_post_with_http_info(opts = {}) click to toggle source

Accepts the zip file and installs the theme from it. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13189
def api_themes_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_themes_new_post ...'
  end
  # resource path
  local_var_path = '/api/themes/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_themes_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_themes_theme_delete_delete(theme, opts = {}) click to toggle source

Delete a theme. @param theme @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13223
def api_themes_theme_delete_delete(theme, opts = {})
  api_themes_theme_delete_delete_with_http_info(theme, opts)
  nil
end
api_themes_theme_delete_delete_with_http_info(theme, opts = {}) click to toggle source

Delete a theme. @param theme @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13232
def api_themes_theme_delete_delete_with_http_info(theme, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_themes_theme_delete_delete ...'
  end
  # verify the required parameter 'theme' is set
  if @api_client.config.client_side_validation && theme.nil?
    fail ArgumentError, "Missing the required parameter 'theme' when calling DefaultApi.api_themes_theme_delete_delete"
  end
  # resource path
  local_var_path = '/api/themes/{theme}/delete'.sub('{' + 'theme' + '}', theme.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_themes_theme_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_themes_theme_get(theme, opts = {}) click to toggle source

Get zip file of a theme. @param theme @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13270
def api_themes_theme_get(theme, opts = {})
  api_themes_theme_get_with_http_info(theme, opts)
  nil
end
api_themes_theme_get_with_http_info(theme, opts = {}) click to toggle source

Get zip file of a theme. @param theme @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13279
def api_themes_theme_get_with_http_info(theme, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_themes_theme_get ...'
  end
  # verify the required parameter 'theme' is set
  if @api_client.config.client_side_validation && theme.nil?
    fail ArgumentError, "Missing the required parameter 'theme' when calling DefaultApi.api_themes_theme_get"
  end
  # resource path
  local_var_path = '/api/themes/{theme}'.sub('{' + 'theme' + '}', theme.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_themes_theme_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13316
def api_tweets_batch_delete_delete(opts = {})
  api_tweets_batch_delete_delete_with_http_info(opts)
  nil
end
api_tweets_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13324
def api_tweets_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/tweets/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_tweets_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13357
def api_tweets_batch_edit_patch(opts = {})
  api_tweets_batch_edit_patch_with_http_info(opts)
  nil
end
api_tweets_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13365
def api_tweets_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/tweets/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_tweets_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13398
def api_tweets_batch_edit_put(opts = {})
  api_tweets_batch_edit_put_with_http_info(opts)
  nil
end
api_tweets_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13406
def api_tweets_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/tweets/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tweets_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13439
def api_tweets_batch_new_post(opts = {})
  api_tweets_batch_new_post_with_http_info(opts)
  nil
end
api_tweets_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13447
def api_tweets_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/tweets/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tweets_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13480
def api_tweets_get(opts = {})
  api_tweets_get_with_http_info(opts)
  nil
end
api_tweets_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13488
def api_tweets_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_get ...'
  end
  # resource path
  local_var_path = '/api/tweets'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tweets_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13522
def api_tweets_id_delete_delete(id, opts = {})
  api_tweets_id_delete_delete_with_http_info(id, opts)
  nil
end
api_tweets_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13531
def api_tweets_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tweets_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_tweets_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/tweets/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_tweets_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13573
def api_tweets_id_edit_patch(id, opts = {})
  api_tweets_id_edit_patch_with_http_info(id, opts)
  nil
end
api_tweets_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13582
def api_tweets_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tweets_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_tweets_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/tweets/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_tweets_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_id_edit_put(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn't exist. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13624
def api_tweets_id_edit_put(id, opts = {})
  api_tweets_id_edit_put_with_http_info(id, opts)
  nil
end
api_tweets_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing entity or creates one on PUT if it doesn&#39;t exist. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13633
def api_tweets_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tweets_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_tweets_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/tweets/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tweets_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13675
def api_tweets_id_get(id, opts = {})
  api_tweets_id_get_with_http_info(id, opts)
  nil
end
api_tweets_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13684
def api_tweets_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_tweets_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_tweets_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/tweets/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tweets_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_tweets_new_post(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13725
def api_tweets_new_post(opts = {})
  api_tweets_new_post_with_http_info(opts)
  nil
end
api_tweets_new_post_with_http_info(opts = {}) click to toggle source

Creates a new entity. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13733
def api_tweets_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_tweets_new_post ...'
  end
  # resource path
  local_var_path = '/api/tweets/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_tweets_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_batch_delete_delete(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13766
def api_users_batch_delete_delete(opts = {})
  api_users_batch_delete_delete_with_http_info(opts)
  nil
end
api_users_batch_delete_delete_with_http_info(opts = {}) click to toggle source

Delete a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13774
def api_users_batch_delete_delete_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_batch_delete_delete ...'
  end
  # resource path
  local_var_path = '/api/users/batch/delete'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_users_batch_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_batch_edit_patch(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13807
def api_users_batch_edit_patch(opts = {})
  api_users_batch_edit_patch_with_http_info(opts)
  nil
end
api_users_batch_edit_patch_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13815
def api_users_batch_edit_patch_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_batch_edit_patch ...'
  end
  # resource path
  local_var_path = '/api/users/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_users_batch_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_batch_edit_put(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13848
def api_users_batch_edit_put(opts = {})
  api_users_batch_edit_put_with_http_info(opts)
  nil
end
api_users_batch_edit_put_with_http_info(opts = {}) click to toggle source

Edit a batch of entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13856
def api_users_batch_edit_put_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_batch_edit_put ...'
  end
  # resource path
  local_var_path = '/api/users/batch/edit'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_batch_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_batch_new_post(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13889
def api_users_batch_new_post(opts = {})
  api_users_batch_new_post_with_http_info(opts)
  nil
end
api_users_batch_new_post_with_http_info(opts = {}) click to toggle source

Create a batch of new entities. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13897
def api_users_batch_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_batch_new_post ...'
  end
  # resource path
  local_var_path = '/api/users/batch/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_batch_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_get(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13930
def api_users_get(opts = {})
  api_users_get_with_http_info(opts)
  nil
end
api_users_get_with_http_info(opts = {}) click to toggle source

Obtains a list of entities as defined by the API URL. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13938
def api_users_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_get ...'
  end
  # resource path
  local_var_path = '/api/users'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_id_delete_delete(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 13972
def api_users_id_delete_delete(id, opts = {})
  api_users_id_delete_delete_with_http_info(id, opts)
  nil
end
api_users_id_delete_delete_with_http_info(id, opts = {}) click to toggle source

Deletes an entity. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 13981
def api_users_id_delete_delete_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_delete_delete ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_users_id_delete_delete"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_users_id_delete_delete, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/users/{id}/delete'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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: DefaultApi#api_users_id_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_id_edit_patch(id, opts = {}) click to toggle source

Edits an existing user or creates a new one on PUT if not found. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 14023
def api_users_id_edit_patch(id, opts = {})
  api_users_id_edit_patch_with_http_info(id, opts)
  nil
end
api_users_id_edit_patch_with_http_info(id, opts = {}) click to toggle source

Edits an existing user or creates a new one on PUT if not found. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 14032
def api_users_id_edit_patch_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_edit_patch ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_users_id_edit_patch"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_users_id_edit_patch, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/users/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  data, status_code, headers = @api_client.call_api(:PATCH, 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: DefaultApi#api_users_id_edit_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_id_edit_put(id, opts = {}) click to toggle source

Edits an existing user or creates a new one on PUT if not found. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 14074
def api_users_id_edit_put(id, opts = {})
  api_users_id_edit_put_with_http_info(id, opts)
  nil
end
api_users_id_edit_put_with_http_info(id, opts = {}) click to toggle source

Edits an existing user or creates a new one on PUT if not found. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 14083
def api_users_id_edit_put_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_edit_put ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_users_id_edit_put"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_users_id_edit_put, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/users/{id}/edit'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_id_edit_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_id_get(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 14125
def api_users_id_get(id, opts = {})
  api_users_id_get_with_http_info(id, opts)
  nil
end
api_users_id_get_with_http_info(id, opts = {}) click to toggle source

Obtains a specific entity as defined by the API URL. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 14134
def api_users_id_get_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_get ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_users_id_get"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_users_id_get, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/users/{id}'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_id_permissioncheck_post(id, opts = {}) click to toggle source

Verifies if a user has permission(s) to a action. @param id @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 14176
def api_users_id_permissioncheck_post(id, opts = {})
  api_users_id_permissioncheck_post_with_http_info(id, opts)
  nil
end
api_users_id_permissioncheck_post_with_http_info(id, opts = {}) click to toggle source

Verifies if a user has permission(s) to a action. @param id @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 14185
def api_users_id_permissioncheck_post_with_http_info(id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_id_permissioncheck_post ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.api_users_id_permissioncheck_post"
  end
  if @api_client.config.client_side_validation && id !~ Regexp.new(/\\d+/)
    fail ArgumentError, "invalid value for 'id' when calling DefaultApi.api_users_id_permissioncheck_post, must conform to the pattern /\\d+/."
  end

  # resource path
  local_var_path = '/api/users/{id}/permissioncheck'.sub('{' + 'id' + '}', id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_id_permissioncheck_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_list_roles_get(opts = {}) click to toggle source

Obtains a list of roles for user edits. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 14226
def api_users_list_roles_get(opts = {})
  api_users_list_roles_get_with_http_info(opts)
  nil
end
api_users_list_roles_get_with_http_info(opts = {}) click to toggle source

Obtains a list of roles for user edits. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 14234
def api_users_list_roles_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_list_roles_get ...'
  end
  # resource path
  local_var_path = '/api/users/list/roles'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_list_roles_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_new_post(opts = {}) click to toggle source

Creates a new user. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 14267
def api_users_new_post(opts = {})
  api_users_new_post_with_http_info(opts)
  nil
end
api_users_new_post_with_http_info(opts = {}) click to toggle source

Creates a new user. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 14275
def api_users_new_post_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_new_post ...'
  end
  # resource path
  local_var_path = '/api/users/new'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_new_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
api_users_self_get(opts = {}) click to toggle source

Obtains the logged in user's data. @param [Hash] opts the optional parameters @return [nil]

# File lib/swagger_client/api/default_api.rb, line 14308
def api_users_self_get(opts = {})
  api_users_self_get_with_http_info(opts)
  nil
end
api_users_self_get_with_http_info(opts = {}) click to toggle source

Obtains the logged in user&#39;s data. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/swagger_client/api/default_api.rb, line 14316
def api_users_self_get_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: DefaultApi.api_users_self_get ...'
  end
  # resource path
  local_var_path = '/api/users/self'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['Basic']
  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)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: DefaultApi#api_users_self_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end