Ejemplo n.º 1
0
 def __init__(self):
     self.http_method = None
     # mandatory headers for each request
     self.http_headers = {
         'Authorization': None,
         'Date': None,
     }
     self.dss_url = config.get_service_url('dss')
     if (self.dss_url.endswith('/')):
         self.dss_url = self.dss_url[:-1]
     self.access_key = config.get_access_key()
     self.secret_key = config.get_secret_key()
     self.is_secure_request = config.check_secure()
     self.dss_op_path = None
     self.dss_query_str = None
     self.dss_query_str_for_signature = None
Ejemplo n.º 2
0
 def __init__(self):
     self.http_method = None
     # mandatory headers for each request
     self.http_headers = {
                           'Authorization': None,
                           'Date': None,
                         }
     self.dss_url = config.get_service_url('dss')
     if(self.dss_url.endswith('/')):
         self.dss_url = self.dss_url[:-1]
     self.access_key = config.get_access_key()
     self.secret_key = config.get_secret_key()
     self.is_secure_request = config.check_secure()
     self.dss_op_path = None
     self.dss_query_str = None
     self.dss_query_str_for_signature = None
Ejemplo n.º 3
0
 def __init__(self):
     self.url = config.get_service_url('mon')
     self.headers = {}
     self.version = '2016-03-01'
     self.verb = 'GET'
Ejemplo n.º 4
0
 def __init__(self):
     self.url = config.get_service_url('vpc')
     self.headers = {}
     self.version = '2016-03-01'
     self.verb = 'GET'