in python2/alibabacloud_oss_sdk/models.py [0:0]
def to_map(self):
result = dict()
if self.mirror_headers is not None:
result['MirrorHeaders'] = self.mirror_headers.to_map()
if self.redirect_type is not None:
result['RedirectType'] = self.redirect_type
if self.pass_query_string is not None:
result['PassQueryString'] = self.pass_query_string
if self.mirror_url is not None:
result['MirrorURL'] = self.mirror_url
if self.mirror_pass_query_string is not None:
result['MirrorPassQueryString'] = self.mirror_pass_query_string
if self.mirror_follow_redirect is not None:
result['MirrorFollowRedirect'] = self.mirror_follow_redirect
if self.mirror_check_md_5 is not None:
result['MirrorCheckMd5'] = self.mirror_check_md_5
if self.protocol is not None:
result['Protocol'] = self.protocol
if self.host_name is not None:
result['HostName'] = self.host_name
if self.http_redirect_code is not None:
result['HttpRedirectCode'] = self.http_redirect_code
if self.replace_key_prefix_with is not None:
result['ReplaceKeyPrefixWith'] = self.replace_key_prefix_with
if self.replace_key_with is not None:
result['ReplaceKeyWith'] = self.replace_key_with
return result