|
86 | 86 | RegistrarApiEnableDomainDNSSECRequest, |
87 | 87 | RegistrarApiRegisterExternalDomainRequest, |
88 | 88 | RegistrarApiRenewDomainsRequest, |
| 89 | + RegistrarApiRetryInboundTransferRequest, |
89 | 90 | RegistrarApiTradeDomainRequest, |
90 | 91 | RegistrarApiTransferInDomainRequest, |
91 | 92 | RegistrarApiUpdateContactRequest, |
92 | 93 | RegistrarApiUpdateDomainHostRequest, |
93 | 94 | RegistrarApiUpdateDomainRequest, |
94 | 95 | RenewableDomain, |
95 | 96 | RestoreDNSZoneVersionResponse, |
| 97 | + RetryInboundTransferResponse, |
96 | 98 | SSLCertificate, |
97 | 99 | SearchAvailableDomainsResponse, |
98 | 100 | Task, |
|
142 | 144 | unmarshal_RefreshDNSZoneResponse, |
143 | 145 | unmarshal_RegisterExternalDomainResponse, |
144 | 146 | unmarshal_RestoreDNSZoneVersionResponse, |
| 147 | + unmarshal_RetryInboundTransferResponse, |
145 | 148 | unmarshal_SearchAvailableDomainsResponse, |
146 | 149 | unmarshal_UpdateDNSZoneNameserversResponse, |
147 | 150 | unmarshal_UpdateDNSZoneRecordsResponse, |
|
157 | 160 | marshal_RegistrarApiEnableDomainDNSSECRequest, |
158 | 161 | marshal_RegistrarApiRegisterExternalDomainRequest, |
159 | 162 | marshal_RegistrarApiRenewDomainsRequest, |
| 163 | + marshal_RegistrarApiRetryInboundTransferRequest, |
160 | 164 | marshal_RegistrarApiTradeDomainRequest, |
161 | 165 | marshal_RegistrarApiTransferInDomainRequest, |
162 | 166 | marshal_RegistrarApiUpdateContactRequest, |
@@ -1555,6 +1559,45 @@ async def list_inbound_transfers_all( |
1555 | 1559 | }, |
1556 | 1560 | ) |
1557 | 1561 |
|
| 1562 | + async def retry_inbound_transfer( |
| 1563 | + self, |
| 1564 | + *, |
| 1565 | + domain: str, |
| 1566 | + project_id: Optional[str] = None, |
| 1567 | + auth_code: Optional[str] = None, |
| 1568 | + ) -> RetryInboundTransferResponse: |
| 1569 | + """ |
| 1570 | + Retry the inbound transfer of a domain. |
| 1571 | + Request a retry for the transfer of a domain from another registrar to Scaleway Domains and DNS. |
| 1572 | + :param domain: The domain being transfered. |
| 1573 | + :param project_id: The project ID to associated with the inbound transfer. |
| 1574 | + :param auth_code: An optional new auth code to replace the previous one for the retry. |
| 1575 | + :return: :class:`RetryInboundTransferResponse <RetryInboundTransferResponse>` |
| 1576 | +
|
| 1577 | + Usage: |
| 1578 | + :: |
| 1579 | +
|
| 1580 | + result = await api.retry_inbound_transfer( |
| 1581 | + domain="example", |
| 1582 | + ) |
| 1583 | + """ |
| 1584 | + |
| 1585 | + res = self._request( |
| 1586 | + "POST", |
| 1587 | + "/domain/v2beta1/retry-inbound-transfer", |
| 1588 | + body=marshal_RegistrarApiRetryInboundTransferRequest( |
| 1589 | + RegistrarApiRetryInboundTransferRequest( |
| 1590 | + domain=domain, |
| 1591 | + project_id=project_id, |
| 1592 | + auth_code=auth_code, |
| 1593 | + ), |
| 1594 | + self.client, |
| 1595 | + ), |
| 1596 | + ) |
| 1597 | + |
| 1598 | + self._throw_on_error(res) |
| 1599 | + return unmarshal_RetryInboundTransferResponse(res.json()) |
| 1600 | + |
1558 | 1601 | async def buy_domains( |
1559 | 1602 | self, |
1560 | 1603 | *, |
|
0 commit comments