class SamplifyAPIClient::ProjectsApi

Attributes

api_client[RW]

Public Class Methods

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

Public Instance Methods

projects_buy(ext_project_id, payload, opts = {}) click to toggle source

buy projects @param ext_project_id @param payload @param [Hash] opts the optional parameters @return [BuyProject]

# File lib/samplify_api_client/api/projects_api.rb, line 27
def projects_buy(ext_project_id, payload, opts = {})
  data, _status_code, _headers = projects_buy_with_http_info(ext_project_id, payload, opts)
  data
end
projects_buy_with_http_info(ext_project_id, payload, opts = {}) click to toggle source

buy projects @param ext_project_id @param payload @param [Hash] opts the optional parameters @return [Array<(BuyProject, Fixnum, Hash)>] BuyProject data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 37
def projects_buy_with_http_info(ext_project_id, payload, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_buy ...'
  end
  # verify the required parameter 'ext_project_id' is set
  if @api_client.config.client_side_validation && ext_project_id.nil?
    fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling ProjectsApi.projects_buy"
  end
  # verify the required parameter 'payload' is set
  if @api_client.config.client_side_validation && payload.nil?
    fail ArgumentError, "Missing the required parameter 'payload' when calling ProjectsApi.projects_buy"
  end
  # resource path
  local_var_path = '/sample/v1/projects/{extProjectId}/buy'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.buyproject+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(payload)
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'BuyProject')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_buy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
projects_close(ext_project_id, opts = {}) click to toggle source

close projects @param ext_project_id @param [Hash] opts the optional parameters @return [ProjectAction]

# File lib/samplify_api_client/api/projects_api.rb, line 84
def projects_close(ext_project_id, opts = {})
  data, _status_code, _headers = projects_close_with_http_info(ext_project_id, opts)
  data
end
projects_close_with_http_info(ext_project_id, opts = {}) click to toggle source

close projects @param ext_project_id @param [Hash] opts the optional parameters @return [Array<(ProjectAction, Fixnum, Hash)>] ProjectAction data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 93
def projects_close_with_http_info(ext_project_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_close ...'
  end
  # verify the required parameter 'ext_project_id' is set
  if @api_client.config.client_side_validation && ext_project_id.nil?
    fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling ProjectsApi.projects_close"
  end
  # resource path
  local_var_path = '/sample/v1/projects/{extProjectId}/close'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.project.action+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ProjectAction')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_close\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
projects_create(payload, opts = {}) click to toggle source

create projects @param payload @param [Hash] opts the optional parameters @return [ProjectResponse]

# File lib/samplify_api_client/api/projects_api.rb, line 136
def projects_create(payload, opts = {})
  data, _status_code, _headers = projects_create_with_http_info(payload, opts)
  data
end
projects_create_with_http_info(payload, opts = {}) click to toggle source

create projects @param payload @param [Hash] opts the optional parameters @return [Array<(ProjectResponse, Fixnum, Hash)>] ProjectResponse data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 145
def projects_create_with_http_info(payload, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_create ...'
  end
  # verify the required parameter 'payload' is set
  if @api_client.config.client_side_validation && payload.nil?
    fail ArgumentError, "Missing the required parameter 'payload' when calling ProjectsApi.projects_create"
  end
  # resource path
  local_var_path = '/sample/v1/projects'

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.create+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(payload)
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ProjectResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
projects_get(ext_project_id, opts = {}) click to toggle source

get projects @param ext_project_id @param [Hash] opts the optional parameters @return [ProjectResponse]

# File lib/samplify_api_client/api/projects_api.rb, line 188
def projects_get(ext_project_id, opts = {})
  data, _status_code, _headers = projects_get_with_http_info(ext_project_id, opts)
  data
end
projects_get_report(ext_project_id, opts = {}) click to toggle source

getReport projects @param ext_project_id @param [Hash] opts the optional parameters @return [ProjectReport]

# File lib/samplify_api_client/api/projects_api.rb, line 240
def projects_get_report(ext_project_id, opts = {})
  data, _status_code, _headers = projects_get_report_with_http_info(ext_project_id, opts)
  data
end
projects_get_report_with_http_info(ext_project_id, opts = {}) click to toggle source

getReport projects @param ext_project_id @param [Hash] opts the optional parameters @return [Array<(ProjectReport, Fixnum, Hash)>] ProjectReport data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 249
def projects_get_report_with_http_info(ext_project_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_get_report ...'
  end
  # verify the required parameter 'ext_project_id' is set
  if @api_client.config.client_side_validation && ext_project_id.nil?
    fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling ProjectsApi.projects_get_report"
  end
  # resource path
  local_var_path = '/sample/v1/projects/{extProjectId}/report'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.projects.report+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ProjectReport')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_get_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
projects_get_reports(ext_project_id, opts = {}) click to toggle source

getReports projects @param ext_project_id Only return project with the given external project ID @param [Hash] opts the optional parameters @return [ProjectReports]

# File lib/samplify_api_client/api/projects_api.rb, line 292
def projects_get_reports(ext_project_id, opts = {})
  data, _status_code, _headers = projects_get_reports_with_http_info(ext_project_id, opts)
  data
end
projects_get_reports_with_http_info(ext_project_id, opts = {}) click to toggle source

getReports projects @param ext_project_id Only return project with the given external project ID @param [Hash] opts the optional parameters @return [Array<(ProjectReports, Fixnum, Hash)>] ProjectReports data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 301
def projects_get_reports_with_http_info(ext_project_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_get_reports ...'
  end
  # verify the required parameter 'ext_project_id' is set
  if @api_client.config.client_side_validation && ext_project_id.nil?
    fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling ProjectsApi.projects_get_reports"
  end
  # resource path
  local_var_path = '/sample/v1/projects/report'

  # query parameters
  query_params = {}
  query_params[:'extProjectId'] = ext_project_id

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.projects.reports+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ProjectReports')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_get_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
projects_get_with_http_info(ext_project_id, opts = {}) click to toggle source

get projects @param ext_project_id @param [Hash] opts the optional parameters @return [Array<(ProjectResponse, Fixnum, Hash)>] ProjectResponse data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 197
def projects_get_with_http_info(ext_project_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_get ...'
  end
  # verify the required parameter 'ext_project_id' is set
  if @api_client.config.client_side_validation && ext_project_id.nil?
    fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling ProjectsApi.projects_get"
  end
  # resource path
  local_var_path = '/sample/v1/projects/{extProjectId}'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.create+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ProjectResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
projects_invoices(ext_project_id, opts = {}) click to toggle source

invoices projects @param ext_project_id @param [Hash] opts the optional parameters @return [nil]

# File lib/samplify_api_client/api/projects_api.rb, line 403
def projects_invoices(ext_project_id, opts = {})
  projects_invoices_with_http_info(ext_project_id, opts)
  nil
end
projects_invoices_with_http_info(ext_project_id, opts = {}) click to toggle source

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

# File lib/samplify_api_client/api/projects_api.rb, line 412
def projects_invoices_with_http_info(ext_project_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_invoices ...'
  end
  # verify the required parameter 'ext_project_id' is set
  if @api_client.config.client_side_validation && ext_project_id.nil?
    fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling ProjectsApi.projects_invoices"
  end
  # resource path
  local_var_path = '/sample/v1/projects/{extProjectId}/invoices'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.app.error+json', 'text/plain'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

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

list projects @param [Hash] opts the optional parameters @option opts [String] :created_at return projects with createdAt start date @option opts [String] :ext_project_id Only return project with the given external project id @option opts [Integer] :limit Maximum number of projects to return (default to 10) @option opts [Integer] :offset The first zero-based offset project to return (default to 0) @option opts [String] :scope Only return projects within the given scope @option opts [Array<String>] :sort Sort the projects by the given key(s) @option opts [String] :state Only return projects with the given state @option opts [String] :title Only return projects with the given title @return [Projects]

# File lib/samplify_api_client/api/projects_api.rb, line 461
def projects_list(opts = {})
  data, _status_code, _headers = projects_list_with_http_info(opts)
  data
end
projects_list_with_http_info(opts = {}) click to toggle source

list projects @param [Hash] opts the optional parameters @option opts [String] :created_at return projects with createdAt start date @option opts [String] :ext_project_id Only return project with the given external project id @option opts [Integer] :limit Maximum number of projects to return @option opts [Integer] :offset The first zero-based offset project to return @option opts [String] :scope Only return projects within the given scope @option opts [Array<String>] :sort Sort the projects by the given key(s) @option opts [String] :state Only return projects with the given state @option opts [String] :title Only return projects with the given title @return [Array<(Projects, Fixnum, Hash)>] Projects data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 477
def projects_list_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_list ...'
  end
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ProjectsApi.projects_list, must be smaller than or equal to 1000.'
  end

  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ProjectsApi.projects_list, must be greater than or equal to 1.'
  end

  if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
    fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling ProjectsApi.projects_list, must be greater than or equal to 0.'
  end

  if @api_client.config.client_side_validation && opts[:'scope'] && !['application', 'user'].include?(opts[:'scope'])
    fail ArgumentError, 'invalid value for "scope", must be one of application, user'
  end
  # resource path
  local_var_path = '/sample/v1/projects'

  # query parameters
  query_params = {}
  query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
  query_params[:'extProjectId'] = opts[:'ext_project_id'] if !opts[:'ext_project_id'].nil?
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
  query_params[:'scope'] = opts[:'scope'] if !opts[:'scope'].nil?
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
  query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.projects+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Projects')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
projects_reconcile(ext_project_id, file, message, opts = {}) click to toggle source

reconcile projects @param ext_project_id @param file File @param message Message @param [Hash] opts the optional parameters @return [Reconcile]

# File lib/samplify_api_client/api/projects_api.rb, line 541
def projects_reconcile(ext_project_id, file, message, opts = {})
  data, _status_code, _headers = projects_reconcile_with_http_info(ext_project_id, file, message, opts)
  data
end
projects_reconcile_with_http_info(ext_project_id, file, message, opts = {}) click to toggle source

reconcile projects @param ext_project_id @param file File @param message Message @param [Hash] opts the optional parameters @return [Array<(Reconcile, Fixnum, Hash)>] Reconcile data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 552
def projects_reconcile_with_http_info(ext_project_id, file, message, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_reconcile ...'
  end
  # verify the required parameter 'ext_project_id' is set
  if @api_client.config.client_side_validation && ext_project_id.nil?
    fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling ProjectsApi.projects_reconcile"
  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 ProjectsApi.projects_reconcile"
  end
  # verify the required parameter 'message' is set
  if @api_client.config.client_side_validation && message.nil?
    fail ArgumentError, "Missing the required parameter 'message' when calling ProjectsApi.projects_reconcile"
  end
  # resource path
  local_var_path = '/sample/v1/projects/{extProjectId}/reconcile'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.app.error+json', 'application/vnd.projects.reconcile+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])

  # form parameters
  form_params = {}
  form_params['file'] = file
  form_params['message'] = message

  # http body (model)
  post_body = nil
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Reconcile')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_reconcile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
projects_update(ext_project_id, payload, opts = {}) click to toggle source

update projects @param ext_project_id @param payload @param [Hash] opts the optional parameters @return [ProjectResponse]

# File lib/samplify_api_client/api/projects_api.rb, line 606
def projects_update(ext_project_id, payload, opts = {})
  data, _status_code, _headers = projects_update_with_http_info(ext_project_id, payload, opts)
  data
end
projects_update_with_http_info(ext_project_id, payload, opts = {}) click to toggle source

update projects @param ext_project_id @param payload @param [Hash] opts the optional parameters @return [Array<(ProjectResponse, Fixnum, Hash)>] ProjectResponse data, response status code and response headers

# File lib/samplify_api_client/api/projects_api.rb, line 616
def projects_update_with_http_info(ext_project_id, payload, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ProjectsApi.projects_update ...'
  end
  # verify the required parameter 'ext_project_id' is set
  if @api_client.config.client_side_validation && ext_project_id.nil?
    fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling ProjectsApi.projects_update"
  end
  # verify the required parameter 'payload' is set
  if @api_client.config.client_side_validation && payload.nil?
    fail ArgumentError, "Missing the required parameter 'payload' when calling ProjectsApi.projects_update"
  end
  # resource path
  local_var_path = '/sample/v1/projects/{extProjectId}'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/vnd.create+json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(payload)
  auth_names = ['jwt']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ProjectResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ProjectsApi#projects_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end