query
stringlengths
9
9.05k
document
stringlengths
10
222k
negatives
listlengths
19
20
metadata
dict
Start a capability evaluation against a Smart Home skill. Start a capability evaluation against a Smart Home skill.
def create_smarthome_capability_evaluation_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, EvaluateSHCapabilityResponse_38ae7f22] operation_name = "create_smarthome_capability_evaluation_v1" params = locals() for k...
[ "def get_smart_home_capability_evaluation_v1(self, skill_id, evaluation_id, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResponse_d484531f]\n operation_name = \"get_smart_home_capability_evaluation_v1\"\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List all the test plan names and ids for a given skill ID. List all the test plan names and ids for a given skill ID.
def list_smarthome_capability_test_plans_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListSHCapabilityTestPlansResponse_cb289d6, BadRequestError_f854b05] operation_name = "list_smarthome_capability_test_plans_v1" params = locals() for k...
[ "def getTestPlanId(self,project_id):\r\n print (\"-\"*50)\r\n print (\"Processing test plan ID request...\")\r\n test_plan_id = None\r\n existing_test_plans = []\r\n resources = \"testplans?project=%s\"%project_id\r\n allowed_results = 10\r\n max_results = \"maxResul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the ssl certificates associated with this skill.
def set_ssl_certificates_v1(self, skill_id, ssl_certificate_payload, **kwargs): # type: (str, SSLCertificatePayload_97891902, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "set_ssl_certificates_v1" params = locals() for key, va...
[ "def update_certs():\n\n stack_name = get_stack_name()\n cfn_config = get_config()\n iam = get_connection(IAM)\n # Upload any SSL certificates to our EC2 instances\n if 'ssl' in cfn_config.data:\n logger.info(\"Reloading SSL certificates...\")\n updated_count = iam.update_ssl_certificat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the enablement for given skillId/stage and customerId (retrieved from Auth token).
def delete_skill_enablement_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "delete_skill_enablement_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
[ "def delete_skill_enablement_v1(self, skill_id, stage, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError]\n operation_name = \"delete_skill_enablement_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n pa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether an enablement exist for given skillId/stage and customerId (retrieved from Auth token)
def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_skill_enablement_status_v1" params = locals() for key, val in six.iteritems(params['kwar...
[ "def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError]\n operation_name = \"get_skill_enablement_status_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates/Updates the enablement for given skillId/stage and customerId (retrieved from Auth token)
def set_skill_enablement_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "set_skill_enablement_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
[ "def set_skill_enablement_v1(self, skill_id, stage, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError]\n operation_name = \"set_skill_enablement_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n params[k...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new export for a skill with given skillId and stage.
def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "create_export_request_for_skill_v1" params = locals() for key, val in six.iteritems(para...
[ "def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, StandardizedError]\n operation_name = \"create_export_request_for_skill_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n par...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the list of inskill products for the skillId.
def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListInSkillProductResponse_505e7307] operation_name = "get_isp_list_for_skill_id_v1" params = locals() for key, val in six.i...
[ "def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, Error, ListInSkillProductResponse, BadRequestError]\n operation_name = \"get_isp_list_for_skill_id_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete AccountLinking information of a skill for the given stage.
def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "delete_account_linking_info_v1" params = locals() for key, val in six.iteritems(params['k...
[ "def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError]\n operation_name = \"delete_account_linking_info_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get AccountLinking information for the skill.
def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, AccountLinkingResponse_b1f92882, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_account_linking_info_v1" params = locals() for key, val...
[ "def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError, AccountLinkingResponse]\n operation_name = \"get_account_linking_info_v1\"\n params = locals()\n for key, val in six.iteritems(param...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new clone locale workflow for a skill with given skillId, source locale, and target locales. In a single workflow, a locale can be cloned to multiple target locales. However, only one such workflow can be started at any time.
def clone_locale_v1(self, skill_id, stage_v2, clone_locale_request, **kwargs): # type: (str, str, CloneLocaleRequest_2e00cdf4, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "clone_locale_v1" params = locals() for key, val in si...
[ "def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id, **kwargs):\n # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CloneLocaleStatusResponse_8b6e06ed]\n operation_name = \"get_clone_locale_status_v1\"\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the status of a clone locale workflow associated with the unique identifier of cloneLocaleRequestId.
def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CloneLocaleStatusResponse_8b6e06ed] operation_name = "get_clone_locale_status_v1" params ...
[ "def clone_list_status(self, clone_id=None):\n return self.request( \"clone-list-status\", {\n 'clone_id': [ clone_id, 'clone-id', [ CloneIdInfo, 'None' ], False ],\n }, {\n 'status': [ OpsInfo, True ],\n } )", "def clone_locale_v1(self, skill_id, stage_v2, clone_locale_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the `InteractionModel` for the skill in the given stage. The path params skillId, stage and locale are required.
def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, InteractionModelData_487fc9ea] operation_name = "get_interaction_model_v1" params = locals() for key...
[ "def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs):\n # type: (str, str, str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError, InteractionModelData]\n operation_name = \"get_interaction_model_v1\"\n params = locals()\n for key, val in six.iteritems(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the list of interactionModel versions of a skill for the vendor.
def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListResponse_cb936759] operation_name = "list_interaction_model_versions_v1" params = locals() ...
[ "def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwargs):\n # type: (str, str, str, **Any) -> Union[ApiResponse, ListResponse, StandardizedError, BadRequestError]\n operation_name = \"list_interaction_model_versions_v1\"\n params = locals()\n for key, val in si...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the specified version `InteractionModel` of a skill for the vendor. Use `~current` as version parameter to get the current version model.
def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, **kwargs): # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, InteractionModelData_487fc9ea] operation_name = "get_interaction_model_version_v1" par...
[ "def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, **kwargs):\n # type: (str, str, str, str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError, InteractionModelData]\n operation_name = \"get_interaction_model_version_v1\"\n params = locals()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the skill manifest for given skillId and stage.
def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, SkillManifestEnvelope_fc0e823b, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_skill_manifest_v1" params = locals() for key, val in six.iteri...
[ "def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError, SkillManifestEnvelope]\n operation_name = \"get_skill_manifest_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates skill manifest for given skillId and stage.
def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **kwargs): # type: (str, str, SkillManifestEnvelope_fc0e823b, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "update_skill_manifest_v1" params = locals() ...
[ "def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **kwargs):\n # type: (str, str, SkillManifestEnvelope, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError]\n operation_name = \"update_skill_manifest_v1\"\n params = locals()\n for key, val in six....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the status of skill resource and its subresources for a given skillId.
def get_skill_status_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, SkillStatus_4fdd647b, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_skill_status_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
[ "def get_skill_status_v1(self, skill_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError, SkillStatus]\n operation_name = \"get_skill_status_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n params[key] = v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Submit the skill for certification.
def submit_skill_for_certification_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "submit_skill_for_certification_v1" params = locals() for key, val in six.iteritems(params['kwargs']):...
[ "def submit_skill_for_certification_v1(self, skill_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError]\n operation_name = \"submit_skill_for_certification_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve a list of all skill versions associated with this skill id
def list_versions_for_skill_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, ListSkillVersionsResponse_7522147d, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "list_versions_for_skill_v1" params = locals() for key, val in six.iterit...
[ "def getVersions(self) -> List[ghidra.framework.store.Version]:\n ...", "def versions(self) -> List['RadsProjectVersion']:\n logger.debug(f\"retrieve versions of {self}\")\n listing = self.storage.request_text(f\"{self.path}/releaselisting\")\n return [RadsProjectVersion(self, RadsVers...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Withdraws the skill from certification.
def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwargs): # type: (str, WithdrawRequest_d09390b7, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "withdraw_skill_from_certification_v1" params = locals() ...
[ "def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwargs):\n # type: (str, WithdrawRequest, **Any) -> Union[ApiResponse, StandardizedError, BadRequestError]\n operation_name = \"withdraw_skill_from_certification_v1\"\n params = locals()\n for key, val in six.i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the list of Vendor information.
def get_vendor_list_v1(self, **kwargs): # type: (**Any) -> Union[ApiResponse, object, Error_fbe913d9, Vendors_f5f1b90b] operation_name = "get_vendor_list_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] = val del params['kwargs'] ...
[ "def get_vendors():\n app.logger.info('Searching for vendors')\n data = vendors_data()\n if data is None or data == {}:\n abort(404, description='No vendor is loaded')\n return data", "def vendor_list():\n return ['nxos', 'eos', 'cumulus']", "def get_vendor(self):\n\n raise NotImple...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invokes the Lambda or third party HTTPS endpoint for the given skill against a given stage. This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoin...
def invoke_skill_end_point_v2(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, BadRequestError_765e0ac6, InvocationsApiResponse_3d7e3234, Error_ea6c1a5a] operation_name = "invoke_skill_end_point_v2" params = locals() for key, val in six.iteritems(...
[ "def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs):\n # type: (str, InvokeSkillRequest_8cf8aff9, **Any) -> Union[ApiResponse, object, InvokeSkillResponse_6f32f451, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"invoke_skill_v1\"\n params = locals()\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Simulate executing a skill with the given id against a given stage. This is an asynchronous API that simulates a skill execution in the Alexa ecosystem given an utterance text of what a customer would say to Alexa. A successful response will contain a header with the location of the simulation resource. In cases where ...
def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): # type: (str, str, SimulationsApiRequest_ae2e6503, **Any) -> Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a] operation_name = "simulate_skill_v2" params = locals(...
[ "def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs):\n # type: (str, SimulationsApiRequest, **Any) -> Union[ApiResponse, SimulationsApiResponse, Error, BadRequestError]\n operation_name = \"simulate_skill_v1\"\n params = locals()\n for key, val in six.iteritems(para...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Brute force O(N^3) square_matrix is a matrix of 0 and 1, 0 means black, 1 means white return the maximum sub square in tuple (start_r, start_c, size)
def maximum_sub_square(square_matrix): if not square_matrix: return (0, 0, 0) n = len(square_matrix) start_r, start_c, size = 0, 0, 0 for i in range(n): # if there is no hope to find larger one, then break if i + size >= n: break # O(n^n) new_c, new_si...
[ "def maximalSquare(self, matrix: List[List[str]]) -> int:\n width = len(matrix)\n length = len(matrix[0]) if width else 0\n if length == 0:\n return 0\n max_sq = 0\n mq = [[0 for _ in range(length)] for _ in range(width)]\n \n for i in range(length):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns any single fusion resource by uri `generic keywords`
def fusion_api_get_resource(self, uri, api=None, headers=None): if api: headers = self.fusion_client._set_req_api_version(api=api) elif not headers: headers = self.fusion_client._headers uri = 'https://%s%s' % (self.fusion_client._host, uri) return self.fusion_cli...
[ "def get_by_uri(self, resource_uri, params={}):\n resource_uri = resource_uri.rstrip('/')\n pk = resource_uri.split('/')[-1]\n return self.get(pk, params)", "def do_get(self, **kwargs):\n # TODO(danielrsmith): This request gives two independent return types\n # based on whether a featur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes any single fusion resource by uri
def fusion_api_delete_resource(self, uri, api=None, headers=None): if api: headers = self.fusion_client._set_req_api_version(api=api) elif not headers: headers = self.fusion_client._headers uri = 'https://%s%s' % (self.fusion_client._host, uri) return self.fusion_...
[ "def deleteResourceFromStorage(uri):\n resource_name = uri[len(settings.PREFIX_RESOURCE)+1:]\n STORAGE_OBJECT.deleteResourceFromStorage(resource_name)", "def delete(self, name):\n if name:\n try:\n del self._uris[name]\n except KeyError:\n pass", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares the TOP LEVEL keys and values (using regex) of a response Dict vs. validation Dict and returns a dictionary containing overall success, as well as detailed list of keys\values\success.
def fusion_api_validate_response(self, respDict, valDict): success = True returnDict = {} keys = [] for key in valDict: if not valDict[key]: continue # logger._log_to_console_and_log_file('key: %s' % (key)) keyDict = {'key': key, 'expec...
[ "def validate_response_code(response):\n # check expected key of test case\n check_result = {\"error\": {\"code\": 5}}\n check_result_key = list(check_result.keys())[0]\n # check response code\n if check_result_key in response:\n if \"code\" in check_result[check_result_key].keys():\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates an alert. [Arguments]
def fusion_api_update_alert(self, body, uri, api=None, headers=None): return self.alert.update(body, uri, api, headers)
[ "def _handle_update_alert(self, param):\n\n self.save_progress(\"In action handler for: {0}\".format(self.get_action_identifier()))\n action_result = self.add_action_result(ActionResult(dict(param)))\n\n alert_id = param[DEFENDERATP_ALERT_ID]\n status = param.get(DEFENDERATP_JSON_STATUS)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes an alert in bulk based on uri. If uri is not specified, ALL alerts are deleted [Arguments]
def fusion_api_delete_alert(self, uri=None, api=None, headers=None, param=''): return self.alert.delete(uri, api, headers, param=param)
[ "def delete(self, args, intent):\n if 'all' in args.keys() and args['all'] == True:\n try:\n db = get_db('expressions')\n db_results = db.delete_all_intent_expressions(intent)\n expressions = [x[1] for x in db_results]\n resp = jsonify(in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes an alert's changelog based on alertId. [Arguments]
def fusion_api_delete_alert_changelog(self, alertId=None, api=None, headers=None): return self.alert.delete(alertId, api, headers)
[ "def delete(alert_id):\n require(request.authz.session_write)\n alert = obj_or_404(Alert.by_id(alert_id, role_id=request.authz.id))\n alert.delete()\n db.session.commit()\n return (\"\", 204)", "def delete_alert(array, alert_id):\n target_uri = (\"/84/system/symmetrix/%s/alert/%s\" %\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the device read community string. This results in an update of the community string on all the rackmounted servers and devices in an enclosure. [Arguments]
def fusion_api_update_appliance_read_community_string(self, body, api=None, headers=None): return self.rc.update(body, api, headers)
[ "def snmp_read_community(self, value):\r\n self.attributes['Lanforge Resource.SNMP Read Community'] = value", "def snmp_write_community(self, value):\r\n self.attributes['Lanforge Resource.SNMP Write Community'] = value", "def update_community(community, description):\n community.description = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the global community string. [Example] ${resp} = Fusion Api Get Appliance Read Community String | |
def fusion_api_get_appliance_read_community_string(self, api=None, headers=None): return self.rc.get(api=api, headers=headers)
[ "def snmp_read_community(self, value):\r\n self.attributes['Lanforge Resource.SNMP Read Community'] = value", "def community(self):\n return self._community", "def fusion_api_update_appliance_read_community_string(self, body, api=None, headers=None):\n return self.rc.update(body, api, h...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the EULA status [Example] ${resp} = Fusion Api Eula Status | |
def fusion_api_eula_status(self, api=None, headers=None): return self.eula.save(api, headers)
[ "def status():\n try:\n response = requests.get(STATUS_ENDPOINT)\n response.raise_for_status()\n jsonResponse = response.json()\n return jsonResponse\n\n except HTTPError as http_err:\n print(f\"HTTP error occurred: {http_err}\")\n sys.exit(1)\n except Exception as...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the status of the upgrade task once after the upgrade completes [Arguments] [Example] ${resp} = Fusion Api Get Appliance Firmware Upgrade Status | |
def fusion_api_get_appliance_firmware_upgrade_status(self, api=None, headers=None): param = '/notification' return self.appfirmware.get(api=api, headers=headers, param=param)
[ "def i3s_api_get_appliance_firmware_upgrade_status(self, api=None, headers=None):\n param = '/notification'\n return (self.i3sappfirmware.get(api=api, headers=headers, param=param))", "def status(endpoint):\n client = VPollerClient(endpoint=endpoint, timeout=1000, retries=3)\n result =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a valid request body dictionary to pass to fusion_api_configure_appliance_interfaces [Arguments]
def fusion_api_create_appliance_interfaces_payload(self, body=None, api=None): return self.interfaces.make_body(body, api)
[ "def arguments(self) -> RequestType:\n return dict(\n Conditions=[condition.to_request() for condition in self.conditions],\n IfSteps=list_to_request(self.if_steps),\n ElseSteps=list_to_request(self.else_steps),\n )", "def get_api_params(self):\n keys = self.r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns appliance interfaces, time, and locale [Example] ${resp} = Fusion Api Get Appliance Interfaces | | |
def fusion_api_get_appliance_interfaces(self, api=None, headers=None): return self.interfaces.get(api, headers)
[ "def interface_status(system_ip):\n\n click.secho(\"\\nRetrieving the Interface Status\")\n\n url = base_url + \"/device/interface/synced?deviceId={0}\".format(system_ip)\n\n response = requests.get(url=url, headers=header,verify=False)\n if response.status_code == 200:\n items = response.json()[...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the appliance's status information [Example] ${resp} = Fusion Api Get Appliance Status | |
def fusion_api_get_appliance_status(self, api=None, headers=None): return self.info.get_status(api=api, headers=headers)
[ "def get_status(self):\n response_dict = self.response_dict()\n return response_dict.status", "def get_health():\n return \"OK\", 200", "def show_status():\n return jsonify({\"status\": \"OK\"})", "def status():\n try:\n response = requests.get(STATUS_ENDPOINT)\n response.raise_fo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the appliance's version information [Example] ${resp} = Fusion Api Get Appliance Version | |
def fusion_api_get_appliance_version(self, api=None, headers=None): return self.info.get_version(api=api, headers=headers)
[ "def get_version():\n ver = '0.0.0'\n req = restcall(0, 'config', 10.0)\n if req['text'] is not None:\n try: \n tree = ET.fromstring(req['text'])\n ver = tree.findall('app_version')[0].text\n if ver is None:\n ver = '0.0.0'\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get appliance state [Example] ${resp} = Fusion Api Get Appliance State |
def fusion_api_get_appliance_state(self, appliance): return self.appstate.get(appliance)
[ "def get_resource_state():\n output = [f'{\"S. No.\":6}\\t{\"Resource\":50}\\t{\"Health State\":12}\\t{\"Reason\":100}\\n']\n\n for index, resource in enumerate(HEALTH_AGGREGATOR.resource_state):\n output.append(\n f'{index + 1:<6}\\t{resource:<50}\\t'\n f'{\"Healthy\" if HEALTH_A...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the specified support dump and saves it locally. [Arguments]
def fusion_api_download_support_dump(self, uri, localfile, api=None, headers=None): return self.dump.get(uri=uri, localfile=localfile, api=api, headers=headers)
[ "def fusion_api_create_fabric_support_dump(self, uri, body, api=None, headers=None):\n params = '/support-dumps'\n return self.fabric.post(uri, body, api, headers, params)", "def get_dump(lang, filename):\n from .utils import get_dump as download\n click.echo('Starting to download Wiki...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configures appliance time and locale [Arguments]
def fusion_api_configure_appliance_time_and_locale(self, body=None, api=None, headers=None): return self.timeandlocale.configure(body, api, headers)
[ "def setupLocale():", "def checkAndDefaultArgs(args):\n if not args.date:\n args.date = datetime.now().strftime(\"%d/%m/%Y\")\n\n if args.time_in:\n if \"am\" not in args.time_in and \"pm\" not in args.time_in:\n print(\"Invalid time_in string provided: Using default 1pm\")\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns appliance time, and locale [Example] ${resp} = Fusion Api Get Appliance Interfaces | | |
def fusion_api_get_appliance_time_and_locale(self, api=None, headers=None): return self.timeandlocale.get(api, headers)
[ "def get_update_time_for_app_definitions(self) -> dict:\n return self._get(\"/spPortal/internetDb/ipIntelligence/info\")", "def info():\n def info(adapter, datetime):\n request = zope.publisher.browser.TestRequest(HTTP_ACCEPT_LANGUAGE='en')\n # We have to set this request globally as otherwise...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns appliance trap destinations [Example] ${resp} = Fusion Api Get Appliance Trap Destinations | | | |
def fusion_api_get_appliance_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable=W0622 return self.trap.get(id=id, param=param, api=api, headers=headers)
[ "def fusion_api_get_appliance_snmpv3_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable=W0622\n return self.snmpv3trap.get(id=id, param=param, api=api, headers=headers)", "def traceroute(self,dest):\n\t\tself.tn.write('traceroute %s\\n'%(dest))\n\t\tself.tn.write('ex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validates appliance trap destinations [Example] ${resp} = Fusion Api Get Appliance Trap Destinations | | |
def fusion_api_validate_appliance_trap_destination(self, body=None, api=None, headers=None): return self.trap.validate(body=body, api=api, headers=headers)
[ "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 fusion_api_get_appliance_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds or updates the specified trap forwarding destination. The trap destination associated with the given id will be updated if a trap destination with that id already exists. If the given id is not found, then a trap destination will be created with the given id. [Example] ${resp} = Fusion Api Add Or Update Appliance ...
def fusion_api_add_or_update_appliance_trap_destination(self, body=None, id=None, api=None, headers=None): # pylint: disable=W0622 return self.trap.create(body=body, id=id, api=api, headers=headers)
[ "def fusion_api_update_appliance_trap_destination(self, body, id, api=None, headers=None): # pylint: disable=W0622\n return self.trap.put(body=body, id=id, api=api, headers=headers)", "def fusion_api_edit_appliance_snmpv3_trap_destination(self, body=None, id=None, api=None, headers=None): # pylint: d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the specified trap forwarding destination. The trap destination associated with the given id will be updated if a trap destination with that id already exists. [Example] ${resp} = Fusion Api Update Appliance Trap Destination | | | |
def fusion_api_update_appliance_trap_destination(self, body, id, api=None, headers=None): # pylint: disable=W0622 return self.trap.put(body=body, id=id, api=api, headers=headers)
[ "def fusion_api_add_or_update_appliance_trap_destination(self, body=None, id=None, api=None, headers=None): # pylint: disable=W0622\n return self.trap.create(body=body, id=id, api=api, headers=headers)", "def fusion_api_edit_appliance_snmpv3_trap_destination(self, body=None, id=None, api=None, headers...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the trap destination associated with id [Example] ${resp} = Fusion Api Delete Appliance Trap Destination | | | |
def fusion_api_delete_appliance_trap_destination(self, id=None, api=None, headers=None): # pylint: disable=W0622 return self.trap.delete(id=id, api=api, headers=headers)
[ "def fusion_api_delete_appliance_snmpv3_trap_destination(self, id=None, api=None, headers=None): # pylint: disable=W0622\n return self.snmpv3trap.delete(id=id, api=api, headers=headers)", "def delete_rule_action(self,action_id):\n request = DeleteRuleActionRequest()\n request.set_accept_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns appliance SNMPv3 trap destinations [Example] ${resp} = Fusion Api Get Appliance SNMPv3 Trap Destinations | | | |
def fusion_api_get_appliance_snmpv3_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable=W0622 return self.snmpv3trap.get(id=id, param=param, api=api, headers=headers)
[ "def fusion_api_get_appliance_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable=W0622\n return self.trap.get(id=id, param=param, api=api, headers=headers)", "def fusion_api_add_appliance_snmpv3_trap_destination(self, body=None, api=None, headers=None):\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds SNMPv3 trap forwarding destination. [Example] ${resp} = Fusion Api Add Appliance SNMPv3 Trap Destination | | |
def fusion_api_add_appliance_snmpv3_trap_destination(self, body=None, api=None, headers=None): return self.snmpv3trap.create(body=body, api=api, headers=headers)
[ "def fusion_api_edit_appliance_snmpv3_trap_destination(self, body=None, id=None, api=None, headers=None): # pylint: disable=W0622\n return self.snmpv3trap.put(body=body, id=id, api=api, headers=headers)", "def fusion_api_add_or_update_appliance_trap_destination(self, body=None, id=None, api=None, head...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Edits the SNMPv3 trap destination associated with id [Example] ${resp} = Fusion Api Edit Appliance SNMPv3 Trap Destination | | | |
def fusion_api_edit_appliance_snmpv3_trap_destination(self, body=None, id=None, api=None, headers=None): # pylint: disable=W0622 return self.snmpv3trap.put(body=body, id=id, api=api, headers=headers)
[ "def fusion_api_update_appliance_trap_destination(self, body, id, api=None, headers=None): # pylint: disable=W0622\n return self.trap.put(body=body, id=id, api=api, headers=headers)", "def fusion_api_add_appliance_snmpv3_trap_destination(self, body=None, api=None, headers=None):\n return se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the SNMPv3 trap destination associated with id [Example] ${resp} = Fusion Api Delete Appliance SNMPv3 Trap Destination | | |
def fusion_api_delete_appliance_snmpv3_trap_destination(self, id=None, api=None, headers=None): # pylint: disable=W0622 return self.snmpv3trap.delete(id=id, api=api, headers=headers)
[ "def fusion_api_delete_appliance_trap_destination(self, id=None, api=None, headers=None): # pylint: disable=W0622\n return self.trap.delete(id=id, api=api, headers=headers)", "def fusion_api_get_appliance_snmpv3_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable=W06...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns appliance SNMPv3 trap forwarding users [Example] ${resp} = Fusion Api Get Appliance SNMPv3 Trap Forwarding Users | | | |
def fusion_api_get_appliance_snmpv3_trap_forwarding_users(self, id=None, param='', api=None, headers=None): # pylint: disable=W0622 return self.snmpv3user.get(id=id, param=param, api=api, headers=headers)
[ "def fusion_api_add_appliance_snmpv3_trap_forwarding_user(self, body=None, api=None, headers=None):\n return self.snmpv3user.create(body=body, api=api, headers=headers)", "def _aget_user_resp(self, response):\n if response.error is not None:\n raise UserNotFoundError(\"Exception happened: %s fo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds SNMPv3 trap forwarding user. [Example] ${resp} = Fusion Api Add Appliance SNMPv3 Trap Forwarding User | | |
def fusion_api_add_appliance_snmpv3_trap_forwarding_user(self, body=None, api=None, headers=None): return self.snmpv3user.create(body=body, api=api, headers=headers)
[ "def fusion_api_edit_appliance_snmpv3_trap_forwarding_user(self, body=None, id=None, api=None, headers=None): # pylint: disable=W0622\n return self.snmpv3user.put(body=body, id=id, api=api, headers=headers)", "def fusion_api_get_appliance_snmpv3_trap_forwarding_users(self, id=None, param='', api=None,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Edits SNMPv3 trap forwarding user associated with id [Example] ${resp} = Fusion Api Edit Appliance SNMPv3 Trap Forwarding User | |
def fusion_api_edit_appliance_snmpv3_trap_forwarding_user(self, body=None, id=None, api=None, headers=None): # pylint: disable=W0622 return self.snmpv3user.put(body=body, id=id, api=api, headers=headers)
[ "def fusion_api_add_appliance_snmpv3_trap_forwarding_user(self, body=None, api=None, headers=None):\n return self.snmpv3user.create(body=body, api=api, headers=headers)", "def fusion_api_delete_appliance_snmpv3_trap_forwarding_user(self, id=None, api=None, headers=None): # pylint: disable=W0622\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the SNMPv3 trap forwarding user associated with id [Example] ${resp} = Fusion Api Delete Appliance SNMPv3 Trap Forwarding User | |
def fusion_api_delete_appliance_snmpv3_trap_forwarding_user(self, id=None, api=None, headers=None): # pylint: disable=W0622 return self.snmpv3user.delete(id=id, api=api, headers=headers)
[ "def fusion_api_delete_appliance_snmpv3_trap_destination(self, id=None, api=None, headers=None): # pylint: disable=W0622\n return self.snmpv3trap.delete(id=id, api=api, headers=headers)", "def delete_user_giphy(giphy_id: \"str\") -> \"Tuple[Response, int]\":\n response: \"List[Dict]\" = retriever.r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves a list of category and actions [Arguments] [Example] ${resp} = Fusion Api Get Authorization Category Actions | | | |
def fusion_api_get_authorization_category_actions(self, api=None, headers=None, resource_uri='', sessionID=None,): param = '/category-actions%s' % resource_uri return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)
[ "def fusion_api_get_authorization_role_category_actions(self, api=None, headers=None, sessionID=None):\n param = '/role-category-actions'\n return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)", "def fusion_api_get_authorization_permission_actions(self, api=None, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves a list of all roles and associated category and actions. [Arguments] [Example] ${resp} = Fusion Api Get Authorization Role Category Actions | | |
def fusion_api_get_authorization_role_category_actions(self, api=None, headers=None, sessionID=None): param = '/role-category-actions' return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)
[ "def fusion_api_get_authorization_category_actions(self, api=None, headers=None, resource_uri='', sessionID=None,):\n param = '/category-actions%s' % resource_uri\n return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)", "def fusion_api_get_authorization_permission...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists the user session permissions that would authorize a particular action and resource category. [Arguments] [Example] ${resp} = Fusion Api Get Authorization Permission Actions | | | |
def fusion_api_get_authorization_permission_actions(self, api=None, headers=None, category_action='', sessionID=None): param = '/authorizing-permissions%s' % category_action return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)
[ "def fusion_api_get_authorization_category_actions(self, api=None, headers=None, resource_uri='', sessionID=None,):\n param = '/category-actions%s' % resource_uri\n return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)", "def fusion_api_get_authorization_role_categ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists the permission scope. [Arguments] [Example] ${resp} = Fusion Api Get Authorization Permission Actions | | | |
def fusion_api_list_permission_scopes(self, api=None, headers=None, resource_uri='', sessionID=None): param = '/association-scopes%s' % resource_uri return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)
[ "def fusion_api_get_authorization_permission_actions(self, api=None, headers=None, category_action='', sessionID=None):\n param = '/authorizing-permissions%s' % category_action\n return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)", "def permission_list(**kwargs)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lists the permission scope. [Arguments] [Example] ${resp} = Fusion Api list Permission Scopes Auth Creation Resource | | | |
def fusion_api_list_permission_scopes_auth_creation_resource(self, api=None, headers=None, resource_uri='', sessionID=None): param = '/associator-scopes%s' % resource_uri return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)
[ "def fusion_api_list_permission_scopes(self, api=None, headers=None, resource_uri='', sessionID=None):\n param = '/association-scopes%s' % resource_uri\n return self.auth.get(api=api, param=param, headers=headers, sessionID=sessionID)", "def getPermissions(self, scope):\n\n return [pe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cancels an inprogress backup. The backup URI may be obtained from the task returned when starting a backup, or by listing the backups [Arguments]
def fusion_api_cancel_backup(self, backup, api=None, headers=None): return self.backup.cancel(backup=backup, api=api, headers=headers)
[ "def cancel_ongoing_backup(self):\n\n # do nothing if there is no ongoing backup\n if self.backup:\n self.logger.info(\"Can't cancel an ongoing backup if there is none\")\n return\n\n # send signal to thread and wait until it terminates\n self.logger.info(\"Terminat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new appliance backup. Any existing backup on the appliance is removed. [Example] ${resp} = Fusion Api Create Backup | |
def fusion_api_create_backup(self, api=None, headers=None): return self.backup.create(api=api, headers=headers)
[ "def test_create_backup_for_server(self):\n\n image_response = self.admin_images_behaviors.create_active_backup(\n self.server.id, BackupTypes.DAILY, \"1\")\n image = image_response.entity\n self.resources.add(\n image.id, self.admin_images_client.delete_image(image.id))",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the ca certificate by aliasname or get the ca certificates list. [Example] ${resp} = Fusion Api Get Ca Certificate | | | |
def fusion_api_get_ca_certificate(self, uri=None, api=None, headers=None, param=''): return self.ca.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_certificate_info(self, uri=None, api=None, param='', headers=None):\n param = '/certificates/https/'\n return self.ic.get(uri=uri, api=api, headers=headers, param=param)", "def get_ca(ca_name, as_text=False, cacert_path=None):\n set_ca_path(cacert_path)\n certp = \"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the contents of the CRL file maintained by the internal CA; in Base64 encoded format, in the form of a string. [Example] ${resp} = Fusion Api Get Internal Ca Crl | |
def fusion_api_get_internal_ca_crl(self, api=None, headers=None): param = '/ca/crl' return self.ca.get(api=api, param=param, headers=headers)
[ "def get_crl(self):\n crl_url = self.URI + \"/crl\"\n return self._client.get(crl_url)", "def as_text(self):\n buf=BIO.MemoryBuffer()\n m2.x509_crl_print(buf.bio_ptr(), self.crl)\n return buf.read_all()", "def download(self):\n return requests.get(self.root_ca_url).cont...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove external CA Certificates in Oneview [Arguments]
def fusion_api_remove_external_ca_certificates(self, aliasName, api=None, headers=None): return self.ca.delete(aliasName, api=api, headers=headers)
[ "def remove_cert(sha1):\n rm_cmd = shlex.split('security delete-certificate -Z {} /System/Library/Keychains/SystemRootCertificates.keychain'.format(sha1))\n subprocess.check_call(rm_cmd)", "def delete_ca_certificate(certificateId=None):\n pass", "def remove_ca_certs_from_systemwide_ca_store(self):\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[Arguments] [Example] ${resp} = Fusion Api Get Certificate Validation Configuration | |
def fusion_api_get_certificate_validation_configuration(self, api=None, headers=None): return self.cv.get(api=api, headers=headers)
[ "def get_ssl_certificate() :", "def get_certificate_issuance_config_output(certificate_issuance_config_id: Optional[pulumi.Input[str]] = None,\n location: Optional[pulumi.Input[str]] = None,\n project: Optional[pulumi.Input[Option...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generate certificate signing request used to get certificate [Arguments]
def fusion_api_generate_certificate_signing_request(self, body, api=None, headers=None): return self.wsc.post(body, api=api, headers=headers)
[ "def certificate_signing_request(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"certificate_signing_request\")", "def certificate_signing_request(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"certificate_signing_request\")", "def generate_certificate_signing_request(\n ctx, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to import appliance certificate into OneView [Arguments]
def fusion_api_import_appliance_certificate(self, body, api=None, headers=None, param=''): return self.wsc.put(body, api=api, headers=headers, param=param)
[ "def click_import_cert(self):\n self.click_element(self.ID_IMPORT_CERT)", "def test_otoroshi_controllers_adminapi_pki_controller_import_cert_from_p12(self):\n pass", "def info(args):\n key = KeyInteraction(keystore_password=str.encode(args.password), keystore_path=args.filelocation)\n print(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve internal CA signed Rabbitmq client certificate. [Example] ${resp} = Fusion Api Get Rabbitmq Client Certificates | | |
def fusion_api_get_rabbitmq_client_certificate(self, param='', api=None, headers=None): return self.rabmq.get(param=param, api=api, headers=headers)
[ "def get_ssl_certificate() :", "def get_ipa_cert():\n global IPA_CA_CERT_FILE\n conn = httplib.HTTPConnection(IPA_SERVER_HOST)\n conn.putrequest('GET', '/ipa/config/ca.crt')\n conn.endheaders()\n res = conn.getresponse()\n cert = res.read()\n\n print(\"cert Response={}\".format(cert))\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of connection templates [Arguments]
def fusion_api_get_connection_templates(self, uri=None, param='', api=None, headers=None): return self.ct.get(uri=uri, api=api, headers=headers, param=param)
[ "def get_templates(self):\n result = self._call_zabbix_method(\n method='template.get',\n params={'output': 'extend'}\n )\n\n return result", "def get_templates(self):\n return self.templates.all()", "def get_templates(self):\n return self.http_call(\"get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the default network connection template. During a network create the default connection value will be inherited from this template. [Example] ${resp} = Fusion Api Get Default Connection Template | |
def fusion_api_get_default_connection_template(self, api=None, headers=None): return self.ct.get_default(api=api, headers=headers)
[ "async def async_get_default_connection_service(self) -> Optional[str]:\n action = self._action(\"L3FWD\", \"GetDefaultConnectionService\")\n if not action:\n return None\n\n result = await action.async_call()\n default_connection_service: Optional[str] = result.get(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a specific connection template. [Arguments]
def fusion_api_update_connection_template(self, body, uri=None, api=None, headers=None): return self.ct.update(body, uri=uri, api=api, headers=headers)
[ "def fusion_api_update_default_connection_template(self, body, api=None, headers=None):\n return self.ct.update_default(body, api=api, headers=headers)", "def update_question_template(xblock_id, question_template, image_url, resolver, updated_variables, answer_template):\n \n connection = mys...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the default network connection template. During a network create the default connection value will be inherited from this template. [Arguments]
def fusion_api_update_default_connection_template(self, body, api=None, headers=None): return self.ct.update_default(body, api=api, headers=headers)
[ "def create_default_network(context):\n return [{\n 'type': 'templates/network.py',\n 'name': 'fc-network',\n 'properties': {\n 'resourceName': 'network',\n 'name': 'network',\n 'projectId': '$(ref.fc-project.projectId)',\n 'autoCreateSubnetworks': True,\n # We pass the dependsOn ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a Datacenter. [Arguments]
def fusion_api_edit_datacenter(self, body, uri, api=None, headers=None): return self.dc.update(body, uri, api, headers)
[ "def update(self, code, *args, **kwargs):\n\n if not args and not kwargs:\n raise Exception('attributes for CostCenter are missing')\n\n attributes = args[0] if args else kwargs\n attributes = dict((k, v) for k, v in attributes.items())\n attributes.update({'service': self.SER...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes Datacenters. If name or uri are not specified, all datacenters are removed. [Arguments]
def fusion_api_remove_datacenter(self, name=None, uri=None, api=None, headers=None): return self.dc.delete(name, uri, api, headers)
[ "def del_upstreams( args ):\n kube_dns = dump_kube_dns_cm( args.kube_dns_cm_file )\n if 'data' not in kube_dns or 'upstreamNameservers' not in kube_dns['data']:\n return\n\n upstreamServers = json.loads( kube_dns['data']['upstreamNameservers'] )\n for server in args.upstreamServers:\n upst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a SAN Manager. [Arguments]
def fusion_api_add_san_manager(self, body, providerId=None, uri=None, api=None, headers=None): return self.dm.create(body, providerId, uri, api, headers)
[ "def add_manager(self, agent):\n with self.simulation_mutex:\n self.get(\"manager_agents\")[agent.name] = agent", "def add_sap (self):\n raise NotImplementedError", "def do_add(self, args):\n argument_list = args.split()\n if len(argument_list) < 1:\n self.__bad_arg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates a SAN Manager. [Arguments]
def fusion_api_edit_san_manager(self, body, uri, api=None, headers=None): return self.dm.update(body, uri, api, headers)
[ "def manager_update(self, manager, config):\n self.request('/v1.1/managers/configs/%s' % manager, 'POST', body=config)", "def fusion_api_update_managed_san(self, body, uri, api=None, headers=None):\n return self.ms.update(body, uri, api, headers)", "def master_update(self):\n instance =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes SAN Managers. [Arguments]
def fusion_api_remove_san_manager(self, name=None, uri=None, api=None, headers=None): return self.dm.delete(name, uri, api, headers)
[ "def destroy_all():\n umount_mdv()\n\n # Remove FS\n for fs_name, pool_name in _StratisCli.fs_list().items():\n exec_command([STRATIS_CLI, \"fs\", \"destroy\", pool_name, fs_name])\n\n # Remove Pools\n for name in _StratisCli.pool_list():\n exec_command([STRA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of SAN Managers. [Arguments]
def fusion_api_get_san_manager(self, uri=None, param='', api=None, headers=None): return self.dm.get(uri=uri, api=api, headers=headers, param=param)
[ "def get_managers():\n return {'managers': get_users('managers')}", "def managerList(self):\n # check that we actually have json\n if hasattr(cherrypy.request, 'json'):\n data = cherrypy.request.json\n else:\n raise cherrypy.HTTPError(400, 'No data was given')\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a default or paginated collection of Drive Enclosures. [Arguments]
def fusion_api_get_drive_enclosure(self, uri=None, param='', api=None, headers=None): return self.drive_enclosure.get(uri=uri, api=api, headers=headers, param=param)
[ "def fusion_api_get_enclosures(self, uri=None, param='', api=None, headers=None):\n return self.enclosure.get(uri=uri, param=param, api=api, headers=headers)", "def _get_scopes():\n for cname in config[\"enabled\"]:\n campaign = config[\"campaigns\"][cname]\n for opname in campaign[\"e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Issues a PATCH request to a drive enclosure. See RESTAPI docs for valid request bodies [Arguments]
def fusion_api_patch_drive_enclosure(self, body, uri, api=None, headers=None): return self.drive_enclosure.patch(body, uri, api, headers)
[ "def patch(self, url, body=None, headers=None, **params):\n headers = headers or {}\n url += self.urlencode(params)\n if 'content-type' not in headers:\n # We're doing a json.dumps of body, so let's set the\n # content-type to json\n headers['content-type'] = 'a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Issues a PUT request to a drive enclosure. See RESTAPI docs for valid request bodies [Arguments]
def fusion_api_put_drive_enclosure(self, body, uri, param='', api=None, headers=None): return self.drive_enclosure.put(body=body, uri=uri, param=param, api=api, headers=headers)
[ "def _put(self, *args, **kwargs):\n return self._request('put', *args, **kwargs)", "def do_PUT(self,):\n self.http_method = 'PUT'\n # Nothing to do for now.\n pass", "def put(self, *args, **kw):\n kw['method'] = 'PUT'\n return self.open(*args, **kw)", "def put(self, p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates independent sas logical jbods [Arguments]
def fusion_api_post_sas_logical_jbods(self, body, api=None, headers=None): return self.sas_logical_jbods.post(body=body, api=api, headers=headers)
[ "def write_mesh_java(self):\n fout = open(self.javaBatch1File+\".java\",\"w\")\n fout.write(\"\"\"\\\n// STAR-CCM+ macro\npackage macro;\n\nimport java.util.*;\n\nimport star.common.*;\nimport star.base.neo.*;\nimport star.resurfacer.*;\nimport star.trimmer.*;\nimport star.prismmesher.*;\nimport star....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes independent sas logical jbods from the appliance based on uri [Arguments]
def fusion_api_delete_sas_logical_jbods(self, uri, api=None, headers=None): return self.sas_logical_jbods.delete(uri=uri, api=api, headers=headers)
[ "def fusion_api_delete_sas_li(self, name=None, uri=None, api=None, headers=None):\n return self.sasli.delete(name=name, uri=uri, api=api, headers=headers)", "def fusion_api_delete_sas_interconnect(self, name=None, uri=None, api=None, headers=None):\n return self.sasics.delete(name=name, uri=...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates independent sas logical jbods [Arguments]
def fusion_api_edit_sas_logical_jbods(self, body, uri, api=None, headers=None): return self.sas_logical_jbods.put(body=body, uri=uri, api=api, headers=headers)
[ "def fusion_api_patch_sas_logical_jbods(self, body, uri, api=None, headers=None):\n return self.sas_logical_jbods.patch(body=body, uri=uri, api=api, headers=headers)", "def Innovation(state_vectors_names,obs_file,tmp_DA_path,sosie_path,name_sosie_output,name_sosie_map,n_ens,obsop): \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Issues a Patch request for independent sas logical jbods. [Arguments]
def fusion_api_patch_sas_logical_jbods(self, body, uri, api=None, headers=None): return self.sas_logical_jbods.patch(body=body, uri=uri, api=api, headers=headers)
[ "def fusion_api_edit_sas_logical_jbods(self, body, uri, api=None, headers=None):\n return self.sas_logical_jbods.put(body=body, uri=uri, api=api, headers=headers)", "def fusion_api_post_sas_logical_jbods(self, body, api=None, headers=None):\n return self.sas_logical_jbods.post(body=body, api...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
patch a scope [Arguments]
def fusion_api_patch_scope(self, uri, body=None, api=None, headers=None, etag=None): return self.scope.patch(uri=uri, body=body, api=api, headers=headers, etag=etag)
[ "def override(self,scope):", "def add_scope(self):", "def update_injectable_scope(name, new_scope=None):\n _update_scope(\n get_raw_injectable(name), new_scope)", "def _monkeypatch(self, monkeypatch):\n self._envpatcher = monkeypatch", "def set_scope(self, scope):\n self.update(scope...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a Scope from the appliance based on name OR uri [Arguments]
def fusion_api_delete_scope(self, uri=None, api=None, headers=None): return self.scope.delete(uri, api, headers)
[ "def scope_delete(client, args):\n client.set_scope([])", "def _delete_from_side_scope(name):\n side_scope.__dict__.pop(name)", "def drop_scope(self, scope):\n self.collection_manager().dropScope(scope)\n self.bucket.stats.increment_manifest_uid()", "def del_scope(self):", "def delete(se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fusion API Get Appliance Certificate [Example] ${resp} = Fusion Api Get Appliance Certificate | |
def fusion_api_get_appliance_certificate(self, api=None, headers=None): return self.appliance_certificate.get(api, headers)
[ "def get_ssl_certificate() :", "def fusion_api_get_certificate_info(self, uri=None, api=None, param='', headers=None):\n param = '/certificates/https/'\n return self.ic.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_get_ca_certificate(self, uri=None, api=None, header...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fusion API Create Appliance Selfsigned Certificate [Arguments] body [Example] ${resp} = Fusion Api Create Appliance Selfsigned Certificate | | |
def fusion_api_create_appliance_selfsigned_certificate(self, body, api=None, headers=None): return self.appliance_certificate.put(body, api, headers)
[ "def fusion_api_generate_certificate_signing_request(self, body, api=None, headers=None):\n return self.wsc.post(body, api=api, headers=headers)", "def create(cls, client, resource) :\n\t\ttry :\n\t\t\tif type(resource) is not list :\n\t\t\t\tcreateresource = sslcert()\n\t\t\t\tcreateresource.certfile ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Remote Certificate [Arguments]
def fusion_api_get_remote_certificate(self, ip, api=None, headers=None): return self.remote_certificate.get(ip, api, headers)
[ "def get_ssl_certificate() :", "def fusion_api_get_certificate_info(self, uri=None, api=None, param='', headers=None):\n param = '/certificates/https/'\n return self.ic.get(uri=uri, api=api, headers=headers, param=param)", "def get_remote_certificate(host, port):\n addr = socket.getaddr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Import Client Certificate to Oneview [Arguments]
def fusion_api_import_client_certificate(self, body, api=None, headers=None): return self.client_certificate.post(body, api, headers)
[ "def AddClientCertificateFlag(parser, required=False):\n help_text = \"\"\"\\\n x509 PEM-encoded certificate that will be used by the replica to\n authenticate against the database server. Database Migration Service\n encrypts the value when storing it.\n \"\"\"\n parser.add_argument('--client-certifica...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update Client Certificate in Oneview [Arguments]
def fusion_api_update_client_certificate(self, aliasname, body, api=None, headers=None): return self.client_certificate.put(aliasname, body, api, headers)
[ "def update_certificate(certificateId=None, newStatus=None):\n pass", "def regenerate_certificate(cls, client_obj, **kwargs):\n raise NotImplementedError", "def edit_certificate(self, certificate):\r\n return self.ssl.editObject(certificate, id=certificate['id'])", "def renew_certificate(self...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete Client Certificate in Oneview [Arguments]
def fusion_api_delete_client_certificate(self, aliasname, api=None, headers=None): return self.client_certificate.delete(aliasname, api, headers)
[ "def test_delete_certificate(self):\n pass", "def delete_ca_certificate(certificateId=None):\n pass", "def delete_certificate(certificateId=None, forceDelete=None):\n pass", "def click_delete_cert(self):\n self.click_element(self.ID_DELETE)", "def delete(self, **kwargs):\n self.db...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Import Server Certificate to Oneview [Arguments]
def fusion_api_import_server_certificate(self, body, api=None, headers=None): return self.server_certificate.post(body, api, headers)
[ "def test_otoroshi_controllers_adminapi_pki_controller_import_cert_from_p12(self):\n pass", "def click_import_cert(self):\n self.click_element(self.ID_IMPORT_CERT)", "def AddClientCertificateFlag(parser, required=False):\n help_text = \"\"\"\\\n x509 PEM-encoded certificate that will be used b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update Server Certificate in Oneview [Arguments]
def fusion_api_update_server_certificate(self, aliasname, body, api=None, headers=None): return self.server_certificate.put(aliasname, body, api, headers)
[ "def update_certificate(certificateId=None, newStatus=None):\n pass", "def update_ca_certificate(certificateId=None, newStatus=None, newAutoRegistrationStatus=None, registrationConfig=None, removeAutoRegistration=None):\n pass", "def edit_certificate(self, certificate):\r\n return self.ssl.editObje...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete Server Certificate in Oneview [Arguments]
def fusion_api_delete_server_certificate(self, aliasname, api=None, headers=None): return self.server_certificate.delete(aliasname, api, headers)
[ "def test_delete_certificate(self):\n pass", "def delete_ca_certificate(certificateId=None):\n pass", "def delete_certificate(certificateId=None, forceDelete=None):\n pass", "def delete_server_cert(self, cert_name):\r\n params = {'ServerCertificateName' : cert_name}\r\n return self....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Certificate status in Oneview [Example] ${resp} = Fusion Api Get Server Certificate | |
def fusion_api_get_certificate_status(self, api=None, headers=None): return self.certificate_status.get(api, headers)
[ "def cert_status(self) -> str:\n return pulumi.get(self, \"cert_status\")", "def fusion_api_get_certificate_info(self, uri=None, api=None, param='', headers=None):\n param = '/certificates/https/'\n return self.ic.get(uri=uri, api=api, headers=headers, param=param)", "def get_ssl_ca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete a Repository from the appliance based on uri [Arguments]
def fusion_api_delete_repository(self, uri, api=None, headers=None): return self.repository.delete(uri=uri, api=api, headers=headers)
[ "def repository_delete(ctx: click.Context, repository_name):\n subcommand_repository.cmd_delete(ctx.obj, repository_name)", "def repository_delete():\n db = flask.current_app.container.get('db')\n gh_api = flask.current_app.container.get(\n 'gh_api', token=flask.session['github_token']\n )\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }