query
stringlengths
9
3.4k
document
stringlengths
9
87.4k
metadata
dict
negatives
listlengths
4
101
negative_scores
listlengths
4
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Deletes an LIG from the appliance based on name OR uri [Arguments]
def fusion_api_delete_lig(self, name=None, uri=None, api=None, headers=None, etag=None): return self.lig.delete(name=name, uri=uri, api=api, headers=headers, etag=etag)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_delete_lsg(self, name=None, uri=None, api=None, headers=None):\n return self.lsg.delete(name=name, uri=uri, api=api, headers=headers)", "def fusion_api_delete_sas_lig(self, name=None, uri=None, api=None, headers=None):\n return self.saslig.delete(name=name, uri=uri, api=api, ...
[ "0.70391244", "0.6474321", "0.64738065", "0.627349", "0.6271923", "0.6258844", "0.62353176", "0.62022763", "0.61945534", "0.6159453", "0.6140253", "0.613429", "0.6125533", "0.60901445", "0.6080052", "0.6075064", "0.6070363", "0.60287416", "0.60208213", "0.59820336", "0.597422...
0.7300982
0
Gets a default or paginated collection of LIGs. [Arguments]
def fusion_api_get_lig(self, uri=None, param='', api=None, headers=None): return self.lig.get(uri=uri, param=param, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getLSLimits(*args):\n return args[0].Limit.LSLimit.ls_limit", "def get_germplasm(\n germplasm_p_u_i: Optional[str] = Query(None, alias='germplasmPUI'),\n germplasm_db_id: Optional[str] = Query(None, alias='germplasmDbId'),\n germplasm_name: Optional[str] = Query(None, alias='germplasmName'),\n ...
[ "0.570401", "0.55679977", "0.54446805", "0.54357725", "0.5408879", "0.53773415", "0.5343671", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", "0.5332839", ...
0.5002603
44
Deletes an interconnect from a LI location [Arguments]
def fusion_api_delete_li_interconnect(self, location, api=None, headers=None): return self.li.delete(location=location, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_interconnect(interconnectId=None):\n pass", "def delete_location(self, location_id):", "def removeNeighbor(self, neighborID):", "def delete_loc(lid):\r\n\r\n db = get_db()\r\n b_id = session.get(\"user_id\")\r\n db.execute(\r\n \"DELETE FROM location WHERE location_id = ? AND fo...
[ "0.70523", "0.6351125", "0.62242943", "0.5983546", "0.5859711", "0.58195263", "0.5752079", "0.5739547", "0.5688578", "0.5688009", "0.56834584", "0.5672571", "0.5653946", "0.5601045", "0.55577123", "0.55562395", "0.55517256", "0.55011714", "0.54998237", "0.54908866", "0.547352...
0.72726476
0
Gets a default or paginated collection of LIs. [Arguments]
def fusion_api_get_li(self, uri=None, api=None, headers=None, param=''): return self.li.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getLSLimits(*args):\n return args[0].Limit.LSLimit.ls_limit", "def getLCLimits(*args):\n return args[0].Limit.LCLimit.lc_limit", "def get(self):\r\n return get_all()", "def get_list(self):\n list_id = self.request.path[1:]\n if len(list_id) <= 0:\n list_id = INDEX_LI...
[ "0.61067325", "0.5754146", "0.5429958", "0.53505176", "0.5305624", "0.52829045", "0.52551264", "0.5198674", "0.5198674", "0.5198674", "0.5198674", "0.5198674", "0.5187865", "0.5187865", "0.51765084", "0.51604533", "0.5160396", "0.5138117", "0.5119954", "0.51094055", "0.505819...
0.47484627
91
Gets the ethernetSettings for the given LI [Arguments]
def fusion_api_get_li_ethernet_settings(self, uri, api=None, headers=None): param = '/ethernetSettings' return self.li.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def network_settings(self): # type: () -> t.Dict[str, t.Any]\n return self.inspection['NetworkSettings']", "def GetTapSettings(self, *args, **kwargs):\n # type: (*Any, **Any) -> None\n payload = { \"Arg1\": self }\n for i in range(len(args)): payload['Arg%s' % (i + 2)] = args[i]\n ...
[ "0.5640884", "0.54121983", "0.5334801", "0.5304122", "0.52035016", "0.51531327", "0.5137327", "0.51362133", "0.51358837", "0.51007533", "0.49597058", "0.49322188", "0.48798576", "0.48716736", "0.48688695", "0.48512754", "0.48512754", "0.4835732", "0.48269528", "0.48084754", "...
0.6779407
0
Gets the fcoeSettings for the given LI [Arguments]
def fusion_api_get_li_fcoe_settings(self, uri, api=None, headers=None): param = '/fcoeSettings' return self.li.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def settings_f(self):\n\n return self._get_list_field(\"settings\", lambda x: _build_setting(self.settings(), x))", "def get_params(path = 'INPUT/conv_params'):\n\n # cd to Input, read the conv_params file in and pass each line to file reader\n list = file_reader(path)\n\n Ecuts = list[0] # firs...
[ "0.5347215", "0.5198004", "0.50993156", "0.5070632", "0.50702673", "0.50183475", "0.49987012", "0.49866545", "0.48432627", "0.48331475", "0.4829592", "0.4822263", "0.48136076", "0.48022184", "0.4784212", "0.47505832", "0.47194228", "0.4671016", "0.4670807", "0.46582836", "0.4...
0.55565464
0
Generates the fowarding information base dump file for the given LI [Arguments]
def fusion_api_generate_li_forwarding_information_base_dump_file(self, uri, api=None, headers=None): param = '/forwarding-information-base' return self.li.post(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def genDump(exePath,inputDict,outputDict):\n paramFile = path.join(path.dirname(inputDict),'damo.par')\n with open(paramFile,'w') as f:\n f.write('DUMP'+'\\n')\n f.write(inputDict+'\\n')\n f.write(outputDict)\n runDamocles(exePath, paramFile)\n remove(paramFile)", "def main():\n\n\tparser ...
[ "0.6106935", "0.5797337", "0.5723794", "0.5647623", "0.5582486", "0.5572628", "0.55233026", "0.55159366", "0.5514", "0.5508061", "0.54456484", "0.5421948", "0.5406592", "0.5377717", "0.53716934", "0.5368791", "0.53619283", "0.5353382", "0.5350798", "0.5341077", "0.53161365", ...
0.59859556
1
Gets the fowarding information base dump file for the given LI [Arguments]
def fusion_api_get_li_forwarding_information_base_dump_file(self, uri, localfile, api=None, headers=None): return self.li.get_file(uri=uri, localfile=localfile, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getDumpFilePath(self, args):\n \n try:\n path = args[1]\n except:\n raise ArgsException, 'Second argument (dump file) was not found'\n \n return path", "def fusion_api_generate_li_forwarding_information_base_dump_file(self, uri, api=None, headers=None):\n...
[ "0.60333997", "0.5776037", "0.5622542", "0.5518955", "0.5258214", "0.5153317", "0.5099158", "0.49888653", "0.49863005", "0.49706173", "0.49517483", "0.4934412", "0.49315077", "0.49253023", "0.49036095", "0.48844084", "0.48682192", "0.4867699", "0.48596936", "0.48587334", "0.4...
0.6390368
0
Gets the fowarding information base data for the given LI [Arguments]
def fusion_api_get_li_forwarding_information_base(self, uri, param='', api=None, headers=None): param = '/forwarding-information-base%s' % param return self.li.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getInfo():", "def getListItem(*args):", "def getListItem(*args):", "def getListItem(*args):", "def get_arguments():\n parser = argparse.ArgumentParser(description=\"\"\"\n Yield a sorted frequency count of similar/dissimilar InChi DW/OpenBabel.\n\"\"\")\n\n parser.add_argument(\n \"file...
[ "0.585489", "0.5839194", "0.5839194", "0.5839194", "0.54093444", "0.53388554", "0.5291675", "0.5237547", "0.51962805", "0.5184871", "0.5173683", "0.5173683", "0.5147327", "0.51463604", "0.51265776", "0.5053905", "0.5053905", "0.50455064", "0.50265473", "0.4988871", "0.4988871...
0.515045
12
Gets the internal VLAN IDs for the provisioned networks on a logical interconnect. [Arguments]
def fusion_api_get_li_internal_vlans(self, uri, param='', api=None, headers=None): param = '/internalVlans%s' % param return self.li.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cap_net_vlan_provisioning_ind(self, **kwargs):\n\n return self.api_request(self._get_method_fullname(\"cap_net_vlan_provisioning_ind\"), kwargs)", "def network_interface_ids(self) -> Optional[Sequence[str]]:\n return pulumi.get(self, \"network_interface_ids\")", "def virtual_networks(self) ->...
[ "0.60012877", "0.5999489", "0.5853307", "0.58503205", "0.5779824", "0.5594104", "0.5587861", "0.55603266", "0.5531109", "0.55059713", "0.550587", "0.5480828", "0.5480141", "0.5480141", "0.5480141", "0.54711944", "0.54157954", "0.54152757", "0.54152757", "0.54152757", "0.54021...
0.0
-1
Updates an LI using the PATCH http verb. [Arguments]
def fusion_api_patch_li(self, body=None, uri=None, api=None, headers=None): return self.li.patch(body, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def patch(self, *args, **kwargs):\n self.request(\"patch\", *args, **kwargs)", "def patch(self, request, pk=None): #pk of id of objects to be updated (DB)\n return Response({'method':'PATCH'})", "def patch(self, url, body=None, headers=None):\n return self._request('PATCH', url, body, head...
[ "0.7248336", "0.66315514", "0.65434635", "0.6535109", "0.65075743", "0.65045047", "0.6449889", "0.64201784", "0.64201784", "0.64201784", "0.64120096", "0.63827085", "0.6375136", "0.6340054", "0.6335", "0.6311822", "0.63076824", "0.63023853", "0.62987214", "0.62633204", "0.626...
0.71836835
1
Gets the Port Monitor for the given LI [Arguments]
def fusion_api_get_li_port_monitor_configuration(self, uri, api=None, headers=None): param = '/port-monitor' return self.li.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getMonitor(self) -> ghidra.util.task.TaskMonitor:\n ...", "def get(self, *args):\n return _libsbml.ListOfPorts_get(self, *args)", "def get_monitor(name: Optional[str] = None,\n partition: Optional[str] = None,\n opts: Optional[pulumi.InvokeOptions] = None) -> Awa...
[ "0.5453936", "0.53950405", "0.52761954", "0.5250016", "0.5229539", "0.519867", "0.516409", "0.5136712", "0.5085675", "0.5085646", "0.5071541", "0.5059226", "0.5054339", "0.504533", "0.5014978", "0.49869946", "0.49751168", "0.4959505", "0.4931168", "0.49127468", "0.49117902", ...
0.60370433
0
Updates the ethernetSettings for the given LI [Arguments]
def fusion_api_update_li_ethernet_settings(self, body=None, uri=None, api=None, headers=None): param = '/ethernetSettings' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_wifi_mode(args):\n pass\n \"\"\"+\n\n try:\n if args['mode'] == 'hotspot':\n logger.info('will enter hotspot mode')\n #TODO - Need to capture the line that contains interface [some lan id] and uncomment it.\n change_file_line(path.join('/etc', 'dhcpcd.conf')...
[ "0.5477637", "0.5466509", "0.537458", "0.5326889", "0.53104806", "0.5290903", "0.5283721", "0.528293", "0.52247196", "0.5203151", "0.517094", "0.5163822", "0.51587296", "0.51508045", "0.5110261", "0.50629586", "0.50230855", "0.50227296", "0.4994447", "0.49914682", "0.49887642...
0.71327585
0
Asynchronously applies or reapplies the logical interconnect configuration to all managed interconnects. [Arguments]
def fusion_api_reapply_li_configuration(self, uri, api=None, headers=None): param = '/configuration' return self.li.update(body=None, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def apply(self, cleanup=False, activate=True):\n logger.info('applying network configs...')\n restart_interfaces = []\n restart_bridges = []\n update_files = {}\n all_file_names = []\n\n for interface_name, iface_data in self.interface_data.iteritems():\n route_...
[ "0.594964", "0.5588359", "0.5574828", "0.55746204", "0.55618614", "0.5499809", "0.5449", "0.5364194", "0.5363766", "0.5294554", "0.52783793", "0.5258976", "0.5221644", "0.5215236", "0.5138007", "0.5068981", "0.5068878", "0.5031394", "0.50260514", "0.4982964", "0.49615318", ...
0.0
-1
Updates the fcoeSettings for the given LI [Arguments]
def fusion_api_update_li_fcoe_settings(self, body=None, uri=None, api=None, headers=None): param = '/fcoeSettings' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(self, ff, **kwargs):\n from .symbolic import call_genfunction\n\n args = self._get_args(ff)\n args.update(kwargs)\n call_genfunction(self.function, args) # pylint: disable=no-member", "def update_coeff(self, **kwargs: float) -> None:\n for rule_name, coeff in kwargs...
[ "0.60227436", "0.57024354", "0.5569949", "0.55639017", "0.5491466", "0.54674345", "0.54021394", "0.5397958", "0.5397819", "0.52829903", "0.527833", "0.52733487", "0.52227044", "0.5200642", "0.5179809", "0.51742566", "0.51651156", "0.5120121", "0.51198685", "0.511294", "0.5111...
0.5842247
1
Updates the internalNetworks for the given LI [Arguments]
def fusion_api_update_li_internal_networks(self, body=None, uri=None, api=None, headers=None): param = '/internalNetworks' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_networks(self):\n\t\t# layer 1 update\n\t\tself.W1_tv = tf.assign(self.W1_tv, self.W1_av)\n\t\tself.b1_tv = tf.assign(self.b1_tv, self.b1_av)\n\n\t\t# layer 2 update\n\t\tself.W2_tv = tf.assign(self.W2_tv, self.W2_av)\n\t\tself.b2_tv = tf.assign(self.b2_tv, self.b2_av)\n\n\t\t# layer 3 update\n\t\tself....
[ "0.6205298", "0.60175586", "0.59753895", "0.59357196", "0.586205", "0.58562976", "0.57563895", "0.558638", "0.55648595", "0.5520264", "0.5353721", "0.52993184", "0.5266888", "0.5258318", "0.52572656", "0.5254502", "0.5246816", "0.5242387", "0.5241014", "0.52166176", "0.520966...
0.74014723
0
Updates the Port Monitor for the given LI [Arguments]
def fusion_api_update_li_port_monitor_configuration(self, body=None, uri=None, api=None, headers=None): param = '/port-monitor' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_ports( self ):\n self.ports = self.getComPorts()\n self.updatePortsUI()", "def port_update(self, context, **kwargs):\n self._refresh_bridge_mappings_to_neutron()", "def cmd_port(args):", "def modify_mstp_ports(self, ports, instance=0, **kwargs):\n pass", "def change_p...
[ "0.5833842", "0.5745774", "0.5347681", "0.52959704", "0.5214855", "0.5176801", "0.51571023", "0.5150093", "0.51301146", "0.51239413", "0.51145864", "0.5099718", "0.50938296", "0.5025443", "0.5011605", "0.49955344", "0.49346185", "0.49290094", "0.4830432", "0.48290905", "0.482...
0.6569742
0
Updates the telemetry configuration for the given LI [Arguments]
def fusion_api_update_li_telemetry_configuration(self, body=None, uri=None, api=None, headers=None): return self.li.update(body=body, uri=uri, api=api, headers=headers, param="")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(self, *args, **kwargs):\n self.logger.update(*args, **kwargs)", "def update(self, args):\n pass", "def update(self, arguments):\n puts_err(colored.red(\"Not implemented!\"))", "def UpdateConfig(self, instalog_config, update_info, env):\n if update_info.get('data_truncate', ...
[ "0.5785478", "0.55439204", "0.55149126", "0.55022407", "0.5438186", "0.5425908", "0.5271924", "0.5231504", "0.51998127", "0.5185919", "0.51744473", "0.5174025", "0.5156858", "0.51431435", "0.51091546", "0.50894624", "0.5031817", "0.5026999", "0.5024866", "0.5021545", "0.50171...
0.6669905
0
Updates the LI to match it's LIG [Arguments]
def fusion_api_update_from_group(self, uri, api=None, headers=None): param = '/compliance' return self.li.update(body=None, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_imp_lb(self, pos):\n optname = self.opt_optype_list[pos][0]\n self.imp_lw = self.__gen_imp_listwalker(optname)\n self.imp_lb.use_listwalker(self.imp_lw)\n return", "def setCurrentListPosition(*args):", "def setCurrentListPosition(*args):", "def Update(self,n,l):\n\t\tse...
[ "0.568571", "0.55463636", "0.55463636", "0.5445389", "0.5411951", "0.53594637", "0.53594637", "0.5314997", "0.522408", "0.5211738", "0.51841", "0.5119474", "0.5116468", "0.50454235", "0.5020581", "0.5020581", "0.501829", "0.5016751", "0.49967706", "0.4987135", "0.49851447", ...
0.0
-1
Initiate the firmware upgrade task using uploaded upgrade image Fusion Api Li Upgrade Firmware [Arguments]
def fusion_api_li_upgrade_firmware(self, body=None, uri=None, api=None, param='', headers=None): param = '/firmware' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgrade(self):\n # replace '\\' with '/' (For NT system compatability)\n filesplit = upgrade_file.replace('\\\\', '/')\n filesplit = filesplit.split('/')\n shortfilename = filesplit[-1]\n\n #define the JSON data for the multipart\n upgradejsondata = {media: {\"image\":...
[ "0.6566464", "0.5902618", "0.57395464", "0.5734666", "0.5660061", "0.5653541", "0.55809724", "0.5564178", "0.5483875", "0.5452118", "0.5418408", "0.53768283", "0.53754634", "0.536416", "0.52903146", "0.52697456", "0.52697456", "0.52498794", "0.5247534", "0.5242441", "0.523731...
0.5661459
4
Updates the qosaggregatedconfiguration for the given LI [Arguments]
def fusion_api_update_qos_aggregated_configuration(self, body=None, uri=None, api=None, headers=None): param = '/qos-aggregated-configuration' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def change_qos(self, arg, qos):\n\n if isinstance(arg, (list, tuple)):\n for job_id in arg:\n self.change_qos(job_id, qos)\n\n elif isinstance(arg, int):\n cmd = 'update job {} QOS={}'.format(arg, qos)\n self.scontrol(cmd)\n\n elif str(arg).lower...
[ "0.67901707", "0.5880294", "0.569532", "0.55881894", "0.54956216", "0.53930706", "0.5311097", "0.5298383", "0.5256257", "0.518485", "0.5147952", "0.5064871", "0.5061133", "0.50596696", "0.5018651", "0.5007533", "0.49908927", "0.49765438", "0.4969579", "0.4967064", "0.49368778...
0.7223659
0
Updates the redistribute logins for the given LI [Arguments]
def fusion_api_update_redistribute_logins(self, body=None, uri=None, api=None, headers=None): param = '/redistributeLogins' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_from_logins(self, logins):\n # Now add contributors using cache (new GitHub contributors) with known email or orcid that isn't present\n for login in logins:\n # Check against contribution threshold, and not bot\n if not self.include_contributor(login):\n ...
[ "0.54186535", "0.54110336", "0.53969145", "0.49532676", "0.49296567", "0.47788838", "0.47631562", "0.47610638", "0.46270508", "0.46098492", "0.4609678", "0.46089858", "0.46063384", "0.45893776", "0.45665368", "0.455108", "0.4519849", "0.45181343", "0.45152643", "0.45023364", ...
0.623942
0
Updates the snmp_configuration for the given LI [Arguments]
def fusion_api_update_snmp_configuration(self, body=None, uri=None, api=None, headers=None): param = '/snmp-configuration' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_args(self, args):\n for cfg in args:\n keys, v = cfg.split('=', maxsplit=1)\n keylist = keys.split('.')\n dic = self\n for i, k in enumerate(keylist[:-1]):\n assert k in dir(dic), \"Unknown config key: {}\".format(keys)\n d...
[ "0.5679741", "0.56726307", "0.56405234", "0.5542471", "0.5516537", "0.54477245", "0.5404502", "0.5267286", "0.52630067", "0.5219275", "0.51195866", "0.50946283", "0.508972", "0.50685936", "0.5062348", "0.5054096", "0.50422263", "0.5028846", "0.49959874", "0.49718717", "0.4971...
0.67885226
0
Updates the sflow_configuration for the given LI [Arguments]
def fusion_api_update_sflow_configuration(self, body=None, uri=None, api=None, headers=None): param = '/sflow-configuration' return self.li.update(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_flow(self, conf, dpid, flow_id, params):\n\t\tpass", "def update_flow(self, flow):\r\n self.flow = flow", "def config_attributes(dut, **kwargs):\n cli_type = st.get_ui_type(dut, **kwargs)\n cli_type = \"klish\" if cli_type in [\"rest-put\", \"rest-patch\"] else cli_type\n sflow_key =...
[ "0.68084615", "0.61187977", "0.59682405", "0.58530384", "0.57871956", "0.5644216", "0.5578467", "0.5413738", "0.53650093", "0.5348528", "0.53186816", "0.5275245", "0.52426374", "0.52174234", "0.5212929", "0.51983064", "0.51878506", "0.5145924", "0.51448166", "0.51402605", "0....
0.71294343
0
Creates an LSG [Arguments]
def fusion_api_create_lsg(self, body, api=None, headers=None): return self.lsg.create(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create(*args):", "def LATCH_create(bytes=None, rotationInvariance=None, half_ssd_size=None, sigma=None): # real signature unknown; restored from __doc__\n pass", "def create_arguments_parser():\n description = \"Statically analyse SBML files for modelling errors\"\n parent_arg_parser = rate_checker_sb...
[ "0.5742609", "0.57302654", "0.56862175", "0.56493485", "0.5516043", "0.54686105", "0.540336", "0.54006046", "0.5399344", "0.5353568", "0.5351558", "0.53276944", "0.53128874", "0.53111243", "0.5305127", "0.5304801", "0.53023374", "0.5270474", "0.5254954", "0.5245376", "0.52437...
0.5577845
4
Updates an LSG [Arguments]
def fusion_api_edit_lsg(self, body, uri, api=None, headers=None): return self.lsg.update(body, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(*args):", "def update(self, args):\n pass", "def update(self, arguments):\n puts_err(colored.red(\"Not implemented!\"))", "def update_command(arguments: List[str]) -> None:\n if len(arguments) != 3:\n print('Required 2 argument for update command') # noqa: WPS421\n ...
[ "0.67254406", "0.64905566", "0.644917", "0.6072799", "0.5966207", "0.5966207", "0.5966207", "0.5966207", "0.5966207", "0.5966207", "0.5837669", "0.5804715", "0.58020055", "0.57668227", "0.576679", "0.57506", "0.57211375", "0.5711164", "0.5707006", "0.56880087", "0.56853896", ...
0.59574103
10
Deletes an LSG from the appliance based on name OR uri [Arguments]
def fusion_api_delete_lsg(self, name=None, uri=None, api=None, headers=None): return self.lsg.delete(name=name, uri=uri, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_delete_lig(self, name=None, uri=None, api=None, headers=None, etag=None):\n return self.lig.delete(name=name, uri=uri, api=api, headers=headers, etag=etag)", "def fusion_api_delete_sas_lig(self, name=None, uri=None, api=None, headers=None):\n return self.saslig.delete(name=na...
[ "0.65715736", "0.6537951", "0.64739513", "0.6469143", "0.64559233", "0.6451616", "0.6421078", "0.637283", "0.62559646", "0.6248884", "0.62425286", "0.6233732", "0.62126493", "0.61967176", "0.6192574", "0.6154742", "0.60829335", "0.60448134", "0.60233885", "0.5990966", "0.5989...
0.75466216
0
Gets a default or paginated collection of LSGs. [Arguments]
def fusion_api_get_lsg(self, uri=None, param='', api=None, headers=None): return self.lsg.get(uri=uri, param=param, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getLSLimits(*args):\n return args[0].Limit.LSLimit.ls_limit", "def _get_glossaries(self, limit=-1, offset=0, sort_order=\"ASC\"):\n results = None\n atlas_endpoint = self.endpoint_url + \"/glossary\"\n logging.debug(\"Retreiving all glossaries from catalog\")\n\n # TODO: Implem...
[ "0.5902179", "0.56460506", "0.5590701", "0.54809374", "0.5435606", "0.54336655", "0.53895336", "0.52304566", "0.52200544", "0.5212413", "0.5187521", "0.5119294", "0.5119294", "0.5119294", "0.5119294", "0.5119294", "0.51137084", "0.50779617", "0.50483704", "0.50458235", "0.503...
0.5673093
1
Gets the default settings for LSGs. [Example] ${resp} = Fusion Api Get Lsg Default Settings| |
def fusion_api_get_lsg_default_settings(self, api=None, headers=None): return self.lsg.get(api=api, param='/defaultSettings', headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getDefaultSettings():\n return {}", "def getDefaultSettings(self) -> ghidra.docking.settings.Settings:\n ...", "def fusion_api_get_lsg_setting(self, uri, settingsId=None, api=None, headers=None):\n param = '/settings/%s' % (settingsId)\n return self.lsg.get(uri=uri, api=...
[ "0.6478354", "0.6247138", "0.6241164", "0.6094763", "0.60725147", "0.5992975", "0.58911484", "0.5849506", "0.5788157", "0.5785921", "0.5736645", "0.5732013", "0.5724971", "0.5719785", "0.57157767", "0.5705406", "0.5702473", "0.56992763", "0.56953037", "0.5694682", "0.56941646...
0.82086563
0
Gets a particular LSG setting. [Arguments]
def fusion_api_get_lsg_setting(self, uri, settingsId=None, api=None, headers=None): param = '/settings/%s' % (settingsId) return self.lsg.get(uri=uri, api=api, param=param, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_setting(varname): \n gl = globals()\n if varname not in gl.keys():\n raise ValueError(\"Unknown setting %s\"%varname)\n # Here, possibly add some code to raise exceptions if some\n # parameter isn't set set properly, explaining on how to set it.\n return gl[varname]", "def getLSLimi...
[ "0.65687746", "0.60098463", "0.5887475", "0.5856363", "0.58437705", "0.57676584", "0.5724383", "0.57229125", "0.56246775", "0.5606557", "0.55877066", "0.55760974", "0.5558709", "0.5546795", "0.55110544", "0.5481453", "0.5443491", "0.5443213", "0.5432782", "0.5383437", "0.5334...
0.68152773
0
Creates an LS [Arguments]
def fusion_api_create_ls(self, body, api=None, headers=None): return self.ls.post(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsextpool(self, args: str = \"\") -> List[str]:\n\n lsextpool_cmd = f\"{self.base_cmd} lsextpool {args}\"\n lsextpool_out = runsub.cmd(lsextpool_cmd)\n\n return lsextpool_out", "def create_arguments_parser():\n description = \"Statically analyse SBML files for modelling errors\"\n pare...
[ "0.5975784", "0.59727186", "0.5868262", "0.5769883", "0.5715503", "0.57015365", "0.5639198", "0.5574833", "0.5550083", "0.5504017", "0.5473941", "0.54204917", "0.5415488", "0.5406241", "0.53936857", "0.537905", "0.53685063", "0.53668535", "0.53544813", "0.5327402", "0.5312354...
0.0
-1
Deletes an LS [Arguments]
def fusion_api_delete_ls(self, name=None, uri=None, api=None, headers=None): return self.ls.delete(name=name, uri=uri, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_command(arguments: List[str]) -> None:\n if len(arguments) != 2:\n print('Required 1 argument for create command') # noqa: WPS421\n return\n token = token_load.load()\n logic.delete(token, gist_id=arguments[1])", "def rm(args):\n args.delete = True\n return remove(args)",...
[ "0.72735256", "0.6969873", "0.6469052", "0.6443679", "0.63960606", "0.63934475", "0.63764435", "0.62397367", "0.61825293", "0.61595994", "0.61300564", "0.6125126", "0.60723054", "0.60491705", "0.6044645", "0.6041547", "0.6021014", "0.6013864", "0.6011226", "0.6010654", "0.600...
0.0
-1
Gets a default or paginated collection of LSs. [Arguments]
def fusion_api_get_ls(self, uri=None, api=None, headers=None, param=''): return self.ls.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getLSLimits(*args):\n return args[0].Limit.LSLimit.ls_limit", "def list(\n self,\n **kwargs # type: Any\n ):\n # type: (...) -> Iterable[\"_models.StaticSiteCollection\"]\n cls = kwargs.pop('cls', None) # type: ClsType[\"_models.StaticSiteCollection\"]\n error_map =...
[ "0.60762984", "0.5760143", "0.5707024", "0.5635417", "0.56306773", "0.55461514", "0.5524759", "0.54975986", "0.5490331", "0.54048747", "0.54048747", "0.53754765", "0.53707415", "0.53707415", "0.53707415", "0.53707415", "0.53707415", "0.5364701", "0.5357447", "0.53344554", "0....
0.59576935
1
Updates an LS [Arguments]
def fusion_api_update_ls(self, body=None, uri=None, api=None, headers=None): return self.ls.put(body, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(self, args):\n pass", "def update(*args):", "def update_args(self, args):\n self.args = self.parser.parse_args(args)", "def update(self, arguments):\n puts_err(colored.red(\"Not implemented!\"))", "def update_command(arguments: List[str]) -> None:\n if len(arguments) != 3...
[ "0.68650764", "0.6792309", "0.66739506", "0.6561108", "0.6360648", "0.6083405", "0.60487765", "0.59447855", "0.59439784", "0.5848597", "0.58384794", "0.58384794", "0.58384794", "0.58384794", "0.58384794", "0.58384794", "0.57887894", "0.57644147", "0.5751363", "0.57451713", "0...
0.52228427
66
Creates compatibility for the given target mode FIPS/CNSA [Arguments]
def fusion_api_create_security_compatibility_report(self, body, uri=None, api=None, headers=None, param='/compatibility-report'): return self.security_standards.post(uri=uri, api=api, headers=headers, body=body, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_bossac_create_with_legacy(cc, req, get_cod_par, sup,\n\t\t\t\t runner_config, tmpdir):\n runner_config = adjust_runner_config(runner_config, tmpdir,\n DOTCONFIG_COND6)\n runner = BossacBinaryRunner(runner_config, port=TEST_BOSSAC_PORT)\n with patch('os.pa...
[ "0.5477985", "0.5276806", "0.5225103", "0.48394167", "0.4740942", "0.46825662", "0.46673438", "0.46072742", "0.45855713", "0.45662928", "0.45606747", "0.45520175", "0.4549397", "0.4518568", "0.4512045", "0.44922298", "0.44832587", "0.44790715", "0.44689128", "0.44681084", "0....
0.0
-1
Updates compatibility for the given target mode [Arguments]
def fusion_api_update_security_compatibility_report(self, body, uri=None, api=None, headers=None, param='/compatibility-report?force=true'): return self.security_standards.post(uri=uri, api=api, headers=headers, body=body, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def platform_mode_manifest_updates(self, dbapi, mode):\n pass", "def mode(self, target, *data):\n self.send_line('MODE %s %s' % (target, ' '.join(data)), nowait=True)", "def setMode(self, targetmode):\n self.resetStream()\n\n if targetmode not in self.prompts.keys():\n ra...
[ "0.60767746", "0.5650432", "0.5535062", "0.5497063", "0.54316187", "0.53841114", "0.5343647", "0.53233975", "0.52943826", "0.5232922", "0.5206134", "0.5150099", "0.5127828", "0.508494", "0.50845075", "0.5042784", "0.5034692", "0.5027886", "0.5027541", "0.50102806", "0.4984408...
0.0
-1
Get existing compatibility report [Example] ${resp} = Fusion Api Get Security Compatibility Report | | |
def fusion_api_get_security_compatibility_report(self, uri=None, api=None, headers=None, param='/compatibility-report'): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_get_compatibility_report(self, uri, param='', api=None, headers=None):\n return self.migratableVcDomain.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_create_security_compatibility_report(self, body, uri=None, api=None, headers=None, param='/compatibility-report')...
[ "0.6823767", "0.581572", "0.568539", "0.5526973", "0.5380427", "0.53281105", "0.53126675", "0.5279853", "0.5272536", "0.5255016", "0.52183175", "0.51712066", "0.5138143", "0.5130867", "0.5126458", "0.511854", "0.5118234", "0.50857085", "0.50781465", "0.5074722", "0.5067323", ...
0.71547586
0
Delete existing compatibility report [Example] ${resp} = Fusion Api Delete Security Compatibility Report | | |
def fusion_api_delete_security_compatibility_report(self, uri=None, api=None, headers=None, param='/compatibility-report'): return self.security_standards.delete(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete(cm_response, **data):\n return cm_response", "def test_delete_success(self) -> None:\n\n channel = self.make_request(\n \"DELETE\",\n self.url,\n access_token=self.admin_user_tok,\n )\n\n self.assertEqual(200, channel.code, msg=channel.json_body...
[ "0.6129747", "0.57974845", "0.5664502", "0.5619248", "0.55842876", "0.5583797", "0.5574962", "0.5562506", "0.55540067", "0.5547024", "0.5487619", "0.5425782", "0.54195935", "0.53439325", "0.5341132", "0.53255165", "0.52959824", "0.5290835", "0.5276131", "0.52161545", "0.52069...
0.73193264
0
Does Security Mode Change FIPS/CNSA/LEGACY. [Arguments]
def fusion_api_change_security_mode(self, body, uri=None, api=None, headers=None, param='/modes/current-mode'): return self.security_standards.put(uri=uri, api=api, headers=headers, body=body, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def secure(self) -> bool:\n return self.get_state(self.args[CONF_OVERALL_SECURITY_STATUS]) == \"Secure\"", "def _ens_psec_supported(self):\n pass", "def test_set_mode(self):\n context = Context(SSLv23_METHOD)\n assert MODE_RELEASE_BUFFERS & context.set_mode(MODE_RELEASE_BUFFERS)", ...
[ "0.5541181", "0.5515481", "0.5485578", "0.5464894", "0.5460684", "0.54190993", "0.54003185", "0.53532046", "0.5337178", "0.5280731", "0.52471733", "0.52117056", "0.52020633", "0.51673883", "0.5163877", "0.5139177", "0.51375663", "0.5135457", "0.5119857", "0.51019514", "0.5077...
0.5638524
0
Gets a list of Security modes [Example] ${resp} = Fusion Api Get Security Modes | | | |
def fusion_api_get_security_modes(self, uri=None, api=None, headers=None, param='/modes'): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_get_current_security_mode(self, uri=None, api=None, headers=None, param='/modes/current-mode'):\n return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_get_security_modeName(self, uri=None, api=None, headers=None, param=''):\n re...
[ "0.68961036", "0.653141", "0.5915215", "0.58452207", "0.5733469", "0.56415015", "0.56192136", "0.5553235", "0.55484384", "0.5471953", "0.5440756", "0.5433595", "0.54021186", "0.5392016", "0.53893346", "0.53558445", "0.5344282", "0.5338408", "0.53269875", "0.53224444", "0.5297...
0.78569627
0
Gets a list of Security modes [Example] ${resp} = Fusion Api Get Current Security Mode | | | |
def fusion_api_get_current_security_mode(self, uri=None, api=None, headers=None, param='/modes/current-mode'): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_get_security_modes(self, uri=None, api=None, headers=None, param='/modes'):\n return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_get_security_modeName(self, uri=None, api=None, headers=None, param=''):\n return self.security_s...
[ "0.78809065", "0.66877264", "0.5968293", "0.5922285", "0.584577", "0.57545865", "0.5584333", "0.55589724", "0.55572355", "0.5537556", "0.55370617", "0.55359447", "0.54873556", "0.546913", "0.54307616", "0.5405919", "0.53729117", "0.5366049", "0.53463566", "0.53376895", "0.533...
0.74098223
1
Gets a list of Security modes [Example] ${resp} = Fusion Api Get Security ModeName | | | |
def fusion_api_get_security_modeName(self, uri=None, api=None, headers=None, param=''): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_get_security_modes(self, uri=None, api=None, headers=None, param='/modes'):\n return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_get_current_security_mode(self, uri=None, api=None, headers=None, param='/modes/current-mode'):\n ...
[ "0.77332807", "0.7017976", "0.5843751", "0.5707068", "0.5608259", "0.55467093", "0.5505064", "0.55039376", "0.54651487", "0.54621285", "0.53904", "0.5379105", "0.5360107", "0.5350867", "0.5305736", "0.53032374", "0.5303141", "0.52850384", "0.5256461", "0.5249061", "0.5242854"...
0.7043026
1
Validate device and/or certificate [Example] ${resp} = Fusion Api Compliance Validator | | | | |
def fusion_api_compliance_validator(self, body, uri=None, api=None, headers=None, param='/compliancevalidator'): return self.security_standards.post(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validate_response(response: json):\n if \"error\" in response:\n print(\"ERROR: Request returned error\")\n print_request_response(response)\n exit(1)", "def verify(self, response):", "def fusion_api_validator_certificate(self, body, api=None, headers=None):\n ...
[ "0.60062224", "0.5996112", "0.5925972", "0.5762199", "0.5761358", "0.568845", "0.5615664", "0.5607563", "0.55303663", "0.5469247", "0.54353786", "0.54120624", "0.5386793", "0.5382703", "0.53561974", "0.5322147", "0.531299", "0.5305406", "0.527598", "0.52457315", "0.5219522", ...
0.54957896
9
Update security protocols [Example] ${resp} = Fusion Api Update Security Protocols | | | | |
def fusion_api_update_security_protocols(self, body, uri=None, api=None, headers=None, param='/protocols'): return self.security_standards.put(body=body, uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_update_firewall_rule_protocol(self):\r\n resource = 'firewall_rule'\r\n cmd = firewallrule.UpdateFirewallRule(test_cli20.MyApp(sys.stdout),\r\n None)\r\n self._test_update_resource(resource, cmd, 'myid',\r\n ...
[ "0.55466896", "0.54718137", "0.5316541", "0.51760364", "0.51063836", "0.50989", "0.5069504", "0.5057574", "0.4968887", "0.49183688", "0.49088", "0.48352388", "0.48348862", "0.4829088", "0.48271632", "0.4823801", "0.48136333", "0.48069957", "0.4761026", "0.47487354", "0.474140...
0.67823476
0
Get a list of security protocols [Example] ${resp} = Fusion Api Get Security Protocols | | | |
def fusion_api_get_security_protocols(self, uri=None, api=None, headers=None, param='/protocols'): return self.security_standards.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Get_AvailableProtocols(self, request, context: grpc.ServicerContext) \\\n -> Ot2Controller_pb2.Get_AvailableProtocols_Responses:\n # Run 'ls' command to collect the files.\n ssh_stdin, ssh_stdout, ssh_stderr = self.ssh.exec_command(\"ls \" + USER_STORAGE_DIR)\n output: str = ssh...
[ "0.582647", "0.5813553", "0.56914395", "0.55264306", "0.55257183", "0.5524292", "0.548235", "0.54644", "0.545345", "0.53170335", "0.53170335", "0.52891564", "0.5145579", "0.5117963", "0.509841", "0.5075175", "0.50673515", "0.5064264", "0.50599957", "0.50556576", "0.49897924",...
0.7157788
0
This service provides REST APIs to list the login details
def fusion_api_get_login_details(self, api=None, headers=None): return self.logindetails.get(api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list():\n rino.login.list()", "def get():\n return login()", "def login(self):\n req_url = 'http://{}:{}/api/'.format(self.server, self.port)\n return requests.head(\n req_url,\n auth=requests.auth.HTTPBasicAuth(self.username, self.password)\n )", "def...
[ "0.7615113", "0.67516786", "0.6640223", "0.6620599", "0.6592211", "0.65758944", "0.6548748", "0.6539842", "0.65274405", "0.65151817", "0.6509765", "0.65061176", "0.6461303", "0.6457599", "0.6454865", "0.6438191", "0.6384374", "0.6376407", "0.6356542", "0.6341436", "0.6341423"...
0.6549267
6
Adds a Directory for user authentication [Arguments]
def fusion_api_add_directory(self, body, api=None, headers=None): return self.logindomain.create(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_user(username, comment, password ):\n\n print(\"Adding user: %s\" % (username)) \n \n # create user \n # create group with same name as user, adding user to group\n # comment (lastname, firstname) \n # create home directory \n # login shell \n # password (encrypted via ope...
[ "0.5933362", "0.58718026", "0.5865815", "0.58344847", "0.5742488", "0.5715014", "0.56768924", "0.5665096", "0.5638359", "0.561248", "0.55826414", "0.55797136", "0.55311835", "0.5508425", "0.55076957", "0.55059725", "0.5497051", "0.54678863", "0.54589856", "0.5439616", "0.5428...
0.57682073
4
Updates a Directory. [Arguments]
def fusion_api_edit_directory(self, body, uri, api=None, headers=None): return self.logindomain.update(body, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChangeDir(self, path: str) -> None:\n ...", "def update_command(arguments: List[str]) -> None:\n if len(arguments) != 3:\n print('Required 2 argument for update command') # noqa: WPS421\n return\n token = token_load.load()\n logic.update(token, gist_id=arguments[1], filename=ar...
[ "0.63682216", "0.6226386", "0.6167551", "0.6143354", "0.60635453", "0.6044386", "0.60279846", "0.60220593", "0.59357977", "0.58604765", "0.58249855", "0.58143795", "0.57674176", "0.57341146", "0.56830955", "0.56623656", "0.5651537", "0.564812", "0.56204563", "0.56031173", "0....
0.5959691
8
Deletes a directory based on name OR uri. [Arguments]
def fusion_api_delete_directory(self, name=None, uri=None, api=None, headers=None): return self.logindomain.delete(name, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_directory(DirectoryId=None):\n pass", "def rm(self, uri):\n path = osaka.utils.get_uri_path(uri)\n try:\n osaka.utils.LOGGER.debug(\"Removing {0} as a file\".format(uri))\n self.webdav.delete(path)\n except Exception as e:\n osaka.utils.LOGGER.d...
[ "0.66433924", "0.65953314", "0.6404519", "0.6382594", "0.6300447", "0.62714815", "0.6259328", "0.62426025", "0.6235144", "0.6196587", "0.6184736", "0.61651444", "0.61198676", "0.6103151", "0.60914314", "0.60688454", "0.6044329", "0.6010868", "0.6005834", "0.5996815", "0.59929...
0.7201999
0
Gets a default or paginated collection of Directories. [Arguments]
def fusion_api_get_directory(self, uri=None, param='', api=None, headers=None): return self.logindomain.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def describe_directories(DirectoryIds=None, NextToken=None, Limit=None):\n pass", "def list(self):\n response = self._get()\n\n directories = []\n for dir_json in response[\"directories\"]:\n directories.append(Directory._create_from_json(dir_json, self._session, self._url_base...
[ "0.60174596", "0.59283835", "0.58103794", "0.5776684", "0.5756737", "0.57488173", "0.5720761", "0.5645351", "0.5626486", "0.5582544", "0.55551404", "0.55224276", "0.55062765", "0.5494569", "0.5473684", "0.54681134", "0.54657614", "0.54236186", "0.5393756", "0.5385284", "0.536...
0.4920612
92
List Groups for a specified directory configured in the appliance. Group names are returned as list of strings. [Arguments]
def fusion_api_get_directory_groups(self, body, api=None, headers=None): return self.logindomain.groups(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_groups(args):\n\n for group in get_groups(args):\n print(group)", "def get_groups(args):\n\n args.suppress_verify_output = True\n if verify(args) != 0:\n # restore stdout\n sys.stdout = sys.__stdout__\n print(\"Config file not valid, please use the verify function to...
[ "0.7678451", "0.7256648", "0.72404146", "0.71036464", "0.7082599", "0.7072794", "0.6989513", "0.6986399", "0.6923247", "0.68336165", "0.67743164", "0.6758371", "0.6734666", "0.67328084", "0.66934633", "0.6622067", "0.65513617", "0.65046525", "0.6477472", "0.6465661", "0.64393...
0.704917
6
List users who are members of the groups with one or more appliance roles assigned to it. User names are returned as list of strings. These Users have login privileges to the appliance [Arguments]
def fusion_api_get_directory_users(self, body, api=None, headers=None): return self.logindomain.users(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(isamAppliance, name, check_mode=False, force=False):\n return isamAppliance.invoke_get(\"Retrieving the list of users for an authorization roles\",\n \"/authorization/roles/{0}/users/v1\".format(name))", "def query(self, *args, **kwargs) -> List[str]:\r\n self...
[ "0.6912599", "0.63311833", "0.62964076", "0.6254735", "0.62488145", "0.61895895", "0.6111508", "0.61003655", "0.6073217", "0.60607266", "0.59852064", "0.5938694", "0.59310526", "0.5926656", "0.591349", "0.58741194", "0.58126", "0.5806056", "0.58056724", "0.5803694", "0.579723...
0.54074347
94
Validates a Directory for user authentication [Arguments]
def fusion_api_validate_directory(self, body, api=None, headers=None): return self.logindomain.validate(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_valid_directory(parser, arg):", "def is_valid_directory(args):\n if args.directory is not None:\n return True\n return False", "def validate(self):\n if not self.path.is_dir() or not self.path.exists():\n raise NotADirectoryError", "def check_input(inputs_dir, user_dir):...
[ "0.6541614", "0.6375576", "0.59949476", "0.58818376", "0.58729166", "0.58209735", "0.5778177", "0.56637114", "0.5662725", "0.56495184", "0.56178194", "0.5617253", "0.5613369", "0.5605618", "0.5561035", "0.55171144", "0.55051553", "0.5450304", "0.544123", "0.54338664", "0.5351...
0.5440385
19
Assign appliance roles to the directory group. User credentials are required for directory access. [Arguments]
def fusion_api_assign_roles_to_directory_group(self, body, api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.create(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def grant_role(self, role, principal_ids):", "def set_role(userid, role, group, request=None):", "def can_set_role(userid, role, group):", "def roles(*args):\n env.salt_roles.extend(args)", "def set_role(self, group, role):\n self.permissions[group] = roles[role]", "def role_command():", "def...
[ "0.60747206", "0.60191864", "0.5741972", "0.5524711", "0.54676497", "0.5397695", "0.5368332", "0.53465974", "0.53450435", "0.53086156", "0.53069246", "0.53042567", "0.5281943", "0.5268864", "0.5258166", "0.5231422", "0.5223742", "0.522291", "0.5217994", "0.5213348", "0.521307...
0.576057
2
Update role assignment to a directory group. [Arguments]
def fusion_api_update_group_role_assignment(self, body, api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.update(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_role(self, group, role):\n self.permissions[group] = roles[role]", "def set_role(userid, role, group, request=None):", "def updateRole(role_name):\n\n if role_name == 'gsoc_mentor':\n updater = RoleUpdater(GSoCMentor, GSoCProfile, 'program', 'mentor_for')\n elif role_name == 'gsoc_org_admin...
[ "0.6839127", "0.6786615", "0.64544904", "0.6158387", "0.6040294", "0.6031052", "0.5998986", "0.594505", "0.5939835", "0.5919381", "0.5909824", "0.5889286", "0.58872354", "0.5826187", "0.5820612", "0.5782797", "0.5744905", "0.5735358", "0.57333267", "0.5717252", "0.5698031", ...
0.7115229
0
Delete Directory Group Role Assignment. [Arguments]
def fusion_api_delete_group_role_assignment(self, name=None, uri=None, api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.delete(name, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def do_del_group(dbsync, group):\n pass", "def delete_group(gid):\n if request.method == 'POST':\n hl.deleteGroup(gid)\n return redirect('/users')", "def test_delete_group(self):\n response = self.client.delete_group(\"ABC123\")\n uri, args = response[\"uri\"].split(\"?\")\n\n...
[ "0.6509207", "0.6505571", "0.6501011", "0.6458564", "0.6450716", "0.63913774", "0.6387865", "0.63852173", "0.6364289", "0.63577217", "0.6325496", "0.63238084", "0.62984717", "0.6296125", "0.6289966", "0.6285411", "0.6266704", "0.6266172", "0.6220471", "0.62161833", "0.619778"...
0.7217537
0
Retrieve role assignments for directory group under a directory/all directories group or a specify group. [Arguments]
def fusion_api_get_group_role_assignment(self, uri=None, param='', api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_list_role_assignment_using_sourced_groups(self):\n test_plan = {\n # The default domain with 3 users, 3 groups, 3 projects,\n # plus 3 roles.\n 'entities': {'domains': {'id': CONF.identity.default_domain_id,\n 'users': 3, 'groups'...
[ "0.5716845", "0.5665079", "0.56083006", "0.54704577", "0.5459695", "0.54367876", "0.5423686", "0.5395236", "0.537699", "0.5319862", "0.52708954", "0.5258562", "0.52357024", "0.5224857", "0.5221974", "0.5152498", "0.5134285", "0.5104248", "0.5071822", "0.50717807", "0.5041352"...
0.6416643
0
Validate Group and Roles [Arguments]
def fusion_api_validate_group_and_roles(self, body, api=None, headers=None): return self.LoginDomainsGroupToRoleMapping.validate(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ValidateRoles(dataproc, pools):\n if not pools:\n # The backend will automatically create the default pool.\n return\n seen_roles = set()\n for pool in pools:\n for role in pool.roles:\n if role in seen_roles:\n raise exceptions.InvalidArgumentException(\n ...
[ "0.63680756", "0.625113", "0.5933205", "0.5872939", "0.5811343", "0.57347214", "0.5650826", "0.5630459", "0.5623351", "0.5616661", "0.55777454", "0.5577008", "0.5567598", "0.55302215", "0.5528641", "0.55236584", "0.55154485", "0.54752195", "0.54318565", "0.5424925", "0.542422...
0.678552
0
Get the Login Certificate details [Arguments]
def fusion_api_get_login_domains_login_certificates(self, api=None, headers=None, param=''): return self.login_certificates.get(api, headers, param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_ssl_certificate():", "def get_ssl_certificate() :", "def certificate_auth():\r\n url = 'https://www.12306.cn'\r\n response = requests.get(url, verify=False)\r\n print(response.status_code)\r\n print(response.text)", "def certificate(self) -> pulumi.Input[str]:\n return pulumi.get(s...
[ "0.6509839", "0.641934", "0.6257826", "0.6161516", "0.6161516", "0.6068615", "0.6068615", "0.6068615", "0.6061537", "0.59471256", "0.5944858", "0.5891444", "0.5867334", "0.5866702", "0.586656", "0.5828915", "0.58250123", "0.58250123", "0.58250123", "0.58250123", "0.58250123",...
0.5821101
22
Put the Login Certificate details to Appliance [Arguments]
def fusion_api_edit_login_domains_login_certificates(self, body, param='', api=None, headers=None): return self.login_certificates.update(body, param, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Run(self, args):\n holder = base_classes.ComputeApiHolder(self.ReleaseTrack())\n client = holder.client\n\n ssl_certificate_ref = self.SSL_CERTIFICATE_ARG.ResolveAsResource(\n args, holder.resources, default_scope=compute_scope.ScopeEnum.GLOBAL)\n\n certificate = files.ReadFileContents(args....
[ "0.562244", "0.55855423", "0.5579261", "0.5517089", "0.55061364", "0.55028576", "0.54830956", "0.5428874", "0.5412368", "0.53531545", "0.53222334", "0.52856284", "0.5271019", "0.5246812", "0.5214223", "0.5207255", "0.5199892", "0.5175191", "0.51650107", "0.5146057", "0.512892...
0.50033665
34
Get Login Domains Global Settings for specified appliance [Arguments]
def fusion_api_get_login_domains_global_settings(self, api=None, headers=None, param=''): return self.domain_settings.get(api, headers, param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_account_settings():\n pass", "def get_ipa_conf():\n\n parser = RawConfigParser()\n parser.read(paths.IPA_DEFAULT_CONF)\n result = dict()\n for item in ['basedn', 'realm', 'domain', 'server', 'host', 'xmlrpc_uri']:\n if parser.has_option('global', item):\n value = parser.g...
[ "0.5933216", "0.58953714", "0.5745298", "0.5708011", "0.56591547", "0.5479282", "0.54645914", "0.5458572", "0.5451832", "0.54214597", "0.5353748", "0.5334436", "0.53038144", "0.5299923", "0.5270244", "0.5248232", "0.524819", "0.5247961", "0.5243685", "0.52108777", "0.5208614"...
0.7268448
0
Put Login Domains Global Settings for specified appliance [Arguments]
def fusion_api_edit_login_domains_global_settings(self, body, param='', api=None, headers=None): return self.domain_settings.put(body, param, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def do_config(self, args):\n if args.set == \"store_password\":\n put_config_value(\"store_password\", True if args.value.lower() == \"yes\" else False)\n elif args.set == \"password\":\n put_config_value(\"password\", args.value)\n elif args.set == \"username\":\n ...
[ "0.59719497", "0.5872565", "0.57970774", "0.55599004", "0.54469526", "0.54291654", "0.54122066", "0.5368892", "0.5367906", "0.53531665", "0.53369606", "0.5290121", "0.5286907", "0.52539235", "0.5224465", "0.5185917", "0.5123865", "0.509597", "0.5063615", "0.50545233", "0.5033...
0.6536116
0
Login to the appliance as the specified user [Arguments]
def fusion_api_login_appliance(self, host, creds, headers=None): # logger._log_to_console_and_log_file("Logging into appliance") return self.loginsession.login(host, creds, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def do_login(user, password):\n return um.do_login(user, password)", "def login(self, **kwargs):\n\tusername = kwargs.get('username', self.username)\n\tif not username:\n\t raise RuntimeError, 'no username provided'\n\n\tpassword = kwargs.get('password', self.password)\n\tif not password:\n\t raise Runt...
[ "0.7129987", "0.7089438", "0.7060286", "0.6993173", "0.69915897", "0.6881909", "0.6874501", "0.6814625", "0.671641", "0.66867095", "0.66821355", "0.6679038", "0.66492003", "0.65639246", "0.65639246", "0.6546027", "0.6521766", "0.652139", "0.646464", "0.6441734", "0.64356905",...
0.6069907
58
Login to the appliance as the specified user by certificate [Arguments]
def fusion_api_two_factor_login_appliance(self, host, cert, headers=None): return self.loginsession.login_by_cert(host, cert, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def login(username, password, clientdir=DEFAULT_CLIENTDIR):\n return subprocess.run([\n 'devpi', 'login', '--clientdir', clientdir,\n username, '--password', password])", "def do_login(cs, args):\n resp = cs.users.login(args.username, args.password, cs.baseurl)\n if resp.status_code == 200...
[ "0.63482815", "0.62892044", "0.6265031", "0.6240665", "0.6207639", "0.61395174", "0.611391", "0.5990242", "0.5990242", "0.5975603", "0.5896115", "0.5886969", "0.58474463", "0.58398", "0.58342856", "0.5804081", "0.578703", "0.5779355", "0.5779355", "0.5769054", "0.5764178", ...
0.6567106
0
Logs the current active user out of the appliance [Example] ${resp} = Fusion Api Logout Appliance
def fusion_api_logout_appliance(self, headers=None): # logger._log_to_console_and_log_file("Logging out of appliance") return self.loginsession.logout(headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def axapi_logoff(self):\n module = 'logoff'\n method = 'POST'\n response = self.axapi_call(module, method,'')\n if '2' in str(response.status_code):\n print(self.device + ' Successfully logged off of the device')\n else:\n print(self.device + ' There was an ...
[ "0.74583584", "0.7422163", "0.73957163", "0.73006576", "0.7280668", "0.72687674", "0.7231149", "0.71875006", "0.7093625", "0.7082259", "0.704878", "0.702556", "0.70239234", "0.70162183", "0.6993711", "0.6978962", "0.69743854", "0.6946182", "0.68443", "0.68360925", "0.679037",...
0.71922374
7
Returns the list of active user sessions. You can use Fusion Api Switch Active User to any of these users. [Example] ${resp} = Fusion Api Get Active Sessions
def fusion_api_get_active_sessions(self): return self.loginsession.get_active_sessions()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_get_active_user_sessions(self, param='', api=None, headers=None):\n return self.usersessions.get(api=api, headers=headers, param=param)", "def get_sessions_list():\n sessions = Session.query.all()\n result = sessions_schema.dump(sessions).data\n return jsonify({'status': 'succe...
[ "0.7700086", "0.6694936", "0.6650115", "0.66037244", "0.65487003", "0.6505804", "0.6464903", "0.6437998", "0.6437205", "0.64119065", "0.6211409", "0.6160088", "0.614697", "0.6115182", "0.6084786", "0.6073577", "0.6058707", "0.5989116", "0.5967596", "0.59588283", "0.5904886", ...
0.72672766
1
Returns the current active user [Example] ${resp} = Fusion Api Get Active User
def fusion_api_get_active_user(self): return self.loginsession.get_active_user()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_user():\n userdict = jsonify2(current_user.db_user, 'User')\n return current_app.bitjws.create_response(userdict)", "def get_user():\n\treturn '1', 200", "def getCurrentUser():\n return jsonify({\n 'username': g.user\n })", "def fusion_api_get_user(self, uri=None, param='', api=Non...
[ "0.7438861", "0.72328675", "0.68916947", "0.68579465", "0.6833786", "0.6794887", "0.6662057", "0.6657314", "0.6634899", "0.65766335", "0.65574354", "0.65446764", "0.6523515", "0.65150505", "0.64918685", "0.6485048", "0.64533794", "0.64223474", "0.64085007", "0.6406101", "0.64...
0.7599319
0
Makes the specified user the active user.
def fusion_api_switch_active_user(self, user): # logger._log_to_console_and_log_file("Switched to user: %s" % user) return self.loginsession.switch_active_user(user)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def activate_user(self, user):\n if not user.active:\n user.active = True\n return True\n return False", "def activate_user(self, user):\n if not user.active:\n user.active = True\n # noinspection PyUnresolvedReferences\n self.save(user)...
[ "0.7749485", "0.76632077", "0.72162676", "0.7004787", "0.69858474", "0.69735706", "0.69713163", "0.6954107", "0.6921103", "0.6849792", "0.6846542", "0.68363017", "0.6748617", "0.6721526", "0.6587923", "0.6560752", "0.65582424", "0.6486585", "0.6471228", "0.6453203", "0.640533...
0.69314766
8
Returns the new created user session from an existing session, controlling which user assigned permissions are active and inactive [Example] ${resp} = Fusion Api Modify Active Permissions | | |
def fusion_api_modify_active_permissions(self, body, api=None, headers=None): return self.loginsession.modify_active_permissions(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_or_create_sessions(self):\n\t\tpath = f'{self.BIKE_ENDPOINT}user/current/session?{self.secret_key}'\n\t\tresponse = requests.get(path).json()\n\t\tself.check_api_key(response)\n\n\t\treturn response", "def _create_user_session(url: str, netid: str = 'superuser', new: bool = False, add_to_os: bool = True)...
[ "0.5954044", "0.56304026", "0.5498034", "0.5405215", "0.5395967", "0.5281927", "0.52720886", "0.52602637", "0.52578753", "0.5233904", "0.5158822", "0.5149654", "0.5131077", "0.512905", "0.5105048", "0.5099758", "0.50808954", "0.5050818", "0.5037845", "0.5006444", "0.5004032",...
0.5428635
3
Remove user session by invoking an explicit logout. Session token must be provided in the request header [Example] ${resp} = Fusion Api Delete Permissions | | |
def fusion_api_delete_session(self, api=None, headers=None, sessionId=None): return self.loginsession.delete_session(api, headers, sessionId)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def logout():\n body = request.json\n user_id = body.get('user_id')\n user = User.get(User.id == user_id).username\n clear_token(user)\n return HTTPResponse(status=200, body={\"message\":\"Log out succesful.\"})", "def logout(req):\n print(req)\n try:\n if 'token' in req.session:\n ...
[ "0.77699506", "0.77457935", "0.7619377", "0.7563875", "0.75242144", "0.75242144", "0.7521778", "0.74327296", "0.7430028", "0.73651856", "0.7360784", "0.72784054", "0.7265221", "0.72645473", "0.7261476", "0.7251018", "0.7225798", "0.72026515", "0.71901387", "0.7155029", "0.715...
0.0
-1
Set the given sessionId as current active sessionID. [Arguments]
def fusion_api_set_active_session(self, sessionId): return self.loginsession.set_active_session(sessionId)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_set_session_id(self, context):\n context.set_session_id(b\"abc\")", "def session_id(self, session_id):\n\n self._session_id = session_id", "def setSession( self, name, value, REQUEST=None, cookie=None ):\n SetSessionValue( self, name, value, REQUEST, cookie )", "def do_SetSessio...
[ "0.69700724", "0.6181397", "0.5990021", "0.58904654", "0.5849663", "0.58051276", "0.5730266", "0.5649466", "0.56187475", "0.5562823", "0.5540941", "0.5515735", "0.5503887", "0.5453762", "0.5404824", "0.5399669", "0.5393314", "0.53604776", "0.53512084", "0.535011", "0.53450435...
0.7790086
0
Updates a Managed SAN. [Arguments]
def fusion_api_update_managed_san(self, body, uri, api=None, headers=None): return self.ms.update(body, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_edit_san_manager(self, body, uri, api=None, headers=None):\n return self.dm.update(body, uri, api, headers)", "def do_update(cs, args):\n opts = {}\n opts['memory'] = args.memory\n opts['cpu'] = args.cpu\n opts['name'] = args.name\n if 'auto_heal' in args and args.auto_he...
[ "0.5492186", "0.5166736", "0.5111948", "0.50958365", "0.50700927", "0.50695395", "0.505297", "0.49638778", "0.49325725", "0.4920512", "0.4913717", "0.4898047", "0.48851603", "0.48770708", "0.4857135", "0.48554", "0.48477212", "0.4836657", "0.47670794", "0.47574732", "0.474729...
0.6193381
0
Gets a default or paginated collection of Managed SANs. [Arguments]
def fusion_api_get_managed_san(self, uri=None, param='', api=None, headers=None): return self.ms.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_get_san_manager(self, uri=None, param='', api=None, headers=None):\n return self.dm.get(uri=uri, api=api, headers=headers, param=param)", "def list(self, args):\n try:\n cloud = self._context.getCloudService()\n vdcs = cloud.listVirtualDatacenters()\n ...
[ "0.5484862", "0.5384177", "0.52866125", "0.5137014", "0.5131903", "0.5116556", "0.50167024", "0.49888143", "0.4976278", "0.4908851", "0.487563", "0.48422065", "0.4831081", "0.48209724", "0.48115847", "0.4811006", "0.480229", "0.48014426", "0.47716543", "0.4765974", "0.4758089...
0.5991173
0
Updates the metrics configuration with the new values. Overwrites the existing configuration. [Arguments]
def fusion_api_update_metrics_configuration(self, body, api=None, headers=None): return self.metrics.update(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_metrics(self):", "def update_metrics(self, metrics, predictions, labels):\n return", "def metrics(self, metrics):\n\n self._metrics = metrics", "def set_metrics(self, metrics: List[Callable]) -> None:\n self.metrics = metrics", "def update_state(self, **kwargs):\n\n for ...
[ "0.6480207", "0.6306653", "0.61963147", "0.60742277", "0.5940462", "0.5824282", "0.57890254", "0.5690043", "0.56871504", "0.5668699", "0.5658537", "0.562513", "0.5568342", "0.55321926", "0.5525956", "0.55169654", "0.54595894", "0.54588157", "0.5418729", "0.53867775", "0.53706...
0.6502667
0
Fetches the list of resource types and supported metrics that OneView is capable of relaying. [Example] ${resp} = Fusion Api Get Metrics Capability | |
def fusion_api_get_metrics_capability(self, api=None, headers=None): return self.metrics.get(api=api, headers=headers, param='/capability')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def supported_metrics(cls) -> List[str]:\n ...", "async def get_capability_report(self):\n if self.query_reply_data.get(\n PrivateConstants.CAPABILITY_QUERY) is None:\n await self._send_sysex(PrivateConstants.CAPABILITY_QUERY, None)\n while self.query_reply_data...
[ "0.6440414", "0.6186461", "0.6186461", "0.6145166", "0.61392456", "0.5982165", "0.5919442", "0.5864791", "0.58446157", "0.58444005", "0.5822578", "0.578648", "0.57689685", "0.5727299", "0.5675176", "0.56600803", "0.56364053", "0.5615627", "0.5610349", "0.55961037", "0.5560829...
0.69907576
0
Fetches the current configuration for which metrics are being relayed. [Example] ${resp} = Fusion Api Get Metrics Configuration | |
def fusion_api_get_metrics_configuration(self, api=None, headers=None): return self.metrics.get(api=api, headers=headers, param='/configuration')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_config(req):\n #try:\n # user_id = req.user\n #except KeyError as e:\n # msg = req.get_error_msg(e)\n # return send_error_response(msg)\n try:\n config = tools_config_get_config(req)\n except Exception:\n raise http_exc.HTTPClientError()\n else:\n retur...
[ "0.66372234", "0.6462638", "0.6452565", "0.6445916", "0.6443163", "0.6286106", "0.6253097", "0.62112087", "0.61938095", "0.6167818", "0.6142554", "0.6061876", "0.6059525", "0.6024392", "0.6022809", "0.59841913", "0.5945762", "0.5941983", "0.59398097", "0.5911986", "0.5910538"...
0.70904857
0
Creates a Network Set [Arguments]
def fusion_api_create_network_set(self, body, api=None, headers=None): return self.network_set.create(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def make_network_set(name, networkUris=[]):\n\n return {\n 'name': name,\n 'type': 'network-set',\n 'nativeNetworkUri': None,\n 'networkUris': networkUris[:],\n 'connectionTemplateUri': None}", "def _create(self, name):\n command = [\n 'ipset create -exist ...
[ "0.7187186", "0.6550994", "0.6196915", "0.61925775", "0.60246813", "0.5957251", "0.59493995", "0.5948319", "0.59389955", "0.59347576", "0.59132177", "0.5890726", "0.5858046", "0.58464783", "0.5839262", "0.5808722", "0.58069295", "0.57550144", "0.57415485", "0.5733353", "0.570...
0.6844055
1
Updates an Network Set [Arguments]
def fusion_api_edit_network_set(self, body=None, uri=None, api=None, headers=None): return self.network_set.update(body, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_network(**kwargs):\n\n ip_addr = kwargs.get('ip_addr')\n is_private = kwargs.get('is_private')\n name = kwargs.get('name')\n dns_names = kwargs.get('dns_names')\n is_scanning = kwargs.get('is_scanning', False)\n network_id = make_shortuuid(name)\n\n network = {\n 'dns_names':...
[ "0.62092996", "0.5808159", "0.57929206", "0.57902926", "0.56701416", "0.56625813", "0.5598704", "0.55421346", "0.5522033", "0.5504297", "0.54240537", "0.54162216", "0.54075015", "0.5389637", "0.53532296", "0.53340536", "0.5332989", "0.53147435", "0.53050166", "0.5304132", "0....
0.678865
0
Deletes a Network Set from the appliance based on name OR uri [Arguments]
def fusion_api_delete_network_set(self, name=None, uri=None, api=None, headers=None): return self.network_set.delete(name, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_delete_uplink_set(self, name=None, uri=None, api=None, headers=None):\n return self.uplink_set.delete(name, uri, api, headers)", "def delete_network(self, network):\r\n return self.delete(self.network_path % (network))", "def delete_network(session, name):\n # type: (Session...
[ "0.6744954", "0.6403101", "0.63075125", "0.6301626", "0.62825984", "0.6127344", "0.6117718", "0.609198", "0.6062245", "0.5978882", "0.5971199", "0.596836", "0.5957365", "0.58755976", "0.5868253", "0.58431166", "0.5820259", "0.5812668", "0.5793323", "0.5763212", "0.5739048", ...
0.7952963
0
Gets a default or paginated collection of Network Sets. [Arguments]
def fusion_api_get_network_set(self, uri=None, param='', api=None, headers=None): return self.network_set.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_networks():\n return __sets.keys()", "def getSets():", "def getSets(unique_name=None):", "def get_network_list(network = None, include_details = True):\n \n if network == None: \n json_obj = requests.get(api_base_url + 'networks')\n return json.loads(json_obj.content)['network...
[ "0.65561944", "0.63195586", "0.61174417", "0.5776888", "0.5754355", "0.5692556", "0.5668395", "0.5656314", "0.563603", "0.56256247", "0.5625586", "0.5621617", "0.5620961", "0.5581615", "0.55656546", "0.5550286", "0.5522481", "0.54875827", "0.5483927", "0.5451529", "0.53992826...
0.61026853
3
Pings an IP address or host name to determine if the IP address or host name is reachable [Arguments]
def fusion_api_ping(self, body, api=None, headers=None): return self.ping.ping(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def ping(self, ctx, ip):\n\n # Check for valid IP else do DNS lookup\n valid_ip = re.compile(\"[0-9]{,3}\\.[0-9]{,3}\\.[0-9]{,3}\")\n valid_hostname = re.compile(\".*\\.[a-zA-Z]{2,}\")\n valid = False\n\n if valid_ip.match(ip):\n valid = True\n elif valid_...
[ "0.70862246", "0.69904864", "0.69904864", "0.69904864", "0.69904864", "0.6960895", "0.6934249", "0.68783385", "0.6843556", "0.68256843", "0.67949265", "0.67706823", "0.67706823", "0.67706823", "0.67595565", "0.67472255", "0.6742281", "0.6728015", "0.6722866", "0.6722866", "0....
0.0
-1
Adds an Power Delivery Device. [Arguments]
def fusion_api_add_power_device(self, body, api=None, headers=None): return self.pd.create(body=body, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_device(cls, values):\n return cls.dbdriver.add_device(values)", "def add_device(self, field, device, uc):\n self._devices[field] = device\n self._uc[field] = uc", "def addDevice(self, node, fullDeviceName, device):", "def addDeviceDescriptor(string: str, deviceDescriptor: cern.ja...
[ "0.6090695", "0.59247094", "0.5800191", "0.5582035", "0.55658615", "0.55432975", "0.547435", "0.5461188", "0.5461188", "0.5461188", "0.5454472", "0.5427549", "0.5402868", "0.5326001", "0.5296909", "0.52893317", "0.5280059", "0.5199275", "0.5180949", "0.5117921", "0.5114201", ...
0.6119962
0
Add an HPE iPDU and bring all components under management by discovery of its management module. Bring the management module under exclusive management by the appliance, configure any management or data collection settings, and create a private set of administrative credentials to enable ongoing communication and manag...
def fusion_api_discover_power_device(self, body, api=None, headers=None): return self.pd.create(body=body, api=api, headers=headers, param='/discover')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __add_snmp_management(self, tag, address,\n port_num=\"161\", auth_string=\"community\"):\n manage = etree.SubElement(tag, \"management\", type=\"snmp\")\n addr = etree.SubElement(manage, \"address\")\n addr.text = address\n port = etree.SubElement(manag...
[ "0.55940485", "0.50672036", "0.49283922", "0.4890153", "0.48827085", "0.48459473", "0.48370826", "0.48314857", "0.47705975", "0.47207955", "0.46942207", "0.46937183", "0.4679633", "0.46696705", "0.46538195", "0.4642524", "0.46388936", "0.4631433", "0.46267623", "0.4613209", "...
0.0
-1
Updates a Power Delivery Device. [Arguments]
def fusion_api_edit_power_device(self, body, uri, api=None, headers=None): return self.pd.update(body=body, uri=uri, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_device(cls, device_uuid, values):\n return cls.dbdriver.update_device(device_uuid, values)", "def update_package(self, *args):\r\n\r\n temp = (self.newProj.device[0],\\\r\n self.newProj.device[1],\\\r\n self.devPackage.get(),\\\r\n self.newPro...
[ "0.63903296", "0.59937346", "0.58370966", "0.57780063", "0.57761675", "0.57761675", "0.5715946", "0.56183934", "0.56183934", "0.56084883", "0.56075984", "0.5576775", "0.5575302", "0.5546185", "0.5524716", "0.5520713", "0.54829216", "0.5480364", "0.5461826", "0.5447018", "0.54...
0.60343134
1
Sets the power state of the specified power delivery device. The device must be an HPE Intelligent Outlet. [Arguments]
def fusion_api_set_power_device_power_state(self, body, uri, api=None, headers=None): return self.pd.update(body=body, uri=uri, api=api, headers=headers, param='/powerState')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_power_state(self, node, power_state):", "def _set_power_state(node, target_state):\n amt_common.awake_amt_interface(node)\n client = amt_common.get_wsman_client(node)\n\n method = 'RequestPowerStateChange'\n options = pywsman.ClientOptions()\n options.add_selector('Name', 'Intel(r) AMT Pow...
[ "0.6662819", "0.6649292", "0.6250182", "0.61784434", "0.6176152", "0.61273134", "0.6106329", "0.6105128", "0.610194", "0.60508484", "0.60450834", "0.602255", "0.6020486", "0.6003067", "0.59989375", "0.59982264", "0.5981032", "0.59769815", "0.5934724", "0.59232354", "0.5911923...
0.6540341
2
Sets the unit identification (UID) light state of the specified power delivery device. The device must be an HPE iPDU component with a locator light (HPE Intelligent Load Segment, AC Module, HPE Intelligent Outlet Bar, or HPE Intelligent Outlet). [Arguments]
def fusion_api_set_power_device_uid_state(self, body, uri, api=None, headers=None): return self.pd.update(body=body, uri=uri, api=api, headers=headers, param='/uidState')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def script_set_device(self,udid=None):\n self.desired_caps['udid'] = udid;", "def setLight(self, id, position, diffuse, specular, ambient):\r\n\t\t\r\n\t\tself.lights[id].set(position, diffuse, specular, ambient)", "def light_set(self, pin='D13', value='0'):\n self.bridge.put(str(pin), str(value)...
[ "0.5628526", "0.5579819", "0.55316037", "0.54965574", "0.54312074", "0.53871113", "0.53655046", "0.53386843", "0.5328693", "0.52510697", "0.52317244", "0.5219277", "0.51877314", "0.51787025", "0.51706076", "0.5162918", "0.51415217", "0.5139538", "0.5137304", "0.51330054", "0....
0.610139
0
Refreshes a given intelligent power delivery device. [Arguments]
def fusion_api_refresh_power_device(self, body, uri, api=None, headers=None): return self.pd.update(body=body, uri=uri, api=api, headers=headers, param='/refreshState')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def _device_refresh(self, **kwargs):\n\n device_id = self._device_id\n if not device_id:\n return\n\n api_device = f\"{API_DEVICES}/{device_id}\"\n api_command = f\"{api_device}/commands\"\n\n if self._use_channel_info:\n async with self._session.post(...
[ "0.6368988", "0.56088376", "0.54871464", "0.548023", "0.54559785", "0.5207871", "0.51926553", "0.514311", "0.51252383", "0.51181257", "0.5114384", "0.51021534", "0.5041437", "0.5018842", "0.50179136", "0.5015726", "0.50095356", "0.50095356", "0.49873435", "0.4978601", "0.4974...
0.560362
2
Removes Power Delivery Devices. If name or uri are not specified, all PDDs are removed. [Arguments]
def fusion_api_remove_power_device(self, name=None, uri=None, api=None, headers=None): return self.pd.delete(name=name, uri=uri, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_remove_firmware_driver(self, name=None, uri=None, api=None, headers=None):\n return self.driver.delete(name, uri, api, headers)", "def removeDevice(self, node, fullDeviceName):", "def remove():\n run('pew rm {0}'.format(package_name()))", "def test_gwservice_deletedevice(self, se...
[ "0.5918086", "0.5835725", "0.5688285", "0.5576145", "0.5496549", "0.542299", "0.54133373", "0.5398436", "0.5389712", "0.5334971", "0.53183067", "0.5288954", "0.52694654", "0.52305156", "0.52251345", "0.52117527", "0.5201765", "0.5181762", "0.51782036", "0.51671505", "0.513919...
0.6674705
0
Removes the specified Power Delivery Device synchronously. [Arguments]
def fusion_api_remove_power_device_synchronously(self, uri, api=None, headers=None): return self.pd.delete(uri=uri, api=api, headers=headers, param='/synchronous')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_remove_power_device(self, name=None, uri=None, api=None, headers=None):\n return self.pd.delete(name=name, uri=uri, api=api, headers=headers)", "async def async_device_removed(event):\n if event.data[\"action\"] != \"remove\":\n return\n await async_remove_autom...
[ "0.6188519", "0.6048444", "0.60359097", "0.59953356", "0.5765042", "0.5729715", "0.5692872", "0.5631123", "0.5551241", "0.55478895", "0.5492011", "0.54828435", "0.5462886", "0.545424", "0.5438797", "0.538788", "0.5366249", "0.5357067", "0.5307916", "0.5284972", "0.5238631", ...
0.65902627
0
Gets a default or paginated collection of Power Delivery Devices. [Arguments]
def fusion_api_get_power_device(self, uri=None, param='', api=None, headers=None): return self.pd.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_devices():\n names = devices.list()\n if request.args.get('full') is not None:\n data = {d: devices.show(d) for d in names}\n else:\n data = names\n return jsonify({'devices': data})", "def get_devices(self):\n return self.api_request('GET', self.url + '/device', {})", ...
[ "0.6293508", "0.6199526", "0.6143326", "0.6000772", "0.59712946", "0.5969342", "0.5950059", "0.5881238", "0.5861623", "0.582359", "0.58066344", "0.5796218", "0.57418716", "0.57244253", "0.572291", "0.5705243", "0.56945866", "0.56882626", "0.5672123", "0.56701916", "0.5667013"...
0.5078301
84
Gets the power state (on, off or unknown) of the specified power delivery device that supports power control. The device must be an HPE Intelligent Outlet. [Arguments]
def fusion_api_get_power_device_power_state(self, uri=None, api=None, headers=None): return self.pd.get(uri=uri, api=api, headers=headers, param='/powerState')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_on(self):\n return self._client.get_power()", "def get_power_state(self):\n\n doc = self.client.enumerate(uris.CIM_ComputerSystem)\n\n enabled_state = doc.find(\n './/s:Body/wsen:EnumerateResponse/wsman:Items/wsinst:CIM_HostComputerSystem/wsinst:EnabledState', wsman.NS_MAP_...
[ "0.66185915", "0.65442497", "0.64389753", "0.6436355", "0.63913643", "0.6379683", "0.6355369", "0.6258359", "0.6257534", "0.6248436", "0.6239265", "0.6224812", "0.6090579", "0.6089902", "0.603972", "0.6026165", "0.6016088", "0.5987382", "0.5974891", "0.59404635", "0.5921286",...
0.6227447
11
Retrieves the unit identification (UID) state (on, off, unknown) of the specified power outlet or extension bar resource. The device must be an HPE iPDU component with a locator light (HPE Intelligent Load Segment, AC Module, HPE Intelligent Outlet Bar, or HPE Intelligent Outlet). [Arguments]
def fusion_api_get_power_device_uid_state(self, uri=None, api=None, headers=None): return self.pd.get(uri=uri, api=api, headers=headers, param='/uidState')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_device_on(self):\n self.ms.add_response({'\\x14081031031E226410\\x0D': 'PA\\x0D'})\n # Network / Device ID\n response = self.upb.on((49, 3))\n self.assertTrue(response)", "def uber_syntax(self):\n returned = self.get_a_device_id()\n if returned:\n if ...
[ "0.53774107", "0.5238666", "0.52377576", "0.51540244", "0.5129143", "0.50680953", "0.50527173", "0.49321425", "0.48873627", "0.47880295", "0.4765444", "0.47391614", "0.4702631", "0.47014758", "0.46920732", "0.46891165", "0.46790287", "0.46749437", "0.46376628", "0.46135613", ...
0.58998233
0
Gets a default or paginated collection of Providers. [Arguments]
def fusion_api_get_provider(self, param='', api=None, headers=None): return self.provider.get(api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(self):\n return get_all_provider()", "def get_providers(self):\n \n r = requests.get(\n self._url('/dataproviders'),\n headers={'Authorization': self.token},\n proxies=self.proxy)\n r.raise_for_status()\n providers = r.json()...
[ "0.6948978", "0.6615829", "0.65285355", "0.6455844", "0.6455844", "0.6455844", "0.6455844", "0.6455844", "0.6455844", "0.6345727", "0.62766814", "0.61617345", "0.6146496", "0.6127769", "0.6022632", "0.601489", "0.5950505", "0.590918", "0.58116704", "0.5803014", "0.57905257", ...
0.5149449
50
Adds a proxy server to the appliance [Arguments]
def fusion_api_add_proxy_server(self, body, api=None, headers=None): return self.proxyserver.add(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setproxy(self,proxytype=None,addr=None,port=None,rdns=True,username=None,password=None):\r\n self.__proxy = (proxytype,addr,port,rdns,username,password)", "def configure_proxy(self, proxy):\n server_name = self.get_external_domain()\n tls_enabled = self.get_tls()\n ircd_en...
[ "0.6480587", "0.63064706", "0.6297876", "0.6274107", "0.6256712", "0.6220115", "0.6220115", "0.62108266", "0.6096157", "0.60532874", "0.59750015", "0.58875364", "0.5885344", "0.5819008", "0.5797923", "0.57936794", "0.57888424", "0.57888424", "0.57849467", "0.5771609", "0.5730...
0.685254
0
Adds a proxy server to the appliance [Arguments]
def fusion_api_delete_proxy_server(self, api=None, headers=None): return self.proxyserver.delete(api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_add_proxy_server(self, body, api=None, headers=None):\n return self.proxyserver.add(body, api, headers)", "def setproxy(self,proxytype=None,addr=None,port=None,rdns=True,username=None,password=None):\r\n self.__proxy = (proxytype,addr,port,rdns,username,password)", "def...
[ "0.6854946", "0.64797896", "0.6307208", "0.6296915", "0.62710816", "0.6256843", "0.6219354", "0.6219354", "0.6210619", "0.6095826", "0.6052867", "0.59761214", "0.588728", "0.58851594", "0.5817921", "0.5799129", "0.5794202", "0.5788654", "0.5788654", "0.5784954", "0.57709205",...
0.0
-1
Adds a proxy server to the appliance [Arguments]
def fusion_api_get_proxy_server(self, api=None, headers=None): return self.proxyserver.get(api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_add_proxy_server(self, body, api=None, headers=None):\n return self.proxyserver.add(body, api, headers)", "def setproxy(self,proxytype=None,addr=None,port=None,rdns=True,username=None,password=None):\r\n self.__proxy = (proxytype,addr,port,rdns,username,password)", "def...
[ "0.685531", "0.64776176", "0.6305327", "0.62944484", "0.6269527", "0.6256609", "0.62173253", "0.62173253", "0.6209098", "0.6096158", "0.6051822", "0.5973849", "0.58854437", "0.58834463", "0.58168733", "0.5796347", "0.57931644", "0.57869476", "0.57869476", "0.57850635", "0.577...
0.0
-1
Adds an Rack. [Arguments]
def fusion_api_add_rack(self, body, api=None, headers=None): return self.rack.create(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add(self, arguments):\n url = arguments['<location>']\n if url:\n name = arguments['<name>']\n else:\n url = arguments['<name>']\n name = None\n version = arguments['--box-version']\n force = arguments['--force']\n requests_kwargs = uti...
[ "0.5927713", "0.56901604", "0.5436218", "0.5289482", "0.52472395", "0.51888865", "0.51383805", "0.5118685", "0.50398815", "0.49658102", "0.49425036", "0.49303275", "0.49211237", "0.49207878", "0.48921698", "0.48837593", "0.48635554", "0.48410836", "0.48392603", "0.48392603", ...
0.6106261
0
Updates a Rack. [Arguments]
def fusion_api_edit_rack(self, body, uri, api=None, headers=None): return self.rack.update(body, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(*args):", "def fusion_api_patch_rack_manager(self, body, uri, api=None, headers=None):\n return self.rackmanager.patch(body=body, uri=uri, api=api, headers=headers)", "def update(self, args):\n pass", "def update(self) -> requests.request:\n # Check if id is set\n i...
[ "0.5774131", "0.5578522", "0.55758435", "0.5526201", "0.5488171", "0.54531944", "0.5292256", "0.5292256", "0.5292256", "0.5292256", "0.5292256", "0.5292256", "0.52577055", "0.5245182", "0.5232308", "0.52314997", "0.5219298", "0.52054316", "0.5188376", "0.51276726", "0.5116921...
0.6490726
0
Removes a Rack. If name or uri are not specified, all Racks are removed. [Arguments]
def fusion_api_remove_rack(self, name=None, uri=None, api=None, headers=None): return self.rack.delete(name, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_delete_rack_manager(self, uri, name=None, param='', api=None, headers=None):\n return self.rackmanager.delete(uri=uri, name=name, param=param, api=api, headers=headers)", "def remove(name):", "def fusion_api_remove_switch(self, name=None, uri=None, api=None, headers=None):\n ...
[ "0.66184926", "0.58236885", "0.57525504", "0.5575144", "0.55182993", "0.55122954", "0.5508407", "0.5438682", "0.542369", "0.541744", "0.54139674", "0.54103285", "0.53904045", "0.5386714", "0.5372913", "0.5354262", "0.53232646", "0.5298272", "0.5291884", "0.5280291", "0.524962...
0.74977267
0
Gets a default or paginated collection of Racks. [Arguments]
def fusion_api_get_rack(self, uri=None, param='', api=None, headers=None): return self.rack.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_collection():\n\n args = request.args.to_dict()\n\n # Convert size to int, for Python.\n if 'size' in args:\n args['size'] = int(args['size'])\n\n results = collection.search(request.args.get('q', '*'), **args)\n\n return jsonify(records=[r.dict for r in results])", "def list(option...
[ "0.56276387", "0.54072374", "0.53311664", "0.52644116", "0.5088189", "0.50652", "0.50026715", "0.49966595", "0.49846062", "0.49761373", "0.49638107", "0.49638107", "0.49638107", "0.49634737", "0.49578434", "0.4937869", "0.49199823", "0.49005443", "0.4894077", "0.48788136", "0...
0.0
-1