File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/__pycache__/aliyun.cpython-310.pyc
Back
o ;j>k � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl mZ ddlm Z ddlZddlZddlZddlmZmZmZmZ ddlmZ zddlZdZW n ey_ dZY nw e�e�Zdd d ddd dddddddd� ZdZ dZ!dZ"dd� Z#dd� Z$dd� Z%dd � Z&dYd!d"�Z'dZd#d$�Z(dYd%d&�Z)dYd'd(�Z*dYd)d*�Z+dYd+d,�Z,dYd-d.�Z-dYd/d0�Z.dYd1d2�Z/dYd3d4�Z0d5d6� Z1d7d8� Z2d9d:� Z3d;d<� Z4dYd=d>�Z5d[d?d@�Z6dYdAdB�Z7dCdD� Z8dEdF� Z9dGdH� Z:dYdIdJ�Z;dKdL� Z<dYdMdN�Z=dZdOdP�Z>dYdQdR�Z?dSdT� Z@dYdUdV�ZAdYdWdX�ZBdS )\ag AliYun ECS Cloud Module ======================= .. versionadded:: 2014.7.0 The Aliyun cloud module is used to control access to the aliyun ECS. http://www.aliyun.com/ Use of this module requires the ``id`` and ``key`` parameter to be set. Set up the cloud configuration at ``/etc/salt/cloud.providers`` or ``/etc/salt/cloud.providers.d/aliyun.conf``: .. code-block:: yaml my-aliyun-config: # aliyun Access Key ID id: wFGEwgregeqw3435gDger # aliyun Access Key Secret key: GDE43t43REGTrkilg43934t34qT43t4dgegerGEgg location: cn-qingdao driver: aliyun :depends: requests � N)�sha1)�SaltCloudExecutionFailure�SaltCloudExecutionTimeout�SaltCloudNotFound�SaltCloudSystemExit)�to_bytesTFzAliYun HangZhou RegionzAliYun BeiJing RegionzAliYun HongKong RegionzAliYun QingDao RegionzAliYun ShangHai RegionzAliYun ShenZheng RegionzAliYun DongJing RegionzAliYun XinJiaPo RegionzAliYun XiNi RegionzEU FalaKeFu RegionzME DiBai RegionzUS FuJiNiYa RegionzUS GuiGu Region) �cn-hangzhouz cn-beijingzcn-hongkongz cn-qingdaozcn-shanghaizcn-shenzhenzap-northeast-1zap-southeast-1zap-southeast-2zeu-central-1z me-east-1z us-east-1z us-west-1r z 2014-05-26�aliyunc C s t � du rdS t� du rdS tS )z) Check for aliyun configurations F)�get_configured_provider�get_dependencies�__virtualname__� r r �L/opt/saltstack/salt/lib/python3.10/site-packages/salt/cloud/clouds/aliyun.py�__virtual__S s r c C s"