query stringlengths 7 9.55k | document stringlengths 10 363k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
Get the wrapup codes for a queue | def get_routing_queue_wrapupcodes(queue_id, opts = {})
data, _status_code, _headers = get_routing_queue_wrapupcodes_with_http_info(queue_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_routing_queue_wrapupcodes_with_http_info(queue_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: RoutingApi.get_routing_queue_wrapupcodes ...\"\n end\n \n \n # verify the required parameter 'queue_id' is set\n fail Argumen... | [
"0.593082",
"0.5857839",
"0.5729366",
"0.57112134",
"0.56663644",
"0.56494474",
"0.5646263",
"0.5646263",
"0.5624186",
"0.55112594",
"0.5492475",
"0.5487969",
"0.5431073",
"0.5431073",
"0.54277134",
"0.539099",
"0.53842854",
"0.5314806",
"0.5296389",
"0.5292231",
"0.5276259",... | 0.6597079 | 1 |
Get the wrapup codes for a queue | def get_routing_queue_wrapupcodes_with_http_info(queue_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_queue_wrapupcodes ..."
end
# verify the required parameter 'queue_id' is set
fail ArgumentError, "Missing the required parameter 'queue_id' when calling RoutingApi.get_routing_queue_wrapupcodes" if queue_id.nil?
# resource path
local_var_path = "/api/v2/routing/queues/{queueId}/wrapupcodes".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s)
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'WrapupCodeEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_queue_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_routing_queue_wrapupcodes(queue_id, opts = {})\n data, _status_code, _headers = get_routing_queue_wrapupcodes_with_http_info(queue_id, opts)\n return data\n end",
"def get_routing_queue_wrapupcodes(queue_id, opts = {})\n data, _status_code, _headers = get_routing_queue_wrapupcodes_with_... | [
"0.6597079",
"0.6597079",
"0.593082",
"0.5729366",
"0.57112134",
"0.56663644",
"0.56494474",
"0.5646263",
"0.5646263",
"0.5624186",
"0.55112594",
"0.5492475",
"0.5487969",
"0.5431073",
"0.5431073",
"0.54277134",
"0.539099",
"0.53842854",
"0.5314806",
"0.5296389",
"0.5292231",... | 0.5857839 | 3 |
Get list of queues. | def get_routing_queues(opts = {})
data, _status_code, _headers = get_routing_queues_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_queues(options ={})\r\n content = execute(:get, nil, { :comp => 'list' }.merge!(options), { :x_ms_version => \"2009-09-19\" })\r\n doc = REXML::Document.new(content)\r\n queues = []\r\n \r\n REXML::XPath.each(doc, '//Queue/') do |item|\r\n metadata = {}\r\n ... | [
"0.81713533",
"0.7959487",
"0.7897295",
"0.77947694",
"0.77947694",
"0.77825934",
"0.7734017",
"0.75662994",
"0.7483317",
"0.7444853",
"0.7428117",
"0.7406313",
"0.72061896",
"0.7182392",
"0.714795",
"0.711202",
"0.70939374",
"0.7075681",
"0.69497544",
"0.693711",
"0.6854989"... | 0.674398 | 25 |
Get list of queues. | def get_routing_queues_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_queues ..."
end
# resource path
local_var_path = "/api/v2/routing/queues".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
query_params[:'name'] = opts[:'name'] if opts[:'name']
query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id']
query_params[:'divisionId'] = @api_client.build_collection_param(opts[:'division_id'], :multi) if opts[:'division_id']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'QueueEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_queues(options ={})\r\n content = execute(:get, nil, { :comp => 'list' }.merge!(options), { :x_ms_version => \"2009-09-19\" })\r\n doc = REXML::Document.new(content)\r\n queues = []\r\n \r\n REXML::XPath.each(doc, '//Queue/') do |item|\r\n metadata = {}\r\n ... | [
"0.8170742",
"0.7959059",
"0.78970826",
"0.77953875",
"0.77953875",
"0.77824193",
"0.7733033",
"0.75664",
"0.74821365",
"0.7445705",
"0.7427526",
"0.74062264",
"0.72063035",
"0.71826655",
"0.7146689",
"0.71113575",
"0.7093676",
"0.7075346",
"0.69493425",
"0.6937395",
"0.68547... | 0.0 | -1 |
Get a paged listing of simplified queue objects, filterable by name, queue ID(s), or division ID(s). | def get_routing_queues_divisionviews(opts = {})
data, _status_code, _headers = get_routing_queues_divisionviews_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sub_queues\n sub_queue_obj.find(:all, :order => \"created_at DESC\")\n end",
"def index\n if params[:q].blank?\n @assignment_queues = AssignmentQueue.order(id: :desc).includes(:user, :training_request).page params[:page]\n else\n @assignment_queues = AssignmentQueue.search(params[:q]).pag... | [
"0.6228065",
"0.5839608",
"0.58194935",
"0.5771119",
"0.5438561",
"0.5402532",
"0.53738624",
"0.5343524",
"0.53385735",
"0.5312523",
"0.5301123",
"0.5276897",
"0.5228837",
"0.5228837",
"0.5205992",
"0.51442796",
"0.51370245",
"0.51326376",
"0.51222897",
"0.5111856",
"0.510087... | 0.0 | -1 |
Get a paged listing of simplified queue objects, filterable by name, queue ID(s), or division ID(s). | def get_routing_queues_divisionviews_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_queues_divisionviews ..."
end
if opts[:'sort_by'] && !['name', 'id', 'divisionId'].include?(opts[:'sort_by'])
fail ArgumentError, 'invalid value for "sort_by", must be one of name, id, divisionId'
end
if opts[:'sort_order'] && !['asc', 'desc', 'score'].include?(opts[:'sort_order'])
fail ArgumentError, 'invalid value for "sort_order", must be one of asc, desc, score'
end
# resource path
local_var_path = "/api/v2/routing/queues/divisionviews".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
query_params[:'name'] = opts[:'name'] if opts[:'name']
query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id']
query_params[:'divisionId'] = @api_client.build_collection_param(opts[:'division_id'], :multi) if opts[:'division_id']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'QueueEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_queues_divisionviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sub_queues\n sub_queue_obj.find(:all, :order => \"created_at DESC\")\n end",
"def index\n if params[:q].blank?\n @assignment_queues = AssignmentQueue.order(id: :desc).includes(:user, :training_request).page params[:page]\n else\n @assignment_queues = AssignmentQueue.search(params[:q]).pag... | [
"0.62280935",
"0.58391124",
"0.58205724",
"0.5772762",
"0.54388344",
"0.5403104",
"0.5374187",
"0.5345425",
"0.53403383",
"0.5314192",
"0.53018475",
"0.52784204",
"0.5230077",
"0.5230077",
"0.52077526",
"0.5143014",
"0.51354706",
"0.5134283",
"0.5124024",
"0.511115",
"0.51008... | 0.0 | -1 |
Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization. | def get_routing_queues_divisionviews_all(opts = {})
data, _status_code, _headers = get_routing_queues_divisionviews_all_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_queues(options ={})\r\n content = execute(:get, nil, { :comp => 'list' }.merge!(options), { :x_ms_version => \"2009-09-19\" })\r\n doc = REXML::Document.new(content)\r\n queues = []\r\n \r\n REXML::XPath.each(doc, '//Queue/') do |item|\r\n metadata = {}\r\n ... | [
"0.64298326",
"0.6356112",
"0.6263336",
"0.6063129",
"0.597313",
"0.59667826",
"0.59153837",
"0.59061015",
"0.5903309",
"0.57966113",
"0.5772432",
"0.5726998",
"0.57161075",
"0.56921333",
"0.56503403",
"0.5633098",
"0.56112325",
"0.5594922",
"0.5576933",
"0.5538657",
"0.55386... | 0.0 | -1 |
Get a paged listing of simplified queue objects. Can be used to get a digest of all queues in an organization. | def get_routing_queues_divisionviews_all_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_queues_divisionviews_all ..."
end
if opts[:'sort_by'] && !['name', 'id', 'divisionId'].include?(opts[:'sort_by'])
fail ArgumentError, 'invalid value for "sort_by", must be one of name, id, divisionId'
end
if opts[:'sort_order'] && !['asc', 'desc', 'score'].include?(opts[:'sort_order'])
fail ArgumentError, 'invalid value for "sort_order", must be one of asc, desc, score'
end
# resource path
local_var_path = "/api/v2/routing/queues/divisionviews/all".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'QueueEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_queues_divisionviews_all\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list_queues(options ={})\r\n content = execute(:get, nil, { :comp => 'list' }.merge!(options), { :x_ms_version => \"2009-09-19\" })\r\n doc = REXML::Document.new(content)\r\n queues = []\r\n \r\n REXML::XPath.each(doc, '//Queue/') do |item|\r\n metadata = {}\r\n ... | [
"0.6430583",
"0.63568634",
"0.62661856",
"0.606499",
"0.5975255",
"0.59692127",
"0.5914272",
"0.5908182",
"0.59052014",
"0.57987005",
"0.5774113",
"0.57287544",
"0.57181877",
"0.5692382",
"0.5653756",
"0.5636114",
"0.56119996",
"0.55956745",
"0.5579327",
"0.554006",
"0.554006... | 0.0 | -1 |
Get a paged listing of queues the user is a member of. | def get_routing_queues_me(opts = {})
data, _status_code, _headers = get_routing_queues_me_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n @gtd_queues = Gtd::Queue.where(user: current_user.id)\n end",
"def sub_queues\n sub_queue_obj.find(:all, :order => \"created_at DESC\")\n end",
"def list_queues(options ={})\r\n content = execute(:get, nil, { :comp => 'list' }.merge!(options), { :x_ms_version => \"2009-09-19\" })\r\n... | [
"0.6587023",
"0.61422276",
"0.6102401",
"0.5886255",
"0.58713204",
"0.58560145",
"0.5854514",
"0.58537215",
"0.58537215",
"0.58479047",
"0.58157724",
"0.5771951",
"0.57702637",
"0.57529277",
"0.5665314",
"0.565404",
"0.55758363",
"0.55623263",
"0.55401593",
"0.55171365",
"0.5... | 0.5778167 | 11 |
Get a paged listing of queues the user is a member of. | def get_routing_queues_me_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_queues_me ..."
end
# resource path
local_var_path = "/api/v2/routing/queues/me".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'joined'] = opts[:'joined'] if opts[:'joined']
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'UserQueueEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_queues_me\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n @gtd_queues = Gtd::Queue.where(user: current_user.id)\n end",
"def sub_queues\n sub_queue_obj.find(:all, :order => \"created_at DESC\")\n end",
"def list_queues(options ={})\r\n content = execute(:get, nil, { :comp => 'list' }.merge!(options), { :x_ms_version => \"2009-09-19\" })\r\n... | [
"0.6587729",
"0.61424965",
"0.61015904",
"0.5887873",
"0.58707017",
"0.58561504",
"0.585291",
"0.585287",
"0.585287",
"0.58463097",
"0.58131355",
"0.5778639",
"0.5771325",
"0.57690406",
"0.57532126",
"0.5665247",
"0.5654735",
"0.5576094",
"0.5561844",
"0.55392975",
"0.5516364... | 0.51520455 | 59 |
Get an organization's routing settings | def get_routing_settings(opts = {})
data, _status_code, _headers = get_routing_settings_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_routing_settings_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: RoutingApi.get_routing_settings ...\"\n end\n \n # resource path\n local_var_path = \"/api/v2/routing/settings\".sub('{format}','json')\n\n # qu... | [
"0.61976194",
"0.6116203",
"0.6043768",
"0.6023132",
"0.6023132",
"0.59173304",
"0.5763514",
"0.57590765",
"0.5696754",
"0.5636265",
"0.56117845",
"0.5528207",
"0.5515749",
"0.5483957",
"0.54781586",
"0.5463524",
"0.54619485",
"0.5427907",
"0.53998363",
"0.53828526",
"0.53819... | 0.62819916 | 0 |
Get an organization&39;s routing settings | def get_routing_settings_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_settings ..."
end
# resource path
local_var_path = "/api/v2/routing/settings".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'RoutingSettings')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_organization\n get('account/organization')\n end",
"def organization\n self[:O]\n end",
"def profile_route\n \"/organization/#{self.id}\"\n end",
"def show\n @org_settings = current_user.organization.settings\n\n respond_to do |format|\n format.html # show.html.... | [
"0.64813143",
"0.6242579",
"0.61846477",
"0.61682737",
"0.587781",
"0.5828214",
"0.582288",
"0.5750933",
"0.5750933",
"0.57177067",
"0.5715797",
"0.5683245",
"0.56482893",
"0.56425285",
"0.56425285",
"0.5570232",
"0.55554914",
"0.5528673",
"0.5525643",
"0.55241746",
"0.550491... | 0.59909457 | 4 |
Get Contact Center Settings | def get_routing_settings_contactcenter(opts = {})
data, _status_code, _headers = get_routing_settings_contactcenter_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_settings\n settings.get\n end",
"def get_routing_settings_contactcenter_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: RoutingApi.get_routing_settings_contactcenter ...\"\n end\n \n # resource path\n ... | [
"0.6859486",
"0.67521214",
"0.6604221",
"0.6604221",
"0.65050334",
"0.65021676",
"0.6328418",
"0.63258797",
"0.6324125",
"0.6308632",
"0.6276304",
"0.6253201",
"0.622507",
"0.61976767",
"0.6146485",
"0.6141268",
"0.61061513",
"0.609263",
"0.609263",
"0.6048011",
"0.6032028",
... | 0.71615505 | 0 |
Get Contact Center Settings | def get_routing_settings_contactcenter_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_settings_contactcenter ..."
end
# resource path
local_var_path = "/api/v2/routing/settings/contactcenter".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'ContactCenterSettings')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_settings_contactcenter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_routing_settings_contactcenter(opts = {})\n data, _status_code, _headers = get_routing_settings_contactcenter_with_http_info(opts)\n return data\n end",
"def get_settings\n settings.get\n end",
"def get_settings\n request :get, \"_settings\"\n end",
"def get_setti... | [
"0.71615505",
"0.6859486",
"0.6604221",
"0.6604221",
"0.65050334",
"0.65021676",
"0.6328418",
"0.63258797",
"0.6324125",
"0.6308632",
"0.6276304",
"0.6253201",
"0.622507",
"0.61976767",
"0.6146485",
"0.6141268",
"0.61061513",
"0.609263",
"0.609263",
"0.6048011",
"0.6032028",
... | 0.67521214 | 2 |
Get the list of routing skills. | def get_routing_skills(opts = {})
data, _status_code, _headers = get_routing_skills_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def skills\n\t\t[]\n\tend",
"def index\n @desired_skills = DesiredSkill.all\n end",
"def index\n\t@skills = Skill.all\n end",
"def skills_view(skills)\n skills.map { |skill| skill_view(skill) }\n end",
"def list_skills\n\t\trender json: Skill.where(language_id: params[:language_id]).to_json\n\tend... | [
"0.7204195",
"0.6707567",
"0.6667485",
"0.665472",
"0.66317236",
"0.6582452",
"0.6541576",
"0.65037006",
"0.65037006",
"0.64443225",
"0.6414369",
"0.64018404",
"0.6391023",
"0.6369318",
"0.63278127",
"0.62645847",
"0.6242867",
"0.6210142",
"0.6133432",
"0.6127569",
"0.611758"... | 0.7397265 | 1 |
Get the list of routing skills. | def get_routing_skills_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_skills ..."
end
# resource path
local_var_path = "/api/v2/routing/skills".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'name'] = opts[:'name'] if opts[:'name']
query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'SkillEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_skills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_routing_skills(opts = {})\n data, _status_code, _headers = get_routing_skills_with_http_info(opts)\n return data\n end",
"def get_routing_skills(opts = {})\n data, _status_code, _headers = get_routing_skills_with_http_info(opts)\n return data\n end",
"def skills\n\t\t[]\n\tend... | [
"0.73972136",
"0.73972136",
"0.72041005",
"0.6708396",
"0.6669132",
"0.66552776",
"0.6631823",
"0.6582337",
"0.65408754",
"0.65055406",
"0.65055406",
"0.6445008",
"0.64164317",
"0.64023775",
"0.63700277",
"0.6328446",
"0.6266485",
"0.62434256",
"0.6211384",
"0.61348367",
"0.6... | 0.6391705 | 14 |
Get an Address by Id for SMS | def get_routing_sms_address(address_id, opts = {})
data, _status_code, _headers = get_routing_sms_address_with_http_info(address_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def show_address(id)\n get(\"addresses/#{id}\")\n end",
"def get(id)\n return unless id\n\n address = Core::Dal::Address.find(id)\n address_dto = Amount::Types::AddressDto.new(address.uuid,\n address.address_1,\n ... | [
"0.7387622",
"0.7001985",
"0.6944439",
"0.6889908",
"0.6841661",
"0.6831519",
"0.671435",
"0.65370136",
"0.6409799",
"0.6355583",
"0.6287161",
"0.6260358",
"0.6216889",
"0.62020993",
"0.6189793",
"0.6189793",
"0.6181227",
"0.6178585",
"0.6170766",
"0.61450607",
"0.61206496",
... | 0.6518624 | 8 |
Get an Address by Id for SMS | def get_routing_sms_address_with_http_info(address_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_sms_address ..."
end
# verify the required parameter 'address_id' is set
fail ArgumentError, "Missing the required parameter 'address_id' when calling RoutingApi.get_routing_sms_address" if address_id.nil?
# resource path
local_var_path = "/api/v2/routing/sms/addresses/{addressId}".sub('{format}','json').sub('{' + 'addressId' + '}', address_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'SmsAddress')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_sms_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def show_address(id)\n get(\"addresses/#{id}\")\n end",
"def get(id)\n return unless id\n\n address = Core::Dal::Address.find(id)\n address_dto = Amount::Types::AddressDto.new(address.uuid,\n address.address_1,\n ... | [
"0.7387622",
"0.7001985",
"0.6889908",
"0.6841661",
"0.6831519",
"0.671435",
"0.65370136",
"0.6518624",
"0.6409799",
"0.6355583",
"0.6287161",
"0.6260358",
"0.6216889",
"0.62020993",
"0.6189793",
"0.6189793",
"0.6181227",
"0.6178585",
"0.6170766",
"0.61450607",
"0.61206496",
... | 0.6944439 | 2 |
Get a list of Addresses for SMS | def get_routing_sms_addresses(opts = {})
data, _status_code, _headers = get_routing_sms_addresses_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def addresses\n query(:address)\n end",
"def all(options={})\n response = MLS.get('/addresses', options)\n MLS::Address::Parser.parse_collection(response.body)\n end",
"def addresses\n IbmCloudRest.get \"#{@uri}/addresses\"\n end",
"def list_addresses\n Address.list(@id)\n... | [
"0.6993512",
"0.69420624",
"0.6863703",
"0.6856934",
"0.6836986",
"0.68062985",
"0.67118484",
"0.6650673",
"0.6584409",
"0.6582696",
"0.6576163",
"0.65522605",
"0.6547789",
"0.6433891",
"0.64193135",
"0.64090437",
"0.6382799",
"0.6369966",
"0.62385696",
"0.6234449",
"0.621291... | 0.64603937 | 13 |
Get a list of Addresses for SMS | def get_routing_sms_addresses_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_sms_addresses ..."
end
# resource path
local_var_path = "/api/v2/routing/sms/addresses".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'SmsAddressEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_sms_addresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def addresses\n query(:address)\n end",
"def all(options={})\n response = MLS.get('/addresses', options)\n MLS::Address::Parser.parse_collection(response.body)\n end",
"def addresses\n IbmCloudRest.get \"#{@uri}/addresses\"\n end",
"def list_addresses\n Address.list(@id)\n... | [
"0.6993946",
"0.6941928",
"0.68641853",
"0.6857516",
"0.6837536",
"0.6807277",
"0.67129517",
"0.66524166",
"0.6586091",
"0.65837187",
"0.657718",
"0.6551041",
"0.654959",
"0.6460028",
"0.64341223",
"0.6419243",
"0.6409554",
"0.6384002",
"0.6371677",
"0.623675",
"0.62354285",
... | 0.61976224 | 22 |
Get a list of available phone numbers for SMS provisioning. This request will return up to 30 random phone numbers matching the criteria specified. To get additional phone numbers repeat the request. | def get_routing_sms_availablephonenumbers(country_code, phone_number_type, opts = {})
data, _status_code, _headers = get_routing_sms_availablephonenumbers_with_http_info(country_code, phone_number_type, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def number_fetch_all(params = {})\n List.new(Number, number_request(:get, add_querystring('phone-numbers', params), params))\n end",
"def phone_numbers\n request = @browser.get(\"#{VoipfoneClient::API_GET_URL}?nums\")\n parse_response(request)[\"nums\"].collect {|n| n.first}\n end",
"def p... | [
"0.6432464",
"0.6295072",
"0.6149227",
"0.59343183",
"0.58685935",
"0.58563304",
"0.58124936",
"0.56760055",
"0.56420285",
"0.5636771",
"0.5614055",
"0.56068",
"0.5465256",
"0.54625344",
"0.5450876",
"0.54483855",
"0.5442818",
"0.54323304",
"0.5427201",
"0.54071224",
"0.53831... | 0.54165375 | 19 |
Get a list of available phone numbers for SMS provisioning. This request will return up to 30 random phone numbers matching the criteria specified. To get additional phone numbers repeat the request. | def get_routing_sms_availablephonenumbers_with_http_info(country_code, phone_number_type, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_sms_availablephonenumbers ..."
end
# verify the required parameter 'country_code' is set
fail ArgumentError, "Missing the required parameter 'country_code' when calling RoutingApi.get_routing_sms_availablephonenumbers" if country_code.nil?
# verify the required parameter 'phone_number_type' is set
fail ArgumentError, "Missing the required parameter 'phone_number_type' when calling RoutingApi.get_routing_sms_availablephonenumbers" if phone_number_type.nil?
# verify enum value
unless ['local', 'mobile', 'tollfree'].include?(phone_number_type)
fail ArgumentError, "invalid value for 'phone_number_type', must be one of local, mobile, tollfree"
end
if opts[:'address_requirement'] && !['none', 'any', 'local', 'foreign'].include?(opts[:'address_requirement'])
fail ArgumentError, 'invalid value for "address_requirement", must be one of none, any, local, foreign'
end
# resource path
local_var_path = "/api/v2/routing/sms/availablephonenumbers".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'countryCode'] = country_code
query_params[:'phoneNumberType'] = phone_number_type
query_params[:'region'] = opts[:'region'] if opts[:'region']
query_params[:'city'] = opts[:'city'] if opts[:'city']
query_params[:'areaCode'] = opts[:'area_code'] if opts[:'area_code']
query_params[:'pattern'] = opts[:'pattern'] if opts[:'pattern']
query_params[:'addressRequirement'] = opts[:'address_requirement'] if opts[:'address_requirement']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'SMSAvailablePhoneNumberEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_sms_availablephonenumbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def number_fetch_all(params = {})\n List.new(Number, number_request(:get, add_querystring('phone-numbers', params), params))\n end",
"def phone_numbers\n request = @browser.get(\"#{VoipfoneClient::API_GET_URL}?nums\")\n parse_response(request)[\"nums\"].collect {|n| n.first}\n end",
"def p... | [
"0.64326984",
"0.62942886",
"0.61496633",
"0.5935682",
"0.58702224",
"0.5856596",
"0.58131206",
"0.5676063",
"0.5641957",
"0.56361234",
"0.5613962",
"0.56082815",
"0.54646945",
"0.54628015",
"0.5450498",
"0.5447203",
"0.5442852",
"0.54333097",
"0.5426982",
"0.5416609",
"0.540... | 0.5038138 | 60 |
Get a phone number provisioned for SMS. | def get_routing_sms_phonenumber(address_id, opts = {})
data, _status_code, _headers = get_routing_sms_phonenumber_with_http_info(address_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_sms_number\n self.phone_numbers.where([\"type in(1, 3)\"]).first\n end",
"def mobile_phone\n pull unless @details\n begin\n return @details.mobile_phone.free_form_number\n rescue\n return nil\n end\n end",
"def get\n PhoneNumber.get self\n end",
"def phone_n... | [
"0.7410621",
"0.6964032",
"0.6858968",
"0.6758408",
"0.6707108",
"0.6706926",
"0.6674551",
"0.6569375",
"0.65480226",
"0.6541894",
"0.6406231",
"0.64026",
"0.64020866",
"0.6389944",
"0.63671005",
"0.63460946",
"0.6333114",
"0.6326538",
"0.6314883",
"0.6285233",
"0.6282316",
... | 0.0 | -1 |
Get a phone number provisioned for SMS. | def get_routing_sms_phonenumber_with_http_info(address_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_sms_phonenumber ..."
end
# verify the required parameter 'address_id' is set
fail ArgumentError, "Missing the required parameter 'address_id' when calling RoutingApi.get_routing_sms_phonenumber" if address_id.nil?
# resource path
local_var_path = "/api/v2/routing/sms/phonenumbers/{addressId}".sub('{format}','json').sub('{' + 'addressId' + '}', address_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'SmsPhoneNumber')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_sms_phonenumber\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_sms_number\n self.phone_numbers.where([\"type in(1, 3)\"]).first\n end",
"def mobile_phone\n pull unless @details\n begin\n return @details.mobile_phone.free_form_number\n rescue\n return nil\n end\n end",
"def get\n PhoneNumber.get self\n end",
"def phone_n... | [
"0.74112624",
"0.69647306",
"0.6860752",
"0.6759408",
"0.67076814",
"0.6707502",
"0.6674498",
"0.6570894",
"0.6549458",
"0.6542714",
"0.6405999",
"0.6403506",
"0.6401799",
"0.63917667",
"0.6368186",
"0.6344875",
"0.63350755",
"0.6327908",
"0.6315162",
"0.628441",
"0.6284212",... | 0.56493664 | 81 |
Get a list of provisioned phone numbers. | def get_routing_sms_phonenumbers(opts = {})
data, _status_code, _headers = get_routing_sms_phonenumbers_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phone_numbers\n self[\"gd$phoneNumber\"] ? self[\"gd$phoneNumber\"].map { |e| e['$t'] } : []\n end",
"def phone_numbers\n request = @browser.get(\"#{VoipfoneClient::API_GET_URL}?nums\")\n parse_response(request)[\"nums\"].collect {|n| n.first}\n end",
"def phones\n Array(@phones)\... | [
"0.73744434",
"0.682138",
"0.64946",
"0.63408625",
"0.6198677",
"0.6173625",
"0.6136944",
"0.60154366",
"0.57791835",
"0.57678676",
"0.57263047",
"0.5724823",
"0.5701415",
"0.5698423",
"0.56609416",
"0.5657506",
"0.56392306",
"0.5591683",
"0.5559313",
"0.55364656",
"0.5519409... | 0.47637847 | 83 |
Get a list of provisioned phone numbers. | def get_routing_sms_phonenumbers_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_sms_phonenumbers ..."
end
if opts[:'phone_number_type'] && !['local', 'mobile', 'tollfree', 'shortcode'].include?(opts[:'phone_number_type'])
fail ArgumentError, 'invalid value for "phone_number_type", must be one of local, mobile, tollfree, shortcode'
end
if opts[:'phone_number_status'] && !['active', 'invalid', 'porting'].include?(opts[:'phone_number_status'])
fail ArgumentError, 'invalid value for "phone_number_status", must be one of active, invalid, porting'
end
# resource path
local_var_path = "/api/v2/routing/sms/phonenumbers".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'phoneNumber'] = opts[:'phone_number'] if opts[:'phone_number']
query_params[:'phoneNumberType'] = opts[:'phone_number_type'] if opts[:'phone_number_type']
query_params[:'phoneNumberStatus'] = opts[:'phone_number_status'] if opts[:'phone_number_status']
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'SmsPhoneNumberEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_sms_phonenumbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phone_numbers\n self[\"gd$phoneNumber\"] ? self[\"gd$phoneNumber\"].map { |e| e['$t'] } : []\n end",
"def phone_numbers\n request = @browser.get(\"#{VoipfoneClient::API_GET_URL}?nums\")\n parse_response(request)[\"nums\"].collect {|n| n.first}\n end",
"def phones\n Array(@phones)\... | [
"0.73744434",
"0.682138",
"0.64946",
"0.63408625",
"0.6198677",
"0.6173625",
"0.6136944",
"0.60154366",
"0.57791835",
"0.57678676",
"0.57263047",
"0.5724823",
"0.5701415",
"0.5698423",
"0.56609416",
"0.5657506",
"0.56392306",
"0.5591683",
"0.5559313",
"0.55364656",
"0.5519409... | 0.0 | -1 |
Get the user's max utilization settings. If not configured, the organizationwide default is returned. | def get_routing_user_utilization(user_id, opts = {})
data, _status_code, _headers = get_routing_user_utilization_with_http_info(user_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_limit(user)\r\n fail \"missing user\" if user.nil?\r\n\r\n @member_limits.fetch(user.email).limit\r\n end",
"def default_maximum_percent\n Integer(new_service_setting[\"maximum_percent\"] || 200)\n end",
"def max_uses\n @attributes[:max_uses]\n end",
"def best_user\n @... | [
"0.63130397",
"0.5955079",
"0.59467256",
"0.5906521",
"0.5742032",
"0.5712908",
"0.570875",
"0.5708629",
"0.5663745",
"0.5663745",
"0.5656251",
"0.55992657",
"0.55906713",
"0.558658",
"0.55664116",
"0.55420417",
"0.55415994",
"0.55321914",
"0.55318236",
"0.55177695",
"0.54965... | 0.0 | -1 |
Get the user&39;s max utilization settings. If not configured, the organizationwide default is returned. | def get_routing_user_utilization_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_user_utilization ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.get_routing_user_utilization" if user_id.nil?
# resource path
local_var_path = "/api/v2/routing/users/{userId}/utilization".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'Utilization')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_user_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_limit(user)\r\n fail \"missing user\" if user.nil?\r\n\r\n @member_limits.fetch(user.email).limit\r\n end",
"def max_uses\n @attributes[:max_uses]\n end",
"def default_maximum_percent\n Integer(new_service_setting[\"maximum_percent\"] || 200)\n end",
"def maximum_per_prov... | [
"0.63475156",
"0.60620505",
"0.5970623",
"0.5776501",
"0.5725458",
"0.569551",
"0.56733704",
"0.5664021",
"0.5664021",
"0.5631228",
"0.5614038",
"0.5602709",
"0.5599924",
"0.55895543",
"0.55773115",
"0.5569356",
"0.55587804",
"0.55402946",
"0.5507302",
"0.5506863",
"0.5498532... | 0.0 | -1 |
Get the organizationwide max utilization settings. | def get_routing_utilization(opts = {})
data, _status_code, _headers = get_routing_utilization_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max_uses\n @attributes[:max_uses]\n end",
"def max_distribution\n return configatron.mack.assets.max_distribution\n end",
"def runner_settings\n\t\t\treturn {\n\t\t\t\tmax_concurrency: Arborist::Monitor::Webservice.max_concurrency,\n\t\t\t}\n\t\tend",
"def max_gauge\n data[:max_g... | [
"0.6325673",
"0.5965405",
"0.58545905",
"0.5817",
"0.581046",
"0.5803648",
"0.5776976",
"0.57122445",
"0.5682891",
"0.5641615",
"0.56246305",
"0.5617997",
"0.5617997",
"0.55981755",
"0.55910224",
"0.5583422",
"0.5531753",
"0.552848",
"0.552848",
"0.552848",
"0.55279243",
"0... | 0.0 | -1 |
Get the organizationwide max utilization settings. | def get_routing_utilization_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_utilization ..."
end
# resource path
local_var_path = "/api/v2/routing/utilization".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'Utilization')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max_uses\n @attributes[:max_uses]\n end",
"def max_distribution\n return configatron.mack.assets.max_distribution\n end",
"def runner_settings\n\t\t\treturn {\n\t\t\t\tmax_concurrency: Arborist::Monitor::Webservice.max_concurrency,\n\t\t\t}\n\t\tend",
"def max_gauge\n data[:max_g... | [
"0.6325673",
"0.5965405",
"0.58545905",
"0.5817",
"0.581046",
"0.5803648",
"0.5776976",
"0.57122445",
"0.5682891",
"0.5641615",
"0.56246305",
"0.5617997",
"0.5617997",
"0.55981755",
"0.55910224",
"0.5583422",
"0.5531753",
"0.552848",
"0.552848",
"0.552848",
"0.55279243",
"0... | 0.0 | -1 |
Get details about this wrapup code. | def get_routing_wrapupcode(code_id, opts = {})
data, _status_code, _headers = get_routing_wrapupcode_with_http_info(code_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def inspect\n \"#<#{self.class}: #{@info.code}>\"\n end",
"def code\n info['Code']\n end",
"def code\n @info.code\n end",
"def inspect\n @code.to_s\n end",
"def inspect_details\n ''\n end",
"def inspect\n \"#<#{self.class}: #@code>\"\n end",
"def info... | [
"0.7048833",
"0.67268294",
"0.6633157",
"0.65781784",
"0.6487163",
"0.6407966",
"0.6381823",
"0.6371282",
"0.6371282",
"0.63647085",
"0.63108015",
"0.6308587",
"0.6288306",
"0.6286505",
"0.6272617",
"0.6269689",
"0.62663203",
"0.62663203",
"0.62663203",
"0.6255924",
"0.622932... | 0.0 | -1 |
Get details about this wrapup code. | def get_routing_wrapupcode_with_http_info(code_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_wrapupcode ..."
end
# verify the required parameter 'code_id' is set
fail ArgumentError, "Missing the required parameter 'code_id' when calling RoutingApi.get_routing_wrapupcode" if code_id.nil?
# resource path
local_var_path = "/api/v2/routing/wrapupcodes/{codeId}".sub('{format}','json').sub('{' + 'codeId' + '}', code_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'WrapupCode')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_wrapupcode\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def inspect\n \"#<#{self.class}: #{@info.code}>\"\n end",
"def code\n info['Code']\n end",
"def code\n @info.code\n end",
"def inspect\n @code.to_s\n end",
"def inspect_details\n ''\n end",
"def inspect\n \"#<#{self.class}: #@code>\"\n end",
"def info... | [
"0.7047121",
"0.67264324",
"0.6633001",
"0.6577629",
"0.6482826",
"0.6408668",
"0.63769764",
"0.6366687",
"0.6366687",
"0.63599366",
"0.6307459",
"0.6304857",
"0.6284505",
"0.6283607",
"0.62682223",
"0.62649196",
"0.6262062",
"0.6262062",
"0.6262062",
"0.62523574",
"0.6226028... | 0.0 | -1 |
Get list of wrapup codes. | def get_routing_wrapupcodes(opts = {})
data, _status_code, _headers = get_routing_wrapupcodes_with_http_info(opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def codes\n @codes ||= []\n end",
"def code_list(list)\n\t\tlist.map{ |element| element.code }.join(', ')\n\tend",
"def code_list(list)\n\t\tlist.map{ |element| element.code }.join(', ')\n\tend",
"def getcodes\r\n result = SUPPORTED_LANG_CODES\r\n end",
"def clil_categories_codes\n sel... | [
"0.5736131",
"0.5650362",
"0.5650362",
"0.5549591",
"0.54904556",
"0.54870564",
"0.5442808",
"0.51897794",
"0.51589566",
"0.5130894",
"0.5127684",
"0.5046753",
"0.50108427",
"0.49508357",
"0.49330363",
"0.49101374",
"0.49045107",
"0.4902539",
"0.49017453",
"0.48842156",
"0.48... | 0.55611444 | 4 |
Get list of wrapup codes. | def get_routing_wrapupcodes_with_http_info(opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_routing_wrapupcodes ..."
end
if opts[:'sort_by'] && !['name', 'id'].include?(opts[:'sort_by'])
fail ArgumentError, 'invalid value for "sort_by", must be one of name, id'
end
# resource path
local_var_path = "/api/v2/routing/wrapupcodes".sub('{format}','json')
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by']
query_params[:'name'] = opts[:'name'] if opts[:'name']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'WrapupCodeEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_routing_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def codes\n @codes ||= []\n end",
"def code_list(list)\n\t\tlist.map{ |element| element.code }.join(', ')\n\tend",
"def code_list(list)\n\t\tlist.map{ |element| element.code }.join(', ')\n\tend",
"def get_routing_wrapupcodes(opts = {})\n data, _status_code, _headers = get_routing_wrapupcodes_wit... | [
"0.5736131",
"0.5650362",
"0.5650362",
"0.55611444",
"0.55611444",
"0.5549591",
"0.54904556",
"0.54870564",
"0.5442808",
"0.51897794",
"0.51589566",
"0.5130894",
"0.5127684",
"0.5046753",
"0.50108427",
"0.49508357",
"0.49330363",
"0.49101374",
"0.49045107",
"0.4902539",
"0.49... | 0.0 | -1 |
Get queues for user | def get_user_queues(user_id, opts = {})
data, _status_code, _headers = get_user_queues_with_http_info(user_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_queues\n @gem_queue = get_queue 'gem'\n @md5_queue = get_queue 'md5'\n @sha512_queue = get_queue 'sha512'\n end",
"def queues\n @channel.queues\n end",
"def index\n @gtd_queues = Gtd::Queue.where(user: current_user.id)\n end",
"def queues\n\t\t\t@queues ||= {}\n\t\tend",
... | [
"0.74611586",
"0.72827643",
"0.72447044",
"0.7205599",
"0.7169906",
"0.6962033",
"0.6962033",
"0.6833807",
"0.6763259",
"0.67530537",
"0.6735127",
"0.66622716",
"0.6650344",
"0.6643439",
"0.6637096",
"0.66258574",
"0.65418357",
"0.6529689",
"0.65044546",
"0.64949507",
"0.6494... | 0.6632096 | 15 |
Get queues for user | def get_user_queues_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_user_queues ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.get_user_queues" if user_id.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/queues".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'joined'] = opts[:'joined'] if opts[:'joined']
query_params[:'divisionId'] = @api_client.build_collection_param(opts[:'division_id'], :multi) if opts[:'division_id']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'UserQueueEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_user_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_queues\n @gem_queue = get_queue 'gem'\n @md5_queue = get_queue 'md5'\n @sha512_queue = get_queue 'sha512'\n end",
"def queues\n @channel.queues\n end",
"def index\n @gtd_queues = Gtd::Queue.where(user: current_user.id)\n end",
"def queues\n\t\t\t@queues ||= {}\n\t\tend",
... | [
"0.7461129",
"0.7282736",
"0.7244686",
"0.7205549",
"0.71698546",
"0.6961988",
"0.6961988",
"0.6833743",
"0.67632186",
"0.67530185",
"0.673513",
"0.66622245",
"0.6650301",
"0.6643418",
"0.66370803",
"0.66321003",
"0.662583",
"0.6541828",
"0.65296364",
"0.6504459",
"0.6494967"... | 0.6359678 | 27 |
List routing language for user | def get_user_routinglanguages(user_id, opts = {})
data, _status_code, _headers = get_user_routinglanguages_with_http_info(user_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n @languages = Language.all.order(:name)\n @path_langu = request.path.starts_with? '/langu'\n end",
"def list_lang\n call! :list_lang\n end",
"def get_language_list\n call :get_language_list\n end",
"def display_all_languages\n # Interface method\n end",
"def ge... | [
"0.7265747",
"0.70672286",
"0.6955015",
"0.6656666",
"0.65760005",
"0.6517201",
"0.6511598",
"0.6409604",
"0.6320664",
"0.6299832",
"0.62621224",
"0.6248824",
"0.6214235",
"0.61909723",
"0.6185022",
"0.6182044",
"0.6182044",
"0.617924",
"0.6143408",
"0.61315703",
"0.61257833"... | 0.5843292 | 53 |
List routing language for user | def get_user_routinglanguages_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_user_routinglanguages ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.get_user_routinglanguages" if user_id.nil?
if opts[:'sort_order'] && !['ascending', 'descending'].include?(opts[:'sort_order'])
fail ArgumentError, 'invalid value for "sort_order", must be one of ascending, descending'
end
# resource path
local_var_path = "/api/v2/users/{userId}/routinglanguages".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'UserLanguageEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_user_routinglanguages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n @languages = Language.all.order(:name)\n @path_langu = request.path.starts_with? '/langu'\n end",
"def list_lang\n call! :list_lang\n end",
"def get_language_list\n call :get_language_list\n end",
"def display_all_languages\n # Interface method\n end",
"def ge... | [
"0.7265747",
"0.70672286",
"0.6955015",
"0.6656666",
"0.65760005",
"0.6517201",
"0.6511598",
"0.6409604",
"0.6320664",
"0.6299832",
"0.62621224",
"0.6248824",
"0.6214235",
"0.61909723",
"0.6185022",
"0.6182044",
"0.6182044",
"0.617924",
"0.6143408",
"0.61315703",
"0.61257833"... | 0.0 | -1 |
List routing skills for user | def get_user_routingskills(user_id, opts = {})
data, _status_code, _headers = get_user_routingskills_with_http_info(user_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n @skills = current_user.skills.all\n end",
"def index\n\t\tauthorize! :read, Skill\n\t\t\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @skills }\n end\n end",
"def index\n @skills_users = SkillsUser.all\n end",
"def index\n @skills... | [
"0.8123352",
"0.74303406",
"0.7408482",
"0.73992425",
"0.73556614",
"0.73514754",
"0.7322795",
"0.7308529",
"0.7293172",
"0.7293172",
"0.7270854",
"0.72654676",
"0.7041595",
"0.70381135",
"0.70144695",
"0.6969919",
"0.69693154",
"0.69632834",
"0.68963426",
"0.6822625",
"0.677... | 0.0 | -1 |
List routing skills for user | def get_user_routingskills_with_http_info(user_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.get_user_routingskills ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.get_user_routingskills" if user_id.nil?
if opts[:'sort_order'] && !['ascending', 'descending'].include?(opts[:'sort_order'])
fail ArgumentError, 'invalid value for "sort_order", must be one of ascending, descending'
end
# resource path
local_var_path = "/api/v2/users/{userId}/routingskills".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = nil
auth_names = ['PureCloud OAuth']
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 => 'UserSkillEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#get_user_routingskills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def index\n @skills = current_user.skills.all\n end",
"def index\n\t\tauthorize! :read, Skill\n\t\t\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @skills }\n end\n end",
"def index\n @skills_users = SkillsUser.all\n end",
"def index\n @skills... | [
"0.8123875",
"0.7430184",
"0.7408701",
"0.7399531",
"0.73558384",
"0.7351832",
"0.7325975",
"0.73107874",
"0.7293608",
"0.7293608",
"0.7271272",
"0.72657555",
"0.7043259",
"0.7038354",
"0.7014292",
"0.69717175",
"0.69704646",
"0.696283",
"0.6898731",
"0.68230885",
"0.6778745"... | 0.0 | -1 |
Update the ring number OR joined status for a User in a Queue | def patch_routing_queue_user(queue_id, member_id, body, opts = {})
data, _status_code, _headers = patch_routing_queue_user_with_http_info(queue_id, member_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_status!(user, status, in_reply_to_status_id = nil)\n self.twitagent(user.token, user.secret).update_status!(status, in_reply_to_status_id)\n\tend",
"def update\n new_user = !@current_user.username && user_params[:username].present?\n if @current_user.update(user_params)\n if (new_user)\n... | [
"0.62931645",
"0.61269766",
"0.60925734",
"0.6014281",
"0.589292",
"0.58528227",
"0.5847825",
"0.5713075",
"0.56700444",
"0.5668312",
"0.56307924",
"0.56189305",
"0.55661005",
"0.5562389",
"0.5545777",
"0.55300575",
"0.55285937",
"0.5485914",
"0.54827636",
"0.54706424",
"0.54... | 0.0 | -1 |
Update the ring number OR joined status for a User in a Queue | def patch_routing_queue_user_with_http_info(queue_id, member_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.patch_routing_queue_user ..."
end
# verify the required parameter 'queue_id' is set
fail ArgumentError, "Missing the required parameter 'queue_id' when calling RoutingApi.patch_routing_queue_user" if queue_id.nil?
# verify the required parameter 'member_id' is set
fail ArgumentError, "Missing the required parameter 'member_id' when calling RoutingApi.patch_routing_queue_user" if member_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_routing_queue_user" if body.nil?
# resource path
local_var_path = "/api/v2/routing/queues/{queueId}/users/{memberId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'memberId' + '}', member_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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,
:return_type => 'QueueMember')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#patch_routing_queue_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_status!(user, status, in_reply_to_status_id = nil)\n self.twitagent(user.token, user.secret).update_status!(status, in_reply_to_status_id)\n\tend",
"def update\n new_user = !@current_user.username && user_params[:username].present?\n if @current_user.update(user_params)\n if (new_user)\n... | [
"0.62957036",
"0.6129952",
"0.60939056",
"0.60154366",
"0.58959794",
"0.585631",
"0.5851027",
"0.5717152",
"0.56733745",
"0.56725",
"0.5631532",
"0.56210566",
"0.556976",
"0.5561284",
"0.55465585",
"0.5531833",
"0.55285615",
"0.54885167",
"0.5485063",
"0.54733616",
"0.5465100... | 0.5132434 | 69 |
Join or unjoin a set of users for a queue | def patch_routing_queue_users(queue_id, body, opts = {})
data, _status_code, _headers = patch_routing_queue_users_with_http_info(queue_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def join(user)\n @mysqlHelper.insertConUser(user.getI,@id)\n @userList.getcontents.each { |users| \n \n users.userChangeFromChannel(\"204\", @id, user.getId)\n }\n @userList.add(user)\n \n end",
"def process_mass_join(message)\n channel = message.channel\n /:(?<user_list>.+)/ ... | [
"0.6521231",
"0.64807",
"0.6464171",
"0.57007235",
"0.5656037",
"0.56305015",
"0.5621094",
"0.56171685",
"0.5568604",
"0.5539731",
"0.5534677",
"0.54884404",
"0.5480847",
"0.54326093",
"0.5416969",
"0.5410067",
"0.54049265",
"0.53532046",
"0.5343053",
"0.5331115",
"0.5320157"... | 0.0 | -1 |
Join or unjoin a set of users for a queue | def patch_routing_queue_users_with_http_info(queue_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.patch_routing_queue_users ..."
end
# verify the required parameter 'queue_id' is set
fail ArgumentError, "Missing the required parameter 'queue_id' when calling RoutingApi.patch_routing_queue_users" if queue_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_routing_queue_users" if body.nil?
# resource path
local_var_path = "/api/v2/routing/queues/{queueId}/users".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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,
:return_type => 'QueueMemberEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#patch_routing_queue_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def join(user)\n @mysqlHelper.insertConUser(user.getI,@id)\n @userList.getcontents.each { |users| \n \n users.userChangeFromChannel(\"204\", @id, user.getId)\n }\n @userList.add(user)\n \n end",
"def process_mass_join(message)\n channel = message.channel\n /:(?<user_list>.+)/ ... | [
"0.6523302",
"0.64808124",
"0.6464412",
"0.5701788",
"0.5660268",
"0.5628738",
"0.56242913",
"0.56194514",
"0.55691224",
"0.5536923",
"0.5532974",
"0.548899",
"0.54812765",
"0.5434087",
"0.5417714",
"0.5412018",
"0.54038686",
"0.53556246",
"0.5343318",
"0.53299713",
"0.532178... | 0.0 | -1 |
Update Contact Center Settings | def patch_routing_settings_contactcenter(body, opts = {})
patch_routing_settings_contactcenter_with_http_info(body, opts)
return nil
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_settings\n end",
"def update!(**args)\n @contact_center_count_limit = args[:contact_center_count_limit] if args.key?(:contact_center_count_limit)\n @contact_center_count_sum = args[:contact_center_count_sum] if args.key?(:contact_center_count_sum)\n @contact_center_instance... | [
"0.7061695",
"0.6602281",
"0.6430274",
"0.62879145",
"0.62066936",
"0.6202217",
"0.6159503",
"0.6100824",
"0.6086741",
"0.6066652",
"0.6029438",
"0.60179645",
"0.6008555",
"0.5999317",
"0.59965974",
"0.59870297",
"0.59797895",
"0.59609777",
"0.5942344",
"0.5936056",
"0.593392... | 0.5915716 | 25 |
Update Contact Center Settings | def patch_routing_settings_contactcenter_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.patch_routing_settings_contactcenter ..."
end
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_routing_settings_contactcenter" if body.nil?
# resource path
local_var_path = "/api/v2/routing/settings/contactcenter".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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: RoutingApi#patch_routing_settings_contactcenter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_settings\n end",
"def update!(**args)\n @contact_center_count_limit = args[:contact_center_count_limit] if args.key?(:contact_center_count_limit)\n @contact_center_count_sum = args[:contact_center_count_sum] if args.key?(:contact_center_count_sum)\n @contact_center_instance... | [
"0.7061695",
"0.6602281",
"0.6430274",
"0.62879145",
"0.62066936",
"0.6202217",
"0.6159503",
"0.6100824",
"0.6086741",
"0.6066652",
"0.6029438",
"0.60179645",
"0.6008555",
"0.59965974",
"0.59870297",
"0.59797895",
"0.59609777",
"0.5942344",
"0.5936056",
"0.59339267",
"0.59216... | 0.5999317 | 13 |
Join or unjoin a queue for a user | def patch_user_queue(queue_id, user_id, body, opts = {})
data, _status_code, _headers = patch_user_queue_with_http_info(queue_id, user_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def join(conn, start_tag)\r\n @users << conn.user.id\r\n @waiting[conn.user.id] = conn\r\n # find state in log for new user\r\n idx = @log.rindex{|x| x[:tag] == start_tag} || -1\r\n cnt = @log.length - idx - 1\r\n # if there is no new actions from last state just exit\r\n return unless cnt\r\n... | [
"0.6497896",
"0.646238",
"0.6422645",
"0.6387055",
"0.6334522",
"0.62768984",
"0.6208996",
"0.6094064",
"0.5997564",
"0.5911842",
"0.5899428",
"0.5899221",
"0.58858466",
"0.5847381",
"0.58267283",
"0.58145696",
"0.5802353",
"0.56934017",
"0.56611866",
"0.5649473",
"0.56360906... | 0.0 | -1 |
Join or unjoin a queue for a user | def patch_user_queue_with_http_info(queue_id, user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.patch_user_queue ..."
end
# verify the required parameter 'queue_id' is set
fail ArgumentError, "Missing the required parameter 'queue_id' when calling RoutingApi.patch_user_queue" if queue_id.nil?
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.patch_user_queue" if user_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_user_queue" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/queues/{queueId}".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s).sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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,
:return_type => 'UserQueue')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#patch_user_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def join(conn, start_tag)\r\n @users << conn.user.id\r\n @waiting[conn.user.id] = conn\r\n # find state in log for new user\r\n idx = @log.rindex{|x| x[:tag] == start_tag} || -1\r\n cnt = @log.length - idx - 1\r\n # if there is no new actions from last state just exit\r\n return unless cnt\r\n... | [
"0.64961416",
"0.645957",
"0.64166033",
"0.6385578",
"0.63340807",
"0.6271684",
"0.6202561",
"0.6091754",
"0.5994401",
"0.59124416",
"0.5897963",
"0.5894528",
"0.58872974",
"0.5847289",
"0.5823554",
"0.5811184",
"0.5801717",
"0.5690345",
"0.5659894",
"0.56502604",
"0.56354505... | 0.0 | -1 |
Join or unjoin a set of queues for a user | def patch_user_queues(user_id, body, opts = {})
data, _status_code, _headers = patch_user_queues_with_http_info(user_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def join(user)\n @mysqlHelper.insertConUser(user.getI,@id)\n @userList.getcontents.each { |users| \n \n users.userChangeFromChannel(\"204\", @id, user.getId)\n }\n @userList.add(user)\n \n end",
"def queue(*queues)\n end",
"def add_to_queue!(user)\n $redis.lpush(self.class.red... | [
"0.61823577",
"0.6147827",
"0.60446715",
"0.58700544",
"0.58310586",
"0.5705816",
"0.5698268",
"0.5682967",
"0.56716305",
"0.5667862",
"0.56648165",
"0.56220675",
"0.56210464",
"0.5604559",
"0.55889213",
"0.5540337",
"0.5538215",
"0.5474302",
"0.5406339",
"0.5400287",
"0.5393... | 0.0 | -1 |
Join or unjoin a set of queues for a user | def patch_user_queues_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.patch_user_queues ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.patch_user_queues" if user_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_user_queues" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/queues".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
query_params[:'divisionId'] = @api_client.build_collection_param(opts[:'division_id'], :multi) if opts[:'division_id']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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,
:return_type => 'UserQueueEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#patch_user_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def join(user)\n @mysqlHelper.insertConUser(user.getI,@id)\n @userList.getcontents.each { |users| \n \n users.userChangeFromChannel(\"204\", @id, user.getId)\n }\n @userList.add(user)\n \n end",
"def queue(*queues)\n end",
"def add_to_queue!(user)\n $redis.lpush(self.class.red... | [
"0.61815035",
"0.61482525",
"0.60457367",
"0.5872553",
"0.58345866",
"0.5709284",
"0.5699072",
"0.5683744",
"0.56730014",
"0.5664786",
"0.56636715",
"0.5622984",
"0.56217694",
"0.56070554",
"0.5586911",
"0.5540366",
"0.55397165",
"0.5472042",
"0.5407723",
"0.54002756",
"0.539... | 0.0 | -1 |
Update routing language proficiency or state. | def patch_user_routinglanguage(user_id, language_id, body, opts = {})
data, _status_code, _headers = patch_user_routinglanguage_with_http_info(user_id, language_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n respond_to do |format|\n if @language_proficiency.update(language_proficiency_params)\n format.html { redirect_to person_path(@person), notice: 'Language proficiency was successfully updated.' }\n format.json { render :show, status: :ok, location: @language_proficiency }\n e... | [
"0.6312317",
"0.5694809",
"0.56409633",
"0.56197584",
"0.5605422",
"0.5526505",
"0.55182934",
"0.55102783",
"0.5467549",
"0.54403675",
"0.54100573",
"0.5389143",
"0.53767985",
"0.53712237",
"0.5366751",
"0.5365016",
"0.534836",
"0.5338115",
"0.53314734",
"0.53153443",
"0.5276... | 0.52954674 | 20 |
Update routing language proficiency or state. | def patch_user_routinglanguage_with_http_info(user_id, language_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.patch_user_routinglanguage ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.patch_user_routinglanguage" if user_id.nil?
# verify the required parameter 'language_id' is set
fail ArgumentError, "Missing the required parameter 'language_id' when calling RoutingApi.patch_user_routinglanguage" if language_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_user_routinglanguage" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/routinglanguages/{languageId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'languageId' + '}', language_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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,
:return_type => 'UserRoutingLanguage')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#patch_user_routinglanguage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n respond_to do |format|\n if @language_proficiency.update(language_proficiency_params)\n format.html { redirect_to person_path(@person), notice: 'Language proficiency was successfully updated.' }\n format.json { render :show, status: :ok, location: @language_proficiency }\n e... | [
"0.6312827",
"0.56960315",
"0.56418276",
"0.5620918",
"0.56062555",
"0.552644",
"0.5518678",
"0.5510142",
"0.5467728",
"0.54401416",
"0.54118884",
"0.5389047",
"0.537732",
"0.53715885",
"0.5366675",
"0.5365997",
"0.5348733",
"0.5338989",
"0.5330821",
"0.53152734",
"0.5294472"... | 0.49670014 | 73 |
Add bulk routing language to user. Max limit 50 languages | def patch_user_routinglanguages_bulk(user_id, body, opts = {})
data, _status_code, _headers = patch_user_routinglanguages_bulk_with_http_info(user_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def process_language_redirect\n # Add languages\n record.parts.each do |part|\n # Get language redirect configuration\n if part.name == 'config'\n # Loop all languages\n languages = []\n part.content.each_line do |language|\n # Get language name and bas... | [
"0.64350766",
"0.6042314",
"0.59030354",
"0.5797003",
"0.5696586",
"0.5687204",
"0.566597",
"0.5517404",
"0.5451561",
"0.54204214",
"0.5397678",
"0.5396581",
"0.53672826",
"0.52999985",
"0.52969587",
"0.5285753",
"0.52821153",
"0.5263881",
"0.525577",
"0.52556974",
"0.5236189... | 0.60516745 | 1 |
Add bulk routing language to user. Max limit 50 languages | def patch_user_routinglanguages_bulk_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.patch_user_routinglanguages_bulk ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.patch_user_routinglanguages_bulk" if user_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_user_routinglanguages_bulk" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/routinglanguages/bulk".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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,
:return_type => 'UserLanguageEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#patch_user_routinglanguages_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def process_language_redirect\n # Add languages\n record.parts.each do |part|\n # Get language redirect configuration\n if part.name == 'config'\n # Loop all languages\n languages = []\n part.content.each_line do |language|\n # Get language name and bas... | [
"0.64350766",
"0.60516745",
"0.6042314",
"0.59030354",
"0.5797003",
"0.5696586",
"0.5687204",
"0.566597",
"0.5451561",
"0.54204214",
"0.5397678",
"0.5396581",
"0.53672826",
"0.52999985",
"0.52969587",
"0.5285753",
"0.52821153",
"0.5263881",
"0.525577",
"0.52556974",
"0.523618... | 0.5517404 | 8 |
Bulk add routing skills to user | def patch_user_routingskills_bulk(user_id, body, opts = {})
data, _status_code, _headers = patch_user_routingskills_bulk_with_http_info(user_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_user\n @user = User.find(params[:id])\n @skills = Skill.all\n @my_skills = @user.skills.all.map { |k| k[:name] }\n end",
"def add_skills(skill_names,created_by_id)\r\n job_seeker = JobSeeker.find(created_by_id)\r\n JobSeekerProficiency.delete_all(\"job_seeker_id = '#{self.id}'\")\r\n ... | [
"0.65542674",
"0.6416647",
"0.6310266",
"0.62054986",
"0.61882216",
"0.61831063",
"0.6149182",
"0.60884994",
"0.6087182",
"0.6073226",
"0.6067771",
"0.6025037",
"0.59821016",
"0.5947338",
"0.59101874",
"0.5856763",
"0.5823984",
"0.5808036",
"0.5777507",
"0.5760101",
"0.573940... | 0.6024886 | 12 |
Bulk add routing skills to user | def patch_user_routingskills_bulk_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.patch_user_routingskills_bulk ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.patch_user_routingskills_bulk" if user_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.patch_user_routingskills_bulk" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/routingskills/bulk".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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,
:return_type => 'UserSkillEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#patch_user_routingskills_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_user\n @user = User.find(params[:id])\n @skills = Skill.all\n @my_skills = @user.skills.all.map { |k| k[:name] }\n end",
"def add_skills(skill_names,created_by_id)\r\n job_seeker = JobSeeker.find(created_by_id)\r\n JobSeekerProficiency.delete_all(\"job_seeker_id = '#{self.id}'\")\r\n ... | [
"0.6552273",
"0.6415847",
"0.6309251",
"0.6205024",
"0.61886",
"0.6180884",
"0.6147253",
"0.6088789",
"0.60869133",
"0.60732484",
"0.6066552",
"0.6025479",
"0.6025436",
"0.5980979",
"0.59470993",
"0.59084153",
"0.58546907",
"0.5824293",
"0.58076465",
"0.57766825",
"0.57575035... | 0.56217194 | 28 |
Query for queue observations | def post_analytics_queues_observations_query(body, opts = {})
data, _status_code, _headers = post_analytics_queues_observations_query_with_http_info(body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def check_queue\n # The interesting options hash for our new work query\n check = {\n :deliver_at => {'$lte' => Time.now.utc},\n :result => {'$exists' => false},\n :locked => {'$exists' => false}\n }\n Candygram.queue.find(check).to_a\n end",
"def _q\n @queue||=[]... | [
"0.72001976",
"0.6779871",
"0.6746295",
"0.66360784",
"0.6554541",
"0.64637315",
"0.6434956",
"0.6384351",
"0.6371912",
"0.6337685",
"0.6313212",
"0.6307942",
"0.6302236",
"0.6289753",
"0.6270643",
"0.62668175",
"0.62441546",
"0.62441546",
"0.62258416",
"0.61477125",
"0.61216... | 0.0 | -1 |
Query for queue observations | def post_analytics_queues_observations_query_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_analytics_queues_observations_query ..."
end
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.post_analytics_queues_observations_query" if body.nil?
# resource path
local_var_path = "/api/v2/analytics/queues/observations/query".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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 => 'QueueObservationQueryResponse')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_analytics_queues_observations_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def check_queue\n # The interesting options hash for our new work query\n check = {\n :deliver_at => {'$lte' => Time.now.utc},\n :result => {'$exists' => false},\n :locked => {'$exists' => false}\n }\n Candygram.queue.find(check).to_a\n end",
"def _q\n @queue||=[]... | [
"0.72001976",
"0.6779871",
"0.6746295",
"0.66360784",
"0.6554541",
"0.64637315",
"0.6434956",
"0.6384351",
"0.6371912",
"0.6337685",
"0.6313212",
"0.6307942",
"0.6302236",
"0.6289753",
"0.6270643",
"0.62668175",
"0.62441546",
"0.62441546",
"0.62258416",
"0.61477125",
"0.61216... | 0.0 | -1 |
Tests the custom SMTP server integration connection set on this domain The request body is optional. If omitted, this endpoint will just test the connection of the Custom SMTP Server. If the body is specified, there will be an attempt to send an email message to the server. | def post_routing_email_domain_testconnection(domain_id, opts = {})
data, _status_code, _headers = post_routing_email_domain_testconnection_with_http_info(domain_id, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_sg_client_input_has_optional_variables\n RestClient.stubs(:post).returns(exp_msg)\n ENV.stubs(:[]).returns('AN ENV VAR')\n valid_addr = EmailAddress.new ''\n\n email_obj = EmailObject.new\n email_obj.from = valid_addr\n email_obj.to = [valid_addr]\n email_obj.cc =... | [
"0.5449049",
"0.5359411",
"0.535082",
"0.5291133",
"0.5208229",
"0.51997703",
"0.5163165",
"0.5110611",
"0.5110611",
"0.50615907",
"0.5060854",
"0.5048045",
"0.4988251",
"0.49806634",
"0.4968447",
"0.49558696",
"0.495508",
"0.49507403",
"0.49490055",
"0.49427503",
"0.49201238... | 0.0 | -1 |
Tests the custom SMTP server integration connection set on this domain The request body is optional. If omitted, this endpoint will just test the connection of the Custom SMTP Server. If the body is specified, there will be an attempt to send an email message to the server. | def post_routing_email_domain_testconnection_with_http_info(domain_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_routing_email_domain_testconnection ..."
end
# verify the required parameter 'domain_id' is set
fail ArgumentError, "Missing the required parameter 'domain_id' when calling RoutingApi.post_routing_email_domain_testconnection" if domain_id.nil?
# resource path
local_var_path = "/api/v2/routing/email/domains/{domainId}/testconnection".sub('{format}','json').sub('{' + 'domainId' + '}', domain_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(opts[:'body'])
auth_names = ['PureCloud OAuth']
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 => 'TestMessage')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_routing_email_domain_testconnection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_sg_client_input_has_optional_variables\n RestClient.stubs(:post).returns(exp_msg)\n ENV.stubs(:[]).returns('AN ENV VAR')\n valid_addr = EmailAddress.new ''\n\n email_obj = EmailObject.new\n email_obj.from = valid_addr\n email_obj.to = [valid_addr]\n email_obj.cc =... | [
"0.5449397",
"0.53595436",
"0.5352671",
"0.5290339",
"0.5208568",
"0.5201236",
"0.5164813",
"0.5109909",
"0.5109909",
"0.50622755",
"0.5062183",
"0.5046606",
"0.49898547",
"0.4981356",
"0.49665996",
"0.49575055",
"0.4954265",
"0.4950047",
"0.49486405",
"0.49434114",
"0.492152... | 0.0 | -1 |
Bulk add or delete up to 100 queue members | def post_routing_queue_users(queue_id, body, opts = {})
data, _status_code, _headers = post_routing_queue_users_with_http_info(queue_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_bulk(queue, items = [])\n items.each do |item|\n add(queue, item, {})\n end\n end",
"def add_bulk(queue, items = [])\n items.each do |item|\n add(queue, item)\n end\n end",
"def dequeue_many\n number = multi.easy_handles.count\n until number == max_concurrency || q... | [
"0.66271067",
"0.66016847",
"0.63020736",
"0.62214005",
"0.58317333",
"0.58139485",
"0.5786221",
"0.5770046",
"0.5759326",
"0.5742784",
"0.5731851",
"0.57226694",
"0.5714954",
"0.5669254",
"0.56455994",
"0.56011117",
"0.55886185",
"0.5581195",
"0.5569495",
"0.5565175",
"0.556... | 0.0 | -1 |
Bulk add or delete up to 100 queue members | def post_routing_queue_users_with_http_info(queue_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_routing_queue_users ..."
end
# verify the required parameter 'queue_id' is set
fail ArgumentError, "Missing the required parameter 'queue_id' when calling RoutingApi.post_routing_queue_users" if queue_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.post_routing_queue_users" if body.nil?
# resource path
local_var_path = "/api/v2/routing/queues/{queueId}/users".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s)
# query parameters
query_params = {}
query_params[:'delete'] = opts[:'delete'] if opts[:'delete']
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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 => 'String')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_routing_queue_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_bulk(queue, items = [])\n items.each do |item|\n add(queue, item, {})\n end\n end",
"def add_bulk(queue, items = [])\n items.each do |item|\n add(queue, item)\n end\n end",
"def dequeue_many\n number = multi.easy_handles.count\n until number == max_concurrency || q... | [
"0.66271067",
"0.66016847",
"0.63020736",
"0.62214005",
"0.58317333",
"0.58139485",
"0.5786221",
"0.5770046",
"0.5759326",
"0.5742784",
"0.5731851",
"0.57226694",
"0.5714954",
"0.5669254",
"0.56455994",
"0.56011117",
"0.55886185",
"0.5581195",
"0.5569495",
"0.5565175",
"0.556... | 0.0 | -1 |
Add up to 100 wrapup codes to a queue | def post_routing_queue_wrapupcodes(queue_id, body, opts = {})
data, _status_code, _headers = post_routing_queue_wrapupcodes_with_http_info(queue_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def insert_into_p_queue(queue, word_info)\n queue << word_info\n percolate_up_by_distance(queue, queue.length - 1)\nend",
"def queue(_); end",
"def queue(_); end",
"def queue; end",
"def queue; end",
"def test_three\n print \"Test three (enqueue batch of messages): \"\n msg_ary = (1..14).map{|i| i.to... | [
"0.61668104",
"0.61133665",
"0.61133665",
"0.5999834",
"0.5999834",
"0.5864374",
"0.5853248",
"0.58508885",
"0.5834862",
"0.57554483",
"0.5675224",
"0.5665355",
"0.5664251",
"0.56512016",
"0.5650983",
"0.5634216",
"0.56126505",
"0.56108755",
"0.56003284",
"0.5599563",
"0.5588... | 0.0 | -1 |
Add up to 100 wrapup codes to a queue | def post_routing_queue_wrapupcodes_with_http_info(queue_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_routing_queue_wrapupcodes ..."
end
# verify the required parameter 'queue_id' is set
fail ArgumentError, "Missing the required parameter 'queue_id' when calling RoutingApi.post_routing_queue_wrapupcodes" if queue_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.post_routing_queue_wrapupcodes" if body.nil?
# resource path
local_var_path = "/api/v2/routing/queues/{queueId}/wrapupcodes".sub('{format}','json').sub('{' + 'queueId' + '}', queue_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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 => 'Array<WrapupCode>')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_routing_queue_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def insert_into_p_queue(queue, word_info)\n queue << word_info\n percolate_up_by_distance(queue, queue.length - 1)\nend",
"def queue(_); end",
"def queue(_); end",
"def queue; end",
"def queue; end",
"def test_three\n print \"Test three (enqueue batch of messages): \"\n msg_ary = (1..14).map{|i| i.to... | [
"0.61656034",
"0.6112707",
"0.6112707",
"0.5999109",
"0.5999109",
"0.5864202",
"0.58523136",
"0.5850654",
"0.5834425",
"0.57550305",
"0.56735295",
"0.566377",
"0.5662631",
"0.56515235",
"0.5649716",
"0.5633569",
"0.56119514",
"0.5610646",
"0.5599682",
"0.55987173",
"0.55868",... | 0.0 | -1 |
Provision an Address for SMS | def post_routing_sms_addresses(body, opts = {})
data, _status_code, _headers = post_routing_sms_addresses_with_http_info(body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create\n super do |user|\n if user.persisted?\n user.addresses.create(address_params) if address_params_present?\n\n SmsService.new.send_message(user.phone, \"Thanks for registering for the California Connects Alerts service! Click this link to confirm your registration: \" + user_success... | [
"0.6518221",
"0.64117014",
"0.63895154",
"0.62842983",
"0.62263405",
"0.6101729",
"0.5997345",
"0.59931666",
"0.59867465",
"0.59867465",
"0.5964585",
"0.5961647",
"0.59059477",
"0.58873254",
"0.5880759",
"0.5859769",
"0.5841215",
"0.579767",
"0.578744",
"0.57767296",
"0.57727... | 0.0 | -1 |
Provision an Address for SMS | def post_routing_sms_addresses_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_routing_sms_addresses ..."
end
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.post_routing_sms_addresses" if body.nil?
# resource path
local_var_path = "/api/v2/routing/sms/addresses".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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 => 'SmsAddress')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_routing_sms_addresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create\n super do |user|\n if user.persisted?\n user.addresses.create(address_params) if address_params_present?\n\n SmsService.new.send_message(user.phone, \"Thanks for registering for the California Connects Alerts service! Click this link to confirm your registration: \" + user_success... | [
"0.6518221",
"0.64117014",
"0.63895154",
"0.62842983",
"0.62263405",
"0.6101729",
"0.5997345",
"0.59931666",
"0.59867465",
"0.59867465",
"0.5964585",
"0.5961647",
"0.59059477",
"0.58873254",
"0.5880759",
"0.5859769",
"0.5841215",
"0.579767",
"0.578744",
"0.57767296",
"0.57727... | 0.0 | -1 |
Provision a phone number for SMS | def post_routing_sms_phonenumbers(body, opts = {})
data, _status_code, _headers = post_routing_sms_phonenumbers_with_http_info(body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send phone_number\n account = CLIENT.account \n message = account.sms.messages.create({from: TAKEAWAY_NUMBER , to: phone_number, body: \"Thanks for your order! It shall arrive no later than #{@delivery_time.strftime(\"%H\")}:#{@delivery_time.strftime(\"%M\")}.\"})\n message.body\n end",
"def send_s... | [
"0.6862759",
"0.6812921",
"0.6807717",
"0.6773498",
"0.6752584",
"0.67297846",
"0.67008483",
"0.66924274",
"0.6540124",
"0.65324944",
"0.653203",
"0.6531104",
"0.6526672",
"0.65129626",
"0.65108675",
"0.6506881",
"0.6501782",
"0.6491027",
"0.64878035",
"0.64649934",
"0.646429... | 0.0 | -1 |
Provision a phone number for SMS | def post_routing_sms_phonenumbers_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_routing_sms_phonenumbers ..."
end
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.post_routing_sms_phonenumbers" if body.nil?
# resource path
local_var_path = "/api/v2/routing/sms/phonenumbers".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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 => 'SmsPhoneNumber')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_routing_sms_phonenumbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send phone_number\n account = CLIENT.account \n message = account.sms.messages.create({from: TAKEAWAY_NUMBER , to: phone_number, body: \"Thanks for your order! It shall arrive no later than #{@delivery_time.strftime(\"%H\")}:#{@delivery_time.strftime(\"%M\")}.\"})\n message.body\n end",
"def send_s... | [
"0.6864386",
"0.68151087",
"0.68078494",
"0.67760557",
"0.67553765",
"0.6732582",
"0.6702816",
"0.66930616",
"0.6542383",
"0.65337926",
"0.65337414",
"0.65336823",
"0.6529048",
"0.6515501",
"0.65134907",
"0.65091175",
"0.65028566",
"0.649326",
"0.6489106",
"0.64672184",
"0.64... | 0.0 | -1 |
Create a wrapup code | def post_routing_wrapupcodes(body, opts = {})
data, _status_code, _headers = post_routing_wrapupcodes_with_http_info(body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wrap( content )\n content\n end",
"def build_verbatim margin\n verbatim = super\n\n verbatim.format = :ruby if @section == 'Examples'\n\n verbatim\n end",
"def wrap(html); end",
"def wrap(html); end",
"def enclose(*) end",
"def wrap_code\n wrap_lines(\"code\", /\\A\\s{4}/, remove_new... | [
"0.6064964",
"0.59156644",
"0.58780307",
"0.58780307",
"0.5829542",
"0.5819399",
"0.5719208",
"0.56911814",
"0.5677059",
"0.5672376",
"0.56419504",
"0.5617835",
"0.5553741",
"0.55483484",
"0.5519961",
"0.5517201",
"0.5492741",
"0.5485803",
"0.548204",
"0.54776835",
"0.5454938... | 0.0 | -1 |
Create a wrapup code | def post_routing_wrapupcodes_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_routing_wrapupcodes ..."
end
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.post_routing_wrapupcodes" if body.nil?
# resource path
local_var_path = "/api/v2/routing/wrapupcodes".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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 => 'WrapupCode')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_routing_wrapupcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wrap( content )\n content\n end",
"def build_verbatim margin\n verbatim = super\n\n verbatim.format = :ruby if @section == 'Examples'\n\n verbatim\n end",
"def wrap(html); end",
"def wrap(html); end",
"def enclose(*) end",
"def wrap_code\n wrap_lines(\"code\", /\\A\\s{4}/, remove_new... | [
"0.6064964",
"0.59156644",
"0.58780307",
"0.58780307",
"0.5829542",
"0.5819399",
"0.5719208",
"0.56911814",
"0.5677059",
"0.5672376",
"0.56419504",
"0.5617835",
"0.5553741",
"0.55483484",
"0.5519961",
"0.5517201",
"0.5492741",
"0.5485803",
"0.548204",
"0.54776835",
"0.5454938... | 0.0 | -1 |
Add routing language to user | def post_user_routinglanguages(user_id, body, opts = {})
data, _status_code, _headers = post_user_routinglanguages_with_http_info(user_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_load_language; load_language('lang/login'); end",
"def set_user_language\n I18n.locale = 'es-VE'\n end",
"def set_language\n params[:lang] ||= 'en'\n Localization.use params[:lang]\n end",
"def lang\n # get current page url hash\n back_hash = Rails.application.routes.recognize_pat... | [
"0.67673796",
"0.66184676",
"0.65908724",
"0.65394145",
"0.64441454",
"0.6433836",
"0.6433528",
"0.632664",
"0.6324189",
"0.62760633",
"0.6244268",
"0.61792076",
"0.6171676",
"0.6137366",
"0.6131833",
"0.6097814",
"0.60939926",
"0.6073314",
"0.60677594",
"0.60467416",
"0.6045... | 0.5626342 | 77 |
Add routing language to user | def post_user_routinglanguages_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_user_routinglanguages ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.post_user_routinglanguages" if user_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.post_user_routinglanguages" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/routinglanguages".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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 => 'UserRoutingLanguage')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_user_routinglanguages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def on_load_language; load_language('lang/login'); end",
"def set_user_language\n I18n.locale = 'es-VE'\n end",
"def set_language\n params[:lang] ||= 'en'\n Localization.use params[:lang]\n end",
"def lang\n # get current page url hash\n back_hash = Rails.application.routes.recognize_pat... | [
"0.67673796",
"0.66184676",
"0.65908724",
"0.65394145",
"0.64441454",
"0.6433836",
"0.6433528",
"0.632664",
"0.6324189",
"0.62760633",
"0.6244268",
"0.61792076",
"0.6171676",
"0.6137366",
"0.6131833",
"0.6097814",
"0.60939926",
"0.6073314",
"0.60677594",
"0.60467416",
"0.6045... | 0.5607328 | 82 |
Add routing skill to user | def post_user_routingskills(user_id, body, opts = {})
data, _status_code, _headers = post_user_routingskills_with_http_info(user_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def put_user_routingskill(user_id, skill_id, body, opts = {})\n data, _status_code, _headers = put_user_routingskill_with_http_info(user_id, skill_id, body, opts)\n return data\n end",
"def put_user_routingskill(user_id, skill_id, body, opts = {})\n data, _status_code, _headers = put_user_routi... | [
"0.63382816",
"0.63382816",
"0.6206708",
"0.6182595",
"0.5724502",
"0.5722865",
"0.5710364",
"0.5703006",
"0.5668935",
"0.5659781",
"0.56302434",
"0.5588204",
"0.5568295",
"0.5548083",
"0.5473286",
"0.5439647",
"0.5431208",
"0.5428071",
"0.5425753",
"0.5425015",
"0.5345747",
... | 0.570278 | 9 |
Add routing skill to user | def post_user_routingskills_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.post_user_routingskills ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.post_user_routingskills" if user_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.post_user_routingskills" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/routingskills".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
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 => 'UserRoutingSkill')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#post_user_routingskills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def put_user_routingskill(user_id, skill_id, body, opts = {})\n data, _status_code, _headers = put_user_routingskill_with_http_info(user_id, skill_id, body, opts)\n return data\n end",
"def put_user_routingskill(user_id, skill_id, body, opts = {})\n data, _status_code, _headers = put_user_routi... | [
"0.63382816",
"0.63382816",
"0.6206708",
"0.6182595",
"0.5724502",
"0.5722865",
"0.5710364",
"0.5703006",
"0.570278",
"0.570278",
"0.5668935",
"0.56302434",
"0.5588204",
"0.5568295",
"0.5548083",
"0.5473286",
"0.5439647",
"0.5431208",
"0.5428071",
"0.5425753",
"0.5425015",
... | 0.5659781 | 11 |
Update an organization's routing settings | def put_routing_settings(body, opts = {})
data, _status_code, _headers = put_routing_settings_with_http_info(body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update!(**args)\n @app_engine_routing_override = args[:app_engine_routing_override] if args.key?(:app_engine_routing_override)\n end",
"def update\n @organization = Organization.find_by_permalink(params[:id])\n\n respond_to do |format|\n if @organization.update_attributes(params[:o... | [
"0.6253821",
"0.61645573",
"0.61428404",
"0.6069559",
"0.599327",
"0.59703285",
"0.5853753",
"0.58169043",
"0.57749015",
"0.5764104",
"0.5713244",
"0.56501746",
"0.56207615",
"0.5590294",
"0.5581933",
"0.55707884",
"0.55244845",
"0.55160195",
"0.55036753",
"0.5466754",
"0.545... | 0.547481 | 19 |
Update an organization&39;s routing settings | def put_routing_settings_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.put_routing_settings ..."
end
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.put_routing_settings" if body.nil?
# resource path
local_var_path = "/api/v2/routing/settings".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'RoutingSettings')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#put_routing_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n if @organization.update(organization_params)\n redirect_to [:settings, @organization], notice: \"Organization was successfully updated.\"\n else\n render :edit\n end\n end",
"def update\n @organization = Organization.find_by_permalink(params[:id])\n\n respond_to do |format|... | [
"0.66069824",
"0.6575321",
"0.6574958",
"0.65725124",
"0.6462627",
"0.63598555",
"0.63455594",
"0.62883806",
"0.6180212",
"0.6171866",
"0.61252767",
"0.6103237",
"0.6086898",
"0.6046226",
"0.6025965",
"0.60257435",
"0.6013697",
"0.6012732",
"0.6012732",
"0.59997904",
"0.59968... | 0.0 | -1 |
Update a phone number provisioned for SMS. | def put_routing_sms_phonenumber(address_id, body, opts = {})
data, _status_code, _headers = put_routing_sms_phonenumber_with_http_info(address_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_phone(user_id:, number:)\n path = '/users/{userId}/phone'\n .gsub('{userId}', user_id)\n\n if user_id.nil?\n raise Appwrite::Exception.new('Missing required parameter: \"userId\"')\n end\n\n if number.nil?\n raise Appwr... | [
"0.73279136",
"0.7184592",
"0.7002344",
"0.7002344",
"0.7002344",
"0.7002344",
"0.6957067",
"0.69405353",
"0.69245255",
"0.6864537",
"0.6787151",
"0.67414963",
"0.672065",
"0.6718302",
"0.6662188",
"0.66296077",
"0.6623097",
"0.65978414",
"0.65717787",
"0.6522431",
"0.6502036... | 0.0 | -1 |
Update a phone number provisioned for SMS. | def put_routing_sms_phonenumber_with_http_info(address_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.put_routing_sms_phonenumber ..."
end
# verify the required parameter 'address_id' is set
fail ArgumentError, "Missing the required parameter 'address_id' when calling RoutingApi.put_routing_sms_phonenumber" if address_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.put_routing_sms_phonenumber" if body.nil?
# resource path
local_var_path = "/api/v2/routing/sms/phonenumbers/{addressId}".sub('{format}','json').sub('{' + 'addressId' + '}', address_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'SmsPhoneNumber')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#put_routing_sms_phonenumber\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_phone(user_id:, number:)\n path = '/users/{userId}/phone'\n .gsub('{userId}', user_id)\n\n if user_id.nil?\n raise Appwrite::Exception.new('Missing required parameter: \"userId\"')\n end\n\n if number.nil?\n raise Appwr... | [
"0.73279136",
"0.7184592",
"0.7002344",
"0.7002344",
"0.7002344",
"0.7002344",
"0.6957067",
"0.69405353",
"0.69245255",
"0.6864537",
"0.6787151",
"0.67414963",
"0.672065",
"0.6718302",
"0.6662188",
"0.66296077",
"0.6623097",
"0.65978414",
"0.65717787",
"0.6522431",
"0.6502036... | 0.0 | -1 |
Update the user's max utilization settings. Include only those media types requiring custom configuration. | def put_routing_user_utilization(user_id, body, opts = {})
data, _status_code, _headers = put_routing_user_utilization_with_http_info(user_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_quota_override(users:)\n figshare = Figshare::Init.new(figshare_user: 'figshare_admin', conf_dir: \"#{__dir__}/../conf\" )\n users.each do |upi, quota|\n user_record_from_upi(figshare: figshare, upi: upi) do |u|\n # don't change, if they already have more quota than the override.\n users[... | [
"0.5726761",
"0.56605685",
"0.55491626",
"0.5483272",
"0.5373496",
"0.53351706",
"0.532419",
"0.53086007",
"0.5290161",
"0.52898955",
"0.52133876",
"0.51980203",
"0.51673466",
"0.5142949",
"0.51359296",
"0.50859404",
"0.5070524",
"0.50646293",
"0.50524974",
"0.5042412",
"0.50... | 0.0 | -1 |
Update the user&39;s max utilization settings. Include only those media types requiring custom configuration. | def put_routing_user_utilization_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.put_routing_user_utilization ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.put_routing_user_utilization" if user_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.put_routing_user_utilization" if body.nil?
# resource path
local_var_path = "/api/v2/routing/users/{userId}/utilization".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Utilization')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#put_routing_user_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update_quota_override(users:)\n figshare = Figshare::Init.new(figshare_user: 'figshare_admin', conf_dir: \"#{__dir__}/../conf\" )\n users.each do |upi, quota|\n user_record_from_upi(figshare: figshare, upi: upi) do |u|\n # don't change, if they already have more quota than the override.\n users[... | [
"0.58667195",
"0.5592292",
"0.5570654",
"0.55138874",
"0.54423434",
"0.54177564",
"0.5380342",
"0.5363395",
"0.5354421",
"0.5319543",
"0.5295456",
"0.5261531",
"0.5251951",
"0.52021277",
"0.51973486",
"0.51748085",
"0.51731026",
"0.51269615",
"0.5074887",
"0.50733787",
"0.506... | 0.0 | -1 |
Update the organizationwide max utilization settings. Include only those media types requiring custom configuration. | def put_routing_utilization(body, opts = {})
data, _status_code, _headers = put_routing_utilization_with_http_info(body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def applySizingValues\n\n maximum_flow_rate = self.autosizedMaximumFlowRate\n if maximum_flow_rate.is_initialized\n self.setMaximumFlowRate(maximum_flow_rate.get)\n end\n\n end",
"def conf_media_type\n @conf_kit_media_types = Kitting::KitMediaType.where(:kit_type => \"configurable\",:customer... | [
"0.55107266",
"0.53241044",
"0.5265583",
"0.52075446",
"0.5175205",
"0.51060975",
"0.5088143",
"0.5080437",
"0.50599927",
"0.5059618",
"0.5052293",
"0.5035731",
"0.5010509",
"0.49944803",
"0.49766383",
"0.4976157",
"0.49686235",
"0.4956801",
"0.49195334",
"0.49130213",
"0.490... | 0.0 | -1 |
Update the organizationwide max utilization settings. Include only those media types requiring custom configuration. | def put_routing_utilization_with_http_info(body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.put_routing_utilization ..."
end
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.put_routing_utilization" if body.nil?
# resource path
local_var_path = "/api/v2/routing/utilization".sub('{format}','json')
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'Utilization')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#put_routing_utilization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def applySizingValues\n\n maximum_flow_rate = self.autosizedMaximumFlowRate\n if maximum_flow_rate.is_initialized\n self.setMaximumFlowRate(maximum_flow_rate.get)\n end\n\n end",
"def conf_media_type\n @conf_kit_media_types = Kitting::KitMediaType.where(:kit_type => \"configurable\",:customer... | [
"0.55100745",
"0.53242576",
"0.5264655",
"0.5207981",
"0.5175614",
"0.51039493",
"0.50890243",
"0.50813234",
"0.5060327",
"0.50590384",
"0.50524294",
"0.50370514",
"0.50088525",
"0.49948967",
"0.497675",
"0.49760872",
"0.4968357",
"0.4957832",
"0.49188936",
"0.4914164",
"0.49... | 0.0 | -1 |
Update routing skill proficiency or state. | def put_user_routingskill(user_id, skill_id, body, opts = {})
data, _status_code, _headers = put_user_routingskill_with_http_info(user_id, skill_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n @proficiency = Proficiency.find(params[:id])\n\n respond_to do |format|\n if @proficiency.update_attributes(params[:proficiency])\n format.html { redirect_to @proficiency, notice: 'Proficiency was successfully updated.' }\n format.json { head :no_content }\n else\n ... | [
"0.6194108",
"0.6144667",
"0.6110313",
"0.610739",
"0.5997998",
"0.5995977",
"0.5986483",
"0.59413546",
"0.59203875",
"0.58757395",
"0.58672667",
"0.58548003",
"0.5852936",
"0.58504725",
"0.58502287",
"0.58150226",
"0.580933",
"0.5798969",
"0.57928604",
"0.575655",
"0.575655"... | 0.0 | -1 |
Update routing skill proficiency or state. | def put_user_routingskill_with_http_info(user_id, skill_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.put_user_routingskill ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.put_user_routingskill" if user_id.nil?
# verify the required parameter 'skill_id' is set
fail ArgumentError, "Missing the required parameter 'skill_id' when calling RoutingApi.put_user_routingskill" if skill_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.put_user_routingskill" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/routingskills/{skillId}".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s).sub('{' + 'skillId' + '}', skill_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'UserRoutingSkill')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#put_user_routingskill\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n @proficiency = Proficiency.find(params[:id])\n\n respond_to do |format|\n if @proficiency.update_attributes(params[:proficiency])\n format.html { redirect_to @proficiency, notice: 'Proficiency was successfully updated.' }\n format.json { head :no_content }\n else\n ... | [
"0.61944985",
"0.6147354",
"0.6110449",
"0.6109615",
"0.6000247",
"0.59980595",
"0.5986539",
"0.59431124",
"0.59231895",
"0.5878139",
"0.5870097",
"0.5855159",
"0.585491",
"0.58531135",
"0.58520454",
"0.5816934",
"0.58111554",
"0.5801283",
"0.5795391",
"0.5758922",
"0.5758922... | 0.0 | -1 |
Replace all routing skills assigned to a user | def put_user_routingskills_bulk(user_id, body, opts = {})
data, _status_code, _headers = put_user_routingskills_bulk_with_http_info(user_id, body, opts)
return data
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_user\n @user = User.find(params[:id])\n @skills = Skill.all\n @my_skills = @user.skills.all.map { |k| k[:name] }\n end",
"def set_user_skill\n @user_skill = UserSkill.find_by(id: user_skill_params[:user_skill_id])\n end",
"def set_skills_user\n @skills_user = SkillsUser.find(... | [
"0.6303068",
"0.5790454",
"0.5774879",
"0.56719655",
"0.55872256",
"0.55627143",
"0.55481476",
"0.5501174",
"0.5501174",
"0.5463657",
"0.5442479",
"0.5435692",
"0.53927755",
"0.5347596",
"0.5304192",
"0.5302671",
"0.5277411",
"0.5251048",
"0.52171504",
"0.5214344",
"0.5154652... | 0.5239489 | 18 |
Replace all routing skills assigned to a user | def put_user_routingskills_bulk_with_http_info(user_id, body, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: RoutingApi.put_user_routingskills_bulk ..."
end
# verify the required parameter 'user_id' is set
fail ArgumentError, "Missing the required parameter 'user_id' when calling RoutingApi.put_user_routingskills_bulk" if user_id.nil?
# verify the required parameter 'body' is set
fail ArgumentError, "Missing the required parameter 'body' when calling RoutingApi.put_user_routingskills_bulk" if body.nil?
# resource path
local_var_path = "/api/v2/users/{userId}/routingskills/bulk".sub('{format}','json').sub('{' + 'userId' + '}', user_id.to_s)
# query parameters
query_params = {}
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
local_header_accept = ['application/json']
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
# HTTP header 'Content-Type'
local_header_content_type = ['application/json']
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
# form parameters
form_params = {}
# http body (model)
post_body = @api_client.object_to_http_body(body)
auth_names = ['PureCloud OAuth']
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => 'UserSkillEntityListing')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: RoutingApi#put_user_routingskills_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_user\n @user = User.find(params[:id])\n @skills = Skill.all\n @my_skills = @user.skills.all.map { |k| k[:name] }\n end",
"def set_user_skill\n @user_skill = UserSkill.find_by(id: user_skill_params[:user_skill_id])\n end",
"def set_skills_user\n @skills_user = SkillsUser.find(... | [
"0.6303068",
"0.5790454",
"0.5774879",
"0.56719655",
"0.55872256",
"0.55627143",
"0.55481476",
"0.5501174",
"0.5501174",
"0.5463657",
"0.5442479",
"0.5435692",
"0.53927755",
"0.5347596",
"0.5304192",
"0.5302671",
"0.5277411",
"0.5251048",
"0.5239489",
"0.52171504",
"0.5214344... | 0.4774944 | 76 |
Returns true if the repository can be destroyed. | def destroy?
raise Pundit::NotAuthorizedError, "must be logged in" unless @user
@user.admin? || @repository.namespace.team.owners.exists?(user.id)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def can_destroy?(repository)\n APP_CONFIG.enabled?(\"delete\") &&\n RepositoryPolicy.new(current_user, repository).destroy?\n end",
"def destroyed?\n @destroyed == true\n end",
"def destroyed?\n !!@destroyed\n end",
"def destroyed?\n !!destroyed\n end",
... | [
"0.80101246",
"0.6790663",
"0.67838305",
"0.6780774",
"0.6774443",
"0.6774443",
"0.6774443",
"0.6774443",
"0.6767281",
"0.6767281",
"0.6767281",
"0.6732477",
"0.6732477",
"0.6732477",
"0.6732477",
"0.6727933",
"0.6690359",
"0.66551965",
"0.6593958",
"0.6572084",
"0.6558815",
... | 0.61170846 | 41 |
Just calling model_cls.new(attrs) fails to account for embedded associations that are inherited with _type. We check for embedded associations and ensure that embeds_many and embeds_one are handled properly. | def _reify model_cls, attrs
disc_key = model_cls.discriminator_key
model_cls = attrs[disc_key].constantize if attrs[disc_key]
instance = model_cls.new
attrs.each do |k, v|
if (rel = model_cls.relations[k]) && rel.embedded?
# Reify the subrel
if rel.is_a?(Mongoid::Association::Embedded::EmbedsMany)
instance[k] = v.map { |v_curr| _reify(rel.relation_class_name.constantize, v_curr) }
else
instance[k] = _reify(rel.relation_class_name.constantize, v)
end
else
# Reify the attribute directly
instance[k] = v
end
end
instance
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def construct_model(record, reflection, id, attributes, seen, model_cache)\n klass = if reflection.polymorphic?\n record.send(reflection.foreign_type).constantize\n else\n reflection.klass\n end\n\n model = model_cache[klass][id] ||= klass.instantiate(attributes)\n other = re... | [
"0.6377699",
"0.62251276",
"0.6024569",
"0.5934028",
"0.57572323",
"0.5727669",
"0.5664753",
"0.5664248",
"0.5582147",
"0.55699843",
"0.55603516",
"0.5559794",
"0.55230045",
"0.55061775",
"0.55044043",
"0.54982626",
"0.54449993",
"0.5444811",
"0.5436498",
"0.540047",
"0.53890... | 0.6256274 | 1 |
This is an implementation of HyperLogLog that allows for querying counts within time ranges of the form (t, current_time] with secondlevel granularity. The standard implementation of HyperLogLog stores the max number of leading zeros seen in the image of each of 2 b hash functions. These counts can naturally be stored in a string of length 2 b by allocating one byte per leading zero count. To provide counts within a time range, we alter the standard implementation to store a mapping of pairs of the form (hash function, leading zero count) > timestamp, where the mapping (h,z) > t represents the fact that we observed z leading zeros in the image of hash function h most recently at time t. This mapping is stored in a string by packing 4byte words (timestamps, represented in seconds since the epoch) into a matrix indexed by hash function and zero count stored in rowmajor order. Since the max zero count for a counter with parameter b is (32b), this representation takes up at most 4 (32b) (2 b) bytes (and usually much less, since we don't allocate space for rows corresponding to higher leading zero counts until they're actaully observed.) To convert this representation to a HyperLogLog counter for the time range (t, current_time], we simply filter out all timestamps less than t in the matrix and then find, for each hash function, the maximum z for which that hash function has a nonzero timestamp. | def add(counter_name, value, time=nil)
hash, function_name, new_value = hash_info(value)
index = 4 * (function_name + (new_value.to_i * @m))
if time.nil?
@redis.setrange(counter_name, index, [Time.now.to_i].pack('N'))
else
existing_time = @redis.getrange(counter_name, index, index + 3)
existing_val = existing_time.empty? ? 0 : existing_time.unpack('N').first
@redis.setrange(counter_name, index, [time.to_i].pack('N')) if time.to_i > existing_val
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def counter(args={})\n assert_open!\n hour = date_as_hour((args[:when] || Time.now).utc)\n metric = escape(required(args, :what).to_s)\n where = (args[:where] || {}).map{|k,v| [k, v, escape(k) << '=' << escape(v), max_ttl_of_dimension[k]] }\n where.all_combinations do |dimensions|\n ... | [
"0.6243425",
"0.53657883",
"0.5239109",
"0.5222927",
"0.51235074",
"0.51185876",
"0.5074047",
"0.50736433",
"0.5050659",
"0.50372344",
"0.5023464",
"0.5010807",
"0.5009262",
"0.49849558",
"0.49724692",
"0.49686176",
"0.4952284",
"0.49409047",
"0.4926903",
"0.49217117",
"0.491... | 0.0 | -1 |
Estimate the cardinality of a single set | def count(counter_name, time=0)
union_helper([counter_name], time)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def total_set\n self.inject(0) { |a, bucket| a += bucket.zero? ? 0 : 1; a }\n end",
"def cardinality\n tuples.size\n end",
"def size\n if @size.nil?\n @size = @mset.inject(0) do |total, pair|\n value = pair[1]\n if value.is_a? Array\n total... | [
"0.70498866",
"0.69712543",
"0.6679303",
"0.65765923",
"0.6355469",
"0.6303193",
"0.62723416",
"0.6223615",
"0.62147194",
"0.6185469",
"0.61191946",
"0.61103314",
"0.60712945",
"0.60626507",
"0.60600716",
"0.60403395",
"0.5987438",
"0.5902531",
"0.5878542",
"0.58720654",
"0.5... | 0.0 | -1 |
Estimate the cardinality of the union of several sets | def union(counter_names, time=0)
union_helper(counter_names, time)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def combine_lists set\n # get all possible sets of the given values\n combinations = set.flatten.combination(set.size)\n # reject any that contain more than one value from a given list\n combinations.reject do |combination|\n min_size = combination.size - 1\n set.any? do |list|\n (comb... | [
"0.6399846",
"0.6189266",
"0.61717284",
"0.60279244",
"0.5992748",
"0.5915982",
"0.58862007",
"0.58216864",
"0.5784785",
"0.5731821",
"0.5731821",
"0.572891",
"0.57109976",
"0.57109976",
"0.5706994",
"0.56812865",
"0.5678477",
"0.5640571",
"0.5636645",
"0.5616305",
"0.5608217... | 0.0 | -1 |
Store the union of several sets in destination so that it can be used as a HyperLogLog counter later. | def union_store(destination, counter_names, time=0)
raw_counters = @redis.mget(*counter_names).compact.map{ |c| c.unpack('N*').map{ |x| x > time ? x : 0 } }
combined_counters = jagged_transpose(raw_counters).map{ |x| x.max.to_i }
@redis.set(destination, combined_counters.pack('N*'))
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sunionstore(destination, *keys); end",
"def sunionstore(destination, *keys); end",
"def unionstore(target, *others)\n opts = others.last.is_a?(Hash) ? others.pop : {}\n conn.zunionstore target.to_s, [key] + others.map(&:to_s), opts\n self.class.new target.to_s, conn\n end",
"def zunionstore(des... | [
"0.7033962",
"0.7033962",
"0.6457777",
"0.6349265",
"0.63489294",
"0.60691786",
"0.60489476",
"0.5857254",
"0.58323574",
"0.57989734",
"0.57058865",
"0.56599593",
"0.5649188",
"0.56361735",
"0.55414313",
"0.55046123",
"0.55046123",
"0.54647946",
"0.54387736",
"0.54387736",
"0... | 0.5983583 | 7 |
Given an array of nonuniform length arrays, rightpad all arrays with zeros so they're the same size, then transpose the array. This is a destructive operation: the zeropadding modifies the arrayofarrays | def jagged_transpose(arrays)
max_length = arrays.map{ |a| a.length }.max
arrays.map{ |a| a.fill(0, a.length, max_length - a.length) }.transpose
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transpose(array)\n result = []\n number = array.count\n if array.empty?\n single_array = array\n else\n single_array = [array[0]]\n end\n single_array.each do |val|\n val.each do |v|\n new_array = []\n number.times do\n new_array << v\n end\n result << new_array\n e... | [
"0.67185825",
"0.65414304",
"0.64826894",
"0.6358183",
"0.6284582",
"0.62558293",
"0.6179306",
"0.6164385",
"0.6154813",
"0.60738105",
"0.59777343",
"0.5919717",
"0.5879765",
"0.5865317",
"0.58263654",
"0.5804391",
"0.58035696",
"0.57423973",
"0.5734635",
"0.57249856",
"0.571... | 0.71513534 | 0 |
GET /stock_gabarras/1 GET /stock_gabarras/1.xml | def show
@stock_gabarra = StockGabarra.find(params[:id])
respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @stock_gabarra }
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def show\n @stock = Stock.find(params[:id])\n\n respond_to do |format|\n format.html # show.html.erb\n format.xml { render :xml => @stock }\n end\n end",
"def new\n @stock_gabarra = StockGabarra.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { rende... | [
"0.67526084",
"0.6715799",
"0.6571327",
"0.65441597",
"0.6493681",
"0.6479716",
"0.63526934",
"0.6342628",
"0.633463",
"0.62446284",
"0.61916393",
"0.6180023",
"0.6170798",
"0.6159341",
"0.6104314",
"0.60863477",
"0.606803",
"0.6045858",
"0.60283875",
"0.60276",
"0.60222316",... | 0.73484886 | 0 |
GET /stock_gabarras/new GET /stock_gabarras/new.xml | def new
@stock_gabarra = StockGabarra.new
respond_to do |format|
format.html # new.html.erb
format.xml { render :xml => @stock_gabarra }
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def new\n @stock = Stock.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.xml { render :xml => @stock }\n end\n end",
"def new\r\n @stock_transfer = StockTransfer.new\r\n\r\n respond_to do |format|\r\n format.html # new.html.erb\r\n format.xml { render :x... | [
"0.75774455",
"0.713519",
"0.71218437",
"0.71024317",
"0.7076562",
"0.69889104",
"0.6884069",
"0.6884069",
"0.6884069",
"0.6884069",
"0.6884069",
"0.6884069",
"0.67877734",
"0.6784752",
"0.6774144",
"0.6696844",
"0.6692977",
"0.66864675",
"0.66664976",
"0.6634966",
"0.6622655... | 0.77319825 | 0 |
POST /stock_gabarras POST /stock_gabarras.xml | def create
@stock_gabarra = StockGabarra.new(params[:stock_gabarra])
respond_to do |format|
if @stock_gabarra.save
flash[:notice] = 'StockGabarra was successfully created.'
format.html { redirect_to(@stock_gabarra) }
format.xml { render :xml => @stock_gabarra, :status => :created, :location => @stock_gabarra }
else
format.html { render :action => "new" }
format.xml { render :xml => @stock_gabarra.errors, :status => :unprocessable_entity }
end
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def create\n @stock = Stock.new(params[:stock])\n\n respond_to do |format|\n if @stock.save\n flash[:notice] = 'Stock was successfully created.'\n format.html { redirect_to(@stock) }\n format.xml { render :xml => @stock, :status => :created, :location => @stock }\n else\n ... | [
"0.6194585",
"0.6093889",
"0.60368073",
"0.6017775",
"0.6014114",
"0.59872866",
"0.588416",
"0.5862459",
"0.5862459",
"0.5862459",
"0.5862459",
"0.5862459",
"0.5862459",
"0.58326036",
"0.5828713",
"0.5828713",
"0.5828713",
"0.5828713",
"0.5815972",
"0.57984734",
"0.5779719",
... | 0.70952505 | 0 |
PUT /stock_gabarras/1 PUT /stock_gabarras/1.xml | def update
@stock_gabarra = StockGabarra.find(params[:id])
respond_to do |format|
if @stock_gabarra.update_attributes(params[:stock_gabarra])
flash[:notice] = 'StockGabarra was successfully updated.'
format.html { redirect_to(@stock_gabarra) }
format.xml { head :ok }
else
format.html { render :action => "edit" }
format.xml { render :xml => @stock_gabarra.errors, :status => :unprocessable_entity }
end
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def update\n @stock = Stock.find(params[:id])\n\n respond_to do |format|\n if @stock.update_attributes(params[:stock])\n flash[:notice] = 'Stock was successfully updated.'\n format.html { redirect_to(@stock) }\n format.xml { head :ok }\n else\n format.html { render :act... | [
"0.6187903",
"0.61674374",
"0.6154142",
"0.6084725",
"0.6019372",
"0.5988001",
"0.59314835",
"0.5902975",
"0.58936757",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5881712",
"0.5876238",
... | 0.6751812 | 0 |
DELETE /stock_gabarras/1 DELETE /stock_gabarras/1.xml | def destroy
@stock_gabarra = StockGabarra.find(params[:id])
@stock_gabarra.destroy
respond_to do |format|
format.html { redirect_to(stock_gabarras_url) }
format.xml { head :ok }
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def destroy\n @stock = Stock.find(params[:id])\n @stock.destroy\n\n respond_to do |format|\n format.html { redirect_to(stocks_url) }\n format.xml { head :ok }\n end\n end",
"def destroy\n @stock = Stock.find(params[:id])\n @stock.destroy\n\n respond_to do |format|\n format.h... | [
"0.67664903",
"0.67664903",
"0.6697583",
"0.6637852",
"0.65870255",
"0.6581397",
"0.65796584",
"0.6570577",
"0.6497727",
"0.64919853",
"0.64591134",
"0.6368759",
"0.6343575",
"0.6312497",
"0.62912893",
"0.62897813",
"0.6233325",
"0.62260705",
"0.6219344",
"0.6213168",
"0.6209... | 0.7252481 | 0 |
making menu, order accessible | def add_dish(list_of_dishes)
list_of_dishes.each do |dish, qty|
ordering.add(dish, qty)
end
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def main_menu\n h = {\n a: :ag,\n z: :z_interface,\n # f: :file_actions,\n b: :bookmark_menu,\n c: :create_menu,\n f: :filter_menu,\n o: :order_menu,\n s: :selection_menu,\n t: :toggle_menu,\n v: :view_menu,\n '`' => :goto_parent_dir,\n x: :extras\n }\n menu 'Main Menu', h\n... | [
"0.71528876",
"0.70974785",
"0.7046387",
"0.6994591",
"0.695345",
"0.69353944",
"0.6921796",
"0.6838317",
"0.68347776",
"0.67882776",
"0.6748142",
"0.6649641",
"0.6641201",
"0.6641201",
"0.6634122",
"0.66339314",
"0.6632626",
"0.6599398",
"0.65843594",
"0.6545122",
"0.6542696... | 0.0 | -1 |
Returns an optional workout sumary If defaults are set returns standard summary. Otherwaise returns the start_workout partial | def workout_program(user)
return workout_summary(user) if user.started?
start_workout(user)
end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def summary\n #render unless @output\n @summary\n end",
"def summary *args\n @summary = args.first if args.size > 0\n end",
"def workout\n WorkoutPlan.new(plan)\n end",
"def total_workouts\n set_sport_by_user.count || 0\n end",
"def edit_summary\n return summary unless diff_... | [
"0.5523957",
"0.530634",
"0.52549636",
"0.5158978",
"0.5071245",
"0.4990898",
"0.49788228",
"0.49595895",
"0.49449766",
"0.4916034",
"0.48936713",
"0.4891835",
"0.48880687",
"0.48851243",
"0.48846623",
"0.48550475",
"0.48405808",
"0.48034096",
"0.47995967",
"0.47987047",
"0.4... | 0.60265905 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.