U Ec_@s$ddlmZmZGdddeZdS))NamespacedClient query_paramsc@seZdZedddZedddddZeddd Zedd d Zed dd dZed dddZ ed ddddZ dS) LicenseClientNcCs|jjdd||dS)z Deletes licensing information for the cluster ``_ DELETE /_licenseparamsheaders transportperform_requestselfrr rC/tmp/pip-target-m1bursmm/lib/python/elasticsearch/client/license.pydeletes zLicenseClient.deleteZaccept_enterpriselocalcCs|jjdd||dS)a Retrieves licensing information for the cluster ``_ :arg accept_enterprise: If the active license is an enterprise license, return type as 'enterprise' (default: false) :arg local: Return local information, do not retrieve the state from master node (default: false) GETrrr r rrrget s zLicenseClient.getcCs|jjdd||dS)z Retrieves information about the status of the basic license. ``_ rz/_license/basic_statusrr r rrrget_basic_status/s zLicenseClient.get_basic_statuscCs|jjdd||dS)z Retrieves information about the status of the trial license. ``_ rz/_license/trial_statusrr r rrrget_trial_status9s zLicenseClient.get_trial_statusZ acknowledgecCs|jjdd|||dS)a. Updates the license for the cluster. ``_ :arg body: licenses to be installed :arg acknowledge: whether the user has acknowledged acknowledge messages (default: false) PUTr)rr bodyr )rrrr rrrpostCs zLicenseClient.postcCs|jjdd||dS)z Starts an indefinite basic license. ``_ :arg acknowledge: whether the user has acknowledged acknowledge messages (default: false) POSTz/_license/start_basicrr r rrrpost_start_basicQs zLicenseClient.post_start_basicdoc_typecCs*d|kr|d|d<|jjdd||dS)a[ starts a limited time trial license. ``_ :arg acknowledge: whether the user has acknowledged acknowledge messages (default: false) :arg doc_type: The type of trial license to generate (default: "trial") rtyperz/_license/start_trialr)popr r r rrrpost_start_trial^s zLicenseClient.post_start_trial)NN)NN)NN)NN)NNN)NN)NN) __name__ __module__ __qualname__rrrrrrrrrrrrrs      rN)utilsrrrrrrrs