pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Public Attributes | Static Public Attributes
Endpoint Class Reference

Holds the endpoint information, as well as an instance of the appropriate client for that service and region. More...

Inheritance diagram for Endpoint:
FakeEndpoint

List of all members.

Public Member Functions

def __init__
 Set local attributes from the supplied dictionary.
def get_new_client
 Returns a new instance of the client for this endpoint.
def get
 Accepts either 'public' or 'private' as a parameter, and returns the corresponding value for 'public_url' or 'private_url', respectively.
def __getattr__
def client
def client_private

Public Attributes

 service
 identity

Static Public Attributes

 public_url = None
 private_url = None
 tenant_id = None
 region = None
dictionary attr_map

Detailed Description

Holds the endpoint information, as well as an instance of the appropriate client for that service and region.


Constructor & Destructor Documentation

def __init__ (   self,
  ep_dict,
  service,
  region,
  identity 
)

Set local attributes from the supplied dictionary.

Reimplemented in FakeEndpoint.


Member Function Documentation

def __getattr__ (   self,
  att 
)
def client (   self)
def client_private (   self)
def get (   self,
  url_type 
)

Accepts either 'public' or 'private' as a parameter, and returns the corresponding value for 'public_url' or 'private_url', respectively.

def get_new_client (   self,
  public = True 
)

Returns a new instance of the client for this endpoint.


Member Data Documentation

dictionary attr_map [static]
Initial value:
{"publicURL": "public_url",
            "privateURL": "private_url",
            "internalURL": "private_url",
            "tenantId": "tenant_id",
            }
private_url = None [static]
public_url = None [static]
region = None [static]
tenant_id = None [static]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties