本文整理汇总了Python中openprovider.modules.E.createDomainRequest方法的典型用法代码示例。如果您正苦于以下问题:Python E.createDomainRequest方法的具体用法?Python E.createDomainRequest怎么用?Python E.createDomainRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类openprovider.modules.E
的用法示例。
在下文中一共展示了E.createDomainRequest方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: create_domain_request
# 需要导入模块: from openprovider.modules import E [as 别名]
# 或者: from openprovider.modules.E import createDomainRequest [as 别名]
def create_domain_request(self, domain, period, owner_handle, admin_handle, tech_handle,
billing_handle=None, reseller_handle=None, ns_group=None, ns_template_name=None,
name_servers=None, use_domicile=False, promo_code=None, autorenew=None, comments=None,
dnssec_keys=None, application_mode=None, is_private_whois_enabled=None,
additional_data=None):
request = E.createDomainRequest(
_domain(domain),
E.period(period),
E.ownerHandle(owner_handle),
E.adminHandle(admin_handle),
E.techHandle(tech_handle),
OE('billingHandle', billing_handle),
OE('resellerHandle', reseller_handle),
OE('nsGroup', ns_group),
OE('nsTemplateName', ns_template_name),
OE('nameServers', name_servers, transform=_nameservers),
OE('useDomicile', use_domicile, transform=int),
OE('promoCode', promo_code),
OE('autorenew', autorenew),
OE('comments', comments),
OE('dnssecKeys', dnssec_keys, transform=_dnssec_keys),
OE('applicationMode', application_mode),
OE('isPrivateWhoisEnabled', is_private_whois_enabled, transform=int),
_additional_data(additional_data),
)
response = self.request(request)
return response.as_model(Model)