Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/openstack/cloud/__pycache__/openstackcloud.cpython-39.pyc
Ðазад
a t�h� � @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZ d dl Z d dlZd dl Zd dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlZd dlmZ d d lmZ d d lmZ dZdZdZejZejZej Z ej!Z!G dd � d �Z"dd� Z#dS )� N)�_log)�exc)�_floating_ip)� _object_store)�meta)�_utils)�cloud_region)�proxy)�utils� c s� e Zd ZdZdZdZdZdZdZdZ dZ � fd d �Zdd� Zd d� Z dd� Zdd� Zdd� Zdd� Zdd� ZdTdd�ZdUdd�Zdd� Zed d!� �Zed"d#� �Zed$d%� �Zd&d'� Zd(d)� Zed*d+� �Zed,d-� �ZdVd.d/�Zed0d1� �Zed2d3� �Z ed4d5� �Z!ed6d7� �Z"dWd8d9�Z#ed:d;� �Z$dXd<d=�Z%d>d?� Z&d@dA� Z'dBdC� Z(dYdDdE�Z)dFdG� Z*dHdI� Z+dJdK� Z,dLdM� Z-dNdO� Z.dZdRdS�Z/� Z0S )[�_OpenStackCloudMixina� Represent a connection to an OpenStack Cloud. OpenStackCloud is the entry point for all cloud operations, regardless of which OpenStack service those operations may ultimately come from. The operations on an OpenStackCloud are resource oriented rather than REST API operation oriented. For instance, one will request a Floating IP and that Floating IP will be actualized either via neutron or via nova depending on how this particular cloud has decided to arrange itself. :param bool strict: Only return documented attributes for each resource as per the Data Model contract. (Default False) zx-object-meta-x-sdk-md5zx-object-meta-x-sdk-sha256zx-object-meta-x-sdk-autocreatedZimageszx-object-meta-x-shade-md5zx-object-meta-x-shade-sha256z!x-object-meta-x-shade-autocreatedc s t t| ��� t�d�| _| jj| _| j�� | _ | j� � | _| jj| _| j� � \| _| _| js�| j�d� tj}|r�tjd|d� i | _t| j�� �}| j�� }| j�� }i | _|dk�r&d| _| �|||�| _| j�� }|�� D ].}t | d�!|�d �r�| �||| |�| j|<