def StartEcdnDomain(self, request): """本接口(StartEcdnDomain)用于启用加速域名,待启用域名必须处于已下线状态。 >? 若您的业务已迁移至 CDN 控制台,请参考<a href="https://cloud.tencent.com/document/product/228/41121"> CDN 接口文档</a>,使用 CDN 相关API 进行操作。 :param request: Request instance for StartEcdnDomain. :type request: :class:`tencentcloud.ecdn.v20191012.models.StartEcdnDomainRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.StartEcdnDomainResponse` """ try: params = request._serialize() headers = request.headers body = self.call("StartEcdnDomain", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.StartEcdnDomainResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def StartEcdnDomain(self, request): """本接口(StartEcdnDomain)用于启用加速域名,待启用域名必须处于已下线状态。 :param request: Request instance for StartEcdnDomain. :type request: :class:`tencentcloud.ecdn.v20191012.models.StartEcdnDomainRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.StartEcdnDomainResponse` """ try: params = request._serialize() body = self.call("StartEcdnDomain", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.StartEcdnDomainResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def StartEcdnDomain(self, request): """This API is used to enable an acceleration domain name. The domain name to be enabled must be in deactivated status. :param request: Request instance for StartEcdnDomain. :type request: :class:`tencentcloud.ecdn.v20191012.models.StartEcdnDomainRequest` :rtype: :class:`tencentcloud.ecdn.v20191012.models.StartEcdnDomainResponse` """ try: params = request._serialize() body = self.call("StartEcdnDomain", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.StartEcdnDomainResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)