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 flow version list
def get_flow_versions(flow_id, opts = {}) data, _status_code, _headers = get_flow_versions_with_http_info(flow_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_all_versions()\n return []\n end", "def get_all_versions\n []\n end", "def getVersions\r\n\t\t\t\t\treturn @versions\r\n\t\t\t\tend", "def versions\n Version.all\n end", "def versions_as_list(version)\n versions = []\n if not version.nil?\n 1.upto(version) {|i| ...
[ "0.7438904", "0.73289996", "0.7105577", "0.69830084", "0.68264", "0.6786525", "0.67712176", "0.6741119", "0.673672", "0.67021894", "0.6697299", "0.667896", "0.66665274", "0.66529936", "0.66243243", "0.65705615", "0.65705615", "0.65705615", "0.6512397", "0.64974475", "0.647524...
0.0
-1
Get flow version list
def get_flow_versions_with_http_info(flow_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flow_versions ..." end # verify the required parameter 'flow_id' is set fail ArgumentError, "Missing the required parameter 'flow_id' when calling ArchitectApi.get_flow_versions" if flow_id.nil? # resource path local_var_path = "/api/v2/flows/{flowId}/versions".sub('{format}','json').sub('{' + 'flowId' + '}', flow_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] # 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 => 'FlowVersionEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flow_versions\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_all_versions()\n return []\n end", "def get_all_versions\n []\n end", "def getVersions\r\n\t\t\t\t\treturn @versions\r\n\t\t\t\tend", "def versions\n Version.all\n end", "def versions_as_list(version)\n versions = []\n if not version.nil?\n 1.upto(version) {|i| ...
[ "0.7438904", "0.73289996", "0.7105577", "0.69830084", "0.68264", "0.6786525", "0.67712176", "0.6741119", "0.673672", "0.67021894", "0.6697299", "0.667896", "0.66665274", "0.66529936", "0.66243243", "0.65705615", "0.65705615", "0.65705615", "0.6512397", "0.64974475", "0.647524...
0.5665735
77
Get a pageable list of flows, filtered by query parameters If one or more IDs are specified, the search will fetch flows that match the given ID(s) and not use any additional supplied query parameters in the search.
def get_flows(opts = {}) data, _status_code, _headers = get_flows_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @title = t('view.flows.index_title')\n @flows = Flow.order(\n 'created_at DESC'\n ).filtered_list(params[:q]).page(params[:page])\n\n @flows_count = FlowsCount.first\n end", "def index\n @title = t('view.flows.index_title')\n @flows = Flow.filtered_list(params[:q]).order(\n ...
[ "0.5664656", "0.550273", "0.53067917", "0.5276147", "0.5173769", "0.50719416", "0.5063908", "0.50241256", "0.49445453", "0.4942895", "0.49305314", "0.49287653", "0.4925834", "0.49049816", "0.48548636", "0.48131493", "0.4806832", "0.48006734", "0.4796188", "0.47888017", "0.478...
0.5314274
2
Get a pageable list of flows, filtered by query parameters If one or more IDs are specified, the search will fetch flows that match the given ID(s) and not use any additional supplied query parameters in the search.
def get_flows_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows ..." end if opts[:'secure'] && !['any', 'checkedin', 'published'].include?(opts[:'secure']) fail ArgumentError, 'invalid value for "secure", must be one of any, checkedin, published' end # resource path local_var_path = "/api/v2/flows".sub('{format}','json') # query parameters query_params = {} query_params[:'type'] = @api_client.build_collection_param(opts[:'type'], :multi) if opts[:'type'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id'] query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'description'] = opts[:'description'] if opts[:'description'] query_params[:'nameOrDescription'] = opts[:'name_or_description'] if opts[:'name_or_description'] query_params[:'publishVersionId'] = opts[:'publish_version_id'] if opts[:'publish_version_id'] query_params[:'editableBy'] = opts[:'editable_by'] if opts[:'editable_by'] query_params[:'lockedBy'] = opts[:'locked_by'] if opts[:'locked_by'] query_params[:'lockedByClientId'] = opts[:'locked_by_client_id'] if opts[:'locked_by_client_id'] query_params[:'secure'] = opts[:'secure'] if opts[:'secure'] query_params[:'deleted'] = opts[:'deleted'] if opts[:'deleted'] query_params[:'includeSchemas'] = opts[:'include_schemas'] if opts[:'include_schemas'] query_params[:'publishedAfter'] = opts[:'published_after'] if opts[:'published_after'] query_params[:'publishedBefore'] = opts[:'published_before'] if opts[:'published_before'] 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 => 'FlowEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows\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 @title = t('view.flows.index_title')\n @flows = Flow.order(\n 'created_at DESC'\n ).filtered_list(params[:q]).page(params[:page])\n\n @flows_count = FlowsCount.first\n end", "def index\n @title = t('view.flows.index_title')\n @flows = Flow.filtered_list(params[:q]).order(\n ...
[ "0.5662926", "0.5501697", "0.531143", "0.5307552", "0.5278008", "0.5170459", "0.5073006", "0.5062964", "0.5023826", "0.4945124", "0.49446902", "0.4931375", "0.49294627", "0.4925875", "0.4901648", "0.48551962", "0.48107213", "0.48102129", "0.47968212", "0.4791802", "0.47899157...
0.4798856
18
Returns a specific datatable by id Given a datatableId returns the datatable object and schema associated with it.
def get_flows_datatable(datatable_id, opts = {}) data, _status_code, _headers = get_flows_datatable_with_http_info(datatable_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find(id)\n table_name = self.to_s.pluralize.underscore\n \n result = CONNECTION.execute(\"SELECT * FROM '#{table_name}' WHERE id = ?;\", id).first\n \n self.new(result)\n end", "def find(id)\n table_name = self.table_name\n \n result = CONNECTION.execute(\"SELECT * FROM '#{table_name...
[ "0.6259919", "0.6121061", "0.60952127", "0.594107", "0.5918189", "0.5918135", "0.58978313", "0.57530695", "0.56698155", "0.56461334", "0.56106645", "0.5565285", "0.5532856", "0.54977745", "0.5495708", "0.549424", "0.5486849", "0.54828596", "0.5482523", "0.5482523", "0.5480454...
0.5220995
46
Returns a specific datatable by id Given a datatableId returns the datatable object and schema associated with it.
def get_flows_datatable_with_http_info(datatable_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_datatable ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.get_flows_datatable" if datatable_id.nil? if opts[:'expand'] && !['schema'].include?(opts[:'expand']) fail ArgumentError, 'invalid value for "expand", must be one of schema' end # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s) # query parameters query_params = {} query_params[:'expand'] = opts[:'expand'] if opts[:'expand'] # 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 => 'DataTable') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_datatable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find(id)\n table_name = self.to_s.pluralize.underscore\n \n result = CONNECTION.execute(\"SELECT * FROM '#{table_name}' WHERE id = ?;\", id).first\n \n self.new(result)\n end", "def find(id)\n table_name = self.table_name\n \n result = CONNECTION.execute(\"SELECT * FROM '#{table_name...
[ "0.62593037", "0.61202806", "0.6094534", "0.59406394", "0.5919348", "0.5917151", "0.58991146", "0.5753235", "0.56692904", "0.5645308", "0.56106436", "0.55667484", "0.55342954", "0.54959935", "0.54957914", "0.5492808", "0.54855", "0.5482816", "0.54813147", "0.54813147", "0.547...
0.49347064
98
Returns the state information about an export job Returns the state information about an export job.
def get_flows_datatable_export_job(datatable_id, export_job_id, opts = {}) data, _status_code, _headers = get_flows_datatable_export_job_with_http_info(datatable_id, export_job_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def export_job\n return nil if completed?\n export_bank_file = Services::ExportBankFileCreator.new(self)\n if export_bank_file.read_and_create_file\n logger.info \"** ExportBankFile #{id} read_and_create returned ok, marking complete\"\n complete\n else\n logger.info \"** ImportBankFile ...
[ "0.6540193", "0.6509123", "0.6186376", "0.58983505", "0.5732661", "0.5680095", "0.56284654", "0.56238997", "0.5619052", "0.5610927", "0.56093895", "0.56078166", "0.5554607", "0.55424255", "0.5533176", "0.5482029", "0.5477111", "0.54670507", "0.5425138", "0.5320967", "0.528826...
0.5477774
16
Returns the state information about an export job Returns the state information about an export job.
def get_flows_datatable_export_job_with_http_info(datatable_id, export_job_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_datatable_export_job ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.get_flows_datatable_export_job" if datatable_id.nil? # verify the required parameter 'export_job_id' is set fail ArgumentError, "Missing the required parameter 'export_job_id' when calling ArchitectApi.get_flows_datatable_export_job" if export_job_id.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId}".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s).sub('{' + 'exportJobId' + '}', export_job_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 => 'DataTableExportJob') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_datatable_export_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def export_job\n return nil if completed?\n export_bank_file = Services::ExportBankFileCreator.new(self)\n if export_bank_file.read_and_create_file\n logger.info \"** ExportBankFile #{id} read_and_create returned ok, marking complete\"\n complete\n else\n logger.info \"** ImportBankFile ...
[ "0.6540364", "0.6510386", "0.6186599", "0.59000427", "0.57333964", "0.5682641", "0.56307477", "0.5625792", "0.56210387", "0.5613281", "0.5610943", "0.56098807", "0.5555739", "0.5542807", "0.5535832", "0.5483392", "0.54795426", "0.5478305", "0.5469415", "0.5425679", "0.5323089...
0.47193438
94
Returns the state information about an import job Returns the state information about an import job.
def get_flows_datatable_import_job(datatable_id, import_job_id, opts = {}) data, _status_code, _headers = get_flows_datatable_import_job_with_http_info(datatable_id, import_job_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def import_job\n return nil if completed?\n logger.info '** SieImport start'\n parse_and_import = Services::ImportSie.new(self)\n logger.info '** SieImport start - 1'\n if parse_and_import.read_and_save(sie_type)\n logger.info \"** SieImport #{id} parse/import returned ok, marking complete\"\n ...
[ "0.6966802", "0.6572022", "0.64720505", "0.61235684", "0.5814014", "0.5758479", "0.57065284", "0.5694684", "0.56769586", "0.561734", "0.55752933", "0.5531316", "0.55008906", "0.54936683", "0.54901433", "0.54450417", "0.54380083", "0.5418587", "0.5393284", "0.53733855", "0.537...
0.5231001
25
Returns the state information about an import job Returns the state information about an import job.
def get_flows_datatable_import_job_with_http_info(datatable_id, import_job_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_datatable_import_job ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.get_flows_datatable_import_job" if datatable_id.nil? # verify the required parameter 'import_job_id' is set fail ArgumentError, "Missing the required parameter 'import_job_id' when calling ArchitectApi.get_flows_datatable_import_job" if import_job_id.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId}".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s).sub('{' + 'importJobId' + '}', import_job_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 => 'DataTableImportJob') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_datatable_import_job\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def import_job\n return nil if completed?\n logger.info '** SieImport start'\n parse_and_import = Services::ImportSie.new(self)\n logger.info '** SieImport start - 1'\n if parse_and_import.read_and_save(sie_type)\n logger.info \"** SieImport #{id} parse/import returned ok, marking complete\"\n ...
[ "0.69660896", "0.65729976", "0.6471894", "0.61240196", "0.58132404", "0.5759747", "0.57077354", "0.56937367", "0.5675834", "0.56185263", "0.55772805", "0.5533316", "0.54984194", "0.5493159", "0.54883945", "0.5445196", "0.5438532", "0.5419456", "0.5393985", "0.5371641", "0.537...
0.0
-1
Get all recent import jobs Get all recent import jobs
def get_flows_datatable_import_jobs(datatable_id, opts = {}) data, _status_code, _headers = get_flows_datatable_import_jobs_with_http_info(datatable_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n @import_jobs = ImportJob.all\n end", "def find_jobs(import_type)\n current_user.created_projects\n .includes(:import_state)\n .where(import_type: import_type)\n .to_json(only: [:id], methods: [:import_status])\n end", "def index\n @import_jobs = [@dataset.import_job]\n en...
[ "0.731322", "0.7075802", "0.7019217", "0.6808601", "0.6753736", "0.6550473", "0.6196737", "0.61943775", "0.61682457", "0.6158508", "0.60489184", "0.6008496", "0.5991924", "0.5978485", "0.5964059", "0.59424686", "0.5940943", "0.5911983", "0.5881974", "0.586759", "0.58663213", ...
0.0
-1
Get all recent import jobs Get all recent import jobs
def get_flows_datatable_import_jobs_with_http_info(datatable_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_datatable_import_jobs ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.get_flows_datatable_import_jobs" if datatable_id.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}/import/jobs".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] # 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 => 'EntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_datatable_import_jobs\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 @import_jobs = ImportJob.all\n end", "def find_jobs(import_type)\n current_user.created_projects\n .includes(:import_state)\n .where(import_type: import_type)\n .to_json(only: [:id], methods: [:import_status])\n end", "def index\n @import_jobs = [@dataset.import_job]\n en...
[ "0.731322", "0.7075802", "0.7019217", "0.6808601", "0.6753736", "0.6550473", "0.6196737", "0.61943775", "0.61682457", "0.6158508", "0.60489184", "0.6008496", "0.5991924", "0.5978485", "0.5964059", "0.59424686", "0.5940943", "0.5911983", "0.5881974", "0.586759", "0.58663213", ...
0.0
-1
Returns a specific row for the datatable Given a datatableId and a rowId (the value of the key field) this will return the full row contents for that rowId.
def get_flows_datatable_row(datatable_id, row_id, opts = {}) data, _status_code, _headers = get_flows_datatable_row_with_http_info(datatable_id, row_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_row_by_id(id)\n require_relative 'datarow'\n DataRow.new(@api, @api.do_request(\"GET\", get_base_api_path() + \"/rows/#{id}\"))\n end", "def row_for_id(id)\n rows_for_ids(id)\n end", "def row(row_id); get(\"#{link('rows')}/#{row_id}\"); end", "def get_row_by_idx(idx)\n ...
[ "0.75572234", "0.69908935", "0.66797686", "0.64148587", "0.6184819", "0.59675837", "0.5774523", "0.57162344", "0.5651241", "0.56487703", "0.5630088", "0.5626469", "0.56127673", "0.5603098", "0.55643535", "0.5527442", "0.54883325", "0.5481169", "0.5475246", "0.5472437", "0.545...
0.6237871
4
Returns a specific row for the datatable Given a datatableId and a rowId (the value of the key field) this will return the full row contents for that rowId.
def get_flows_datatable_row_with_http_info(datatable_id, row_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_datatable_row ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.get_flows_datatable_row" if datatable_id.nil? # verify the required parameter 'row_id' is set fail ArgumentError, "Missing the required parameter 'row_id' when calling ArchitectApi.get_flows_datatable_row" if row_id.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}/rows/{rowId}".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s).sub('{' + 'rowId' + '}', row_id.to_s) # query parameters query_params = {} query_params[:'showbrief'] = opts[:'showbrief'] if opts[:'showbrief'] # 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 => 'Hash<String, Object>') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_datatable_row\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_row_by_id(id)\n require_relative 'datarow'\n DataRow.new(@api, @api.do_request(\"GET\", get_base_api_path() + \"/rows/#{id}\"))\n end", "def row_for_id(id)\n rows_for_ids(id)\n end", "def row(row_id); get(\"#{link('rows')}/#{row_id}\"); end", "def get_row_by_idx(idx)\n ...
[ "0.7555775", "0.6989446", "0.66775304", "0.6413626", "0.6235843", "0.61820644", "0.596382", "0.57743263", "0.5716154", "0.56494", "0.5647", "0.5629177", "0.56249964", "0.5614381", "0.5603769", "0.5563995", "0.55262935", "0.5486544", "0.54810184", "0.5475131", "0.5473211", "...
0.52428585
31
Returns the rows for the datatable with the given id Returns all of the rows for the datatable with the given datatableId. By default this will just be a truncated list returning the key for each row. Set showBrief to false to return all of the row contents.
def get_flows_datatable_rows(datatable_id, opts = {}) data, _status_code, _headers = get_flows_datatable_rows_with_http_info(datatable_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def row_for_id(id)\n rows_for_ids(id)\n end", "def get_flows_datatable_rows_with_http_info(datatable_id, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: ArchitectApi.get_flows_datatable_rows ...\"\n end\n \n \n # verify the...
[ "0.5608383", "0.55268306", "0.5490548", "0.5198037", "0.5030472", "0.49988636", "0.4845132", "0.48097903", "0.4801727", "0.47997105", "0.4793333", "0.47847712", "0.4690042", "0.46874318", "0.46688032", "0.46434677", "0.46347556", "0.4634001", "0.4597626", "0.4593016", "0.4575...
0.49137157
6
Returns the rows for the datatable with the given id Returns all of the rows for the datatable with the given datatableId. By default this will just be a truncated list returning the key for each row. Set showBrief to false to return all of the row contents.
def get_flows_datatable_rows_with_http_info(datatable_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_datatable_rows ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.get_flows_datatable_rows" if datatable_id.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}/rows".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s) # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'showbrief'] = opts[:'showbrief'] if opts[:'showbrief'] # 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 => 'DataTableRowEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_datatable_rows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def row_for_id(id)\n rows_for_ids(id)\n end", "def get_row_by_id(id)\n require_relative 'datarow'\n DataRow.new(@api, @api.do_request(\"GET\", get_base_api_path() + \"/rows/#{id}\"))\n end", "def list_tabledata dataset_id, table_id, max: nil, token: nil, start: nil\n # The...
[ "0.5609999", "0.5492205", "0.51985383", "0.50303257", "0.4999893", "0.49139154", "0.4844776", "0.4808987", "0.48024827", "0.48019275", "0.47924978", "0.4784137", "0.46919015", "0.46894792", "0.46700245", "0.4643882", "0.46368816", "0.46349207", "0.45994997", "0.45929295", "0....
0.55259013
1
Retrieve a list of datatables for the org Returns a metadata list of the datatables associated with this org, including datatableId, name and description.
def get_flows_datatables(opts = {}) data, _status_code, _headers = get_flows_datatables_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tables(opts={})\n m = output_identifier_meth\n metadata_dataset.from(:information_schema__tables___t).\n select(:table_name).\n filter(:table_type=>'BASE TABLE', :table_schema=>(opts[:schema]||default_schema||'dbo').to_s).\n map{|x| m.call(x[:table_name])}\n end", ...
[ "0.56972355", "0.5523273", "0.5514225", "0.5400884", "0.5352442", "0.5300607", "0.5279713", "0.52328044", "0.52203566", "0.5213129", "0.51745886", "0.5136471", "0.51216835", "0.5068533", "0.5067269", "0.5058624", "0.50383794", "0.50129354", "0.499772", "0.4997616", "0.4995662...
0.5294824
6
Retrieve a list of datatables for the org Returns a metadata list of the datatables associated with this org, including datatableId, name and description.
def get_flows_datatables_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_datatables ..." end if opts[:'expand'] && !['schema'].include?(opts[:'expand']) fail ArgumentError, 'invalid value for "expand", must be one of schema' end if opts[:'sort_by'] && !['id', 'name'].include?(opts[:'sort_by']) fail ArgumentError, 'invalid value for "sort_by", must be one of id, name' end # resource path local_var_path = "/api/v2/flows/datatables".sub('{format}','json') # query parameters query_params = {} query_params[:'expand'] = opts[:'expand'] if opts[:'expand'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] 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 => 'DataTablesDomainEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_datatables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tables(opts={})\n m = output_identifier_meth\n metadata_dataset.from(:information_schema__tables___t).\n select(:table_name).\n filter(:table_type=>'BASE TABLE', :table_schema=>(opts[:schema]||default_schema||'dbo').to_s).\n map{|x| m.call(x[:table_name])}\n end", ...
[ "0.5696166", "0.5521729", "0.5512018", "0.54004055", "0.5351059", "0.53001493", "0.5295084", "0.5278318", "0.5232787", "0.52207243", "0.52122134", "0.517407", "0.51366615", "0.51208293", "0.5067934", "0.50664955", "0.50581396", "0.5037407", "0.50126636", "0.49970144", "0.4996...
0.4819862
41
Get a pageable list of basic flow information objects filterable by query parameters. This returns a simplified version of /flow consisting of name and type. If one or more IDs are specified, the search will fetch flows that match the given ID(s) and not use any additional supplied query parameters in the search.
def get_flows_divisionviews(opts = {}) data, _status_code, _headers = get_flows_divisionviews_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_flows_with_http_info(type, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: ArchitectApi.get_flows ...\"\n end\n \n \n # verify the required parameter 'type' is set\n fail ArgumentError, \"Missing the required parameter 'type...
[ "0.60516876", "0.5866182", "0.5809954", "0.56527454", "0.564572", "0.5541351", "0.5491459", "0.54255784", "0.5341923", "0.5324718", "0.5110607", "0.5100722", "0.5083491", "0.5060327", "0.5007113", "0.5001622", "0.49533114", "0.49505675", "0.48979875", "0.48941353", "0.4818955...
0.0
-1
Get a pageable list of basic flow information objects filterable by query parameters. This returns a simplified version of /flow consisting of name and type. If one or more IDs are specified, the search will fetch flows that match the given ID(s) and not use any additional supplied query parameters in the search.
def get_flows_divisionviews_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_divisionviews ..." end # resource path local_var_path = "/api/v2/flows/divisionviews".sub('{format}','json') # query parameters query_params = {} query_params[:'type'] = @api_client.build_collection_param(opts[:'type'], :multi) if opts[:'type'] query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id'] query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'publishVersionId'] = opts[:'publish_version_id'] if opts[:'publish_version_id'] query_params[:'publishedAfter'] = opts[:'published_after'] if opts[:'published_after'] query_params[:'publishedBefore'] = opts[:'published_before'] if opts[:'published_before'] query_params[:'divisionId'] = @api_client.build_collection_param(opts[:'division_id'], :multi) if opts[:'division_id'] query_params[:'includeSchemas'] = opts[:'include_schemas'] if opts[:'include_schemas'] # 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 => 'FlowDivisionViewEntityListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_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 get_flows_with_http_info(type, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: ArchitectApi.get_flows ...\"\n end\n \n \n # verify the required parameter 'type' is set\n fail ArgumentError, \"Missing the required parameter 'type...
[ "0.6051669", "0.5868742", "0.58128905", "0.56551397", "0.56443065", "0.55421174", "0.5492269", "0.54281974", "0.5345491", "0.5322622", "0.5114092", "0.51024574", "0.5085448", "0.50603366", "0.500759", "0.5003632", "0.49517915", "0.49504524", "0.4900473", "0.48942062", "0.4819...
0.47040883
31
Get a flow execution's details. Flow execution details are available for several days after the flow is started.
def get_flows_execution(flow_execution_id, opts = {}) data, _status_code, _headers = get_flows_execution_with_http_info(flow_execution_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_execution_info\n execution = @swf.describe_workflow_execution(\n domain: @domain,\n execution: @execution\n )\n execution[\"executionInfo\"]\n end", "def get_flows_execution_with_http_info(flow_execution_id, opts = {})\n if @api_client.config.d...
[ "0.7304362", "0.6567456", "0.6119592", "0.58010685", "0.57437605", "0.56369936", "0.5413346", "0.5358695", "0.5352451", "0.527203", "0.5237343", "0.5179623", "0.5170412", "0.5168958", "0.5154907", "0.5154907", "0.5154907", "0.5154907", "0.5154907", "0.51065665", "0.51043606",...
0.6184203
2
Get a flow execution&39;s details. Flow execution details are available for several days after the flow is started.
def get_flows_execution_with_http_info(flow_execution_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_execution ..." end # verify the required parameter 'flow_execution_id' is set fail ArgumentError, "Missing the required parameter 'flow_execution_id' when calling ArchitectApi.get_flows_execution" if flow_execution_id.nil? # resource path local_var_path = "/api/v2/flows/executions/{flowExecutionId}".sub('{format}','json').sub('{' + 'flowExecutionId' + '}', flow_execution_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 => 'FlowRuntimeExecution') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_execution\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_execution_info\n execution = @swf.describe_workflow_execution(\n domain: @domain,\n execution: @execution\n )\n execution[\"executionInfo\"]\n end", "def get_flows_execution(flow_execution_id, opts = {})\n data, _status_code, _headers = get_flo...
[ "0.73162925", "0.62897223", "0.62055814", "0.58502614", "0.56756693", "0.56574154", "0.5492947", "0.54913133", "0.5473083", "0.53819484", "0.5345458", "0.5329407", "0.53089255", "0.5297309", "0.5269949", "0.51856595", "0.5167729", "0.5161511", "0.51500344", "0.51357335", "0.5...
0.6684863
1
Get a flow outcome Returns a specified flow outcome
def get_flows_outcome(flow_outcome_id, opts = {}) data, _status_code, _headers = get_flows_outcome_with_http_info(flow_outcome_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def outcome\n status.first\n end", "def outcome\n return unless @playground.collecting?\n\n outcome = connection.ab_get_outcome(@id)\n outcome && alternatives[outcome]\n end", "def ab_get_outcome(_experiment)\n raise \"Not implemented\"\n end", "def outcome(event...
[ "0.7210634", "0.668277", "0.65005934", "0.6482188", "0.63755685", "0.63555306", "0.61271036", "0.59035754", "0.5867277", "0.5604474", "0.5540639", "0.5486282", "0.54563063", "0.5422573", "0.5411173", "0.54016846", "0.5375651", "0.5360352", "0.5359961", "0.53401846", "0.532933...
0.5044943
38
Get a flow outcome Returns a specified flow outcome
def get_flows_outcome_with_http_info(flow_outcome_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_outcome ..." end # verify the required parameter 'flow_outcome_id' is set fail ArgumentError, "Missing the required parameter 'flow_outcome_id' when calling ArchitectApi.get_flows_outcome" if flow_outcome_id.nil? # resource path local_var_path = "/api/v2/flows/outcomes/{flowOutcomeId}".sub('{format}','json').sub('{' + 'flowOutcomeId' + '}', flow_outcome_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 => 'FlowOutcome') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_outcome\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def outcome\n status.first\n end", "def outcome\n return unless @playground.collecting?\n\n outcome = connection.ab_get_outcome(@id)\n outcome && alternatives[outcome]\n end", "def ab_get_outcome(_experiment)\n raise \"Not implemented\"\n end", "def outcome(event...
[ "0.7210634", "0.668277", "0.65005934", "0.6482188", "0.63755685", "0.61271036", "0.59035754", "0.5867277", "0.5604474", "0.5540639", "0.5486282", "0.54563063", "0.5422573", "0.5411173", "0.54016846", "0.5375651", "0.5360352", "0.5359961", "0.53401846", "0.53293383", "0.532233...
0.63555306
5
Get a pageable list of flow outcomes, filtered by query parameters Multiple IDs can be specified, in which case all matching flow outcomes will be returned, and no other parameters will be evaluated.
def get_flows_outcomes(opts = {}) data, _status_code, _headers = get_flows_outcomes_with_http_info(opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_flows_outcomes_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: ArchitectApi.get_flows_outcomes ...\"\n end\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ...
[ "0.55994916", "0.5579884", "0.5439198", "0.54267824", "0.54061514", "0.53329015", "0.5182682", "0.51518726", "0.5148728", "0.51331955", "0.5107656", "0.5095463", "0.5078446", "0.50740814", "0.502967", "0.50110745", "0.49954474", "0.4955666", "0.4939664", "0.49182892", "0.4916...
0.47137362
64
Get a pageable list of flow outcomes, filtered by query parameters Multiple IDs can be specified, in which case all matching flow outcomes will be returned, and no other parameters will be evaluated.
def get_flows_outcomes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.get_flows_outcomes ..." end # resource path local_var_path = "/api/v2/flows/outcomes".sub('{format}','json') # query parameters query_params = {} query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number'] query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size'] query_params[:'sortBy'] = opts[:'sort_by'] if opts[:'sort_by'] query_params[:'sortOrder'] = opts[:'sort_order'] if opts[:'sort_order'] query_params[:'id'] = @api_client.build_collection_param(opts[:'id'], :multi) if opts[:'id'] query_params[:'name'] = opts[:'name'] if opts[:'name'] query_params[:'description'] = opts[:'description'] if opts[:'description'] query_params[:'nameOrDescription'] = opts[:'name_or_description'] if opts[:'name_or_description'] # 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 => 'FlowOutcomeListing') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#get_flows_outcomes\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 @title = t('view.flows.index_title')\n @flows = Flow.filtered_list(params[:q]).order(\n 'charged_at DESC'\n ).page(params[:page])\n\n respond_to do |format|\n format.html # index.html.erb\n format.json { render json: @flows }\n end\n end", "def filter\n @exams = @pat...
[ "0.55797917", "0.5439112", "0.5427399", "0.5405799", "0.53326344", "0.51835287", "0.51511645", "0.51492774", "0.5133896", "0.5108805", "0.50957805", "0.50786805", "0.50738966", "0.5030088", "0.5011186", "0.4994467", "0.49566022", "0.49395487", "0.49195546", "0.49175352", "0.4...
0.5600518
0
Rebuild Dependency Tracking data for an organization Asynchronous. Notification topic: v2.architect.dependencytracking.build
def post_architect_dependencytracking_build(opts = {}) post_architect_dependencytracking_build_with_http_info(opts) return nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_architect_dependencytracking_build_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: ArchitectApi.get_architect_dependencytracking_build ...\"\n end\n \n # resource path\n local_var_path = \"/api/v2/architect/depende...
[ "0.5807239", "0.5767575", "0.5662651", "0.56544167", "0.56156886", "0.54101205", "0.5401218", "0.5366384", "0.5348372", "0.5348372", "0.5236722", "0.5192901", "0.5170273", "0.5166731", "0.5146748", "0.5112544", "0.51105577", "0.5085311", "0.50788337", "0.5055444", "0.50553435...
0.5298536
11
Rebuild Dependency Tracking data for an organization Asynchronous. Notification topic: v2.architect.dependencytracking.build
def post_architect_dependencytracking_build_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_architect_dependencytracking_build ..." end # resource path local_var_path = "/api/v2/architect/dependencytracking/build".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(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_architect_dependencytracking_build\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_architect_dependencytracking_build_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: ArchitectApi.get_architect_dependencytracking_build ...\"\n end\n \n # resource path\n local_var_path = \"/api/v2/architect/depende...
[ "0.58082324", "0.57684654", "0.5652817", "0.5616415", "0.5408456", "0.5399938", "0.53652334", "0.53491294", "0.53491294", "0.5298561", "0.5298561", "0.5237715", "0.51931846", "0.51708746", "0.51646847", "0.5145667", "0.5111513", "0.5109764", "0.5084409", "0.50784016", "0.5055...
0.5663506
2
Creates a new emergency group
def post_architect_emergencygroups(body, opts = {}) data, _status_code, _headers = post_architect_emergencygroups_with_http_info(body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_group\n group new_resource.group do\n gid new_resource.gid\n system true\n end\n end", "def create\n start = Time.now\n debug \"Creating device group: \\\"#{resource[:full_path]}\\\"\"\n connection = self.class.get_connection(resource[:account])\...
[ "0.7524167", "0.7238319", "0.71534675", "0.69934434", "0.673643", "0.673643", "0.6688324", "0.6683019", "0.66425765", "0.6589096", "0.6588904", "0.6570558", "0.6540731", "0.6519441", "0.6505545", "0.6497887", "0.6444295", "0.6442305", "0.64096826", "0.6405182", "0.6404809", ...
0.0
-1
Creates a new emergency group
def post_architect_emergencygroups_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_architect_emergencygroups ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.post_architect_emergencygroups" if body.nil? # resource path local_var_path = "/api/v2/architect/emergencygroups".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 => 'EmergencyGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_architect_emergencygroups\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_group\n group new_resource.group do\n gid new_resource.gid\n system true\n end\n end", "def create\n start = Time.now\n debug \"Creating device group: \\\"#{resource[:full_path]}\\\"\"\n connection = self.class.get_connection(resource[:account])\...
[ "0.7524167", "0.7238319", "0.71534675", "0.69934434", "0.673643", "0.673643", "0.6688324", "0.6683019", "0.66425765", "0.6589096", "0.6588904", "0.6570558", "0.6540731", "0.6519441", "0.6505545", "0.6497887", "0.6444295", "0.6442305", "0.64096826", "0.6405182", "0.6404809", ...
0.0
-1
Create a new user prompt resource
def post_architect_prompt_resources(prompt_id, body, opts = {}) data, _status_code, _headers = post_architect_prompt_resources_with_http_info(prompt_id, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n @prompt = Prompt.new(params[:prompt])\n\n respond_to do |format|\n if @prompt.save\n format.html { redirect_to @prompt, notice: 'Prompt was successfully created.' }\n format.json { render json: @prompt, status: :created, location: @prompt }\n else\n format.html { r...
[ "0.6799326", "0.67304236", "0.6712429", "0.66805434", "0.65152067", "0.64956516", "0.6476941", "0.6432823", "0.64132273", "0.64113504", "0.64029115", "0.6393465", "0.63719857", "0.63719857", "0.6335102", "0.63344425", "0.63344425", "0.63344425", "0.63344425", "0.63234645", "0...
0.0
-1
Create a new user prompt resource
def post_architect_prompt_resources_with_http_info(prompt_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_architect_prompt_resources ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.post_architect_prompt_resources" if prompt_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.post_architect_prompt_resources" if body.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}/resources".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_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 => 'PromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_architect_prompt_resources\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 @prompt = Prompt.new(params[:prompt])\n\n respond_to do |format|\n if @prompt.save\n format.html { redirect_to @prompt, notice: 'Prompt was successfully created.' }\n format.json { render json: @prompt, status: :created, location: @prompt }\n else\n format.html { r...
[ "0.6799326", "0.67304236", "0.6712429", "0.66805434", "0.65152067", "0.64956516", "0.6476941", "0.6432823", "0.64132273", "0.64113504", "0.64029115", "0.6393465", "0.63719857", "0.63719857", "0.6335102", "0.63344425", "0.63344425", "0.63344425", "0.63344425", "0.63234645", "0...
0.0
-1
Create a new user prompt
def post_architect_prompts(body, opts = {}) data, _status_code, _headers = post_architect_prompts_with_http_info(body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def createnewuser_prompt\n header\n puts \"\\n\\nPlease enter a username.\\n\"\n self.createnewuser_input = STDIN.gets.strip\n self.createnewuser_valid?\nend", "def prompt_username\n TTY::Prompt.new.ask(\"Redacted username?\", required: true, modify: :strip)\n end", "def prompt(str=\"#{@name}> \")\...
[ "0.7588166", "0.75361633", "0.7457833", "0.7423005", "0.7423005", "0.7423005", "0.7423005", "0.7208177", "0.7158382", "0.7119571", "0.7075567", "0.7062409", "0.7040027", "0.7000239", "0.69923663", "0.6992345", "0.69859856", "0.6984687", "0.6984438", "0.6979274", "0.6979187", ...
0.0
-1
Create a new user prompt
def post_architect_prompts_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_architect_prompts ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.post_architect_prompts" if body.nil? # resource path local_var_path = "/api/v2/architect/prompts".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 => 'Prompt') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_architect_prompts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def createnewuser_prompt\n header\n puts \"\\n\\nPlease enter a username.\\n\"\n self.createnewuser_input = STDIN.gets.strip\n self.createnewuser_valid?\nend", "def prompt_username\n TTY::Prompt.new.ask(\"Redacted username?\", required: true, modify: :strip)\n end", "def prompt(str=\"#{@name}> \")\...
[ "0.7588166", "0.75361633", "0.7457833", "0.7423005", "0.7423005", "0.7423005", "0.7423005", "0.7208177", "0.7158382", "0.7119571", "0.7075567", "0.7062409", "0.7040027", "0.7000239", "0.69923663", "0.6992345", "0.69859856", "0.6984687", "0.6984438", "0.6979274", "0.6979187", ...
0.0
-1
Creates a new schedule group
def post_architect_schedulegroups(body, opts = {}) data, _status_code, _headers = post_architect_schedulegroups_with_http_info(body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def createGroup\n call :createGroup\n end", "def create\n\t\tload_schedule\n\t\t@schedule.generate_groups(params[:number].to_i)\n\t\tredirect_to schedule_overview_path(@schedule), notice: 'Groups have been randomly assigned.'\n\tend", "def create\n @work_schedule_group = WorkScheduleGroup.new(work_s...
[ "0.7431323", "0.7377796", "0.72796136", "0.71778786", "0.68932545", "0.6892239", "0.688964", "0.68886757", "0.685426", "0.6769311", "0.6684238", "0.66473687", "0.6621276", "0.65692186", "0.65514976", "0.65475374", "0.65173006", "0.6509602", "0.650554", "0.6478613", "0.6476243...
0.0
-1
Creates a new schedule group
def post_architect_schedulegroups_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_architect_schedulegroups ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.post_architect_schedulegroups" if body.nil? # resource path local_var_path = "/api/v2/architect/schedulegroups".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 => 'ScheduleGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_architect_schedulegroups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def createGroup\n call :createGroup\n end", "def create\n\t\tload_schedule\n\t\t@schedule.generate_groups(params[:number].to_i)\n\t\tredirect_to schedule_overview_path(@schedule), notice: 'Groups have been randomly assigned.'\n\tend", "def create\n @work_schedule_group = WorkScheduleGroup.new(work_s...
[ "0.7431323", "0.7377796", "0.72796136", "0.71778786", "0.68932545", "0.6892239", "0.688964", "0.68886757", "0.685426", "0.6769311", "0.6684238", "0.66473687", "0.6621276", "0.65692186", "0.65514976", "0.65475374", "0.65173006", "0.6509602", "0.650554", "0.6478613", "0.6476243...
0.0
-1
Create a new schedule.
def post_architect_schedules(body, opts = {}) data, _status_code, _headers = post_architect_schedules_with_http_info(body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n @schedule = Schedule.new(schedule_params)\n @schedule.save\n end", "def create_schedule(body, opts = {})\n data, _status_code, _headers = create_schedule_with_http_info(body, opts)\n return data\n end", "def createschedule(uid,rname,scparams,stparams)\r\n scrbslog(\"======Be...
[ "0.7678505", "0.753779", "0.7525396", "0.7266502", "0.7245939", "0.7156945", "0.71569324", "0.71509725", "0.7108099", "0.7102419", "0.7089034", "0.7074196", "0.7071603", "0.7069543", "0.7051395", "0.7031316", "0.70241076", "0.70106685", "0.6989264", "0.6975518", "0.6933645", ...
0.0
-1
Create a new schedule.
def post_architect_schedules_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_architect_schedules ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.post_architect_schedules" if body.nil? # resource path local_var_path = "/api/v2/architect/schedules".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 => 'Schedule') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_architect_schedules\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 @schedule = Schedule.new(schedule_params)\n @schedule.save\n end", "def create_schedule(body, opts = {})\n data, _status_code, _headers = create_schedule_with_http_info(body, opts)\n return data\n end", "def createschedule(uid,rname,scparams,stparams)\r\n scrbslog(\"======Be...
[ "0.7678505", "0.753779", "0.7525396", "0.7266502", "0.7245939", "0.7156945", "0.71569324", "0.71509725", "0.7108099", "0.7102419", "0.7089034", "0.7074196", "0.7071603", "0.7069543", "0.7051395", "0.7031316", "0.70241076", "0.70106685", "0.6989264", "0.6975518", "0.6933645", ...
0.0
-1
Create system prompt resource override.
def post_architect_systemprompt_resources(prompt_id, body, opts = {}) data, _status_code, _headers = post_architect_systemprompt_resources_with_http_info(prompt_id, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initialize\n @prompt = TTY::Prompt.new\n end", "def initialize\n @prompt = TTY::Prompt.new\n end", "def initialize\n @prompt = TTY::Prompt.new\n end", "def prompt\r\n vm = Thread.current[:vm]\r\n '>' * vm.level + '\"' * vm.quotes\r\n end", "def initialize\n @prompt...
[ "0.62493855", "0.62493855", "0.62443197", "0.6233412", "0.62105644", "0.6080972", "0.60619634", "0.6058225", "0.6022511", "0.6020981", "0.6015336", "0.6015336", "0.6015336", "0.6015336", "0.59671307", "0.5952755", "0.59507126", "0.5935433", "0.5904631", "0.58917886", "0.58917...
0.0
-1
Create system prompt resource override.
def post_architect_systemprompt_resources_with_http_info(prompt_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_architect_systemprompt_resources ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.post_architect_systemprompt_resources" if prompt_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.post_architect_systemprompt_resources" if body.nil? # resource path local_var_path = "/api/v2/architect/systemprompts/{promptId}/resources".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_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 => 'SystemPromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_architect_systemprompt_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def initialize\n @prompt = TTY::Prompt.new\n end", "def initialize\n @prompt = TTY::Prompt.new\n end", "def initialize\n @prompt = TTY::Prompt.new\n end", "def prompt\r\n vm = Thread.current[:vm]\r\n '>' * vm.level + '\"' * vm.quotes\r\n end", "def initialize\n @prompt...
[ "0.62493855", "0.62493855", "0.62443197", "0.6233412", "0.62105644", "0.6080972", "0.60619634", "0.6058225", "0.6022511", "0.6020981", "0.6015336", "0.6015336", "0.6015336", "0.6015336", "0.59671307", "0.5952755", "0.59507126", "0.5935433", "0.5904631", "0.58917886", "0.58917...
0.0
-1
Unlock flow Allows for unlocking a flow in the case where there is no flow configuration available, and thus a checkin will not unlock the flow. The user must have Architect Admin permissions to perform this action.
def post_flows_actions_unlock(flow, opts = {}) data, _status_code, _headers = post_flows_actions_unlock_with_http_info(flow, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def post_flows_actions_unlock_with_http_info(flow, opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug \"Calling API: ArchitectApi.post_flows_actions_unlock ...\"\n end\n \n \n # verify the required parameter 'flow' is set\n fail ArgumentError, \"Miss...
[ "0.62796944", "0.62772864", "0.5970886", "0.5925478", "0.58311945", "0.5812059", "0.58037966", "0.57052827", "0.5689076", "0.5687046", "0.5680594", "0.5669211", "0.56530654", "0.5647389", "0.5642165", "0.5634342", "0.5621489", "0.5599614", "0.5589096", "0.5501667", "0.5472924...
0.6437437
1
Unlock flow Allows for unlocking a flow in the case where there is no flow configuration available, and thus a checkin will not unlock the flow. The user must have Architect Admin permissions to perform this action.
def post_flows_actions_unlock_with_http_info(flow, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_flows_actions_unlock ..." end # verify the required parameter 'flow' is set fail ArgumentError, "Missing the required parameter 'flow' when calling ArchitectApi.post_flows_actions_unlock" if flow.nil? # resource path local_var_path = "/api/v2/flows/actions/unlock".sub('{format}','json') # query parameters query_params = {} query_params[:'flow'] = flow # 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(: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 => 'Flow') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_flows_actions_unlock\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def post_flows_actions_unlock(flow, opts = {})\n data, _status_code, _headers = post_flows_actions_unlock_with_http_info(flow, opts)\n return data\n end", "def post_flows_actions_unlock(flow, opts = {})\n data, _status_code, _headers = post_flows_actions_unlock_with_http_info(flow, opts)\n ...
[ "0.6436548", "0.6436548", "0.6277389", "0.59697217", "0.59247744", "0.5832478", "0.5812414", "0.5803152", "0.5704361", "0.5689057", "0.56860435", "0.56807065", "0.5667989", "0.5652308", "0.5647851", "0.5642149", "0.5632731", "0.5620522", "0.5600605", "0.558948", "0.55008703",...
0.6279797
2
Begin an export process for exporting all rows from a datatable Create an export job for exporting rows. The caller can then poll for status of the export using the token returned in the response
def post_flows_datatable_export_jobs(datatable_id, opts = {}) data, _status_code, _headers = post_flows_datatable_export_jobs_with_http_info(datatable_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def perform\n SiteConfig.set_pairwise_credentials(photocracy)\n earl = Earl.find(earl_id)\n\n # make HTTP request to pairwise to get export data\n url = URI.parse(\"#{APP_CONFIG[:API_HOST]}/exports/#{export_key}\")\n req = Net::HTTP::Get.new(url.path)\n # important to trigger basic HTTP Auth on p...
[ "0.68101394", "0.62448597", "0.6198042", "0.6132991", "0.61173373", "0.6104719", "0.60221833", "0.60178244", "0.5994238", "0.597912", "0.5962805", "0.59430885", "0.59003943", "0.587785", "0.5859143", "0.5847825", "0.58282775", "0.58259624", "0.5814572", "0.57700807", "0.57636...
0.57162356
22
Begin an export process for exporting all rows from a datatable Create an export job for exporting rows. The caller can then poll for status of the export using the token returned in the response
def post_flows_datatable_export_jobs_with_http_info(datatable_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_flows_datatable_export_jobs ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.post_flows_datatable_export_jobs" if datatable_id.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}/export/jobs".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_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(: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 => 'DataTableExportJob') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_flows_datatable_export_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def perform\n SiteConfig.set_pairwise_credentials(photocracy)\n earl = Earl.find(earl_id)\n\n # make HTTP request to pairwise to get export data\n url = URI.parse(\"#{APP_CONFIG[:API_HOST]}/exports/#{export_key}\")\n req = Net::HTTP::Get.new(url.path)\n # important to trigger basic HTTP Auth on p...
[ "0.68084925", "0.6245054", "0.6199345", "0.61311024", "0.6118458", "0.61024475", "0.60230756", "0.6017437", "0.59937316", "0.59793544", "0.5963691", "0.59429276", "0.58778644", "0.5858625", "0.5848333", "0.58283526", "0.58249813", "0.5813931", "0.5769687", "0.57643074", "0.57...
0.5899281
12
Begin an import process for importing rows into a datatable Create an import job for importing rows. The caller can then poll for status of the import using the token returned in the response
def post_flows_datatable_import_jobs(datatable_id, body, opts = {}) data, _status_code, _headers = post_flows_datatable_import_jobs_with_http_info(datatable_id, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def import!\n log \"Importing #{csv_file.split('/').last.sub('.csv', '')}\"\n\n @errors_count = 0\n\n before_import()\n with_each_row { process_row }\n after_import()\n\n log \"Import complete (#{@errors_count} errors in #{@has_header_row ? @current_row_number-1 : @current_row_number}...
[ "0.66983706", "0.65414584", "0.6386727", "0.6376523", "0.63699687", "0.6326722", "0.630737", "0.62832606", "0.6147243", "0.61268204", "0.6104231", "0.6100618", "0.60951096", "0.60906637", "0.6057173", "0.60416824", "0.6040537", "0.60310715", "0.60202974", "0.59759694", "0.594...
0.53733027
99
Begin an import process for importing rows into a datatable Create an import job for importing rows. The caller can then poll for status of the import using the token returned in the response
def post_flows_datatable_import_jobs_with_http_info(datatable_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_flows_datatable_import_jobs ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.post_flows_datatable_import_jobs" if datatable_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.post_flows_datatable_import_jobs" if body.nil? # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}/import/jobs".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_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 => 'DataTableImportJob') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_flows_datatable_import_jobs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def import!\n log \"Importing #{csv_file.split('/').last.sub('.csv', '')}\"\n\n @errors_count = 0\n\n before_import()\n with_each_row { process_row }\n after_import()\n\n log \"Import complete (#{@errors_count} errors in #{@has_header_row ? @current_row_number-1 : @current_row_number}...
[ "0.6698741", "0.6542843", "0.6387142", "0.63772285", "0.63702357", "0.6328797", "0.63085204", "0.6283312", "0.61475545", "0.61278504", "0.6103623", "0.6100828", "0.6096053", "0.6091512", "0.6057313", "0.60418135", "0.6041472", "0.6032061", "0.6021633", "0.59762686", "0.595014...
0.5546598
64
Create a new datatable with the specified jsonschema definition This will create a new datatable with fields that match the property definitions in the JSON schema. The schema's title field will be overridden by the name field in the DataTable object. See also
def post_flows_datatables(body, opts = {}) data, _status_code, _headers = post_flows_datatables_with_http_info(body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create(structure_, data_={})\n Table.new(structure_, data_)\n end", "def postprocess(json_schema); json_schema; end", "def define_json_schema(&block)\n mapping = Mapping.new\n\n mapping.instance_eval(&block)\n\n @index_schema = create_schema(mapping.mapping)\n end", "def...
[ "0.59107345", "0.58090353", "0.57533115", "0.57098055", "0.5603303", "0.5456558", "0.54366064", "0.54366064", "0.543046", "0.53871214", "0.5379898", "0.53794783", "0.5347181", "0.53326315", "0.53290015", "0.5313321", "0.52995515", "0.5265291", "0.52583516", "0.5248042", "0.52...
0.0
-1
Create a new datatable with the specified jsonschema definition This will create a new datatable with fields that match the property definitions in the JSON schema. The schema&39;s title field will be overridden by the name field in the DataTable object. See also
def post_flows_datatables_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_flows_datatables ..." end # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.post_flows_datatables" if body.nil? # resource path local_var_path = "/api/v2/flows/datatables".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 => 'DataTable') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_flows_datatables\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def postprocess(json_schema); json_schema; end", "def create(structure_, data_={})\n Table.new(structure_, data_)\n end", "def define_json_schema(&block)\n mapping = Mapping.new\n\n mapping.instance_eval(&block)\n\n @index_schema = create_schema(mapping.mapping)\n end", "def...
[ "0.5893691", "0.5859912", "0.57939076", "0.575169", "0.56586474", "0.5514396", "0.5514396", "0.55046403", "0.5501396", "0.5491517", "0.5486186", "0.54276466", "0.5424555", "0.5403189", "0.53708035", "0.53436095", "0.53219664", "0.53219664", "0.5308971", "0.529861", "0.5257209...
0.0
-1
Launch an instance of a flow definition, for flow types that support it such as the 'workflow' type. The launch is asynchronous, it returns as soon as the flow starts. You can use the returned ID to query its status if you need.
def post_flows_executions(flow_launch_request, opts = {}) data, _status_code, _headers = post_flows_executions_with_http_info(flow_launch_request, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def launch_flow (engine_name, launch_item)\n\n e = lookup_engine engine_name\n\n raise \"couldn't find engine named '#{engine_name}'\" unless e\n\n if e.is_a? OpenWFE::Engine\n\n e.launch launch_item\n\n elsif e.is_a? OpenWFE::Participant\n\n e.consume launch_item\n\n else\n ...
[ "0.6142761", "0.61018026", "0.59644675", "0.59042156", "0.5713173", "0.5680603", "0.5540645", "0.55028504", "0.5497981", "0.54936653", "0.5437114", "0.5382077", "0.5374105", "0.53703135", "0.53697056", "0.5360677", "0.53339654", "0.53244966", "0.52957624", "0.5282339", "0.527...
0.0
-1
Launch an instance of a flow definition, for flow types that support it such as the &39;workflow&39; type. The launch is asynchronous, it returns as soon as the flow starts. You can use the returned ID to query its status if you need.
def post_flows_executions_with_http_info(flow_launch_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.post_flows_executions ..." end # verify the required parameter 'flow_launch_request' is set fail ArgumentError, "Missing the required parameter 'flow_launch_request' when calling ArchitectApi.post_flows_executions" if flow_launch_request.nil? # resource path local_var_path = "/api/v2/flows/executions".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(flow_launch_request) 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 => 'FlowExecutionLaunchResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#post_flows_executions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def launch_flow (engine_name, launch_item)\n\n e = lookup_engine engine_name\n\n raise \"couldn't find engine named '#{engine_name}'\" unless e\n\n if e.is_a? OpenWFE::Engine\n\n e.launch launch_item\n\n elsif e.is_a? OpenWFE::Participant\n\n e.consume launch_item\n\n else\n ...
[ "0.6157183", "0.5900437", "0.57497567", "0.57051873", "0.568448", "0.55225486", "0.5503754", "0.5490464", "0.54822385", "0.54821813", "0.5479875", "0.53697187", "0.5320035", "0.5299949", "0.5292494", "0.52562815", "0.52281874", "0.5225429", "0.519871", "0.51642305", "0.513788...
0.0
-1
Updates a emergency group by ID
def put_architect_emergencygroup(emergency_group_id, body, opts = {}) data, _status_code, _headers = put_architect_emergencygroup_with_http_info(emergency_group_id, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_group(id, params = {})\n put(\"/groups/#{id}\", params)\n end", "def update_group(id, params)\n put(\"groups/#{id}\", group: params)\n end", "def update_device_group(connection, fullpath, description, properties, disable_alerting)\n device_group = get_device_group(connecti...
[ "0.6952753", "0.69242346", "0.67317456", "0.65462446", "0.6538937", "0.6487835", "0.6432667", "0.64210033", "0.6417501", "0.6357596", "0.6315813", "0.62911487", "0.6280522", "0.6251541", "0.6205666", "0.61849576", "0.6177479", "0.6158658", "0.6156108", "0.61457694", "0.614465...
0.0
-1
Updates a emergency group by ID
def put_architect_emergencygroup_with_http_info(emergency_group_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.put_architect_emergencygroup ..." end # verify the required parameter 'emergency_group_id' is set fail ArgumentError, "Missing the required parameter 'emergency_group_id' when calling ArchitectApi.put_architect_emergencygroup" if emergency_group_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.put_architect_emergencygroup" if body.nil? # resource path local_var_path = "/api/v2/architect/emergencygroups/{emergencyGroupId}".sub('{format}','json').sub('{' + 'emergencyGroupId' + '}', emergency_group_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 => 'EmergencyGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_architect_emergencygroup\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_group(id, params = {})\n put(\"/groups/#{id}\", params)\n end", "def update_group(id, params)\n put(\"groups/#{id}\", group: params)\n end", "def update_device_group(connection, fullpath, description, properties, disable_alerting)\n device_group = get_device_group(connecti...
[ "0.6952753", "0.69242346", "0.67317456", "0.65462446", "0.6538937", "0.6487835", "0.6432667", "0.64210033", "0.6417501", "0.6357596", "0.6315813", "0.62911487", "0.6280522", "0.6251541", "0.6205666", "0.61849576", "0.6177479", "0.6158658", "0.6156108", "0.61457694", "0.614465...
0.59122515
73
Update an IVR Config.
def put_architect_ivr(ivr_id, body, opts = {}) data, _status_code, _headers = put_architect_ivr_with_http_info(ivr_id, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_config(attributes = {})\n current_attrs = @config.attributes\n new_attrs = current_attrs.merge!(attributes)\n @config.attributes = new_attrs\n @config.save\n end", "def update\n respond_to do |format|\n if @config.update(config_params)\n format.html { redirect_to ...
[ "0.6514915", "0.642093", "0.6418113", "0.6343311", "0.63305295", "0.6326436", "0.63075477", "0.63045824", "0.62988997", "0.61495495", "0.608447", "0.604931", "0.6027317", "0.5974113", "0.5945783", "0.5935939", "0.59261787", "0.5902725", "0.5902725", "0.58999574", "0.5881957",...
0.0
-1
Update an IVR Config.
def put_architect_ivr_with_http_info(ivr_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.put_architect_ivr ..." end # verify the required parameter 'ivr_id' is set fail ArgumentError, "Missing the required parameter 'ivr_id' when calling ArchitectApi.put_architect_ivr" if ivr_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.put_architect_ivr" if body.nil? # resource path local_var_path = "/api/v2/architect/ivrs/{ivrId}".sub('{format}','json').sub('{' + 'ivrId' + '}', ivr_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 => 'IVR') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_architect_ivr\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_config(attributes = {})\n current_attrs = @config.attributes\n new_attrs = current_attrs.merge!(attributes)\n @config.attributes = new_attrs\n @config.save\n end", "def update\n respond_to do |format|\n if @config.update(config_params)\n format.html { redirect_to ...
[ "0.65156525", "0.64241654", "0.6418435", "0.63436186", "0.63351536", "0.6325632", "0.63104177", "0.6309154", "0.63007796", "0.6149143", "0.6086354", "0.6048393", "0.60291374", "0.59742296", "0.59473634", "0.59365225", "0.5927096", "0.5903244", "0.5903244", "0.5901723", "0.588...
0.0
-1
Update specified user prompt
def put_architect_prompt(prompt_id, body, opts = {}) data, _status_code, _headers = put_architect_prompt_with_http_info(prompt_id, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_prompt(jqconsole)\n jqconsole.SetPromptText(new_prompt_text) if new_prompt?\n end", "def set_prompt(string)\n @prompt = string\n end", "def update_prompt\n return unless defined?(IRB) # uncovered\n return unless prompt = IRB.conf.dig(:PROMPT, :RAILS_ENV)\n\n PROM...
[ "0.7365407", "0.7300288", "0.72941124", "0.72220814", "0.7175903", "0.7096863", "0.707888", "0.7011775", "0.7011775", "0.7011775", "0.6967193", "0.6947357", "0.6820368", "0.6820368", "0.6820368", "0.6820368", "0.67233837", "0.67233837", "0.67233837", "0.67233837", "0.67233837...
0.0
-1
Update specified user prompt
def put_architect_prompt_with_http_info(prompt_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.put_architect_prompt ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.put_architect_prompt" if prompt_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.put_architect_prompt" if body.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_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 => 'Prompt') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_architect_prompt\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_prompt(jqconsole)\n jqconsole.SetPromptText(new_prompt_text) if new_prompt?\n end", "def set_prompt(string)\n @prompt = string\n end", "def update_prompt\n return unless defined?(IRB) # uncovered\n return unless prompt = IRB.conf.dig(:PROMPT, :RAILS_ENV)\n\n PROM...
[ "0.7365407", "0.7300288", "0.72941124", "0.72220814", "0.7175903", "0.7096863", "0.707888", "0.7011775", "0.7011775", "0.7011775", "0.6967193", "0.6947357", "0.6820368", "0.6820368", "0.6820368", "0.6820368", "0.67233837", "0.67233837", "0.67233837", "0.67233837", "0.67233837...
0.0
-1
Update specified user prompt resource
def put_architect_prompt_resource(prompt_id, language_code, body, opts = {}) data, _status_code, _headers = put_architect_prompt_resource_with_http_info(prompt_id, language_code, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n if @prompt.update(prompt_params)\n render :show, status: :ok, location: @prompt\n else\n render json: @prompt.errors, status: :unprocessable_entity\n end\n end", "def update\n respond_to do |format|\n if @prompt.update(prompt_params)\n format.html { redirect_to @pr...
[ "0.7164925", "0.6643187", "0.66201437", "0.66201437", "0.66201437", "0.66201437", "0.66201437", "0.6605315", "0.6563948", "0.6563948", "0.6491564", "0.63982093", "0.63819677", "0.63721097", "0.6368705", "0.63099396", "0.62744826", "0.61548513", "0.61336607", "0.6084097", "0.6...
0.0
-1
Update specified user prompt resource
def put_architect_prompt_resource_with_http_info(prompt_id, language_code, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.put_architect_prompt_resource ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.put_architect_prompt_resource" if prompt_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ArchitectApi.put_architect_prompt_resource" if language_code.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.put_architect_prompt_resource" if body.nil? # resource path local_var_path = "/api/v2/architect/prompts/{promptId}/resources/{languageCode}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'languageCode' + '}', language_code.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 => 'PromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_architect_prompt_resource\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 @prompt.update(prompt_params)\n render :show, status: :ok, location: @prompt\n else\n render json: @prompt.errors, status: :unprocessable_entity\n end\n end", "def update\n respond_to do |format|\n if @prompt.update(prompt_params)\n format.html { redirect_to @pr...
[ "0.71650755", "0.6643684", "0.66186595", "0.66186595", "0.66186595", "0.66186595", "0.66186595", "0.6604696", "0.65646344", "0.65646344", "0.6492359", "0.6396782", "0.63836336", "0.63703924", "0.63701785", "0.6310798", "0.6272322", "0.61551183", "0.6132366", "0.60827756", "0....
0.0
-1
Update schedule by ID
def put_architect_schedule(schedule_id, body, opts = {}) data, _status_code, _headers = put_architect_schedule_with_http_info(schedule_id, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n @schedule.update(schedule_params)\n end", "def set_schedule\n @schedule = Schedule.find(params[:id])\n end", "def set_schedule\n @schedule = Schedule.find(params[:id])\n end", "def set_schedule\n @schedule = Schedule.find(params[:id])\n end", "def set_schedule\n ...
[ "0.75229925", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124"...
0.0
-1
Update schedule by ID
def put_architect_schedule_with_http_info(schedule_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.put_architect_schedule ..." end # verify the required parameter 'schedule_id' is set fail ArgumentError, "Missing the required parameter 'schedule_id' when calling ArchitectApi.put_architect_schedule" if schedule_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.put_architect_schedule" if body.nil? # resource path local_var_path = "/api/v2/architect/schedules/{scheduleId}".sub('{format}','json').sub('{' + 'scheduleId' + '}', schedule_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 => 'Schedule') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_architect_schedule\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 @schedule.update(schedule_params)\n end", "def set_schedule\n @schedule = Schedule.find(params[:id])\n end", "def set_schedule\n @schedule = Schedule.find(params[:id])\n end", "def set_schedule\n @schedule = Schedule.find(params[:id])\n end", "def set_schedule\n ...
[ "0.75229925", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124", "0.74222124"...
0.0
-1
Updates a schedule group by ID
def put_architect_schedulegroup(schedule_group_id, body, opts = {}) data, _status_code, _headers = put_architect_schedulegroup_with_http_info(schedule_group_id, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_group(id, params)\n put(\"groups/#{id}\", group: params)\n end", "def update_group(id, params = {})\n put(\"/groups/#{id}\", params)\n end", "def update\n if @work_schedule_group.update(work_schedule_group_params)\n respond_with(@work_schedule_group, location: work_sc...
[ "0.7223302", "0.7184471", "0.69865704", "0.67936754", "0.66447353", "0.6560722", "0.65493286", "0.64555645", "0.6447184", "0.6347141", "0.6319632", "0.6319357", "0.6306782", "0.62334436", "0.6150998", "0.6149864", "0.61452943", "0.6111198", "0.610649", "0.60894686", "0.608946...
0.0
-1
Updates a schedule group by ID
def put_architect_schedulegroup_with_http_info(schedule_group_id, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.put_architect_schedulegroup ..." end # verify the required parameter 'schedule_group_id' is set fail ArgumentError, "Missing the required parameter 'schedule_group_id' when calling ArchitectApi.put_architect_schedulegroup" if schedule_group_id.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.put_architect_schedulegroup" if body.nil? # resource path local_var_path = "/api/v2/architect/schedulegroups/{scheduleGroupId}".sub('{format}','json').sub('{' + 'scheduleGroupId' + '}', schedule_group_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 => 'ScheduleGroup') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_architect_schedulegroup\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_group(id, params)\n put(\"groups/#{id}\", group: params)\n end", "def update_group(id, params = {})\n put(\"/groups/#{id}\", params)\n end", "def update\n if @work_schedule_group.update(work_schedule_group_params)\n respond_with(@work_schedule_group, location: work_sc...
[ "0.7226204", "0.71865076", "0.6989717", "0.6792784", "0.6648127", "0.6564128", "0.65522534", "0.6460051", "0.6451616", "0.635096", "0.6321241", "0.6320127", "0.6310985", "0.6233132", "0.6150382", "0.61499643", "0.61488384", "0.61140275", "0.6110657", "0.60924023", "0.60924023...
0.5950224
43
Updates a system prompt resource override.
def put_architect_systemprompt_resource(prompt_id, language_code, body, opts = {}) data, _status_code, _headers = put_architect_systemprompt_resource_with_http_info(prompt_id, language_code, body, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_prompt\n return unless defined?(IRB) # uncovered\n return unless prompt = IRB.conf.dig(:PROMPT, :RAILS_ENV)\n\n PROMPTS.each do |prompt_key|\n value = prompt.fetch(prompt_key) # change marco-polo prompt\n change = (@subscriber ? PROMPT_CHANGE : PROMPT_CHANGE.revers...
[ "0.67296934", "0.6723119", "0.6593289", "0.614414", "0.61060214", "0.60481715", "0.5987114", "0.5965095", "0.5897757", "0.58816606", "0.58816606", "0.58816606", "0.58816606", "0.58816606", "0.58217496", "0.5784911", "0.5784309", "0.5784309", "0.5706648", "0.5685493", "0.56616...
0.0
-1
Updates a system prompt resource override.
def put_architect_systemprompt_resource_with_http_info(prompt_id, language_code, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.put_architect_systemprompt_resource ..." end # verify the required parameter 'prompt_id' is set fail ArgumentError, "Missing the required parameter 'prompt_id' when calling ArchitectApi.put_architect_systemprompt_resource" if prompt_id.nil? # verify the required parameter 'language_code' is set fail ArgumentError, "Missing the required parameter 'language_code' when calling ArchitectApi.put_architect_systemprompt_resource" if language_code.nil? # verify the required parameter 'body' is set fail ArgumentError, "Missing the required parameter 'body' when calling ArchitectApi.put_architect_systemprompt_resource" if body.nil? # resource path local_var_path = "/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}".sub('{format}','json').sub('{' + 'promptId' + '}', prompt_id.to_s).sub('{' + 'languageCode' + '}', language_code.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 => 'SystemPromptAsset') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_architect_systemprompt_resource\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_prompt\n return unless defined?(IRB) # uncovered\n return unless prompt = IRB.conf.dig(:PROMPT, :RAILS_ENV)\n\n PROMPTS.each do |prompt_key|\n value = prompt.fetch(prompt_key) # change marco-polo prompt\n change = (@subscriber ? PROMPT_CHANGE : PROMPT_CHANGE.revers...
[ "0.67296934", "0.6723119", "0.6593289", "0.614414", "0.61060214", "0.60481715", "0.5987114", "0.5965095", "0.5897757", "0.58816606", "0.58816606", "0.58816606", "0.58816606", "0.58816606", "0.58217496", "0.5784911", "0.5784309", "0.5784309", "0.5706648", "0.5685493", "0.56616...
0.0
-1
Updates a specific datatable by id Updates a schema for a datatable with the given datatableId updates allow only new fields to be added in the schema, no changes or removals of existing fields.
def put_flows_datatable(datatable_id, opts = {}) data, _status_code, _headers = put_flows_datatable_with_http_info(datatable_id, opts) return data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update\n respond_to do |format|\n if @schema_table.update(schema_table_params)\n format.html { redirect_to @schema_table, notice: 'Schema table was successfully updated.' }\n format.json { render :show, status: :ok, location: @schema_table }\n else\n format.html { render :edit...
[ "0.60990757", "0.5926334", "0.59230673", "0.57617074", "0.5696671", "0.5647039", "0.55815434", "0.55578756", "0.55578756", "0.55143446", "0.5418313", "0.53843105", "0.5265015", "0.5265015", "0.52278495", "0.52144235", "0.516375", "0.5083506", "0.5081844", "0.50645196", "0.505...
0.46276385
89
Updates a specific datatable by id Updates a schema for a datatable with the given datatableId updates allow only new fields to be added in the schema, no changes or removals of existing fields.
def put_flows_datatable_with_http_info(datatable_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ArchitectApi.put_flows_datatable ..." end # verify the required parameter 'datatable_id' is set fail ArgumentError, "Missing the required parameter 'datatable_id' when calling ArchitectApi.put_flows_datatable" if datatable_id.nil? if opts[:'expand'] && !['schema'].include?(opts[:'expand']) fail ArgumentError, 'invalid value for "expand", must be one of schema' end # resource path local_var_path = "/api/v2/flows/datatables/{datatableId}".sub('{format}','json').sub('{' + 'datatableId' + '}', datatable_id.to_s) # query parameters query_params = {} query_params[:'expand'] = opts[:'expand'] if opts[:'expand'] # 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(: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 => 'DataTable') if @api_client.config.debugging @api_client.config.logger.debug "API called: ArchitectApi#put_flows_datatable\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 @schema_table.update(schema_table_params)\n format.html { redirect_to @schema_table, notice: 'Schema table was successfully updated.' }\n format.json { render :show, status: :ok, location: @schema_table }\n else\n format.html { render :edit...
[ "0.6097134", "0.5923751", "0.59205484", "0.5760481", "0.56953055", "0.5643929", "0.55823034", "0.55554396", "0.55554396", "0.5513236", "0.5416247", "0.5382147", "0.5262318", "0.5262318", "0.522586", "0.5213628", "0.51631784", "0.5084758", "0.5081266", "0.5063544", "0.50551504...
0.4788707
62
If connection not available, touch a file that other workers check to know if to continue or not
def available? fname = File.join(APP_ROOT, 'tmp', 'connection.txt') Socket.getaddrinfo("google.com", "http") FileUtils.rm(fname, force: true) rescue true# if good true rescue => err File.open(fname, 'w') {|f| f << '1'} false end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def work_check(mfile, conn)\n # Do we have any work?\n if File::exist?(mfile)\n # Process work\n puts \"#{self} Found workfile .......\"\n open(mfile).each do |line|\n puts \"#{self} #{line}\"\n conn.send_data(line)\n end\n File::delete(mfile)\n else\n # Nothing to see here, move alo...
[ "0.67543364", "0.61245924", "0.5956597", "0.58738536", "0.56898737", "0.5610672", "0.55103123", "0.55041915", "0.54924446", "0.5484904", "0.5441541", "0.54341817", "0.5430796", "0.54164827", "0.5413412", "0.5413412", "0.54105157", "0.5403126", "0.5382331", "0.53227335", "0.53...
0.5709786
4
GET /cases GET /cases.json
def index if current_user.district_id and !current_user.admin? @cases = Case.where("district_id = #{current_user.district_id}").order("id desc").page params[:page] else # @cases = Case.all @cases = Case.order("id desc").page params[:page] end # @cases = Case.order("id desc").page params[:page] respond_to do |format| format.html # index.html.erb format.json { render json: @cases } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n\t\t# get the current surgeon of the all case details\n\t\tcases = current_user.cases.order_by(:schedule_date=> :asc).collect{|surgery_case| surgery_case if (surgery_case.schedule.schedule_date.to_date.past? || surgery_case.schedule.schedule_date.to_date.today?)}.reject(&:blank?).take(10)\n\t\tif cases....
[ "0.719721", "0.715578", "0.7110681", "0.69254094", "0.6845487", "0.6845487", "0.67732716", "0.6520112", "0.6405544", "0.6399461", "0.6340348", "0.63395345", "0.6261533", "0.62197536", "0.6175997", "0.61714965", "0.6090781", "0.60899377", "0.60636485", "0.6013728", "0.600535",...
0.66957116
7
GET /cases/1 GET /cases/1.json
def show @case = Case.find(params[:id]) if current_user.district_id and !current_user.admin? and @case.district_id != current_user.district_id redirect_to cases_path else respond_to do |format| format.html # show.html.erb format.json { render json: @case } end end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def index\n if params[:problems].blank?\n @cases = Case.all\n else\n @cases = Case.as(:c).where('c.stock <= 1').pluck(:c)\n @cases.map!{|c| {\n id: c.id,\n name: c.name,\n stock: c.stock\n }}\n\n @cases.sort_by! {:name}\n\n render json: @cases\n end\n en...
[ "0.6791931", "0.6688972", "0.6676873", "0.6657732", "0.6607564", "0.65568835", "0.6515137", "0.6479196", "0.6479196", "0.64264494", "0.6377465", "0.6358063", "0.6289863", "0.6260107", "0.62547606", "0.62334603", "0.6219498", "0.6206265", "0.62008107", "0.62008107", "0.6186124...
0.59017724
33
GET /cases/new GET /cases/new.json
def new @case = Case.new @case.date_entry = Time.now.strftime("%Y-%m-%d") @case.date_report = Time.now.strftime("%Y-%m-%d") @case.date_lab = Time.now.strftime("%Y-%m-%d") @case.date_of_dg = Time.now.strftime("%Y-%m-%d") if current_user.district_id and !current_user.admin? @districts = District.where("id = #{current_user.district_id}") @phis = Phi.where("district_id = #{current_user.district_id}") else @districts = District.all @phis = Phi.all @centers = Center.all end @centers = (@phis.count == 1)? Center.where("phi_id = #{@phis.first.id}") : Center.all @hes = He.where(:center_id => @centers.map { |id| id }) @laboratories = Laboratory.all @agents = Agent.all @doctors = User.find_all_by_user_type(1) @nurses = User.find_all_by_user_type(2) @municipalities = Municipality.all # @centers = Center.all @icds = Icd.all respond_to do |format| format.html # new.html.erb format.json { render json: @case } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def new\n @clientcase = Clientcase.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render :json => @clientcase }\n end\n end", "def new\n @ci = Ci.new\n\n respond_to do |format|\n format.html # new.html.erb\n format.json { render json: @ci }\n en...
[ "0.7378456", "0.7269017", "0.72657645", "0.72657645", "0.724539", "0.701497", "0.69481367", "0.6935595", "0.6935595", "0.689557", "0.6889438", "0.68756443", "0.68161213", "0.6812154", "0.6811666", "0.6811666", "0.6793882", "0.67922264", "0.6785051", "0.6782002", "0.6765993", ...
0.680761
16
POST /cases POST /cases.json
def create @case = Case.new(params[:case]) @case.operator_id = current_user.id if current_user.district_id and !current_user.admin? @districts = District.where("id = #{current_user.district_id}") @phis = Phi.where("district_id = #{current_user.district_id}") else @districts = District.all @phis = Phi.all @centers = Center.all end @centers = (@phis.count == 1)? Center.where("phi_id = #{@phis.first.id}") : Center.all @hes = He.where(:center_id => @centers.map { |id| id }) @laboratories = Laboratory.all @municipalities = Municipality.all @agents = Agent.all @doctors = User.find_all_by_user_type(1) @nurses = User.find_all_by_user_type(2) @icds = Icd.all respond_to do |format| if @case.save format.html { redirect_to @case, notice: t("record_created") } format.json { render json: @case, status: :created, location: @case } else format.html { render action: "new" } format.json { render json: @case.errors, status: :unprocessable_entity } end end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create\n\n @case = Case.new(case_params)\n\n respond_to do |format|\n if @case.save\n format.html { redirect_to cases_path, notice: 'Case was successfully created.' }\n format.json { render action: 'show', status: :created, location: @cases_path }\n else\n format.html { ren...
[ "0.680048", "0.65689397", "0.65205824", "0.65205824", "0.6236395", "0.61649966", "0.6131035", "0.60035515", "0.590237", "0.5848902", "0.58001554", "0.57875526", "0.5774981", "0.5763752", "0.5742537", "0.5740906", "0.57079685", "0.56738305", "0.56711036", "0.56560695", "0.5653...
0.55199665
32
PUT /cases/1 PUT /cases/1.json
def update @case = Case.find(params[:id]) if current_user.district_id and !current_user.admin? @districts = District.where("id = #{current_user.district_id}") @phis = Phi.where("district_id = #{current_user.district_id}") else @districts = District.all @phis = Phi.all @centers = Center.all end @centers = (@phis.count == 1)? Center.where("phi_id = #{@phis.first.id}") : Center.all @hes = He.where(:center_id => @centers.map { |id| id }) @laboratories = Laboratory.all @agents = Agent.all @doctors = User.find_all_by_user_type(1) @nurses = User.find_all_by_user_type(2) @municipalities = Municipality.all @icds = Icd.all respond_to do |format| if @case.update_attributes(params[:case]) format.html { redirect_to @case, notice: t("record_updated") } format.json { head :no_content } else format.html { render action: "edit" } format.json { render json: @case.errors, status: :unprocessable_entity } end end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_case(id, *args)\n options = args.last.is_a?(Hash) ? args.pop : {}\n response = put(\"cases/#{id}\",options)\n response.case\n end", "def update\n respond_to do |format|\n if @case.update(case_params)\n format.html { redirect_to cases_path, notice: 'Case was suc...
[ "0.72437835", "0.6528946", "0.6369249", "0.6369249", "0.63367635", "0.62968457", "0.6295557", "0.6284594", "0.626633", "0.62450343", "0.619146", "0.61297756", "0.6126546", "0.6124613", "0.6124454", "0.61229664", "0.608296", "0.60431427", "0.60053515", "0.59706944", "0.5935546...
0.5549392
84
DELETE /cases/1 DELETE /cases/1.json
def destroy @case = Case.find(params[:id]) @case.destroy respond_to do |format| format.html { redirect_to cases_url } format.json { head :no_content } end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def destroy\n @case.destroy\n respond_to do |format|\n format.html { redirect_to cases_path }\n format.json { head :no_content }\n end\n end", "def destroy\n @clientcase = Clientcase.find(params[:id])\n @clientcase.destroy\n\n respond_to do |format|\n format.html { redirect_to c...
[ "0.7354974", "0.73152804", "0.7293026", "0.7200249", "0.71007603", "0.70712286", "0.70623326", "0.70623326", "0.7062301", "0.7041816", "0.70300215", "0.69864464", "0.69785494", "0.6972899", "0.69543624", "0.6921576", "0.68835497", "0.6875467", "0.6849144", "0.6838948", "0.679...
0.7273989
3
block yields the retention time in seconds and stops iteration if the block returns nil/false
def create_chromatogram(mzml, index_enum, mz, mz_window, ms_level=1, &block) chromatogram = [] while index=index_enum.next break unless spectrum=mzml[index] next unless ms_level===spectrum.ms_level break unless block.call( spectrum.retention_time ) mzs = spectrum.mzs ints = spectrum.intensities index = spectrum.find_nearest_index(mz) lwin_mz = mz - (mz_window/2.0) hwin_mz = mz + (mz_window/2.0) ints_in_range = [] index.upto(Float::INFINITY) do |i| if mzs[i] <= hwin_mz ints_in_range << ints[i] else break end end (index-1).downto(0) do |i| if mzs[i] >= lwin_mz ints_in_range << ints[i] else break end end if ints_in_range.size > 0 chromatogram << [spectrum.retention_time, ints_in_range.reduce(:+)] end end chromatogram end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def summarize(&block)\n started = Time.now\n yield\n ensure\n results(Time.now - started)\n end", "def while_time_remaining(&block)\n @interval = Hitimes::Interval.new\n @interval.start\n\n while time_remaining?\n yield @remaining\n end\n ensure\n ...
[ "0.60248905", "0.5889861", "0.57611686", "0.55826646", "0.5560672", "0.55156386", "0.5495074", "0.5493501", "0.5487175", "0.5487175", "0.5487175", "0.54797214", "0.5461731", "0.54258186", "0.53940034", "0.5331889", "0.5317608", "0.5316679", "0.5296233", "0.5278072", "0.527459...
0.0
-1
Use callbacks to share common setup or constraints between actions.
def set_admin_brand @admin_brand = Admin::Brand.friendly.find(params[:id]) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_required_actions\n # TODO: check what fields change to asign required fields\n end", "def action_hook; end", "def run_actions; end", "def define_action_hook; end", "def actions; end", "def define_action_helpers\n if super && action == :save\n @instance_helper_module.class_...
[ "0.6163163", "0.6045976", "0.5946146", "0.591683", "0.5890051", "0.58349305", "0.5776858", "0.5703237", "0.5703237", "0.5652805", "0.5621621", "0.54210985", "0.5411113", "0.5411113", "0.5411113", "0.5391541", "0.53794575", "0.5357573", "0.53402257", "0.53394014", "0.53321576"...
0.0
-1
Never trust parameters from the scary internet, only allow the white list through.
def admin_brand_params params.require(:admin_brand).permit(:name, :slug, :description, :is_active, :permalink, :meta_title, :meta_desc, :keywords) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def strong_params\n params.require(:user).permit(param_whitelist)\n end", "def strong_params\n params.require(:listing_member).permit(param_whitelist)\n end", "def allow_params_authentication!; end", "def allowed_params\n ALLOWED_PARAMS\n end", "def default_param_whitelist\n [\"mode\"]\n...
[ "0.69792545", "0.6781151", "0.67419964", "0.674013", "0.6734356", "0.6591046", "0.6502396", "0.6496313", "0.6480641", "0.6477825", "0.64565", "0.6438387", "0.63791263", "0.63740575", "0.6364131", "0.63192815", "0.62991166", "0.62978333", "0.6292148", "0.6290449", "0.6290076",...
0.0
-1
History collection Ready the client
def setup_dropbox() @log.debug "Setting up Dropbox" ## Dropbox Setup ## session = DropboxSession.new(APP_KEY, APP_SECRET) @log.debug "Session created" # Auth session.get_request_token @log.debug "Got session request token" authorize_url = session.get_authorize_url @log.debug "Got session auth url" # make the user sign in and authorize this token @log.info "Allow the app at " Launchy.open authorize_url @log.info "ENTER to continue..." # Wait for auth gets session.get_access_token @log.debug "Dropbox ready" return DropboxClient.new(session, :dropbox) end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def history\r\n\r\n end", "def history\r\n []\r\n end", "def history; end", "def history; end", "def history; end", "def history\n rest.get stats_path(:history) do |response|\n response_handler response\n end\n end", "def get_history\n @request_history = Request.history_r...
[ "0.7329752", "0.73287314", "0.7317784", "0.7317784", "0.7317784", "0.7217084", "0.7053711", "0.70238835", "0.70222217", "0.69485795", "0.69485795", "0.6930882", "0.69253886", "0.6908202", "0.6908202", "0.685133", "0.6844127", "0.6836245", "0.6836245", "0.6781109", "0.67612016...
0.0
-1
Pull history from dropbox
def get_revisions(file_path, client) @log.debug "Getting revisions of " + file_path revs = [] revisions = client.revisions file_path revisions.each do |rev| fileRev = FileRev.new if rev['is_deleted'] fileRev.file_loc = rev["path"] fileRev.is_deleted = true fileRev.timestamp = DateTime.parse(rev['modified']) fileRev.rev = rev["rev"] @log.debug rev["path"] + ' deleted ' + rev["rev"] + ' ' + rev['modified'] else fileRev.file_loc = rev["path"] fileRev.is_deleted = false fileRev.timestamp = DateTime.parse(rev['modified']) fileRev.rev = rev["rev"] @log.debug rev["path"] + ' ' + rev["rev"] + ' ' + rev['modified'] end revs.push(fileRev) end return revs end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_history(path)\n\t\tlogin_filter\n\t\t\n\t\tpath = namespace_path(path)\n\n\t\thistory = @agent.get(\"/revisions#{path}\")\n\t\tlisting = history.search(\"table.filebrowser > tr\").select{|r| r.search(\"td\").count > 1 }.collect do |r|\n\t\t\t\n\t\t\t# warning, this is very brittle!\n\t\t\tdetails = {}\n\t...
[ "0.64250684", "0.639819", "0.6380417", "0.6380417", "0.6380417", "0.6322837", "0.6317839", "0.62250113", "0.6221689", "0.61615103", "0.6127522", "0.6096505", "0.6095612", "0.6094318", "0.6070066", "0.60555625", "0.6054472", "0.6050978", "0.6050678", "0.60410506", "0.59955287"...
0.5508207
69
Lists all webhook subscriptions owned by your application.
def list_webhook_subscriptions(cursor: nil, include_disabled: false, sort_order: nil, limit: nil) new_api_call_builder .request(new_request_builder(HttpMethodEnum::GET, '/v2/webhooks/subscriptions', 'default') .query_param(new_parameter(cursor, key: 'cursor')) .query_param(new_parameter(include_disabled, key: 'include_disabled')) .query_param(new_parameter(sort_order, key: 'sort_order')) .query_param(new_parameter(limit, key: 'limit')) .header_param(new_parameter('application/json', key: 'accept')) .auth(Single.new('global'))) .response(new_response_handler .deserializer(APIHelper.method(:json_deserialize)) .is_api_response(true) .convertor(ApiResponse.method(:create))) .execute end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all_subscriptions\n get(url_(\"subscription\"))\n end", "def list\n get(uri: '/webhooks/')\n end", "def list_all_webhook_subscription_for_tool_proxy(opts={})\n query_param_keys = [\n \n\n ]\n\n form_param_keys = [\n \n\n ]\n\n # set default val...
[ "0.74445", "0.7396441", "0.71068734", "0.7071653", "0.7065593", "0.70643926", "0.70613384", "0.6952137", "0.69331723", "0.6929161", "0.6911496", "0.6878279", "0.68073905", "0.67676145", "0.6700175", "0.6694726", "0.66385096", "0.66027546", "0.65703297", "0.6539298", "0.652218...
0.7058134
7
Creates a webhook subscription.
def create_webhook_subscription(body:) new_api_call_builder .request(new_request_builder(HttpMethodEnum::POST, '/v2/webhooks/subscriptions', 'default') .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(Single.new('global'))) .response(new_response_handler .deserializer(APIHelper.method(:json_deserialize)) .is_api_response(true) .convertor(ApiResponse.method(:create))) .execute end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_webhook_subscription(submission___context_id__,subscription___context_type__,subscription___event_types__,subscription___format__,subscription___transport_metadata__,subscription___transport_type__,opts={})\n query_param_keys = [\n \n\n ]\n\n form_param_keys = [\n :submissio...
[ "0.7541018", "0.7308209", "0.7179334", "0.7137161", "0.7114852", "0.7015086", "0.6940612", "0.69268584", "0.6918169", "0.689574", "0.6885939", "0.6885777", "0.6853238", "0.6835978", "0.6823807", "0.6816498", "0.6810107", "0.67821074", "0.6702459", "0.6665133", "0.66604507", ...
0.83429015
0
Deletes a webhook subscription.
def delete_webhook_subscription(subscription_id:) new_api_call_builder .request(new_request_builder(HttpMethodEnum::DELETE, '/v2/webhooks/subscriptions/{subscription_id}', 'default') .template_param(new_parameter(subscription_id, key: 'subscription_id') .should_encode(true)) .header_param(new_parameter('application/json', key: 'accept')) .auth(Single.new('global'))) .response(new_response_handler .deserializer(APIHelper.method(:json_deserialize)) .is_api_response(true) .convertor(ApiResponse.method(:create))) .execute end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_webhook_subscription(id)\n\t\tputs \"Attempting to delete subscription for webhook: #{id}.\"\n\n\t\tif @api_tier == 'premium'\n\t\t\t@uri_path = \"#{@uri_path}/all/#{id}/subscriptions/all.json\"\n\t else\n\t\t\t@uri_path = \"#{@uri_path}/webhooks/#{id}/subscriptions.json\"\n\t\tend\n\n\t\tresponse = @...
[ "0.7963926", "0.775239", "0.7518504", "0.730175", "0.7267111", "0.7184087", "0.7182915", "0.7165733", "0.7141855", "0.7077471", "0.7061606", "0.70468277", "0.7044553", "0.7034307", "0.6988185", "0.6980693", "0.6977762", "0.69725", "0.69530535", "0.6922313", "0.6921677", "0....
0.80842197
0
Retrieves a webhook subscription identified by its ID.
def retrieve_webhook_subscription(subscription_id:) new_api_call_builder .request(new_request_builder(HttpMethodEnum::GET, '/v2/webhooks/subscriptions/{subscription_id}', 'default') .template_param(new_parameter(subscription_id, key: 'subscription_id') .should_encode(true)) .header_param(new_parameter('application/json', key: 'accept')) .auth(Single.new('global'))) .response(new_response_handler .deserializer(APIHelper.method(:json_deserialize)) .is_api_response(true) .convertor(ApiResponse.method(:create))) .execute end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_webhook_subscription(id)\n\t\tputs \"Retrieving webhook subscriptions...\"\n\n\t\tif @api_tier == 'premium'\n\t\t\t@uri_path = \"#{@uri_path}/all/#{id}/subscriptions.json\"\n\t\telse\n\t\t\t@uri_path = \"#{@uri_path}/webhooks/#{id}/subscriptions/all.json\"\n\t\tend\n\n\t\tresponse = @twitter_api.make_get_r...
[ "0.862113", "0.7963455", "0.7717578", "0.7676066", "0.73502326", "0.72067577", "0.7096132", "0.6965758", "0.68154", "0.68135995", "0.6807672", "0.6807672", "0.68019086", "0.67084527", "0.66955453", "0.6631616", "0.6511492", "0.6500728", "0.6491269", "0.6449593", "0.6422187", ...
0.8427484
1
Updates a webhook subscription.
def update_webhook_subscription(subscription_id:, body:) new_api_call_builder .request(new_request_builder(HttpMethodEnum::PUT, '/v2/webhooks/subscriptions/{subscription_id}', 'default') .template_param(new_parameter(subscription_id, key: 'subscription_id') .should_encode(true)) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(Single.new('global'))) .response(new_response_handler .deserializer(APIHelper.method(:json_deserialize)) .is_api_response(true) .convertor(ApiResponse.method(:create))) .execute end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_webhook_subscription(id,opts={})\n query_param_keys = [\n \n\n ]\n\n form_param_keys = [\n \n\n ]\n\n # verify existence of params\n raise \"id is required\" if id.nil?\n # set default values and merge with input\n options = underscored_merge_opts(op...
[ "0.76073766", "0.7418848", "0.7301023", "0.7265792", "0.7264275", "0.7264275", "0.7168759", "0.7038336", "0.6999847", "0.68373716", "0.6836886", "0.68260556", "0.6816746", "0.67809427", "0.67420566", "0.6686656", "0.66320103", "0.66176707", "0.65985596", "0.6565023", "0.65624...
0.7982958
0
Updates a webhook subscription by replacing the existing signature key with a new one.
def update_webhook_subscription_signature_key(subscription_id:, body:) new_api_call_builder .request(new_request_builder(HttpMethodEnum::POST, '/v2/webhooks/subscriptions/{subscription_id}/signature-key', 'default') .template_param(new_parameter(subscription_id, key: 'subscription_id') .should_encode(true)) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(Single.new('global'))) .response(new_response_handler .deserializer(APIHelper.method(:json_deserialize)) .is_api_response(true) .convertor(ApiResponse.method(:create))) .execute end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_webhook_subscription(subscription_id:,\n body:)\n new_api_call_builder\n .request(new_request_builder(HttpMethodEnum::PUT,\n '/v2/webhooks/subscriptions/{subscription_id}',\n 'default')...
[ "0.6920506", "0.63535666", "0.631086", "0.61892277", "0.6187521", "0.6071756", "0.6071756", "0.6056885", "0.6056106", "0.6056106", "0.6017563", "0.601363", "0.5983635", "0.59476614", "0.58910555", "0.58910555", "0.5879433", "0.58197904", "0.57595265", "0.56884825", "0.5664773...
0.7784541
0
Tests a webhook subscription by sending a test event to the notification URL.
def test_webhook_subscription(subscription_id:, body:) new_api_call_builder .request(new_request_builder(HttpMethodEnum::POST, '/v2/webhooks/subscriptions/{subscription_id}/test', 'default') .template_param(new_parameter(subscription_id, key: 'subscription_id') .should_encode(true)) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body)) .header_param(new_parameter('application/json', key: 'accept')) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(Single.new('global'))) .response(new_response_handler .deserializer(APIHelper.method(:json_deserialize)) .is_api_response(true) .convertor(ApiResponse.method(:create))) .execute end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmd_notify_test\n\t\t\t\tprint_status(\"Sending tests message\")\n\t\t\t\tif read_settings()\n\t\t\t\t\tself.framework.events.add_session_subscriber(self)\n\t\t\t\t\tdata = \"{'text': '#{@user_name} Metasploit is online on #{$source}! Hack the Planet!', 'channel': '#{@channel}', 'username': '#{@bot_name}', 'ic...
[ "0.6996566", "0.6674322", "0.6579653", "0.6484614", "0.62184435", "0.62174976", "0.6195577", "0.61954373", "0.61051506", "0.6095905", "0.60719264", "0.6042355", "0.59353805", "0.59314656", "0.592216", "0.5913169", "0.59125936", "0.5875768", "0.58558005", "0.584628", "0.584288...
0.70666933
0
Play sound with the Java Sound library
def play_sound(sound_file) begin file_or_stream = java.io.File.new(sound_file) audio_stream = AudioSystem.get_audio_input_stream(file_or_stream) clip = AudioSystem.clip clip.open(audio_stream) clip.start rescue => e puts e.full_message end end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def play_sound \n system\"play #{@sound_file}\"\n end", "def play_sound(soundName)\r\n\t\texec(\"playback\", soundName)\r\n\tend", "def play_sound\n system 'afplay ./app/sounds/test_sound.mp3 &'\n end", "def playSound _args\n \"playSound _args;\" \n end", "def play_sound(filename)\n pa...
[ "0.8101406", "0.78565735", "0.78425765", "0.7810662", "0.76417845", "0.76037264", "0.7557213", "0.75287956", "0.7477003", "0.7471893", "0.7431159", "0.7409735", "0.7350579", "0.7332483", "0.73008144", "0.7204683", "0.716318", "0.71552736", "0.71392334", "0.70827943", "0.70339...
0.81074893
0
Block a contact by phone number Block a contact from inbound and outbound communication by phone number.
def block_contact(block_contact_input_object, opts = {}) data, _status_code, _headers = block_contact_with_http_info(block_contact_input_object, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_contact_if_blocked(phone, opts = {})\n data, _status_code, _headers = get_contact_if_blocked_with_http_info(phone, opts)\n data\n end", "def process_blocked_numbers\n # eg. 12504274006\n from = params['From']\n\n # Innocent until proven guilty\n blocked = false\n\n # Collectio...
[ "0.66941667", "0.63785064", "0.62172335", "0.5798764", "0.57560825", "0.57321775", "0.5573907", "0.5541805", "0.5521341", "0.54748183", "0.5466016", "0.5350607", "0.5341137", "0.5341137", "0.53324026", "0.53069603", "0.5265255", "0.51907206", "0.5174068", "0.51727986", "0.514...
0.6086306
3
Block a contact by phone number Block a contact from inbound and outbound communication by phone number.
def block_contact_with_http_info(block_contact_input_object, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TextMagicApi.block_contact ...' end # verify the required parameter 'block_contact_input_object' is set if @api_client.config.client_side_validation && block_contact_input_object.nil? fail ArgumentError, "Missing the required parameter 'block_contact_input_object' when calling TextMagicApi.block_contact" end # resource path local_var_path = '/api/v2/contacts/block' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(block_contact_input_object) auth_names = ['BasicAuth'] 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 => 'ResourceLinkResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: TextMagicApi#block_contact\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_contact_if_blocked(phone, opts = {})\n data, _status_code, _headers = get_contact_if_blocked_with_http_info(phone, opts)\n data\n end", "def process_blocked_numbers\n # eg. 12504274006\n from = params['From']\n\n # Innocent until proven guilty\n blocked = false\n\n # Collectio...
[ "0.66952384", "0.6379469", "0.62177134", "0.60875714", "0.5799131", "0.5756743", "0.5733715", "0.557503", "0.5544621", "0.5476091", "0.54664916", "0.5349484", "0.53409857", "0.53409857", "0.5333572", "0.53086525", "0.5266589", "0.51903063", "0.5175288", "0.5174871", "0.514497...
0.55219984
9
Buy a dedicated number To buy a dedicated number, you first need to find an available number matching your criteria using the `/api/v2/numbers/available` command described above.
def buy_dedicated_number(buy_dedicated_number_input_object, opts = {}) buy_dedicated_number_with_http_info(buy_dedicated_number_input_object, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def buy(digits, options={})\n path_str = \"/api/v1/#{@list_type_path}.json\"\n res = self.class.post(path_str, :body => {:phone_number => digits}.merge(options).\n merge(:auth_token => @token))\n if res && res['status'] == 'succ...
[ "0.7022376", "0.6797439", "0.6797439", "0.664829", "0.66334087", "0.6600763", "0.61163193", "0.609524", "0.6011885", "0.5996825", "0.59097123", "0.5881626", "0.58742046", "0.58529365", "0.58488196", "0.57801044", "0.56568694", "0.5646682", "0.5606148", "0.5566238", "0.5542311...
0.62815183
6
Buy a dedicated number To buy a dedicated number, you first need to find an available number matching your criteria using the &x60;/api/v2/numbers/available&x60; command described above.
def buy_dedicated_number_with_http_info(buy_dedicated_number_input_object, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TextMagicApi.buy_dedicated_number ...' end # verify the required parameter 'buy_dedicated_number_input_object' is set if @api_client.config.client_side_validation && buy_dedicated_number_input_object.nil? fail ArgumentError, "Missing the required parameter 'buy_dedicated_number_input_object' when calling TextMagicApi.buy_dedicated_number" end # resource path local_var_path = '/api/v2/numbers' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(buy_dedicated_number_input_object) auth_names = ['BasicAuth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: TextMagicApi#buy_dedicated_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def buy(digits, options={})\n path_str = \"/api/v1/#{@list_type_path}.json\"\n res = self.class.post(path_str, :body => {:phone_number => digits}.merge(options).\n merge(:auth_token => @token))\n if res && res['status'] == 'succ...
[ "0.7024953", "0.67732155", "0.6627376", "0.6627376", "0.6617031", "0.66118217", "0.6270614", "0.6247236", "0.6014299", "0.6003936", "0.59867835", "0.5927078", "0.5883376", "0.585912", "0.58311296", "0.57986325", "0.5792748", "0.57122797", "0.56867075", "0.5665813", "0.5647764...
0.5796955
16
Cancel verification process You can cancel the verification not earlier than 30 seconds after the initial request.
def cancel_verification(verify_id, opts = {}) cancel_verification_with_http_info(verify_id, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cancel!\n state_guard { modify_call 'Status' => 'cancelled' }\n end", "def cancel\n redirect_to checkid_request.cancel_url\n end", "def cancel_request\n if params.key?(:tutor_id) && params.key?(:student_id) && params.key?(:tutor_subject_id)\n pending_request = PendingTutorReques...
[ "0.67333126", "0.6726582", "0.64954835", "0.6472406", "0.6466623", "0.63945526", "0.63846093", "0.6362177", "0.635674", "0.63223636", "0.63209164", "0.6310863", "0.6309225", "0.6297376", "0.6284848", "0.627428", "0.627428", "0.62735444", "0.6272159", "0.626489", "0.626331", ...
0.71835065
0
Cancel verification process You can cancel the verification not earlier than 30 seconds after the initial request.
def cancel_verification_with_http_info(verify_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TextMagicApi.cancel_verification ...' end # verify the required parameter 'verify_id' is set if @api_client.config.client_side_validation && verify_id.nil? fail ArgumentError, "Missing the required parameter 'verify_id' when calling TextMagicApi.cancel_verification" end # resource path local_var_path = '/api/v2/verify/{verifyId}'.sub('{' + 'verifyId' + '}', verify_id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BasicAuth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: TextMagicApi#cancel_verification\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cancel_verification(verify_id, opts = {})\n cancel_verification_with_http_info(verify_id, opts)\n nil\n end", "def cancel!\n state_guard { modify_call 'Status' => 'cancelled' }\n end", "def cancel\n redirect_to checkid_request.cancel_url\n end", "def cancel_request\n if pa...
[ "0.71818554", "0.6733993", "0.6727739", "0.649605", "0.64721245", "0.64672536", "0.63952845", "0.6386016", "0.6363812", "0.6357161", "0.6323528", "0.63220924", "0.6311448", "0.63101614", "0.6298075", "0.62859404", "0.62748814", "0.62748814", "0.627407", "0.6272919", "0.626510...
0.0
-1
Step 2: Check the verification code Check received code from user with the code which was actually sent.
def check_phone_verification_code_tfa(check_phone_verification_code_tfa_input_object, opts = {}) check_phone_verification_code_tfa_with_http_info(check_phone_verification_code_tfa_input_object, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_code (code)\n self.code_verified = self.verification_code == code\n save\n end", "def verify_code\n if params.include?(:phone_number) and params.include?(:activate_code)\n if User.exists?(:phone_number => params[:phone_number], :code => params[:activate_code])\n success = true\n ...
[ "0.74717116", "0.71733034", "0.71244144", "0.70695364", "0.7045303", "0.700539", "0.6988884", "0.68132776", "0.6809096", "0.6802872", "0.67628974", "0.66411275", "0.6629764", "0.6558029", "0.64931905", "0.6481116", "0.64772093", "0.64672637", "0.645868", "0.6457559", "0.64187...
0.0
-1
Step 2: Check the verification code Check received code from user with the code which was actually sent.
def check_phone_verification_code_tfa_with_http_info(check_phone_verification_code_tfa_input_object, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TextMagicApi.check_phone_verification_code_tfa ...' end # verify the required parameter 'check_phone_verification_code_tfa_input_object' is set if @api_client.config.client_side_validation && check_phone_verification_code_tfa_input_object.nil? fail ArgumentError, "Missing the required parameter 'check_phone_verification_code_tfa_input_object' when calling TextMagicApi.check_phone_verification_code_tfa" end # resource path local_var_path = '/api/v2/verify' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(check_phone_verification_code_tfa_input_object) auth_names = ['BasicAuth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: TextMagicApi#check_phone_verification_code_tfa\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_code (code)\n self.code_verified = self.verification_code == code\n save\n end", "def verify_code\n if params.include?(:phone_number) and params.include?(:activate_code)\n if User.exists?(:phone_number => params[:phone_number], :code => params[:activate_code])\n success = true\n ...
[ "0.74735105", "0.717372", "0.7125641", "0.70716286", "0.70461094", "0.7005357", "0.6989981", "0.6812692", "0.68100893", "0.6804299", "0.6762886", "0.6641398", "0.6631866", "0.65581864", "0.64940846", "0.6482378", "0.64789873", "0.6467985", "0.64601403", "0.6459024", "0.641909...
0.0
-1
Reset list members to the specified contacts
def clear_and_assign_contacts_to_list(clear_and_assign_contacts_to_list_input_object, id, opts = {}) data, _status_code, _headers = clear_and_assign_contacts_to_list_with_http_info(clear_and_assign_contacts_to_list_input_object, id, opts) data end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reset\n @folder_id = :contacts\n @email_address = nil\n @items = []\n end", "def contacts!(params = {})\n # contacts in this group\n @contacts = nil\n contacts\n end", "def contacts(params = {})\n # contacts in this group\n @contacts = nil\n contac...
[ "0.6904693", "0.6855263", "0.65720934", "0.622416", "0.6045487", "0.6045487", "0.5982519", "0.59176815", "0.590901", "0.5861341", "0.5844605", "0.5759591", "0.5745502", "0.5730612", "0.5724991", "0.5666231", "0.5563503", "0.55276173", "0.55176914", "0.55176914", "0.5486005", ...
0.5318999
34
Reset list members to the specified contacts
def clear_and_assign_contacts_to_list_with_http_info(clear_and_assign_contacts_to_list_input_object, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TextMagicApi.clear_and_assign_contacts_to_list ...' end # verify the required parameter 'clear_and_assign_contacts_to_list_input_object' is set if @api_client.config.client_side_validation && clear_and_assign_contacts_to_list_input_object.nil? fail ArgumentError, "Missing the required parameter 'clear_and_assign_contacts_to_list_input_object' when calling TextMagicApi.clear_and_assign_contacts_to_list" end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling TextMagicApi.clear_and_assign_contacts_to_list" end # resource path local_var_path = '/api/v2/lists/{id}/contacts'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(clear_and_assign_contacts_to_list_input_object) auth_names = ['BasicAuth'] 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 => 'ResourceLinkResponse') if @api_client.config.debugging @api_client.config.logger.debug "API called: TextMagicApi#clear_and_assign_contacts_to_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reset\n @folder_id = :contacts\n @email_address = nil\n @items = []\n end", "def contacts!(params = {})\n # contacts in this group\n @contacts = nil\n contacts\n end", "def contacts(params = {})\n # contacts in this group\n @contacts = nil\n contac...
[ "0.6904693", "0.6855263", "0.65720934", "0.622416", "0.6045487", "0.6045487", "0.5982519", "0.59176815", "0.590901", "0.5861341", "0.5844605", "0.5759591", "0.5745502", "0.5730612", "0.5724991", "0.5666231", "0.5563503", "0.55276173", "0.55176914", "0.55176914", "0.5486005", ...
0.0
-1
Close chats (bulk) Close chats by chat IDs or close all chats
def close_chats_bulk(close_chats_bulk_input_object, opts = {}) close_chats_bulk_with_http_info(close_chats_bulk_input_object, opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close\n @chats.each {|chat| chat.close}\n end", "def close_messages(messages)\n #messages.each { |message| message.close }\n end", "def close\n @channels.each{|channel,omegle|\n omegle.send(\"You have been connected to a message bridge, which is now shutting down. Goodbye.\...
[ "0.77905625", "0.66643584", "0.6149788", "0.6096386", "0.5845267", "0.58154196", "0.5787318", "0.570274", "0.5602943", "0.5580512", "0.5569416", "0.55356425", "0.5508074", "0.54411155", "0.54232955", "0.5420716", "0.54195", "0.5390397", "0.53675604", "0.5315539", "0.53031486"...
0.736026
1
Close chats (bulk) Close chats by chat IDs or close all chats
def close_chats_bulk_with_http_info(close_chats_bulk_input_object, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TextMagicApi.close_chats_bulk ...' end # verify the required parameter 'close_chats_bulk_input_object' is set if @api_client.config.client_side_validation && close_chats_bulk_input_object.nil? fail ArgumentError, "Missing the required parameter 'close_chats_bulk_input_object' when calling TextMagicApi.close_chats_bulk" end # resource path local_var_path = '/api/v2/chats/close/bulk' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(close_chats_bulk_input_object) auth_names = ['BasicAuth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: TextMagicApi#close_chats_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 close\n @chats.each {|chat| chat.close}\n end", "def close_chats_bulk(close_chats_bulk_input_object, opts = {})\n close_chats_bulk_with_http_info(close_chats_bulk_input_object, opts)\n nil\n end", "def close_messages(messages)\n #messages.each { |message| message.close }\n ...
[ "0.77905864", "0.736071", "0.66643053", "0.614972", "0.58446294", "0.58148897", "0.57871425", "0.57034653", "0.56022674", "0.55809325", "0.5570658", "0.5535768", "0.55078965", "0.54417485", "0.5422793", "0.54202074", "0.5419855", "0.53900456", "0.5367521", "0.53146243", "0.53...
0.60962313
4
Close read chats Close all chats that have no unread messages.
def close_read_chats(opts = {}) close_read_chats_with_http_info(opts) nil end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close\n @chats.each {|chat| chat.close}\n end", "def close_messages(messages)\n #messages.each { |message| message.close }\n end", "def close_read_chats_with_http_info(opts = {})\n if @api_client.config.debugging\n @api_client.config.logger.debug 'Calling API: TextMagicA...
[ "0.70630246", "0.5958564", "0.5739019", "0.5734214", "0.57226825", "0.55650884", "0.54754055", "0.53761524", "0.5325642", "0.5305493", "0.52959454", "0.52959454", "0.52959454", "0.5277327", "0.5207116", "0.52010095", "0.5163801", "0.51463544", "0.51123476", "0.5106838", "0.50...
0.76854694
0
Close read chats Close all chats that have no unread messages.
def close_read_chats_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: TextMagicApi.close_read_chats ...' end # resource path local_var_path = '/api/v2/chats/close/read' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['BasicAuth'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: TextMagicApi#close_read_chats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close_read_chats(opts = {})\n close_read_chats_with_http_info(opts)\n nil\n end", "def close\n @chats.each {|chat| chat.close}\n end", "def close_messages(messages)\n #messages.each { |message| message.close }\n end", "def read_messages!(user)\n if has_unread_messa...
[ "0.76854694", "0.70630246", "0.5958564", "0.5734214", "0.57226825", "0.55650884", "0.54754055", "0.53761524", "0.5325642", "0.5305493", "0.52959454", "0.52959454", "0.52959454", "0.5277327", "0.5207116", "0.52010095", "0.5163801", "0.51463544", "0.51123476", "0.5106838", "0.5...
0.5739019
3