관리-도구
편집 파일: api.cpython-39.pyc
a �)g� � @ s� d Z ddlmZmZmZ eZddlZddlZddl Z ddl Z ddlZddlZddl m m mZ ddd�Zddd�Zddd �Zdd d�Zdd d�Zddd�Zdd� Zddd�ZdS )a� This module adds shared support for generic api modules In order to use this module, include it as part of a custom module as shown below. The 'api' module provides the following common argument specs: * rate limit spec - rate: number of requests per time unit (int) - rate_limit: time window in which the limit is applied in seconds * retry spec - retries: number of attempts - retry_pause: delay between attempts in seconds � )�absolute_import�division�print_functionNc C s* t t dd�t dd�d�}| r&|�| � |S )z7Creates an argument spec for working with rate limiting�int��type)�rate� rate_limit��dict�update��specZarg_spec� r �</usr/lib/python3.9/site-packages/ansible/module_utils/api.py�rate_limit_argument_spec'