<s> from cinderclient import client <EOL> from cinderclient . v1 import availability_zones <EOL> from cinderclient . v1 import limits <EOL> from cinderclient . v1 import qos_specs <EOL> from cinderclient . v1 import quota_classes <EOL> from cinderclient . v1 import quotas <EOL> from cinderclient . v1 import services <EOL> from cinderclient . v1 import volumes <EOL> from cinderclient . v1 import volume_snapshots <EOL> from cinderclient . v1 import volume_types <EOL> from cinderclient . v1 import volume_encryption_types <EOL> from cinderclient . v1 import volume_backups <EOL> from cinderclient . v1 import volume_backups_restore <EOL> from cinderclient . v1 import volume_transfers <EOL> class Client ( object ) : <EOL> """<STR_LIT>""" <EOL> version = '<STR_LIT:1>' <EOL> def __init__ ( self , username = None , api_key = None , project_id = None , <EOL> auth_url = '<STR_LIT>' , insecure = False , timeout = None , tenant_id = None , <EOL> proxy_tenant_id = None , proxy_token = None , region_name = None , <EOL> endpoint_type = '<STR_LIT>' , extensions = None , <EOL> service_type = '<STR_LIT>' , service_name = None , <EOL> volume_service_name = None , bypass_url = None , <EOL> retries = None , http_log_debug = False , <EOL> cacert = None , auth_system = '<STR_LIT>' , auth_plugin = None , <EOL> session = None , ** kwargs ) : <EOL> password = api_key <EOL> self . limits = limits . LimitsManager ( self ) <EOL> self . volumes = volumes . VolumeManager ( self ) <EOL> self . volume_snapshots = volume_snapshots . SnapshotManager ( self ) <EOL> self . volume_types = volume_types . VolumeTypeManager ( self ) <EOL> self . volume_encryption_types = volume_encryption_types . VolumeEncryptionTypeManager ( self ) <EOL> self . qos_specs = qos_specs . QoSSpecsManager ( self ) <EOL> self . quota_classes = quota_classes . QuotaClassSetManager ( self ) <EOL> self . quotas = quotas . QuotaSetManager ( self ) <EOL> self . backups = volume_backups . VolumeBackupManager ( self ) <EOL> self . restores = volume_backups_restore . VolumeBackupRestoreManager ( self ) <EOL> self . transfers = volume_transfers . VolumeTransferManager ( self ) <EOL> self . services = services . ServiceManager ( self ) <EOL> self . availability_zones = availability_zones . AvailabilityZoneManager ( self ) <EOL> if extensions : <EOL> for extension in extensions : <EOL> if extension . manager_class : <EOL> setattr ( self , extension . name , <EOL> extension . manager_class ( self ) ) <EOL> self . client = client . _construct_http_client ( <EOL> username = username , <EOL> password = password , <EOL> project_id = project_id , <EOL> auth_url = auth_url , <EOL> insecure = insecure , <EOL> timeout = timeout , <EOL> tenant_id = tenant_id , <EOL> proxy_tenant_id = tenant_id , <EOL> proxy_token = proxy_token , <EOL> region_name = region_name , <EOL> endpoint_type = endpoint_type , <EOL> service_type = service_type , <EOL> service_name = service_name , <EOL> volume_service_name = volume_service_name , <EOL> bypass_url = bypass_url , <EOL> retries = retries , <EOL> http_log_debug = http_log_debug , <EOL> cacert = cacert , <EOL> auth_system = auth_system , <EOL> auth_plugin = auth_plugin , <EOL> session = session , <EOL> ** kwargs ) <EOL> def authenticate ( self ) : <EOL> """<STR_LIT>""" <EOL> self . client . authenticate ( ) <EOL> def get_volume_api_version_from_endpoint ( self ) : <EOL> return self . client . get_volume_api_version_from_endpoint ( ) </s>
