Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
path_params=None,
protocol=None):
"""
:param product: String, mandatory
:param version: String, mandatory
:param action_name: String, mandatory
:param bucket: String
:param method: String
:param headers: Dict
:param uri_pattern: String
:param path_params: Dict
:param protocol: String
:return:
"""
AcsRequest.__init__(
self,
product,
version,
action_name,
location_service_code,
'openAPI',
ft.XML,
protocol,
method)
self.__style = STYLE_OSS
self.__bucket = bucket
self.__method = method
self.__header = headers
self.__uri_pattern = uri_pattern
self.__path_params = path_params
def __init__(
self,
product,
version,
action_name,
location_service_code=None,
location_endpoint_type='openAPI',
format=None,
protocol=None,
signer=sha_hmac1):
AcsRequest.__init__(
self,
product,
version,
action_name,
location_service_code,
location_endpoint_type,
format,
protocol,
mt.GET)
self._style = STYLE_RPC
self._signer = signer
uri_pattern=None,
path_params=None,
protocol=None):
"""
:param product: String, mandatory
:param version: String, mandatory
:param action_name: String, mandatory
:param method: String
:param headers: Dict
:param uri_pattern: String
:param path_params: Dict
:param protocol: String
:return:
"""
AcsRequest.__init__(
self,
product,
version,
action_name,
location_service_code,
location_endpoint_type,
ft.RAW,
protocol,
method)
self._style = STYLE_ROA
self._method = method
if headers:
self._header = headers
self._uri_pattern = uri_pattern
self._path_params = path_params