本文整理匯總了Python中openprovider.modules.E.adminHandle方法的典型用法代碼示例。如果您正苦於以下問題:Python E.adminHandle方法的具體用法?Python E.adminHandle怎麽用?Python E.adminHandle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類openprovider.modules.E
的用法示例。
在下文中一共展示了E.adminHandle方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: create_domain_request
# 需要導入模塊: from openprovider.modules import E [as 別名]
# 或者: from openprovider.modules.E import adminHandle [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)
示例2: trade_domain_request
# 需要導入模塊: from openprovider.modules import E [as 別名]
# 或者: from openprovider.modules.E import adminHandle [as 別名]
def trade_domain_request(self, domain, period, owner_handle, admin_handle, tech_handle,
billing_handle=None, reseller_handle=None, auth_code=None, ns_group=None,
ns_template_name=None, name_servers=None, use_domicile=None, promo_code=None,
dnssec_keys=None):
request = E.tradeDomainRequest(
_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('authCode', auth_code),
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('dnssecKeys', dnssec_keys, transform=_dnssec_keys),
)
response = self.request(request)
return response.as_model(Model)