diff --git a/go.mod b/go.mod index 4ee7a38858..77f5cd10c3 100644 --- a/go.mod +++ b/go.mod @@ -31,12 +31,13 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.283 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.412 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.413 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.414 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.385 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.359 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dayu v1.0.335 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.294 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.287 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.383 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.397 diff --git a/go.sum b/go.sum index 76298c32b6..d198dfa672 100644 --- a/go.sum +++ b/go.sum @@ -454,14 +454,10 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apigateway v1.0.199 h1: github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apigateway v1.0.199/go.mod h1:ynirFavajqWLAcgEp9ZiMd9xn5JnKTJhQisArjMxNtk= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/as v1.0.363 h1:Js8YGmBRRjEdjGaAgfugq8e6lI5d21Eiid22wU/QpNQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/as v1.0.363/go.mod h1:ic2rqJIJObd0d/VnIHwQWdwZQe8oWSEOzG1lcx8TG0M= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam v1.0.389 h1:onXh7FnJW1/SKe8wnk2Eje2hwURZE9kLjywAEsWjQ3Q= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam v1.0.389/go.mod h1:tE7rJIMfrxsp1/j69qs2/0rbY028MeLUF4kyP+oYmNA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam v1.0.409 h1:ToZpNh78SVdKakkeR9YV1a65tjtC4NJl+hrJqTuhO3g= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam v1.0.409/go.mod h1:U24yUxCDruJLayOsP/onO2E/7+9ljeNsNO+phu+PeiM= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cbs v1.0.199 h1:MkIdFgEGF+baYAU9Z/PUmudfuamCGtLsedQpopwyHNU= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cbs v1.0.199/go.mod h1:PTp058qpOV//RukBVdYQT962rZg71lIt6eHLK1zdvEc= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdb v1.0.199 h1:7ReZOKl95X+9SkPPtrAoUt4ZPJSIjiSxq4g/M54JmtU= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdb v1.0.199/go.mod h1:BMLd7J4LnIxw3fSl9vo3UCudJbH1wZutP8Uo3sQGQTk= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdb v1.0.409 h1:fKFSxvMzS8T+z2z2qm67dgTClnkryeVTykclVkHh3qE= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdb v1.0.409/go.mod h1:q89YBv3T1bzENpcovtwnjxfVn9vx9pCYAssp0HPuivU= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cdn v1.0.199 h1:ji9wSYFgRYbNvlm5KD1Lxb7Uh5ldcQi3AfjktJCrygY= @@ -474,32 +470,25 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.283 h1:8pML0Ut github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.283/go.mod h1:zgARzAnsLzpLhdpAHrHTUilOXytH9aEJy5ssCdizVV0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.199 h1:o41qFAFJGPDTLNWXs7nLw4fsDxFUCe5gkO2YXI9Ye6Q= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.199/go.mod h1:b7dNjabPys0/iLwRFd8MVE5EkJTNAh4qtaHQOOLchx4= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.377 h1:mNqLgiugl8nPbUlPANqz8BfeWbeuniF7opq20+9VL0c= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.377/go.mod h1:PCNxJpu/AspnZNPhMa8fJ7rYb3Ti5hAXA6NHwU4JoXw= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.412 h1:mQbC16tarrfz+ILlHTMiiA3MTUP79fSqs+KEpuL2FKE= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.412/go.mod h1:xU6edJlUvcW4ffnVhE+BLlwOsU6LGzQPdEcAJGC18Fo= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.194/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.358/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.359/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.363/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.377/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.383/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.385/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.389/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.391/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.397/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.398/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.401/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.403 h1:61iPtR+lIVT8BtAaviUx0t5InIHcJ/N51xQdezu2r1s= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.403/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.406 h1:XUBVoGGSfxAIpH75WOsBc2ypwHg003vv0ditaRTvKbE= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.406/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.409 h1:/klI8+1mbCIaRbJRjZHLQzXPJb//rlENFUWIEiShTXg= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.409/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.412 h1:ASERVEdXRfME9KzbVr4aXrEnvTfqr4eZRRsgyWrF6Hw= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.412/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.413 h1:DvydszksqriOr0Zze9OREt8OrIrtMSFcVD8lz3xNAQA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.413/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.414 h1:EH7pgI3/dalcTBuoYumFyj4pyjHmiP8Vp41hNxzhQQQ= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.414/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.385 h1:8bwloRxRwSADSK48KxaUeO9JHmmgniNGJbA7Or/HUEk= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.385/go.mod h1:PMxA0L4o8Fbx/6+ju1cAMAU7x2bV4C6e/LTqVe745yM= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.359 h1:cNKqelPgUxrJkLY0Azd2QHr/UMYOPPnmqs88clt2akk= @@ -510,6 +499,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc v1.0.199 h1:7ShREKvI github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc v1.0.199/go.mod h1:5WGSrlIZJOhwIqPjjafb6vzrPEZieSHPhPMjjGPXOSU= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.294 h1:VKP8TRlMSDUIJ32GuFKr4a0Fv/oi4LksRVOfJoK9CVc= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.294/go.mod h1:CuOaLxOQr477GhMWAQPYQFUJrsZbW+ZqkAgP2uHDZXg= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 h1:egwjvOEUKBaxsoRVn/YSEhp2E8qdh77Ous9A/wftDo0= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414/go.mod h1:LRWnBUNRxs/Ee8MzJJd3eHzydlqyB5qmia975Ca/Ox0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.287 h1:+9COBXAbQmL7aJ39Q/mF50Ykxq4m5kq/y6vbO+u3zgI= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.287/go.mod h1:xRvd0xsyCoviCiMRfJMh5lODPnLx+bnTfENNx6GHzFA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.383 h1:OhKvreaRPhwBEButv45yBcu6BvfvR1JAEXbU/NTck94= @@ -519,7 +510,6 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.397/go.mod h1 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.194/go.mod h1:yrBKWhChnDqNz1xuXdSbWXG56XawEq0G5j1lg4VwBD4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.199 h1:rSDQeqvV4khOJUyg6xmMYF26CRd+WtSYvfwP6N72NP0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.199/go.mod h1:yrBKWhChnDqNz1xuXdSbWXG56XawEq0G5j1lg4VwBD4= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/lighthouse v1.0.199/go.mod h1:r8txjlw4DjLDZFOpnPC/hOFHr1VckZc0jjBK6XIFLP0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/lighthouse v1.0.413 h1:9v95vMBfqvBciwagN+ZqP6Ue3iBFYZRVQga4c1yL5Uc= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/lighthouse v1.0.413/go.mod h1:nG/8Iz/MtV4zBxz9ToLJ90O4ocdME9WUKwims/bitr4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mongodb v1.0.199 h1:2jsGprrewRIP3smcTsY5GpEuOuJ+qyV/BN3Py0Ivf1o= @@ -534,8 +524,6 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/redis v1.0.199 h1:lXCng github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/redis v1.0.199/go.mod h1:5bwboqeXqVnRvUlKn2G9Y9DbOnWMSVQ0zWhhPZKUVZE= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/scf v1.0.275 h1:hn5RrN/qkcObnyKfJ+raey/riVeRqHJFvY34l2YgELs= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/scf v1.0.275/go.mod h1:Pew6DV5oBGrzHYWZ8ssiHeJS/Z39ggVv1y5ADGWdO4s= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sqlserver v1.0.199 h1:Ms62XLYCuqrdG4mD5S72oj/ZxdNTxJ+Mc4w0Kxqucwo= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sqlserver v1.0.199/go.mod h1:ySz4zbciCFruAviNMeBcu7wW2+BY9Maw8qGWawTywkM= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sqlserver v1.0.406 h1:lGhXUN20TcPf/1cY/VAAGq0xf31/erGVoeDzKnxxyhM= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sqlserver v1.0.406/go.mod h1:fYnZ8Er9N+E+iqF29HOTknro1fbVg7KObvxy05ISDsM= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/ssl v1.0.199 h1:UkF3qBxMbpOf2VjxgzMgqvBCS+Hqr8XXSrtRd+rABMk= @@ -560,8 +548,6 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.398 h1:1JVKMl+ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.398/go.mod h1:+TD/TRnb5WrLcE2SL3db7ROOpwED5gBfbC19gaXnGxs= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199 h1:hMBLtiJPnZ9GvA677cTB6ELBR6B68wCR2QY1sNoGQc4= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199/go.mod h1:nnY91/H3j/Gu7V/oCA6Zeg8T5D3q36EUdBh4EjmHwqY= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.413 h1:rGHxpfHTpg3C5xB6qCEG/Kt6gUKiVmxl5z5PudeZbIc= -github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.413/go.mod h1:73R0XHOGnjm/UkYMa5YQFx+VkBDfRfjl7L06HC4WpFo= github.com/tencentyun/cos-go-sdk-v5 v0.7.33 h1:5jmJU7U/1nf/7ZPDkrUL8KlF1oDUzTHsdtLNY6x0hq4= github.com/tencentyun/cos-go-sdk-v5 v0.7.33/go.mod h1:4E4+bQ2gBVJcgEC9Cufwylio4mXOct2iu05WjgEBx1o= github.com/tetafro/godot v0.3.7 h1:+mecr7RKrUKB5UQ1gwqEMn13sDKTyDR8KNIquB9mm+8= diff --git a/tencentcloud/connectivity/client.go b/tencentcloud/connectivity/client.go index c197249452..64d96c24b8 100644 --- a/tencentcloud/connectivity/client.go +++ b/tencentcloud/connectivity/client.go @@ -33,6 +33,7 @@ import ( dayu "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dayu/v20180709" dc "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc/v20180410" dnspod "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323" + domain "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808" emr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr/v20190103" es "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416" gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" @@ -107,6 +108,7 @@ type TencentCloudClient struct { dnsPodConn *dnspod.Client privateDnsConn *privatedns.Client antiddosConn *antiddos.Client + domainConn *domain.Client lighthouseConn *lighthouse.Client } @@ -695,6 +697,18 @@ func (me *TencentCloudClient) UsePrivateDnsClient() *privatedns.Client { return me.privateDnsConn } +// UseDomainClient return Domain client for service +func (me *TencentCloudClient) UseDomainClient() *domain.Client { + if me.dnsPodConn != nil { + return me.domainConn + } + cpf := me.NewClientProfile(300) + me.domainConn, _ = domain.NewClient(me.Credential, me.Region, cpf) + me.domainConn.WithHttpTransport(&LogRoundTripper{}) + + return me.domainConn +} + // UseAntiddosClient returns antiddos client for service func (me *TencentCloudClient) UseAntiddosClient() *antiddos.Client { if me.antiddosConn != nil { diff --git a/tencentcloud/data_source_tc_cdn_domains_test.go b/tencentcloud/data_source_tc_cdn_domains_test.go index c4bc9e27de..09d9b20b6e 100644 --- a/tencentcloud/data_source_tc_cdn_domains_test.go +++ b/tencentcloud/data_source_tc_cdn_domains_test.go @@ -6,158 +6,53 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/helper/resource" ) -func TestAccTencentCloudNeedFixCdnDomainDataSources(t *testing.T) { - t.Parallel() +func TestAccTencentCloudCdnDomainDataSources(t *testing.T) { resource.Test(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, Providers: testAccProviders, CheckDestroy: testAccCheckCdnDomainDestroy, Steps: []resource.TestStep{ { - Config: testAccCdnDomainInfo, + Config: testAccCdnDomainData, Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "domain", "test.zhaoshaona.com"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "service_type", "web"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "area", "mainland"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "full_url_cache", "false"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "origin.0.origin_type", "ip"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "origin.0.origin_list.#", "1"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "origin.0.server_name", "test.zhaoshaona.com"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "origin.0.origin_pull_protocol", "follow"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "https_config.0.https_switch", "on"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "https_config.0.http2_switch", "on"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "https_config.0.ocsp_stapling_switch", "on"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "https_config.0.spdy_switch", "off"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "https_config.0.verify_client", "off"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "https_config.0.server_certificate_config.0.message", "test"), - resource.TestCheckResourceAttrSet("tencentcloud_cdn_domain.foo", "https_config.0.server_certificate_config.0.deploy_time"), - resource.TestCheckResourceAttrSet("tencentcloud_cdn_domain.foo", "https_config.0.server_certificate_config.0.expire_time"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "tags.test", "world"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "range_origin_switch", "off"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.cache_time", "10000"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.rule_paths.#", "1"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.rule_type", "default"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.switch", "off"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.compare_max_age", "off"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.ignore_cache_control", "off"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.ignore_set_cookie", "off"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.no_cache_switch", "on"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.re_validate", "on"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "rule_cache.0.follow_origin_switch", "off"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "request_header.0.switch", "on"), - resource.TestCheckResourceAttr("tencentcloud_cdn_domain.foo", "request_header.0.header_rules.#", "1"), + //resource.TestCheckResourceAttrSet("data.tencentcloud_cdn_domains.cdn_domain", "domain"), + resource.TestCheckResourceAttrSet("data.tencentcloud_cdn_domains.cdn_domain", "service_type"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "area", "mainland"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "full_url_cache", "false"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "origin.0.origin_type", "ip"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "origin.0.origin_list.#", "1"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "origin.0.server_name", "test.zhaoshaona.com"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "origin.0.origin_pull_protocol", "follow"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "https_config.0.https_switch", "on"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "https_config.0.http2_switch", "on"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "https_config.0.ocsp_stapling_switch", "on"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "https_config.0.spdy_switch", "off"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "https_config.0.verify_client", "off"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "https_config.0.server_certificate_config.0.message", "test"), + //resource.TestCheckResourceAttrSet("data.tencentcloud_cdn_domains.cdn_domain", "https_config.0.server_certificate_config.0.deploy_time"), + //resource.TestCheckResourceAttrSet("data.tencentcloud_cdn_domains.cdn_domain", "https_config.0.server_certificate_config.0.expire_time"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "tags.test", "world"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "range_origin_switch", "off"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.cache_time", "10000"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.rule_paths.#", "1"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.rule_type", "default"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.switch", "off"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.compare_max_age", "off"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.ignore_cache_control", "off"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.ignore_set_cookie", "off"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.no_cache_switch", "on"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.re_validate", "on"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "rule_cache.0.follow_origin_switch", "off"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "request_header.0.switch", "on"), + //resource.TestCheckResourceAttr("data.tencentcloud_cdn_domains.cdn_domain", "request_header.0.header_rules.#", "1"), ), }, }, }) } -const testAccCdnDomainInfo = ` -resource "tencentcloud_cdn_domain" "foo" { - domain = "test.zhaoshaona.com" - service_type = "web" - area = "mainland" - full_url_cache = false - range_origin_switch = "off" - - rule_cache{ - cache_time = 10000 - no_cache_switch="on" - re_validate="on" - } - - request_header{ - switch = "on" - - header_rules { - header_mode = "add" - header_name = "tf-header-name" - header_value = "tf-header-value" - rule_type = "all" - rule_paths = ["*"] - } - } - - origin { - origin_type = "ip" - origin_list = ["172.199.199.140"] - server_name = "test.zhaoshaona.com" - origin_pull_protocol = "follow" - } - - https_config { - https_switch = "on" - http2_switch = "on" - ocsp_stapling_switch = "on" - spdy_switch = "off" - verify_client = "off" - - server_certificate_config { - certificate_content = < 0 { + result = response.Response.DomainSet + } + + return +} diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go index 9635eff36b..0b8b03d163 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go @@ -254,7 +254,7 @@ func CompleteCommonParams(request Request, region string) { params["Action"] = request.GetAction() params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10) params["Nonce"] = strconv.Itoa(rand.Int()) - params["RequestClient"] = "SDK_GO_1.0.413" + params["RequestClient"] = "SDK_GO_1.0.414" } func ConstructParams(req Request) (err error) { diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/LICENSE b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/LICENSE new file mode 100644 index 0000000000..efc75a2253 --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2017-2018 Tencent Ltd. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/client.go new file mode 100644 index 0000000000..77265362b9 --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/client.go @@ -0,0 +1,1646 @@ +// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package v20180808 + +import ( + "context" + "errors" + "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common" + tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" + "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile" +) + +const APIVersion = "2018-08-08" + +type Client struct { + common.Client +} + +// Deprecated +func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) { + cpf := profile.NewClientProfile() + client = &Client{} + client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf) + return +} + +func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) { + client = &Client{} + client.Init(region). + WithCredential(credential). + WithProfile(clientProfile) + return +} + + +func NewBatchModifyDomainInfoRequest() (request *BatchModifyDomainInfoRequest) { + request = &BatchModifyDomainInfoRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "BatchModifyDomainInfo") + + + return +} + +func NewBatchModifyDomainInfoResponse() (response *BatchModifyDomainInfoResponse) { + response = &BatchModifyDomainInfoResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// BatchModifyDomainInfo +// 本接口 ( BatchModifyDomainInfo ) 用于批量域名信息修改 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_APPROVEDTEMPLATENOTFOUND = "ResourceNotFound.ApprovedTemplateNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) BatchModifyDomainInfo(request *BatchModifyDomainInfoRequest) (response *BatchModifyDomainInfoResponse, err error) { + return c.BatchModifyDomainInfoWithContext(context.Background(), request) +} + +// BatchModifyDomainInfo +// 本接口 ( BatchModifyDomainInfo ) 用于批量域名信息修改 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_APPROVEDTEMPLATENOTFOUND = "ResourceNotFound.ApprovedTemplateNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) BatchModifyDomainInfoWithContext(ctx context.Context, request *BatchModifyDomainInfoRequest) (response *BatchModifyDomainInfoResponse, err error) { + if request == nil { + request = NewBatchModifyDomainInfoRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("BatchModifyDomainInfo require credential") + } + + request.SetContext(ctx) + + response = NewBatchModifyDomainInfoResponse() + err = c.Send(request, response) + return +} + +func NewCheckBatchStatusRequest() (request *CheckBatchStatusRequest) { + request = &CheckBatchStatusRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "CheckBatchStatus") + + + return +} + +func NewCheckBatchStatusResponse() (response *CheckBatchStatusResponse) { + response = &CheckBatchStatusResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CheckBatchStatus +// 本接口 ( CheckBatchStatus ) 用于查询批量操作日志状态 。 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) CheckBatchStatus(request *CheckBatchStatusRequest) (response *CheckBatchStatusResponse, err error) { + return c.CheckBatchStatusWithContext(context.Background(), request) +} + +// CheckBatchStatus +// 本接口 ( CheckBatchStatus ) 用于查询批量操作日志状态 。 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) CheckBatchStatusWithContext(ctx context.Context, request *CheckBatchStatusRequest) (response *CheckBatchStatusResponse, err error) { + if request == nil { + request = NewCheckBatchStatusRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CheckBatchStatus require credential") + } + + request.SetContext(ctx) + + response = NewCheckBatchStatusResponse() + err = c.Send(request, response) + return +} + +func NewCheckDomainRequest() (request *CheckDomainRequest) { + request = &CheckDomainRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "CheckDomain") + + + return +} + +func NewCheckDomainResponse() (response *CheckDomainResponse) { + response = &CheckDomainResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CheckDomain +// 检查域名是否可以注册。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_CHECKDOMAINFAILED = "FailedOperation.CheckDomainFailed" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINNAMEISINVALID = "InvalidParameter.DomainNameIsInvalid" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +func (c *Client) CheckDomain(request *CheckDomainRequest) (response *CheckDomainResponse, err error) { + return c.CheckDomainWithContext(context.Background(), request) +} + +// CheckDomain +// 检查域名是否可以注册。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_CHECKDOMAINFAILED = "FailedOperation.CheckDomainFailed" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINNAMEISINVALID = "InvalidParameter.DomainNameIsInvalid" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +func (c *Client) CheckDomainWithContext(ctx context.Context, request *CheckDomainRequest) (response *CheckDomainResponse, err error) { + if request == nil { + request = NewCheckDomainRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CheckDomain require credential") + } + + request.SetContext(ctx) + + response = NewCheckDomainResponse() + err = c.Send(request, response) + return +} + +func NewCreateDomainBatchRequest() (request *CreateDomainBatchRequest) { + request = &CreateDomainBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "CreateDomainBatch") + + + return +} + +func NewCreateDomainBatchResponse() (response *CreateDomainBatchResponse) { + response = &CreateDomainBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateDomainBatch +// 本接口 ( CreateDomainBatch ) 用于批量域名注册 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_REGISTERDOMAIN = "FailedOperation.RegisterDomain" +// FAILEDOPERATION_REGISTERDOMAINFAILED = "FailedOperation.RegisterDomainFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CUSTOMDNSNOTALLOWED = "InvalidParameter.CustomDnsNotAllowed" +// INVALIDPARAMETER_PACKAGERESOURCEIDINVALID = "InvalidParameter.PackageResourceIdInvalid" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_APPROVEDTEMPLATENOTFOUND = "ResourceNotFound.ApprovedTemplateNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) CreateDomainBatch(request *CreateDomainBatchRequest) (response *CreateDomainBatchResponse, err error) { + return c.CreateDomainBatchWithContext(context.Background(), request) +} + +// CreateDomainBatch +// 本接口 ( CreateDomainBatch ) 用于批量域名注册 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_REGISTERDOMAIN = "FailedOperation.RegisterDomain" +// FAILEDOPERATION_REGISTERDOMAINFAILED = "FailedOperation.RegisterDomainFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CUSTOMDNSNOTALLOWED = "InvalidParameter.CustomDnsNotAllowed" +// INVALIDPARAMETER_PACKAGERESOURCEIDINVALID = "InvalidParameter.PackageResourceIdInvalid" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_APPROVEDTEMPLATENOTFOUND = "ResourceNotFound.ApprovedTemplateNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) CreateDomainBatchWithContext(ctx context.Context, request *CreateDomainBatchRequest) (response *CreateDomainBatchResponse, err error) { + if request == nil { + request = NewCreateDomainBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateDomainBatch require credential") + } + + request.SetContext(ctx) + + response = NewCreateDomainBatchResponse() + err = c.Send(request, response) + return +} + +func NewCreatePhoneEmailRequest() (request *CreatePhoneEmailRequest) { + request = &CreatePhoneEmailRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "CreatePhoneEmail") + + + return +} + +func NewCreatePhoneEmailResponse() (response *CreatePhoneEmailResponse) { + response = &CreatePhoneEmailResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreatePhoneEmail +// 此接口用于创建有效的手机、邮箱 +// +// 可能返回的错误码: +// FAILEDOPERATION_DUPLICATEPHONEEMAIL = "FailedOperation.DuplicatePhoneEmail" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_CODETYPEISINVALID = "InvalidParameter.CodeTypeIsInvalid" +// INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" +// INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" +// INVALIDPARAMETER_VERIFYCODEISINVALID = "InvalidParameter.VerifyCodeIsInvalid" +func (c *Client) CreatePhoneEmail(request *CreatePhoneEmailRequest) (response *CreatePhoneEmailResponse, err error) { + return c.CreatePhoneEmailWithContext(context.Background(), request) +} + +// CreatePhoneEmail +// 此接口用于创建有效的手机、邮箱 +// +// 可能返回的错误码: +// FAILEDOPERATION_DUPLICATEPHONEEMAIL = "FailedOperation.DuplicatePhoneEmail" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_CODETYPEISINVALID = "InvalidParameter.CodeTypeIsInvalid" +// INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" +// INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" +// INVALIDPARAMETER_VERIFYCODEISINVALID = "InvalidParameter.VerifyCodeIsInvalid" +func (c *Client) CreatePhoneEmailWithContext(ctx context.Context, request *CreatePhoneEmailRequest) (response *CreatePhoneEmailResponse, err error) { + if request == nil { + request = NewCreatePhoneEmailRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreatePhoneEmail require credential") + } + + request.SetContext(ctx) + + response = NewCreatePhoneEmailResponse() + err = c.Send(request, response) + return +} + +func NewCreateTemplateRequest() (request *CreateTemplateRequest) { + request = &CreateTemplateRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "CreateTemplate") + + + return +} + +func NewCreateTemplateResponse() (response *CreateTemplateResponse) { + response = &CreateTemplateResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateTemplate +// 本接口 ( CreateTemplate ) 用于添加域名信息模板 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_CREATETEMPLATEFAILED = "FailedOperation.CreateTemplateFailed" +// FAILEDOPERATION_DESCRIBEDOMAINLISTFAILED = "FailedOperation.DescribeDomainListFailed" +// FAILEDOPERATION_DESCRIBETEMPLATEFAILED = "FailedOperation.DescribeTemplateFailed" +// FAILEDOPERATION_TEMPLATEMAXNUMFAILED = "FailedOperation.TemplateMaxNumFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CERTIFICATECODEISINVALID = "InvalidParameter.CertificateCodeIsInvalid" +// INVALIDPARAMETER_CERTIFICATEIMAGEISINVALID = "InvalidParameter.CertificateImageIsInvalid" +// INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" +// INVALIDPARAMETER_EMAILISUNVERIFIED = "InvalidParameter.EmailIsUnverified" +// INVALIDPARAMETER_NAMEISINVALID = "InvalidParameter.NameIsInvalid" +// INVALIDPARAMETER_NAMEISKEYWORD = "InvalidParameter.NameIsKeyword" +// INVALIDPARAMETER_ORGISINVALID = "InvalidParameter.OrgIsInvalid" +// INVALIDPARAMETER_ORGISKEYWORD = "InvalidParameter.OrgIsKeyword" +// INVALIDPARAMETER_REPTYPEISINVALID = "InvalidParameter.RepTypeIsInvalid" +// INVALIDPARAMETER_STREETISINVALID = "InvalidParameter.StreetIsInvalid" +// INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" +// INVALIDPARAMETER_TELEPHONEISUNVERIFIED = "InvalidParameter.TelephoneIsUnverified" +// INVALIDPARAMETER_USERTYPEISINVALID = "InvalidParameter.UserTypeIsInvalid" +// INVALIDPARAMETER_ZIPCODEISINVALID = "InvalidParameter.ZipCodeIsInvalid" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// MISSINGPARAMETER_TEMPLATEIDISEXIST = "MissingParameter.TemplateIdIsExist" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) CreateTemplate(request *CreateTemplateRequest) (response *CreateTemplateResponse, err error) { + return c.CreateTemplateWithContext(context.Background(), request) +} + +// CreateTemplate +// 本接口 ( CreateTemplate ) 用于添加域名信息模板 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_CREATETEMPLATEFAILED = "FailedOperation.CreateTemplateFailed" +// FAILEDOPERATION_DESCRIBEDOMAINLISTFAILED = "FailedOperation.DescribeDomainListFailed" +// FAILEDOPERATION_DESCRIBETEMPLATEFAILED = "FailedOperation.DescribeTemplateFailed" +// FAILEDOPERATION_TEMPLATEMAXNUMFAILED = "FailedOperation.TemplateMaxNumFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_CERTIFICATECODEISINVALID = "InvalidParameter.CertificateCodeIsInvalid" +// INVALIDPARAMETER_CERTIFICATEIMAGEISINVALID = "InvalidParameter.CertificateImageIsInvalid" +// INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" +// INVALIDPARAMETER_EMAILISUNVERIFIED = "InvalidParameter.EmailIsUnverified" +// INVALIDPARAMETER_NAMEISINVALID = "InvalidParameter.NameIsInvalid" +// INVALIDPARAMETER_NAMEISKEYWORD = "InvalidParameter.NameIsKeyword" +// INVALIDPARAMETER_ORGISINVALID = "InvalidParameter.OrgIsInvalid" +// INVALIDPARAMETER_ORGISKEYWORD = "InvalidParameter.OrgIsKeyword" +// INVALIDPARAMETER_REPTYPEISINVALID = "InvalidParameter.RepTypeIsInvalid" +// INVALIDPARAMETER_STREETISINVALID = "InvalidParameter.StreetIsInvalid" +// INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" +// INVALIDPARAMETER_TELEPHONEISUNVERIFIED = "InvalidParameter.TelephoneIsUnverified" +// INVALIDPARAMETER_USERTYPEISINVALID = "InvalidParameter.UserTypeIsInvalid" +// INVALIDPARAMETER_ZIPCODEISINVALID = "InvalidParameter.ZipCodeIsInvalid" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// MISSINGPARAMETER_TEMPLATEIDISEXIST = "MissingParameter.TemplateIdIsExist" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) CreateTemplateWithContext(ctx context.Context, request *CreateTemplateRequest) (response *CreateTemplateResponse, err error) { + if request == nil { + request = NewCreateTemplateRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateTemplate require credential") + } + + request.SetContext(ctx) + + response = NewCreateTemplateResponse() + err = c.Send(request, response) + return +} + +func NewDeletePhoneEmailRequest() (request *DeletePhoneEmailRequest) { + request = &DeletePhoneEmailRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DeletePhoneEmail") + + + return +} + +func NewDeletePhoneEmailResponse() (response *DeletePhoneEmailResponse) { + response = &DeletePhoneEmailResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeletePhoneEmail +// 此接口用于删除已验证的手机邮箱 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" +// INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" +func (c *Client) DeletePhoneEmail(request *DeletePhoneEmailRequest) (response *DeletePhoneEmailResponse, err error) { + return c.DeletePhoneEmailWithContext(context.Background(), request) +} + +// DeletePhoneEmail +// 此接口用于删除已验证的手机邮箱 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" +// INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" +func (c *Client) DeletePhoneEmailWithContext(ctx context.Context, request *DeletePhoneEmailRequest) (response *DeletePhoneEmailResponse, err error) { + if request == nil { + request = NewDeletePhoneEmailRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeletePhoneEmail require credential") + } + + request.SetContext(ctx) + + response = NewDeletePhoneEmailResponse() + err = c.Send(request, response) + return +} + +func NewDeleteTemplateRequest() (request *DeleteTemplateRequest) { + request = &DeleteTemplateRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DeleteTemplate") + + + return +} + +func NewDeleteTemplateResponse() (response *DeleteTemplateResponse) { + response = &DeleteTemplateResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteTemplate +// 本接口 ( DeleteTemplate ) 用于删除信息模板。 +// +// 可能返回的错误码: +// FAILEDOPERATION_DELETETEMPLATEFAILED = "FailedOperation.DeleteTemplateFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) DeleteTemplate(request *DeleteTemplateRequest) (response *DeleteTemplateResponse, err error) { + return c.DeleteTemplateWithContext(context.Background(), request) +} + +// DeleteTemplate +// 本接口 ( DeleteTemplate ) 用于删除信息模板。 +// +// 可能返回的错误码: +// FAILEDOPERATION_DELETETEMPLATEFAILED = "FailedOperation.DeleteTemplateFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) DeleteTemplateWithContext(ctx context.Context, request *DeleteTemplateRequest) (response *DeleteTemplateResponse, err error) { + if request == nil { + request = NewDeleteTemplateRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteTemplate require credential") + } + + request.SetContext(ctx) + + response = NewDeleteTemplateResponse() + err = c.Send(request, response) + return +} + +func NewDescribeBatchOperationLogDetailsRequest() (request *DescribeBatchOperationLogDetailsRequest) { + request = &DescribeBatchOperationLogDetailsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribeBatchOperationLogDetails") + + + return +} + +func NewDescribeBatchOperationLogDetailsResponse() (response *DescribeBatchOperationLogDetailsResponse) { + response = &DescribeBatchOperationLogDetailsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeBatchOperationLogDetails +// 本接口 ( DescribeBatchOperationLogDetails ) 用于获取批量操作日志详情。 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribeBatchOperationLogDetails(request *DescribeBatchOperationLogDetailsRequest) (response *DescribeBatchOperationLogDetailsResponse, err error) { + return c.DescribeBatchOperationLogDetailsWithContext(context.Background(), request) +} + +// DescribeBatchOperationLogDetails +// 本接口 ( DescribeBatchOperationLogDetails ) 用于获取批量操作日志详情。 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribeBatchOperationLogDetailsWithContext(ctx context.Context, request *DescribeBatchOperationLogDetailsRequest) (response *DescribeBatchOperationLogDetailsResponse, err error) { + if request == nil { + request = NewDescribeBatchOperationLogDetailsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeBatchOperationLogDetails require credential") + } + + request.SetContext(ctx) + + response = NewDescribeBatchOperationLogDetailsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeBatchOperationLogsRequest() (request *DescribeBatchOperationLogsRequest) { + request = &DescribeBatchOperationLogsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribeBatchOperationLogs") + + + return +} + +func NewDescribeBatchOperationLogsResponse() (response *DescribeBatchOperationLogsResponse) { + response = &DescribeBatchOperationLogsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeBatchOperationLogs +// 本接口 ( DescribeBatchOperationLogs ) 用于获取批量操作日志 。 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribeBatchOperationLogs(request *DescribeBatchOperationLogsRequest) (response *DescribeBatchOperationLogsResponse, err error) { + return c.DescribeBatchOperationLogsWithContext(context.Background(), request) +} + +// DescribeBatchOperationLogs +// 本接口 ( DescribeBatchOperationLogs ) 用于获取批量操作日志 。 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribeBatchOperationLogsWithContext(ctx context.Context, request *DescribeBatchOperationLogsRequest) (response *DescribeBatchOperationLogsResponse, err error) { + if request == nil { + request = NewDescribeBatchOperationLogsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeBatchOperationLogs require credential") + } + + request.SetContext(ctx) + + response = NewDescribeBatchOperationLogsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeDomainBaseInfoRequest() (request *DescribeDomainBaseInfoRequest) { + request = &DescribeDomainBaseInfoRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribeDomainBaseInfo") + + + return +} + +func NewDescribeDomainBaseInfoResponse() (response *DescribeDomainBaseInfoResponse) { + response = &DescribeDomainBaseInfoResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeDomainBaseInfo +// 本接口 ( DescribeDomainBaseInfo) 获取域名基本信息。 +// +// 可能返回的错误码: +// FAILEDOPERATION_CHECKDOMAINFAILED = "FailedOperation.CheckDomainFailed" +// FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND_DOMAINNOTFOUND = "ResourceNotFound.DomainNotFound" +func (c *Client) DescribeDomainBaseInfo(request *DescribeDomainBaseInfoRequest) (response *DescribeDomainBaseInfoResponse, err error) { + return c.DescribeDomainBaseInfoWithContext(context.Background(), request) +} + +// DescribeDomainBaseInfo +// 本接口 ( DescribeDomainBaseInfo) 获取域名基本信息。 +// +// 可能返回的错误码: +// FAILEDOPERATION_CHECKDOMAINFAILED = "FailedOperation.CheckDomainFailed" +// FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND_DOMAINNOTFOUND = "ResourceNotFound.DomainNotFound" +func (c *Client) DescribeDomainBaseInfoWithContext(ctx context.Context, request *DescribeDomainBaseInfoRequest) (response *DescribeDomainBaseInfoResponse, err error) { + if request == nil { + request = NewDescribeDomainBaseInfoRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainBaseInfo require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainBaseInfoResponse() + err = c.Send(request, response) + return +} + +func NewDescribeDomainNameListRequest() (request *DescribeDomainNameListRequest) { + request = &DescribeDomainNameListRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribeDomainNameList") + + + return +} + +func NewDescribeDomainNameListResponse() (response *DescribeDomainNameListResponse) { + response = &DescribeDomainNameListResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeDomainNameList +// 本接口 ( DescribeDomainNameList ) 我的域名列表。 +// +// 可能返回的错误码: +// FAILEDOPERATION_DESCRIBEDOMAINLISTFAILED = "FailedOperation.DescribeDomainListFailed" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribeDomainNameList(request *DescribeDomainNameListRequest) (response *DescribeDomainNameListResponse, err error) { + return c.DescribeDomainNameListWithContext(context.Background(), request) +} + +// DescribeDomainNameList +// 本接口 ( DescribeDomainNameList ) 我的域名列表。 +// +// 可能返回的错误码: +// FAILEDOPERATION_DESCRIBEDOMAINLISTFAILED = "FailedOperation.DescribeDomainListFailed" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribeDomainNameListWithContext(ctx context.Context, request *DescribeDomainNameListRequest) (response *DescribeDomainNameListResponse, err error) { + if request == nil { + request = NewDescribeDomainNameListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainNameList require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainNameListResponse() + err = c.Send(request, response) + return +} + +func NewDescribeDomainPriceListRequest() (request *DescribeDomainPriceListRequest) { + request = &DescribeDomainPriceListRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribeDomainPriceList") + + + return +} + +func NewDescribeDomainPriceListResponse() (response *DescribeDomainPriceListResponse) { + response = &DescribeDomainPriceListResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeDomainPriceList +// 按照域名后缀获取对应的价格列表 +// +// 可能返回的错误码: +// FAILEDOPERATION_DOMAINPRICELISTFAILED = "FailedOperation.DomainPriceListFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribeDomainPriceList(request *DescribeDomainPriceListRequest) (response *DescribeDomainPriceListResponse, err error) { + return c.DescribeDomainPriceListWithContext(context.Background(), request) +} + +// DescribeDomainPriceList +// 按照域名后缀获取对应的价格列表 +// +// 可能返回的错误码: +// FAILEDOPERATION_DOMAINPRICELISTFAILED = "FailedOperation.DomainPriceListFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribeDomainPriceListWithContext(ctx context.Context, request *DescribeDomainPriceListRequest) (response *DescribeDomainPriceListResponse, err error) { + if request == nil { + request = NewDescribeDomainPriceListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainPriceList require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainPriceListResponse() + err = c.Send(request, response) + return +} + +func NewDescribeDomainSimpleInfoRequest() (request *DescribeDomainSimpleInfoRequest) { + request = &DescribeDomainSimpleInfoRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribeDomainSimpleInfo") + + + return +} + +func NewDescribeDomainSimpleInfoResponse() (response *DescribeDomainSimpleInfoResponse) { + response = &DescribeDomainSimpleInfoResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeDomainSimpleInfo +// 获取域名实名信息详情 +// +// 可能返回的错误码: +// FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND_DOMAINNOTFOUND = "ResourceNotFound.DomainNotFound" +func (c *Client) DescribeDomainSimpleInfo(request *DescribeDomainSimpleInfoRequest) (response *DescribeDomainSimpleInfoResponse, err error) { + return c.DescribeDomainSimpleInfoWithContext(context.Background(), request) +} + +// DescribeDomainSimpleInfo +// 获取域名实名信息详情 +// +// 可能返回的错误码: +// FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// RESOURCENOTFOUND_DOMAINNOTFOUND = "ResourceNotFound.DomainNotFound" +func (c *Client) DescribeDomainSimpleInfoWithContext(ctx context.Context, request *DescribeDomainSimpleInfoRequest) (response *DescribeDomainSimpleInfoResponse, err error) { + if request == nil { + request = NewDescribeDomainSimpleInfoRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainSimpleInfo require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainSimpleInfoResponse() + err = c.Send(request, response) + return +} + +func NewDescribePhoneEmailListRequest() (request *DescribePhoneEmailListRequest) { + request = &DescribePhoneEmailListRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribePhoneEmailList") + + + return +} + +func NewDescribePhoneEmailListResponse() (response *DescribePhoneEmailListResponse) { + response = &DescribePhoneEmailListResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribePhoneEmailList +// 本接口用于获取已验证的手机邮箱列表 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribePhoneEmailList(request *DescribePhoneEmailListRequest) (response *DescribePhoneEmailListResponse, err error) { + return c.DescribePhoneEmailListWithContext(context.Background(), request) +} + +// DescribePhoneEmailList +// 本接口用于获取已验证的手机邮箱列表 +// +// 可能返回的错误码: +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +func (c *Client) DescribePhoneEmailListWithContext(ctx context.Context, request *DescribePhoneEmailListRequest) (response *DescribePhoneEmailListResponse, err error) { + if request == nil { + request = NewDescribePhoneEmailListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribePhoneEmailList require credential") + } + + request.SetContext(ctx) + + response = NewDescribePhoneEmailListResponse() + err = c.Send(request, response) + return +} + +func NewDescribeTemplateRequest() (request *DescribeTemplateRequest) { + request = &DescribeTemplateRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribeTemplate") + + + return +} + +func NewDescribeTemplateResponse() (response *DescribeTemplateResponse) { + response = &DescribeTemplateResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeTemplate +// 本接口 (DescribeTemplate) 用于获取模板信息。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DESCRIBETEMPLATEFAILED = "FailedOperation.DescribeTemplateFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) DescribeTemplate(request *DescribeTemplateRequest) (response *DescribeTemplateResponse, err error) { + return c.DescribeTemplateWithContext(context.Background(), request) +} + +// DescribeTemplate +// 本接口 (DescribeTemplate) 用于获取模板信息。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DESCRIBETEMPLATEFAILED = "FailedOperation.DescribeTemplateFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) DescribeTemplateWithContext(ctx context.Context, request *DescribeTemplateRequest) (response *DescribeTemplateResponse, err error) { + if request == nil { + request = NewDescribeTemplateRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeTemplate require credential") + } + + request.SetContext(ctx) + + response = NewDescribeTemplateResponse() + err = c.Send(request, response) + return +} + +func NewDescribeTemplateListRequest() (request *DescribeTemplateListRequest) { + request = &DescribeTemplateListRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "DescribeTemplateList") + + + return +} + +func NewDescribeTemplateListResponse() (response *DescribeTemplateListResponse) { + response = &DescribeTemplateListResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeTemplateList +// 本接口 (DescribeTemplateList) 用于获取信息模板列表。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DESCRIBETEMPLATEFAILED = "FailedOperation.DescribeTemplateFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DescribeTemplateList(request *DescribeTemplateListRequest) (response *DescribeTemplateListResponse, err error) { + return c.DescribeTemplateListWithContext(context.Background(), request) +} + +// DescribeTemplateList +// 本接口 (DescribeTemplateList) 用于获取信息模板列表。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DESCRIBETEMPLATEFAILED = "FailedOperation.DescribeTemplateFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DescribeTemplateListWithContext(ctx context.Context, request *DescribeTemplateListRequest) (response *DescribeTemplateListResponse, err error) { + if request == nil { + request = NewDescribeTemplateListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeTemplateList require credential") + } + + request.SetContext(ctx) + + response = NewDescribeTemplateListResponse() + err = c.Send(request, response) + return +} + +func NewModifyDomainDNSBatchRequest() (request *ModifyDomainDNSBatchRequest) { + request = &ModifyDomainDNSBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "ModifyDomainDNSBatch") + + + return +} + +func NewModifyDomainDNSBatchResponse() (response *ModifyDomainDNSBatchResponse) { + response = &ModifyDomainDNSBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifyDomainDNSBatch +// 本接口 ( ModifyDomainDNSBatch) 用于批量域名 DNS 修改 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_SETDOMAINDNSFAILED = "FailedOperation.SetDomainDnsFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINNAMEISINVALID = "InvalidParameter.DomainNameIsInvalid" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_DOMAINNOTFOUND = "ResourceNotFound.DomainNotFound" +// RESOURCEUNAVAILABLE_DOMAINISMODIFYINGDNS = "ResourceUnavailable.DomainIsModifyingDNS" +// UNSUPPORTEDOPERATION_MODIFYDOMAININFOUNSUPPORTED = "UnsupportedOperation.ModifyDomainInfoUnsupported" +// UNSUPPORTEDOPERATION_MODIFYDOMAINUNSUPPORTED = "UnsupportedOperation.ModifyDomainUnsupported" +func (c *Client) ModifyDomainDNSBatch(request *ModifyDomainDNSBatchRequest) (response *ModifyDomainDNSBatchResponse, err error) { + return c.ModifyDomainDNSBatchWithContext(context.Background(), request) +} + +// ModifyDomainDNSBatch +// 本接口 ( ModifyDomainDNSBatch) 用于批量域名 DNS 修改 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_SETDOMAINDNSFAILED = "FailedOperation.SetDomainDnsFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINNAMEISINVALID = "InvalidParameter.DomainNameIsInvalid" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_DOMAINNOTFOUND = "ResourceNotFound.DomainNotFound" +// RESOURCEUNAVAILABLE_DOMAINISMODIFYINGDNS = "ResourceUnavailable.DomainIsModifyingDNS" +// UNSUPPORTEDOPERATION_MODIFYDOMAININFOUNSUPPORTED = "UnsupportedOperation.ModifyDomainInfoUnsupported" +// UNSUPPORTEDOPERATION_MODIFYDOMAINUNSUPPORTED = "UnsupportedOperation.ModifyDomainUnsupported" +func (c *Client) ModifyDomainDNSBatchWithContext(ctx context.Context, request *ModifyDomainDNSBatchRequest) (response *ModifyDomainDNSBatchResponse, err error) { + if request == nil { + request = NewModifyDomainDNSBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyDomainDNSBatch require credential") + } + + request.SetContext(ctx) + + response = NewModifyDomainDNSBatchResponse() + err = c.Send(request, response) + return +} + +func NewModifyDomainOwnerBatchRequest() (request *ModifyDomainOwnerBatchRequest) { + request = &ModifyDomainOwnerBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "ModifyDomainOwnerBatch") + + + return +} + +func NewModifyDomainOwnerBatchResponse() (response *ModifyDomainOwnerBatchResponse) { + response = &ModifyDomainOwnerBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifyDomainOwnerBatch +// 本接口 ( ModifyDomainOwnerBatch) 用于域名批量账号间转移 。 +// +// 可能返回的错误码: +// FAILEDOPERATION_MODIFYDOMAINOWNERFAILED = "FailedOperation.ModifyDomainOwnerFailed" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCEUNAVAILABLE_DOMAINISMODIFYINGDNS = "ResourceUnavailable.DomainIsModifyingDNS" +// UNSUPPORTEDOPERATION_ACCOUNTREALNAME = "UnsupportedOperation.AccountRealName" +func (c *Client) ModifyDomainOwnerBatch(request *ModifyDomainOwnerBatchRequest) (response *ModifyDomainOwnerBatchResponse, err error) { + return c.ModifyDomainOwnerBatchWithContext(context.Background(), request) +} + +// ModifyDomainOwnerBatch +// 本接口 ( ModifyDomainOwnerBatch) 用于域名批量账号间转移 。 +// +// 可能返回的错误码: +// FAILEDOPERATION_MODIFYDOMAINOWNERFAILED = "FailedOperation.ModifyDomainOwnerFailed" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCEUNAVAILABLE_DOMAINISMODIFYINGDNS = "ResourceUnavailable.DomainIsModifyingDNS" +// UNSUPPORTEDOPERATION_ACCOUNTREALNAME = "UnsupportedOperation.AccountRealName" +func (c *Client) ModifyDomainOwnerBatchWithContext(ctx context.Context, request *ModifyDomainOwnerBatchRequest) (response *ModifyDomainOwnerBatchResponse, err error) { + if request == nil { + request = NewModifyDomainOwnerBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyDomainOwnerBatch require credential") + } + + request.SetContext(ctx) + + response = NewModifyDomainOwnerBatchResponse() + err = c.Send(request, response) + return +} + +func NewRenewDomainBatchRequest() (request *RenewDomainBatchRequest) { + request = &RenewDomainBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "RenewDomainBatch") + + + return +} + +func NewRenewDomainBatchResponse() (response *RenewDomainBatchResponse) { + response = &RenewDomainBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// RenewDomainBatch +// 本接口 ( RenewDomainBatch ) 用于批量续费域名 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) RenewDomainBatch(request *RenewDomainBatchRequest) (response *RenewDomainBatchResponse, err error) { + return c.RenewDomainBatchWithContext(context.Background(), request) +} + +// RenewDomainBatch +// 本接口 ( RenewDomainBatch ) 用于批量续费域名 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +func (c *Client) RenewDomainBatchWithContext(ctx context.Context, request *RenewDomainBatchRequest) (response *RenewDomainBatchResponse, err error) { + if request == nil { + request = NewRenewDomainBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("RenewDomainBatch require credential") + } + + request.SetContext(ctx) + + response = NewRenewDomainBatchResponse() + err = c.Send(request, response) + return +} + +func NewSendPhoneEmailCodeRequest() (request *SendPhoneEmailCodeRequest) { + request = &SendPhoneEmailCodeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "SendPhoneEmailCode") + + + return +} + +func NewSendPhoneEmailCodeResponse() (response *SendPhoneEmailCodeResponse) { + response = &SendPhoneEmailCodeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// SendPhoneEmailCode +// 此接口用于发送手机邮箱验证码。 +// +// 可能返回的错误码: +// FAILEDOPERATION_SENDTCBPHONEEMAILCODEFAILED = "FailedOperation.SendTcbPhoneEmailCodeFailed" +// FAILEDOPERATION_SENDVERIFYCODEISLIMITED = "FailedOperation.SendVerifyCodeIsLimited" +// FAILEDOPERATION_VERIFYUINISREALNAME = "FailedOperation.VerifyUinIsRealname" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_CODETYPEISINVALID = "InvalidParameter.CodeTypeIsInvalid" +// INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" +// INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" +// LIMITEXCEEDED_REQUESTLIMIT = "LimitExceeded.RequestLimit" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +func (c *Client) SendPhoneEmailCode(request *SendPhoneEmailCodeRequest) (response *SendPhoneEmailCodeResponse, err error) { + return c.SendPhoneEmailCodeWithContext(context.Background(), request) +} + +// SendPhoneEmailCode +// 此接口用于发送手机邮箱验证码。 +// +// 可能返回的错误码: +// FAILEDOPERATION_SENDTCBPHONEEMAILCODEFAILED = "FailedOperation.SendTcbPhoneEmailCodeFailed" +// FAILEDOPERATION_SENDVERIFYCODEISLIMITED = "FailedOperation.SendVerifyCodeIsLimited" +// FAILEDOPERATION_VERIFYUINISREALNAME = "FailedOperation.VerifyUinIsRealname" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_CODETYPEISINVALID = "InvalidParameter.CodeTypeIsInvalid" +// INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" +// INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" +// LIMITEXCEEDED_REQUESTLIMIT = "LimitExceeded.RequestLimit" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +func (c *Client) SendPhoneEmailCodeWithContext(ctx context.Context, request *SendPhoneEmailCodeRequest) (response *SendPhoneEmailCodeResponse, err error) { + if request == nil { + request = NewSendPhoneEmailCodeRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("SendPhoneEmailCode require credential") + } + + request.SetContext(ctx) + + response = NewSendPhoneEmailCodeResponse() + err = c.Send(request, response) + return +} + +func NewSetDomainAutoRenewRequest() (request *SetDomainAutoRenewRequest) { + request = &SetDomainAutoRenewRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "SetDomainAutoRenew") + + + return +} + +func NewSetDomainAutoRenewResponse() (response *SetDomainAutoRenewResponse) { + response = &SetDomainAutoRenewResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// SetDomainAutoRenew +// 本接口 ( SetDomainAutoRenew ) 用于设置域名自动续费。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_CHECKDOMAINFAILED = "FailedOperation.CheckDomainFailed" +// FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) SetDomainAutoRenew(request *SetDomainAutoRenewRequest) (response *SetDomainAutoRenewResponse, err error) { + return c.SetDomainAutoRenewWithContext(context.Background(), request) +} + +// SetDomainAutoRenew +// 本接口 ( SetDomainAutoRenew ) 用于设置域名自动续费。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_CHECKDOMAINFAILED = "FailedOperation.CheckDomainFailed" +// FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) SetDomainAutoRenewWithContext(ctx context.Context, request *SetDomainAutoRenewRequest) (response *SetDomainAutoRenewResponse, err error) { + if request == nil { + request = NewSetDomainAutoRenewRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("SetDomainAutoRenew require credential") + } + + request.SetContext(ctx) + + response = NewSetDomainAutoRenewResponse() + err = c.Send(request, response) + return +} + +func NewTransferInDomainBatchRequest() (request *TransferInDomainBatchRequest) { + request = &TransferInDomainBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "TransferInDomainBatch") + + + return +} + +func NewTransferInDomainBatchResponse() (response *TransferInDomainBatchResponse) { + response = &TransferInDomainBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// TransferInDomainBatch +// 本接口 ( TransferInDomainBatch ) 用于批量转入域名 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINNAMEISINVALID = "InvalidParameter.DomainNameIsInvalid" +// INVALIDPARAMETER_DUPLICATEDOMAINEXISTS = "InvalidParameter.DuplicateDomainExists" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_APPROVEDTEMPLATENOTFOUND = "ResourceNotFound.ApprovedTemplateNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +// RESOURCEUNAVAILABLE_DOMAINISMODIFYINGDNS = "ResourceUnavailable.DomainIsModifyingDNS" +func (c *Client) TransferInDomainBatch(request *TransferInDomainBatchRequest) (response *TransferInDomainBatchResponse, err error) { + return c.TransferInDomainBatchWithContext(context.Background(), request) +} + +// TransferInDomainBatch +// 本接口 ( TransferInDomainBatch ) 用于批量转入域名 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINNAMEISINVALID = "InvalidParameter.DomainNameIsInvalid" +// INVALIDPARAMETER_DUPLICATEDOMAINEXISTS = "InvalidParameter.DuplicateDomainExists" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +// RESOURCENOTFOUND_APPROVEDTEMPLATENOTFOUND = "ResourceNotFound.ApprovedTemplateNotFound" +// RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" +// RESOURCEUNAVAILABLE_DOMAINISMODIFYINGDNS = "ResourceUnavailable.DomainIsModifyingDNS" +func (c *Client) TransferInDomainBatchWithContext(ctx context.Context, request *TransferInDomainBatchRequest) (response *TransferInDomainBatchResponse, err error) { + if request == nil { + request = NewTransferInDomainBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("TransferInDomainBatch require credential") + } + + request.SetContext(ctx) + + response = NewTransferInDomainBatchResponse() + err = c.Send(request, response) + return +} + +func NewTransferProhibitionBatchRequest() (request *TransferProhibitionBatchRequest) { + request = &TransferProhibitionBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "TransferProhibitionBatch") + + + return +} + +func NewTransferProhibitionBatchResponse() (response *TransferProhibitionBatchResponse) { + response = &TransferProhibitionBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// TransferProhibitionBatch +// 本接口 ( TransferProhibitionBatch ) 用于批量禁止域名转移 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +func (c *Client) TransferProhibitionBatch(request *TransferProhibitionBatchRequest) (response *TransferProhibitionBatchResponse, err error) { + return c.TransferProhibitionBatchWithContext(context.Background(), request) +} + +// TransferProhibitionBatch +// 本接口 ( TransferProhibitionBatch ) 用于批量禁止域名转移 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +func (c *Client) TransferProhibitionBatchWithContext(ctx context.Context, request *TransferProhibitionBatchRequest) (response *TransferProhibitionBatchResponse, err error) { + if request == nil { + request = NewTransferProhibitionBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("TransferProhibitionBatch require credential") + } + + request.SetContext(ctx) + + response = NewTransferProhibitionBatchResponse() + err = c.Send(request, response) + return +} + +func NewUpdateProhibitionBatchRequest() (request *UpdateProhibitionBatchRequest) { + request = &UpdateProhibitionBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "UpdateProhibitionBatch") + + + return +} + +func NewUpdateProhibitionBatchResponse() (response *UpdateProhibitionBatchResponse) { + response = &UpdateProhibitionBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// UpdateProhibitionBatch +// 本接口 ( UpdateProhibitionBatch ) 用于批量禁止更新锁。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +func (c *Client) UpdateProhibitionBatch(request *UpdateProhibitionBatchRequest) (response *UpdateProhibitionBatchResponse, err error) { + return c.UpdateProhibitionBatchWithContext(context.Background(), request) +} + +// UpdateProhibitionBatch +// 本接口 ( UpdateProhibitionBatch ) 用于批量禁止更新锁。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// INTERNALERROR = "InternalError" +// INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" +// MISSINGPARAMETER = "MissingParameter" +// MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" +// MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" +// RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" +func (c *Client) UpdateProhibitionBatchWithContext(ctx context.Context, request *UpdateProhibitionBatchRequest) (response *UpdateProhibitionBatchResponse, err error) { + if request == nil { + request = NewUpdateProhibitionBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("UpdateProhibitionBatch require credential") + } + + request.SetContext(ctx) + + response = NewUpdateProhibitionBatchResponse() + err = c.Send(request, response) + return +} + +func NewUploadImageRequest() (request *UploadImageRequest) { + request = &UploadImageRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + request.Init().WithApiInfo("domain", APIVersion, "UploadImage") + + + return +} + +func NewUploadImageResponse() (response *UploadImageResponse) { + response = &UploadImageResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// UploadImage +// 本接口 ( UploadImage ) 用于证件图片上传 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" +// FAILEDOPERATION_UPLOADIMAGEFAILED = "FailedOperation.UploadImageFailed" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_IMAGEEXTINVALID = "InvalidParameter.ImageExtInvalid" +// INVALIDPARAMETER_IMAGEFILEISINVALID = "InvalidParameter.ImageFileIsInvalid" +// INVALIDPARAMETER_IMAGEFORMATISINVALID = "InvalidParameter.ImageFormatIsInvalid" +// INVALIDPARAMETER_IMAGESIZEBELOW = "InvalidParameter.ImageSizeBelow" +// INVALIDPARAMETER_IMAGESIZEEXCEED = "InvalidParameter.ImageSizeExceed" +// INVALIDPARAMETER_IMAGESIZELIMIT = "InvalidParameter.ImageSizeLimit" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UploadImage(request *UploadImageRequest) (response *UploadImageResponse, err error) { + return c.UploadImageWithContext(context.Background(), request) +} + +// UploadImage +// 本接口 ( UploadImage ) 用于证件图片上传 。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" +// FAILEDOPERATION_UPLOADIMAGEFAILED = "FailedOperation.UploadImageFailed" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_IMAGEEXTINVALID = "InvalidParameter.ImageExtInvalid" +// INVALIDPARAMETER_IMAGEFILEISINVALID = "InvalidParameter.ImageFileIsInvalid" +// INVALIDPARAMETER_IMAGEFORMATISINVALID = "InvalidParameter.ImageFormatIsInvalid" +// INVALIDPARAMETER_IMAGESIZEBELOW = "InvalidParameter.ImageSizeBelow" +// INVALIDPARAMETER_IMAGESIZEEXCEED = "InvalidParameter.ImageSizeExceed" +// INVALIDPARAMETER_IMAGESIZELIMIT = "InvalidParameter.ImageSizeLimit" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) UploadImageWithContext(ctx context.Context, request *UploadImageRequest) (response *UploadImageResponse, err error) { + if request == nil { + request = NewUploadImageRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("UploadImage require credential") + } + + request.SetContext(ctx) + + response = NewUploadImageResponse() + err = c.Send(request, response) + return +} diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/errors.go new file mode 100644 index 0000000000..4d8f9697fd --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/errors.go @@ -0,0 +1,211 @@ +// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package v20180808 + +const ( + // 此产品的特有错误码 + + // 操作失败。 + FAILEDOPERATION = "FailedOperation" + + // 域名查询失败,请稍后重试。 + FAILEDOPERATION_CHECKDOMAINFAILED = "FailedOperation.CheckDomainFailed" + + // 创建模板操作失败。 + FAILEDOPERATION_CREATETEMPLATEFAILED = "FailedOperation.CreateTemplateFailed" + + // 删除模版操作失败,请稍后重试。 + FAILEDOPERATION_DELETETEMPLATEFAILED = "FailedOperation.DeleteTemplateFailed" + + // 获取域名信息操作失败,请稍后重试。 + FAILEDOPERATION_DESCRIBEDOMAINFAILED = "FailedOperation.DescribeDomainFailed" + + // 获取域名信息操作失败,请稍后重试。 + FAILEDOPERATION_DESCRIBEDOMAINLISTFAILED = "FailedOperation.DescribeDomainListFailed" + + // 查询模板操作失败。 + FAILEDOPERATION_DESCRIBETEMPLATEFAILED = "FailedOperation.DescribeTemplateFailed" + + // 获取域名价格列表失败。 + FAILEDOPERATION_DOMAINPRICELISTFAILED = "FailedOperation.DomainPriceListFailed" + + // 当前账号下已有相同的手机/邮箱,无需重复添加。 + FAILEDOPERATION_DUPLICATEPHONEEMAIL = "FailedOperation.DuplicatePhoneEmail" + + // 域名过户失败。 + FAILEDOPERATION_MODIFYDOMAINOWNERFAILED = "FailedOperation.ModifyDomainOwnerFailed" + + // 域名注册操作失败,请稍后重试。 + FAILEDOPERATION_REGISTERDOMAIN = "FailedOperation.RegisterDomain" + + // 域名注册操作失败,请稍后重试。 + FAILEDOPERATION_REGISTERDOMAINFAILED = "FailedOperation.RegisterDomainFailed" + + // 当前账号为云开发(TCB)账号,无法使用验证功能,请切换登录小程序公众号后重新操作。 + FAILEDOPERATION_SENDTCBPHONEEMAILCODEFAILED = "FailedOperation.SendTcbPhoneEmailCodeFailed" + + // 发送验证码过于频繁,请稍后重试。 + FAILEDOPERATION_SENDVERIFYCODEISLIMITED = "FailedOperation.SendVerifyCodeIsLimited" + + // 修改 DNS 失败,请输入正确的 DNS 服务器地址。 + FAILEDOPERATION_SETDOMAINDNSFAILED = "FailedOperation.SetDomainDnsFailed" + + // 信息模板超过可用数量上限,建议删除已有模板后重试。 + FAILEDOPERATION_TEMPLATEMAXNUMFAILED = "FailedOperation.TemplateMaxNumFailed" + + // 上传图片操作失败。 + FAILEDOPERATION_UPLOADIMAGEFAILED = "FailedOperation.UploadImageFailed" + + // 当前用户未在官网进行实名操作。 + FAILEDOPERATION_VERIFYUINISREALNAME = "FailedOperation.VerifyUinIsRealname" + + // 内部错误。 + INTERNALERROR = "InternalError" + + // 网络错误,请稍后重试。 + INTERNALERROR_DOMAININTERNALERROR = "InternalError.DomainInternalError" + + // 参数错误。 + INVALIDPARAMETER = "InvalidParameter" + + // 资质信息输入不正确。 + INVALIDPARAMETER_CERTIFICATECODEISINVALID = "InvalidParameter.CertificateCodeIsInvalid" + + // 资质照片输入不正确。 + INVALIDPARAMETER_CERTIFICATEIMAGEISINVALID = "InvalidParameter.CertificateImageIsInvalid" + + // 类型只能为手机或者邮箱。 + INVALIDPARAMETER_CODETYPEISINVALID = "InvalidParameter.CodeTypeIsInvalid" + + // 无权限自定义DNS。 + INVALIDPARAMETER_CUSTOMDNSNOTALLOWED = "InvalidParameter.CustomDnsNotAllowed" + + // 域名输入为空或者不合法。 + INVALIDPARAMETER_DOMAINNAMEISINVALID = "InvalidParameter.DomainNameIsInvalid" + + // 存在重复域名,请检查后重新提交。 + INVALIDPARAMETER_DUPLICATEDOMAINEXISTS = "InvalidParameter.DuplicateDomainExists" + + // 邮箱为空或者不合法。 + INVALIDPARAMETER_EMAILISINVALID = "InvalidParameter.EmailIsInvalid" + + // 仅支持已验证的电子邮箱,请先在控制台创建后使用 + INVALIDPARAMETER_EMAILISUNVERIFIED = "InvalidParameter.EmailIsUnverified" + + // 不支持该格式文件,请上传 JPG、JPEG 格式图片(可使用第三方图片格式转换工具)。 + INVALIDPARAMETER_IMAGEEXTINVALID = "InvalidParameter.ImageExtInvalid" + + // 上传的照片参数为空或者不合法。 + INVALIDPARAMETER_IMAGEFILEISINVALID = "InvalidParameter.ImageFileIsInvalid" + + // 非标准的 JPG、JPEG 格式图片,请使用工具转换格式后重新上传(可使用第三方图片格式转换工具)。 + INVALIDPARAMETER_IMAGEFORMATISINVALID = "InvalidParameter.ImageFormatIsInvalid" + + // 图片大小低于最小限制(55KB),请重新上传。 + INVALIDPARAMETER_IMAGESIZEBELOW = "InvalidParameter.ImageSizeBelow" + + // 图片过大,请减小后重试。 + INVALIDPARAMETER_IMAGESIZEEXCEED = "InvalidParameter.ImageSizeExceed" + + // 图片大小超过限制(1M),请重新上传。 + INVALIDPARAMETER_IMAGESIZELIMIT = "InvalidParameter.ImageSizeLimit" + + // 联系人为空或者不合法。 + INVALIDPARAMETER_NAMEISINVALID = "InvalidParameter.NameIsInvalid" + + // 联系人填写有误,或因其他原因无法使用,请更换其他联系人。 + INVALIDPARAMETER_NAMEISKEYWORD = "InvalidParameter.NameIsKeyword" + + // 注册人为空或者不合法。 + INVALIDPARAMETER_ORGISINVALID = "InvalidParameter.OrgIsInvalid" + + // 域名所有者填写有误,或因其他原因无法使用,请更换其他域名所有者。 + INVALIDPARAMETER_ORGISKEYWORD = "InvalidParameter.OrgIsKeyword" + + // 特惠包ID无效。 + INVALIDPARAMETER_PACKAGERESOURCEIDINVALID = "InvalidParameter.PackageResourceIdInvalid" + + // 请求类型错误。 + INVALIDPARAMETER_REPTYPEISINVALID = "InvalidParameter.RepTypeIsInvalid" + + // 地址有误,请传入正确的地址。 + INVALIDPARAMETER_STREETISINVALID = "InvalidParameter.StreetIsInvalid" + + // 电话为空或者不合法。 + INVALIDPARAMETER_TELEPHONEISINVALID = "InvalidParameter.TelephoneIsInvalid" + + // 仅支持已验证的手机号码,请先在控制台创建后使用。 + INVALIDPARAMETER_TELEPHONEISUNVERIFIED = "InvalidParameter.TelephoneIsUnverified" + + // 域名数量不能超过4000个。 + INVALIDPARAMETER_UPTO4000 = "InvalidParameter.UpTo4000" + + // 用户类型为空或者不合法。 + INVALIDPARAMETER_USERTYPEISINVALID = "InvalidParameter.UserTypeIsInvalid" + + // 验证码错误,请重新输入。 + INVALIDPARAMETER_VERIFYCODEISINVALID = "InvalidParameter.VerifyCodeIsInvalid" + + // 邮编为空或者不合法。 + INVALIDPARAMETER_ZIPCODEISINVALID = "InvalidParameter.ZipCodeIsInvalid" + + // 请求频率超过限制。 + LIMITEXCEEDED_REQUESTLIMIT = "LimitExceeded.RequestLimit" + + // 缺少参数错误。 + MISSINGPARAMETER = "MissingParameter" + + // 域名不能为空。 + MISSINGPARAMETER_DOMAINISEMPTY = "MissingParameter.DomainIsEmpty" + + // 请求数据不能为空。 + MISSINGPARAMETER_REPDATAISNONE = "MissingParameter.RepDataIsNone" + + // 模板ID为空或者不合法。 + MISSINGPARAMETER_TEMPLATEIDISEMPTY = "MissingParameter.TemplateIdIsEmpty" + + // 模板已存在。 + MISSINGPARAMETER_TEMPLATEIDISEXIST = "MissingParameter.TemplateIdIsExist" + + // 请求的次数超过了频率限制。 + REQUESTLIMITEXCEEDED = "RequestLimitExceeded" + + // 当前正在执行中的任务过多,请稍后再提交新的任务。 + RESOURCEINSUFFICIENT_OVERWORK = "ResourceInsufficient.Overwork" + + // 资源不存在。 + RESOURCENOTFOUND = "ResourceNotFound" + + // 模板未实名。 + RESOURCENOTFOUND_APPROVEDTEMPLATENOTFOUND = "ResourceNotFound.ApprovedTemplateNotFound" + + // 域名地址有误,请输入正确的域名地址。 + RESOURCENOTFOUND_DOMAINNOTFOUND = "ResourceNotFound.DomainNotFound" + + // 模板信息有误,请输入正确的信息。 + RESOURCENOTFOUND_TEMPLATENOTFOUND = "ResourceNotFound.TemplateNotFound" + + // 该域名已有同类型操作未完成,无法执行该操作。 + RESOURCEUNAVAILABLE_DOMAINISMODIFYINGDNS = "ResourceUnavailable.DomainIsModifyingDNS" + + // 账户实名认证未通过。 + UNSUPPORTEDOPERATION_ACCOUNTREALNAME = "UnsupportedOperation.AccountRealName" + + // 当前域名状态不支持修改。 + UNSUPPORTEDOPERATION_MODIFYDOMAININFOUNSUPPORTED = "UnsupportedOperation.ModifyDomainInfoUnsupported" + + // 当前域名状态不支持修改。 + UNSUPPORTEDOPERATION_MODIFYDOMAINUNSUPPORTED = "UnsupportedOperation.ModifyDomainUnsupported" +) diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/models.go new file mode 100644 index 0000000000..e47529095d --- /dev/null +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808/models.go @@ -0,0 +1,1993 @@ +// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package v20180808 + +import ( + "encoding/json" + tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" + tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" +) + +type BatchModifyDomainInfoRequest struct { + *tchttp.BaseRequest + + // 批量修改的域名。 + Domains []*string `json:"Domains,omitempty" name:"Domains"` + + // 模板ID。 + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // true: 开启60天内禁止转移注册商锁定 + // false:关闭60天内禁止转移注册商锁定 + // 默认 true + LockTransfer *bool `json:"LockTransfer,omitempty" name:"LockTransfer"` +} + +func (r *BatchModifyDomainInfoRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *BatchModifyDomainInfoRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domains") + delete(f, "TemplateId") + delete(f, "LockTransfer") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BatchModifyDomainInfoRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type BatchModifyDomainInfoResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 日志ID + LogId *int64 `json:"LogId,omitempty" name:"LogId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *BatchModifyDomainInfoResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *BatchModifyDomainInfoResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type BatchStatus struct { + + // 批量任务id + LogId *uint64 `json:"LogId,omitempty" name:"LogId"` + + // 批量任务状态 doing:进行中 success:成功 failed:失败 partial_success:部分成功 + Status *string `json:"Status,omitempty" name:"Status"` + + // 批量任务类型 + BatchAction *string `json:"BatchAction,omitempty" name:"BatchAction"` +} + +type CertificateInfo struct { + + // 证件号码。 + CertificateCode *string `json:"CertificateCode,omitempty" name:"CertificateCode"` + + // 证件类型。 + // SFZ: 身份证。 + // HZ: 护照。 + // TXZ: 中国港澳居民来往内地通行证。 + // TWSFZ: 中国台湾居民来往大陆通行证。 + // GWSFZ: 外国人永久居留身份证。 + // ORG: 组织机构代码证 + // YYZZ: 工商营业执照。 + // TYDMZ: 统一社会信用代码证书。 + // BDDH: 部队代号 + // JDXKZ: 军队单位对外有偿服务许可证。 + // SYZS: 事业单位法定代表人证书。 + // GWCZDJZ: 外国企业常驻代表机构登记证。 + // STDJZ: 社会团体法定代表人登记证书。 + // ZJDJZ: 宗教活动场所登记证。 + // MBDJZ: 民办非企业单位登记证书。 + // JJDJZ: 基金会法定代表人登记证书。 + // LSXKZ: 律师事务所执业许可证。 + // GWZHDJZ: 外国在华文化中心登记证。 + // GWLYDJZ: 外国政府旅游部门常驻代表机构批准登记证。 + // SFXKZ: 司法鉴定许可证 + // GWJGZJ: 外国机构证件。 + // SHFWJGZ: 社会服务机构登记证书。 + // MBXXXKZ: 民办学校办学许可证。 + // YLJGXKZ: 医疗机构执业许可证。 + // GAJZZ: 中国港澳居住证。 + // TWJZZ: 中国台湾居住证。 + // QTTYDM: 其他-统一社会信用代码证书。 + // GZJGZY: 公证机构执业证。 + CertificateType *string `json:"CertificateType,omitempty" name:"CertificateType"` + + // 证件照片地址。 + ImgUrl *string `json:"ImgUrl,omitempty" name:"ImgUrl"` +} + +type CheckBatchStatusRequest struct { + *tchttp.BaseRequest + + // 操作日志 ID数组,最多 200 个 + LogIds []*uint64 `json:"LogIds,omitempty" name:"LogIds"` +} + +func (r *CheckBatchStatusRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CheckBatchStatusRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "LogIds") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CheckBatchStatusRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type CheckBatchStatusResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 批量任务状态集 + StatusSet []*BatchStatus `json:"StatusSet,omitempty" name:"StatusSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CheckBatchStatusResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CheckBatchStatusResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CheckDomainRequest struct { + *tchttp.BaseRequest + + // 所查询域名名称 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 年限。该参数为空时无法查询溢价词域名 + Period *string `json:"Period,omitempty" name:"Period"` +} + +func (r *CheckDomainRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CheckDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DomainName") + delete(f, "Period") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CheckDomainRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type CheckDomainResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 所查询域名名称 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 是否能够注册 + Available *bool `json:"Available,omitempty" name:"Available"` + + // 不能注册原因 + Reason *string `json:"Reason,omitempty" name:"Reason"` + + // 是否是溢价词 + Premium *bool `json:"Premium,omitempty" name:"Premium"` + + // 域名价格 + Price *uint64 `json:"Price,omitempty" name:"Price"` + + // 是否是敏感词 + BlackWord *bool `json:"BlackWord,omitempty" name:"BlackWord"` + + // 溢价词描述 + // 注意:此字段可能返回 null,表示取不到有效值。 + Describe *string `json:"Describe,omitempty" name:"Describe"` + + // 溢价词的续费价格 + // 注意:此字段可能返回 null,表示取不到有效值。 + FeeRenew *uint64 `json:"FeeRenew,omitempty" name:"FeeRenew"` + + // 域名真实价格, 溢价词时价格跟年限有关,非溢价词时价格为1年的价格 + // 注意:此字段可能返回 null,表示取不到有效值。 + RealPrice *uint64 `json:"RealPrice,omitempty" name:"RealPrice"` + + // 溢价词的转入价格 + // 注意:此字段可能返回 null,表示取不到有效值。 + FeeTransfer *uint64 `json:"FeeTransfer,omitempty" name:"FeeTransfer"` + + // 溢价词的赎回价格 + FeeRestore *uint64 `json:"FeeRestore,omitempty" name:"FeeRestore"` + + // 检测年限 + Period *uint64 `json:"Period,omitempty" name:"Period"` + + // 是否支持北京备案 true 支持 false 不支持 + RecordSupport *bool `json:"RecordSupport,omitempty" name:"RecordSupport"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CheckDomainResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CheckDomainResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ContactInfo struct { + + // 注册人(中文) + OrganizationNameCN *string `json:"OrganizationNameCN,omitempty" name:"OrganizationNameCN"` + + // 注册人(英文) + OrganizationName *string `json:"OrganizationName,omitempty" name:"OrganizationName"` + + // 联系人(中文) + RegistrantNameCN *string `json:"RegistrantNameCN,omitempty" name:"RegistrantNameCN"` + + // 联系人(英文) + RegistrantName *string `json:"RegistrantName,omitempty" name:"RegistrantName"` + + // 省份(中文) + ProvinceCN *string `json:"ProvinceCN,omitempty" name:"ProvinceCN"` + + // 城市(中文) + CityCN *string `json:"CityCN,omitempty" name:"CityCN"` + + // 街道(中文) + StreetCN *string `json:"StreetCN,omitempty" name:"StreetCN"` + + // 街道(英文) + Street *string `json:"Street,omitempty" name:"Street"` + + // 国家(中文) + CountryCN *string `json:"CountryCN,omitempty" name:"CountryCN"` + + // 联系人手机号 + Telephone *string `json:"Telephone,omitempty" name:"Telephone"` + + // 联系人邮箱 + Email *string `json:"Email,omitempty" name:"Email"` + + // 邮编 + ZipCode *string `json:"ZipCode,omitempty" name:"ZipCode"` + + // 用户类型 E:组织, I:个人 + RegistrantType *string `json:"RegistrantType,omitempty" name:"RegistrantType"` + + // 省份(英文)。作为入参时可以不填 + Province *string `json:"Province,omitempty" name:"Province"` + + // 城市(英文)。作为入参时可以不填 + City *string `json:"City,omitempty" name:"City"` + + // 国家(英文)。作为入参时可以不填 + Country *string `json:"Country,omitempty" name:"Country"` +} + +type CreateDomainBatchRequest struct { + *tchttp.BaseRequest + + // 模板ID。详情请查看:[获取模板列表](https://cloud.tencent.com/document/product/242/48940) + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 购买域名的年限,可选值:[1-10] + Period *int64 `json:"Period,omitempty" name:"Period"` + + // 批量购买的域名,最多为4000个 + Domains []*string `json:"Domains,omitempty" name:"Domains"` + + // 付费模式 0手动在线付费,1使用余额付费,2使用特惠包 + PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` + + // 自动续费开关。有两个可选值: + // 0 表示关闭,不自动续费(默认值) + // 1 表示开启,将自动续费 + AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` + + // 使用的特惠包ID,PayMode为2时必填 + PackageResourceId *string `json:"PackageResourceId,omitempty" name:"PackageResourceId"` + + // 是否开启更新锁:0=默认不开启,1=开启 + UpdateProhibition *int64 `json:"UpdateProhibition,omitempty" name:"UpdateProhibition"` + + // 是否开启转移锁:0=默认不开启,1=开启 + TransferProhibition *int64 `json:"TransferProhibition,omitempty" name:"TransferProhibition"` +} + +func (r *CreateDomainBatchRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateDomainBatchRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TemplateId") + delete(f, "Period") + delete(f, "Domains") + delete(f, "PayMode") + delete(f, "AutoRenewFlag") + delete(f, "PackageResourceId") + delete(f, "UpdateProhibition") + delete(f, "TransferProhibition") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDomainBatchRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type CreateDomainBatchResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 批量日志ID + // 注意:此字段可能返回 null,表示取不到有效值。 + LogId *int64 `json:"LogId,omitempty" name:"LogId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateDomainBatchResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateDomainBatchResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreatePhoneEmailRequest struct { + *tchttp.BaseRequest + + // 手机号或者邮箱 + Code *string `json:"Code,omitempty" name:"Code"` + + // 1:手机 2:邮箱 + Type *uint64 `json:"Type,omitempty" name:"Type"` + + // 验证码 + VerifyCode *string `json:"VerifyCode,omitempty" name:"VerifyCode"` +} + +func (r *CreatePhoneEmailRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreatePhoneEmailRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Code") + delete(f, "Type") + delete(f, "VerifyCode") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreatePhoneEmailRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type CreatePhoneEmailResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreatePhoneEmailResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreatePhoneEmailResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type CreateTemplateRequest struct { + *tchttp.BaseRequest + + // 联系人信息 + ContactInfo *ContactInfo `json:"ContactInfo,omitempty" name:"ContactInfo"` + + // 证件信息 + CertificateInfo *CertificateInfo `json:"CertificateInfo,omitempty" name:"CertificateInfo"` +} + +func (r *CreateTemplateRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateTemplateRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ContactInfo") + delete(f, "CertificateInfo") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateTemplateRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type CreateTemplateResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 模板信息 + Template *TemplateInfo `json:"Template,omitempty" name:"Template"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *CreateTemplateResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateTemplateResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeletePhoneEmailRequest struct { + *tchttp.BaseRequest + + // 手机或者邮箱 + Code *string `json:"Code,omitempty" name:"Code"` + + // 1:手机 2:邮箱 + Type *uint64 `json:"Type,omitempty" name:"Type"` +} + +func (r *DeletePhoneEmailRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeletePhoneEmailRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Code") + delete(f, "Type") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeletePhoneEmailRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DeletePhoneEmailResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeletePhoneEmailResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeletePhoneEmailResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DeleteTemplateRequest struct { + *tchttp.BaseRequest + + // 模板ID + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` +} + +func (r *DeleteTemplateRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteTemplateRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TemplateId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteTemplateRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DeleteTemplateResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DeleteTemplateResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DeleteTemplateResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeBatchOperationLogDetailsRequest struct { + *tchttp.BaseRequest + + // 日志ID。 + LogId *int64 `json:"LogId,omitempty" name:"LogId"` + + // 偏移量,默认为0。 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为200。 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeBatchOperationLogDetailsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeBatchOperationLogDetailsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "LogId") + delete(f, "Offset") + delete(f, "Limit") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBatchOperationLogDetailsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribeBatchOperationLogDetailsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 总数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 日志详情列表。 + // 注意:此字段可能返回 null,表示取不到有效值。 + DomainBatchDetailSet []*DomainBatchDetailSet `json:"DomainBatchDetailSet,omitempty" name:"DomainBatchDetailSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeBatchOperationLogDetailsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeBatchOperationLogDetailsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeBatchOperationLogsRequest struct { + *tchttp.BaseRequest + + // 偏移量,默认为0。 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为200。 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeBatchOperationLogsRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeBatchOperationLogsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Offset") + delete(f, "Limit") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBatchOperationLogsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribeBatchOperationLogsResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 总数量 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 日志列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + DomainBatchLogSet []*DomainBatchLogSet `json:"DomainBatchLogSet,omitempty" name:"DomainBatchLogSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeBatchOperationLogsResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeBatchOperationLogsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDomainBaseInfoRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitempty" name:"Domain"` +} + +func (r *DescribeDomainBaseInfoRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDomainBaseInfoRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainBaseInfoRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDomainBaseInfoResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 域名信息 + DomainInfo *DomainBaseInfo `json:"DomainInfo,omitempty" name:"DomainInfo"` + + // 用户Uin + // 注意:此字段可能返回 null,表示取不到有效值。 + Uin *string `json:"Uin,omitempty" name:"Uin"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeDomainBaseInfoResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDomainBaseInfoResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDomainNameListRequest struct { + *tchttp.BaseRequest + + // 偏移量,默认为0 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,取值范围[1,100] + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + +func (r *DescribeDomainNameListRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDomainNameListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Offset") + delete(f, "Limit") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainNameListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDomainNameListResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 域名信息集合 + // 注意:此字段可能返回 null,表示取不到有效值。 + DomainSet []*DomainList `json:"DomainSet,omitempty" name:"DomainSet"` + + // 域名总数量 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeDomainNameListResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDomainNameListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDomainPriceListRequest struct { + *tchttp.BaseRequest + + // 查询价格的后缀列表。默认则为全部后缀 + TldList []*string `json:"TldList,omitempty" name:"TldList"` + + // 查询购买的年份,默认会列出所有年份的价格 + Year []*int64 `json:"Year,omitempty" name:"Year"` + + // 域名的购买类型:new 新购,renew 续费,redem 赎回,tran 转入 + Operation []*string `json:"Operation,omitempty" name:"Operation"` +} + +func (r *DescribeDomainPriceListRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDomainPriceListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TldList") + delete(f, "Year") + delete(f, "Operation") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainPriceListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDomainPriceListResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 域名价格列表 + PriceList []*PriceInfo `json:"PriceList,omitempty" name:"PriceList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeDomainPriceListResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDomainPriceListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDomainSimpleInfoRequest struct { + *tchttp.BaseRequest + + // 域名 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` +} + +func (r *DescribeDomainSimpleInfoRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDomainSimpleInfoRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DomainName") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainSimpleInfoRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribeDomainSimpleInfoResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 域名信息 + DomainInfo *DomainSimpleInfo `json:"DomainInfo,omitempty" name:"DomainInfo"` + + // 账号ID + Uin *string `json:"Uin,omitempty" name:"Uin"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeDomainSimpleInfoResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeDomainSimpleInfoResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribePhoneEmailListRequest struct { + *tchttp.BaseRequest + + // 0:所有类型 1:手机 2:邮箱,默认0 + Type *uint64 `json:"Type,omitempty" name:"Type"` + + // 偏移量,默认为0 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,取值范围[1,200] + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 手机或者邮箱精确搜索 + Code *string `json:"Code,omitempty" name:"Code"` +} + +func (r *DescribePhoneEmailListRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribePhoneEmailListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Type") + delete(f, "Offset") + delete(f, "Limit") + delete(f, "Code") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribePhoneEmailListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribePhoneEmailListResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 手机或者邮箱列表 + PhoneEmailList []*PhoneEmailData `json:"PhoneEmailList,omitempty" name:"PhoneEmailList"` + + // 总数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribePhoneEmailListResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribePhoneEmailListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeTemplateListRequest struct { + *tchttp.BaseRequest + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 用户注册类型,默认:all , 个人:I ,企业: E + Type *string `json:"Type,omitempty" name:"Type"` + + // 认证状态:未实名审核:NotUpload, 实名审核中:InAudit,已实名审核:Approved,实名审核失败:Reject,更新手机邮箱:NotVerified。 + Status *string `json:"Status,omitempty" name:"Status"` + + // 域名所有者筛选 + Keyword *string `json:"Keyword,omitempty" name:"Keyword"` +} + +func (r *DescribeTemplateListRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeTemplateListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Offset") + delete(f, "Limit") + delete(f, "Type") + delete(f, "Status") + delete(f, "Keyword") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTemplateListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribeTemplateListResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 模板数量。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 模板详细信息列表。 + TemplateSet []*TemplateInfo `json:"TemplateSet,omitempty" name:"TemplateSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeTemplateListResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeTemplateListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DescribeTemplateRequest struct { + *tchttp.BaseRequest + + // 模板ID + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` +} + +func (r *DescribeTemplateRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeTemplateRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "TemplateId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeTemplateRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type DescribeTemplateResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 模板信息 + Template *TemplateInfo `json:"Template,omitempty" name:"Template"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *DescribeTemplateResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *DescribeTemplateResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type DomainBaseInfo struct { + + // 域名资源ID。 + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 域名名称。 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 域名实名认证状态。 + // NotUpload:未实名认证 + // InAudit:实名审核中 + // Approved:实名审核通过 + // Reject:实名审核失败 + // NoAudit: 无需实名认证 + RealNameAuditStatus *string `json:"RealNameAuditStatus,omitempty" name:"RealNameAuditStatus"` + + // 域名实名认证不通过原因。 + // 注意:此字段可能返回 null,表示取不到有效值。 + RealNameAuditUnpassReason *string `json:"RealNameAuditUnpassReason,omitempty" name:"RealNameAuditUnpassReason"` + + // 域名命名审核状态。 + // NotAudit:命名审核未上传 + // Pending:命名审核待上传 + // Auditing:域名命名审核中 + // Approved:域名命名审核通过 + // Rejected:域名命名审核拒绝 + DomainNameAuditStatus *string `json:"DomainNameAuditStatus,omitempty" name:"DomainNameAuditStatus"` + + // 域名命名审核不通过原因。 + // 注意:此字段可能返回 null,表示取不到有效值。 + DomainNameAuditUnpassReason *string `json:"DomainNameAuditUnpassReason,omitempty" name:"DomainNameAuditUnpassReason"` + + // 注册时间。 + CreationDate *string `json:"CreationDate,omitempty" name:"CreationDate"` + + // 到期时间 + ExpirationDate *string `json:"ExpirationDate,omitempty" name:"ExpirationDate"` + + // 域名状态。 + // ok:正常 + // serverHold:注册局暂停解析 + // clientHold:注册商暂停解析 + // pendingTransfer:转移中 + // renewingPeriod:续费期 + // redemptionPeriod:偿还期 + // pendingDelete:删除期 + // serverTransferProhibited:注册局禁止转移 + // serverUpdateProhibited:注册局禁止更新 + // serverDeleteProhibited:注册局禁止删除 + // clientTransferProhibited:注册商禁止转移 + // clientUpdateProhibited:注册商禁止更新 + // clientDeleteProhibited:注册商禁止删除 + DomainStatus []*string `json:"DomainStatus,omitempty" name:"DomainStatus"` + + // 域名购买状态。 + // ok:正常 + // RegisterPending:待注册 + // RegisterDoing:注册中 + // RegisterFailed:注册失败 + // AboutToExpire: 即将过期 + // RenewPending:已进入续费期,需要进行续费 + // RenewDoing:续费中 + // RedemptionPending:已进入赎回期,需要进行续费 + // RedemptionDoing:赎回中 + // TransferPending:待转入中 + // TransferTransing:转入中 + // TransferFailed:转入失败 + BuyStatus *string `json:"BuyStatus,omitempty" name:"BuyStatus"` + + // 注册商类型 + // epp: DNSPod, Inc.(烟台帝思普网络科技有限公司) + // qcloud: Tencent Cloud Computing (Beijing) Limited Liability Company(腾讯云计算(北京)有限责任公司) + // yunxun: Guangzhou Yunxun Information Technology Co., Ltd.(广州云讯信息科技有限公司) + // xinnet: Xin Net Technology Corporation(北京新网数码信息技术有限公司) + RegistrarType *string `json:"RegistrarType,omitempty" name:"RegistrarType"` + + // 域名绑定的ns + NameServer []*string `json:"NameServer,omitempty" name:"NameServer"` + + // true:开启锁定 + // false:关闭锁定 + LockTransfer *bool `json:"LockTransfer,omitempty" name:"LockTransfer"` + + // 锁定结束时间 + LockEndTime *string `json:"LockEndTime,omitempty" name:"LockEndTime"` +} + +type DomainBatchDetailSet struct { + + // 详情ID + Id *int64 `json:"Id,omitempty" name:"Id"` + + // 域名 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 执行状态: + // doing 执行中。 + // failed 操作失败。 + // success 操作成功。 + Status *string `json:"Status,omitempty" name:"Status"` + + // 失败原因 + // 注意:此字段可能返回 null,表示取不到有效值。 + Reason *string `json:"Reason,omitempty" name:"Reason"` + + // 创建时间 + CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"` + + // 更新时间 + UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"` +} + +type DomainBatchLogSet struct { + + // 日志ID + LogId *int64 `json:"LogId,omitempty" name:"LogId"` + + // 数量 + Number *int64 `json:"Number,omitempty" name:"Number"` + + // 执行状态: + // doing 执行中。 + // done 执行完成。 + Status *string `json:"Status,omitempty" name:"Status"` + + // 提交时间 + CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"` +} + +type DomainList struct { + + // 是否是溢价域名: + // ture 是 + // false 不是 + IsPremium *bool `json:"IsPremium,omitempty" name:"IsPremium"` + + // 域名资源ID。 + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 域名名称。 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 是否已设置自动续费 。 + // 0:未设置 + // 1:已设置 + AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` + + // 注册时间。 + CreationDate *string `json:"CreationDate,omitempty" name:"CreationDate"` + + // 到期时间。 + ExpirationDate *string `json:"ExpirationDate,omitempty" name:"ExpirationDate"` + + // 域名后缀 + Tld *string `json:"Tld,omitempty" name:"Tld"` + + // 编码后的后缀(中文会进行编码) + CodeTld *string `json:"CodeTld,omitempty" name:"CodeTld"` + + // 域名购买状态。 + // ok:正常 + // AboutToExpire: 即将到期 + // RegisterPending:注册中 + // RegisterDoing:注册中 + // RegisterFailed:注册失败 + // RenewPending:续费期 + // RenewDoing:续费中 + // RedemptionPending:赎回期 + // RedemptionDoing:赎回中 + // TransferPending:转入中 + // TransferTransing:转入中 + // TransferFailed:转入失败 + BuyStatus *string `json:"BuyStatus,omitempty" name:"BuyStatus"` +} + +type DomainSimpleInfo struct { + + // 域名资源ID。 + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 域名名称。 + DomainName *string `json:"DomainName,omitempty" name:"DomainName"` + + // 域名实名认证状态。 + // NotUpload:未实名认证 + // InAudit:实名审核中 + // Approved:实名审核通过 + // Reject:实名审核失败 + // NoAudit: 无需实名认证 + RealNameAuditStatus *string `json:"RealNameAuditStatus,omitempty" name:"RealNameAuditStatus"` + + // 域名实名认证不通过原因。 + // 注意:此字段可能返回 null,表示取不到有效值。 + RealNameAuditUnpassReason *string `json:"RealNameAuditUnpassReason,omitempty" name:"RealNameAuditUnpassReason"` + + // 域名命名审核状态。 + // NotAudit:命名审核未上传 + // Pending:命名审核待上传 + // Auditing:域名命名审核中 + // Approved:域名命名审核通过 + // Rejected:域名命名审核拒绝 + DomainNameAuditStatus *string `json:"DomainNameAuditStatus,omitempty" name:"DomainNameAuditStatus"` + + // 域名命名审核不通过原因。 + // 注意:此字段可能返回 null,表示取不到有效值。 + DomainNameAuditUnpassReason *string `json:"DomainNameAuditUnpassReason,omitempty" name:"DomainNameAuditUnpassReason"` + + // 注册时间。 + CreationDate *string `json:"CreationDate,omitempty" name:"CreationDate"` + + // 到期时间 + ExpirationDate *string `json:"ExpirationDate,omitempty" name:"ExpirationDate"` + + // 域名状态。 + // ok:正常 + // serverHold:注册局暂停解析 + // clientHold:注册商暂停解析 + // pendingTransfer:转移中 + // renewingPeriod:续费期 + // redemptionPeriod:偿还期 + // pendingDelete:删除期 + // serverTransferProhibited:注册局禁止转移 + // serverUpdateProhibited:注册局禁止更新 + // serverDeleteProhibited:注册局禁止删除 + // clientTransferProhibited:注册商禁止转移 + // clientUpdateProhibited:注册商禁止更新 + // clientDeleteProhibited:注册商禁止删除 + DomainStatus []*string `json:"DomainStatus,omitempty" name:"DomainStatus"` + + // 域名购买状态。 + // ok:正常 + // RegisterPending:待注册 + // RegisterDoing:注册中 + // RegisterFailed:注册失败 + // AboutToExpire: 即将过期 + // RenewPending:已进入续费期,需要进行续费 + // RenewDoing:续费中 + // RedemptionPending:已进入赎回期,需要进行续费 + // RedemptionDoing:赎回中 + // TransferPending:待转入中 + // TransferTransing:转入中 + // TransferFailed:转入失败 + BuyStatus *string `json:"BuyStatus,omitempty" name:"BuyStatus"` + + // 注册商类型 + // epp: DNSPod, Inc.(烟台帝思普网络科技有限公司) + // qcloud: Tencent Cloud Computing (Beijing) Limited Liability Company(腾讯云计算(北京)有限责任公司) + // yunxun: Guangzhou Yunxun Information Technology Co., Ltd.(广州云讯信息科技有限公司) + // xinnet: Xin Net Technology Corporation(北京新网数码信息技术有限公司) + RegistrarType *string `json:"RegistrarType,omitempty" name:"RegistrarType"` + + // 域名绑定的ns + NameServer []*string `json:"NameServer,omitempty" name:"NameServer"` + + // true:开启锁定 + // false:关闭锁定 + LockTransfer *bool `json:"LockTransfer,omitempty" name:"LockTransfer"` + + // 锁定结束时间 + LockEndTime *string `json:"LockEndTime,omitempty" name:"LockEndTime"` + + // 认证类型:I=个人,E=企业 + RegistrantType *string `json:"RegistrantType,omitempty" name:"RegistrantType"` + + // 域名所有者,中文 + OrganizationNameCN *string `json:"OrganizationNameCN,omitempty" name:"OrganizationNameCN"` + + // 域名所有者,英文 + OrganizationName *string `json:"OrganizationName,omitempty" name:"OrganizationName"` + + // 域名联系人,中文 + RegistrantNameCN *string `json:"RegistrantNameCN,omitempty" name:"RegistrantNameCN"` + + // 域名联系人,英文 + RegistrantName *string `json:"RegistrantName,omitempty" name:"RegistrantName"` +} + +type ModifyDomainDNSBatchRequest struct { + *tchttp.BaseRequest + + // 批量操作的域名。 + Domains []*string `json:"Domains,omitempty" name:"Domains"` + + // 域名DNS 数组。 + Dns []*string `json:"Dns,omitempty" name:"Dns"` +} + +func (r *ModifyDomainDNSBatchRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ModifyDomainDNSBatchRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domains") + delete(f, "Dns") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDomainDNSBatchRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type ModifyDomainDNSBatchResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 日志ID。 + LogId *uint64 `json:"LogId,omitempty" name:"LogId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyDomainDNSBatchResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ModifyDomainDNSBatchResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type ModifyDomainOwnerBatchRequest struct { + *tchttp.BaseRequest + + // 要过户的域名。 + Domains []*string `json:"Domains,omitempty" name:"Domains"` + + // 转入账户的uin。 + NewOwnerUin *string `json:"NewOwnerUin,omitempty" name:"NewOwnerUin"` + + // 是否同时转移对应的 DNS 解析域名,默认false + TransferDns *bool `json:"TransferDns,omitempty" name:"TransferDns"` + + // 转入账户的appid。 + NewOwnerAppId *string `json:"NewOwnerAppId,omitempty" name:"NewOwnerAppId"` +} + +func (r *ModifyDomainOwnerBatchRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ModifyDomainOwnerBatchRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domains") + delete(f, "NewOwnerUin") + delete(f, "TransferDns") + delete(f, "NewOwnerAppId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyDomainOwnerBatchRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type ModifyDomainOwnerBatchResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 日志id + LogId *uint64 `json:"LogId,omitempty" name:"LogId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *ModifyDomainOwnerBatchResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *ModifyDomainOwnerBatchResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type PhoneEmailData struct { + + // 手机号或者邮箱 + Code *string `json:"Code,omitempty" name:"Code"` + + // 1:手机 2:邮箱 + Type *uint64 `json:"Type,omitempty" name:"Type"` + + // 创建时间 + CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"` + + // 1=控制台校验,2=第三方校验 + CheckStatus *int64 `json:"CheckStatus,omitempty" name:"CheckStatus"` +} + +type PriceInfo struct { + + // 域名后缀,例如.com + Tld *string `json:"Tld,omitempty" name:"Tld"` + + // 购买年限,范围[1-10] + Year *uint64 `json:"Year,omitempty" name:"Year"` + + // 域名原价 + Price *uint64 `json:"Price,omitempty" name:"Price"` + + // 域名现价 + RealPrice *uint64 `json:"RealPrice,omitempty" name:"RealPrice"` + + // 商品的购买类型,新购,续费,赎回,转入,续费并转入 + Operation *string `json:"Operation,omitempty" name:"Operation"` +} + +type RenewDomainBatchRequest struct { + *tchttp.BaseRequest + + // 域名续费的年限。 + Period *int64 `json:"Period,omitempty" name:"Period"` + + // 批量续费的域名。 + Domains []*string `json:"Domains,omitempty" name:"Domains"` + + // 付费模式 0手动在线付费,1使用余额付费。 + PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` + + // 自动续费开关。有三个可选值: + // 0 表示关闭,不自动续费 + // 1 表示开启,将自动续费 + // 2 表示不处理,保留域名原有状态(默认值) + AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` +} + +func (r *RenewDomainBatchRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *RenewDomainBatchRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Period") + delete(f, "Domains") + delete(f, "PayMode") + delete(f, "AutoRenewFlag") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RenewDomainBatchRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type RenewDomainBatchResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 操作日志ID。 + LogId *int64 `json:"LogId,omitempty" name:"LogId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *RenewDomainBatchResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *RenewDomainBatchResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type SendPhoneEmailCodeRequest struct { + *tchttp.BaseRequest + + // 手机或者邮箱号。 + Code *string `json:"Code,omitempty" name:"Code"` + + // 1:手机 2:邮箱。 + Type *uint64 `json:"Type,omitempty" name:"Type"` +} + +func (r *SendPhoneEmailCodeRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *SendPhoneEmailCodeRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Code") + delete(f, "Type") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SendPhoneEmailCodeRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type SendPhoneEmailCodeResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *SendPhoneEmailCodeResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *SendPhoneEmailCodeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type SetDomainAutoRenewRequest struct { + *tchttp.BaseRequest + + // 域名ID。 + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // AutoRenew 有三个可选值: + // 0:不设置自动续费 + // 1:设置自动续费 + // 2:设置到期后不续费 + AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` +} + +func (r *SetDomainAutoRenewRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *SetDomainAutoRenewRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DomainId") + delete(f, "AutoRenew") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "SetDomainAutoRenewRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type SetDomainAutoRenewResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *SetDomainAutoRenewResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *SetDomainAutoRenewResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type TemplateInfo struct { + + // 模板ID + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 认证状态:未实名认证:NotUpload, 实名审核中:InAudit,已实名认证:Approved,实名审核失败:Reject + AuditStatus *string `json:"AuditStatus,omitempty" name:"AuditStatus"` + + // 创建时间 + CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"` + + // 更新时间 + UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"` + + // 用户UIN + UserUin *string `json:"UserUin,omitempty" name:"UserUin"` + + // 是否是默认模板: 是:yes,否:no + IsDefault *string `json:"IsDefault,omitempty" name:"IsDefault"` + + // 认证失败原因 + AuditReason *string `json:"AuditReason,omitempty" name:"AuditReason"` + + // 认证信息 + CertificateInfo *CertificateInfo `json:"CertificateInfo,omitempty" name:"CertificateInfo"` + + // 联系人信息 + ContactInfo *ContactInfo `json:"ContactInfo,omitempty" name:"ContactInfo"` + + // 模板是否符合规范, 1是 0 否 + IsValidTemplate *int64 `json:"IsValidTemplate,omitempty" name:"IsValidTemplate"` + + // 不符合规范原因 + InvalidReason *string `json:"InvalidReason,omitempty" name:"InvalidReason"` +} + +type TransferInDomainBatchRequest struct { + *tchttp.BaseRequest + + // 转入的域名名称数组。 + Domains []*string `json:"Domains,omitempty" name:"Domains"` + + // 域名转移码数组。 + PassWords []*string `json:"PassWords,omitempty" name:"PassWords"` + + // 模板ID。 + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 付费模式 0手动在线付费,1使用余额付费。 + PayMode *int64 `json:"PayMode,omitempty" name:"PayMode"` + + // 自动续费开关。有两个可选值: + // 0 表示关闭,不自动续费(默认值) + // 1 表示开启,将自动续费 + AutoRenewFlag *int64 `json:"AutoRenewFlag,omitempty" name:"AutoRenewFlag"` + + // true: 开启60天内禁止转移注册商锁定 + // false:关闭60天内禁止转移注册商锁定 + // 默认 true + LockTransfer *bool `json:"LockTransfer,omitempty" name:"LockTransfer"` + + // 是否开启更新锁:0=默认不开启,1=开启 + UpdateProhibition *int64 `json:"UpdateProhibition,omitempty" name:"UpdateProhibition"` + + // 是否开启转移锁:0=默认不开启,1=开启 + TransferProhibition *int64 `json:"TransferProhibition,omitempty" name:"TransferProhibition"` +} + +func (r *TransferInDomainBatchRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *TransferInDomainBatchRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domains") + delete(f, "PassWords") + delete(f, "TemplateId") + delete(f, "PayMode") + delete(f, "AutoRenewFlag") + delete(f, "LockTransfer") + delete(f, "UpdateProhibition") + delete(f, "TransferProhibition") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "TransferInDomainBatchRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type TransferInDomainBatchResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 日志ID + LogId *uint64 `json:"LogId,omitempty" name:"LogId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *TransferInDomainBatchResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *TransferInDomainBatchResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type TransferProhibitionBatchRequest struct { + *tchttp.BaseRequest + + // 批量操作的域名。 + Domains []*string `json:"Domains,omitempty" name:"Domains"` + + // 是否开启禁止域名转移。 + // True: 开启禁止域名转移状态。 + // False:关闭禁止域名转移状态。 + Status *bool `json:"Status,omitempty" name:"Status"` +} + +func (r *TransferProhibitionBatchRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *TransferProhibitionBatchRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domains") + delete(f, "Status") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "TransferProhibitionBatchRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type TransferProhibitionBatchResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 日志ID + LogId *uint64 `json:"LogId,omitempty" name:"LogId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *TransferProhibitionBatchResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *TransferProhibitionBatchResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UpdateProhibitionBatchRequest struct { + *tchttp.BaseRequest + + // 批量操作的域名。 + Domains []*string `json:"Domains,omitempty" name:"Domains"` + + // 是否开启禁止域名更新。 + // True:开启禁止域名更新状态。 + // False:关闭禁止域名更新状态。 + Status *bool `json:"Status,omitempty" name:"Status"` +} + +func (r *UpdateProhibitionBatchRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateProhibitionBatchRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domains") + delete(f, "Status") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UpdateProhibitionBatchRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type UpdateProhibitionBatchResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 日志ID + LogId *uint64 `json:"LogId,omitempty" name:"LogId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *UpdateProhibitionBatchResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UpdateProhibitionBatchResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type UploadImageRequest struct { + *tchttp.BaseRequest + + // 资质照片,照片的base64编码。 + ImageFile *string `json:"ImageFile,omitempty" name:"ImageFile"` +} + +func (r *UploadImageRequest) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UploadImageRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ImageFile") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "UploadImageRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +type UploadImageResponse struct { + *tchttp.BaseResponse + Response *struct { + + // 资质照片地址。 + AccessUrl *string `json:"AccessUrl,omitempty" name:"AccessUrl"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + } `json:"Response"` +} + +func (r *UploadImageResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} + +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *UploadImageResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} diff --git a/vendor/modules.txt b/vendor/modules.txt index 100bb6b2f4..c3510f77a6 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -555,7 +555,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb/v20180317 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.412 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.413 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.414 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http @@ -571,6 +571,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dayu/v20180709 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc/v20180410 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.294 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.287 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr/v20190103 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.383 diff --git a/website/docs/d/domains.html.markdown b/website/docs/d/domains.html.markdown new file mode 100644 index 0000000000..0b23cb910d --- /dev/null +++ b/website/docs/d/domains.html.markdown @@ -0,0 +1,44 @@ +--- +subcategory: "Domain" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_domains" +sidebar_current: "docs-tencentcloud-datasource-domains" +description: |- + Provide a datasource to query Domains. +--- + +# tencentcloud_domains + +Provide a datasource to query Domains. + +## Example Usage + +```hcl +data "tencentcloud_domains" "foo" { +} +``` + +## Argument Reference + +The following arguments are supported: + +* `limit` - (Optional) Specify data limit in range [1, 100]. Default: 20. +* `offset` - (Optional) Specify data offset. Default: 0. +* `result_output_file` - (Optional) Used for save response as file locally. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `list` - Domain result list. + * `auto_renew` - Whether the domain auto renew, 0 - manual renew, 1 - auto renew. + * `buy_status` - Domain buy status. + * `code_tld` - Domain code ltd. + * `creation_date` - Domain create time. + * `domain_id` - Domain ID. + * `domain_name` - Domain name. + * `expiration_date` - Domain expiration date. + * `is_premium` - Whether the domain is premium. + * `tld` - Domain ltd. + + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index 4a84ff1a4f..c66d5a9342 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -847,6 +847,24 @@ +
  • + Domain + +
  • EMR