U Ec_ @s,ddlmZmZmZmZGdddeZdS))NamespacedClient query_params SKIP_IN_PATH _make_pathc@sLeZdZed ddZed ddZed ddZed dd ZdS)AutoscalingClientNcCs|jjdd||dS)a Gets the current autoscaling decision based on the configured autoscaling policy, indicating whether or not autoscaling is needed. ``_ GETz/_autoscaling/decisionparamsheaders) transportperform_request)selfr r rG/tmp/pip-target-m1bursmm/lib/python/elasticsearch/client/autoscaling.pyget_autoscaling_decisions z*AutoscalingClient.get_autoscaling_decisioncCs,|tkrtd|jjdtdd|||dS)z Deletes an autoscaling policy. ``_ :arg name: the name of the autoscaling policy 2Empty value passed for a required argument 'name'.DELETE _autoscalingpolicyrr ValueErrorr r rr namer r rrrdelete_autoscaling_policy!s z+AutoscalingClient.delete_autoscaling_policycCs,|tkrtd|jjdtdd|||dS)z Retrieves an autoscaling policy. ``_ :arg name: the name of the autoscaling policy rrrrrrrrrrget_autoscaling_policy3s z(AutoscalingClient.get_autoscaling_policycCs<||fD]}|tkrtdq|jjdtdd||||dS)a Creates a new autoscaling policy. ``_ :arg name: the name of the autoscaling policy :arg body: the specification of the autoscaling policy z+Empty value passed for a required argument.PUTrr)r r bodyr)r rrr r paramrrrput_autoscaling_policyEs   z(AutoscalingClient.put_autoscaling_policy)NN)NN)NN)NN)__name__ __module__ __qualname__rrrrrrrrrrs   rN)utilsrrrrrrrrrs