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
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
def __init__(self): self.url = config.get_service_url('mon') self.headers = {} self.version = '2016-03-01' self.verb = 'GET'
def __init__(self): self.url = config.get_service_url('vpc') self.headers = {} self.version = '2016-03-01' self.verb = 'GET'