diff --git a/go.mod b/go.mod index f447e8b880..a8f8bc428d 100644 --- a/go.mod +++ b/go.mod @@ -34,7 +34,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.445 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.503 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.514 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.445 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.488 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dayu v1.0.335 @@ -43,7 +43,7 @@ require ( 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 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.514 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/lighthouse v1.0.413 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/mongodb v1.0.199 diff --git a/go.sum b/go.sum index 60e1617124..6ef3c219e2 100644 --- a/go.sum +++ b/go.sum @@ -495,6 +495,10 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.500 h1:xuc9 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.500/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.503 h1:XV1MdaHDMqpGz74EvbkOWr+xlslC7yQHc+9DXmkTXZs= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.503/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.512 h1:1BfCqQApL2VpBSanzyrQ1a47XaARS8dLrerBc2FP8MQ= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.512/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.514 h1:CgYPKvnfjxs3dQPcM/nUqIk+ZIZAV6+hBvEpsPP7OSk= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.514/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.445 h1:Bh7XD0ypNMHYyBOM8hhKsSu+y0VVKUnJVS+YKKhfpGg= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.445/go.mod h1:jMDD351efCFpT1+KVFbcpu6SbmP4TYmp4qkoCfr63nQ= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.488 h1:A1seXWtMf2atBjSNYvcwxyDoFzCMgqyVnsxnWzhqJEA= @@ -513,6 +517,10 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.383 h1:OhKvreaR github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.383/go.mod h1:WLskTV0GsorWBboZsLUWrgj+f1xGOKGzPGCK9275tdU= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.397 h1:i0GyUqV/dAJkvEO1foUBB4GG/KrwbseORspjLNdTcfo= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.397/go.mod h1:5XosT/WYkH2v6Q6L34hjJIeQXOymyoBWYcvlmxupjFo= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.512 h1:m77Ke/HFV9dSygl8A26+O6gWkJWMpwg4YCqv9H6Ungk= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.512/go.mod h1:/aJh2UyNWIHmgKve2ijFqZlPDiU/dnjsfi5hOcCcO4Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.514 h1:MKSaqFCa4PCzzb2gVV+oFpxsiPmnCf6uDJwxf9eOoNU= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.514/go.mod h1:uTfhkzPZOwop+tSo83QHrMWtesWdQApxJuFZEXGKXH0= 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= diff --git a/tencentcloud/data_source_tc_gaap_layer4_listeners.go b/tencentcloud/data_source_tc_gaap_layer4_listeners.go index bd69ec9b5b..40f78191aa 100644 --- a/tencentcloud/data_source_tc_gaap_layer4_listeners.go +++ b/tencentcloud/data_source_tc_gaap_layer4_listeners.go @@ -112,6 +112,11 @@ func dataSourceTencentCloudGaapLayer4Listeners() *schema.Resource { Computed: true, Description: "Name of the layer4 listener.", }, + "proxy_id": { + Type: schema.TypeString, + Computed: true, + Description: "ID of the GAAP proxy.", + }, "port": { Type: schema.TypeInt, Computed: true, @@ -216,6 +221,7 @@ func dataSourceTencentCloudGaapLayer4ListenersRead(d *schema.ResourceData, m int "protocol": "TCP", "id": ls.ListenerId, "name": ls.ListenerName, + "proxy_id": ls.ProxyId, "port": ls.Port, "realserver_type": ls.RealServerType, "status": ls.ListenerStatus, @@ -245,6 +251,7 @@ func dataSourceTencentCloudGaapLayer4ListenersRead(d *schema.ResourceData, m int "protocol": "UDP", "id": ls.ListenerId, "name": ls.ListenerName, + "proxy_id": ls.ProxyId, "port": ls.Port, "realserver_type": ls.RealServerType, "status": ls.ListenerStatus, diff --git a/tencentcloud/data_source_tc_gaap_layer4_listeners_test.go b/tencentcloud/data_source_tc_gaap_layer4_listeners_test.go index bdd8ce9be5..ee55231f14 100644 --- a/tencentcloud/data_source_tc_gaap_layer4_listeners_test.go +++ b/tencentcloud/data_source_tc_gaap_layer4_listeners_test.go @@ -30,6 +30,7 @@ func TestAccDataSourceTencentCloudGaapLayer4Listeners_basic(t *testing.T) { resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.connect_timeout", "2"), resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.interval", "5"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.proxy_id"), ), }, }, @@ -56,6 +57,7 @@ func TestAccDataSourceTencentCloudGaapLayer4Listeners_tcp(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.name", "listeners.0.scheduler"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.name", "listeners.0.health_check"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.name", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.name", "listeners.0.proxy_id"), ), }, { @@ -72,6 +74,7 @@ func TestAccDataSourceTencentCloudGaapLayer4Listeners_tcp(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.port", "listeners.0.scheduler"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.port", "listeners.0.health_check"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.port", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.port", "listeners.0.proxy_id"), ), }, }, @@ -97,7 +100,8 @@ func TestAccDataSourceTencentCloudGaapLayer4Listeners_UDP(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.status"), resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.scheduler", "rr"), resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.health_check", "false"), - resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.create_time")), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.foo", "listeners.0.proxy_id")), }, { Config: TestAccDataSourceTencentCloudGaapLayer4ListenersUDPName, @@ -113,6 +117,7 @@ func TestAccDataSourceTencentCloudGaapLayer4Listeners_UDP(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.name", "listeners.0.scheduler"), resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer4_listeners.name", "listeners.0.health_check", "false"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.name", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.name", "listeners.0.proxy_id"), ), }, { @@ -129,6 +134,7 @@ func TestAccDataSourceTencentCloudGaapLayer4Listeners_UDP(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.port", "listeners.0.scheduler"), resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer4_listeners.port", "listeners.0.health_check", "false"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.port", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer4_listeners.port", "listeners.0.proxy_id"), ), }, }, diff --git a/tencentcloud/data_source_tc_gaap_layer7_listeners.go b/tencentcloud/data_source_tc_gaap_layer7_listeners.go index edc98c779d..7aa36791d9 100644 --- a/tencentcloud/data_source_tc_gaap_layer7_listeners.go +++ b/tencentcloud/data_source_tc_gaap_layer7_listeners.go @@ -97,6 +97,11 @@ func dataSourceTencentCloudGaapLayer7Listeners() *schema.Resource { Computed: true, Description: "Name of the layer7 listener.", }, + "proxy_id": { + Type: schema.TypeString, + Computed: true, + Description: "ID of the GAAP proxy.", + }, "port": { Type: schema.TypeInt, Computed: true, @@ -214,6 +219,7 @@ func dataSourceTencentCloudGaapLayer7ListenersRead(d *schema.ResourceData, m int listeners = append(listeners, map[string]interface{}{ "protocol": "HTTP", "id": *ls.ListenerId, + "proxy_id": *ls.ProxyId, "name": *ls.ListenerName, "port": *ls.Port, "status": *ls.ListenerStatus, @@ -274,6 +280,7 @@ func dataSourceTencentCloudGaapLayer7ListenersRead(d *schema.ResourceData, m int "protocol": "HTTPS", "id": ls.ListenerId, "name": ls.ListenerName, + "proxy_id": ls.ProxyId, "port": ls.Port, "status": ls.ListenerStatus, "certificate_id": ls.CertificateId, diff --git a/tencentcloud/data_source_tc_gaap_layer7_listeners_test.go b/tencentcloud/data_source_tc_gaap_layer7_listeners_test.go index 841c86610b..6fee7a3ddb 100644 --- a/tencentcloud/data_source_tc_gaap_layer7_listeners_test.go +++ b/tencentcloud/data_source_tc_gaap_layer7_listeners_test.go @@ -25,6 +25,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerId", "listeners.0.port"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerId", "listeners.0.status"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerId", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerId", "listeners.0.proxy_id"), ), }, { @@ -38,6 +39,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerName", "listeners.0.port"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerName", "listeners.0.status"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerName", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerName", "listeners.0.proxy_id"), ), }, { @@ -51,6 +53,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) { resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.port", "80"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.status"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.proxy_id"), ), }, }, @@ -77,6 +80,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerId", "listeners.0.auth_type"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerId", "listeners.0.forward_protocol"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerId", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.listenerId", "listeners.0.proxy_id"), ), }, { @@ -93,6 +97,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) { resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.name", "listeners.0.auth_type"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.name", "listeners.0.forward_protocol"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.name", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.name", "listeners.0.proxy_id"), ), }, { @@ -103,12 +108,13 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) { resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.protocol", "HTTPS"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.id"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.name"), - resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.port", "80"), + resource.TestCheckResourceAttr("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.port", "81"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.status"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.certificate_id"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.auth_type"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.forward_protocol"), resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.create_time"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_layer7_listeners.port", "listeners.0.proxy_id"), ), }, }, @@ -169,7 +175,7 @@ resource tencentcloud_gaap_certificate "foo" { resource tencentcloud_gaap_layer7_listener "foo" { protocol = "HTTPS" name = "ci-test-gaap-l7-listener" - port = 80 + port = 81 certificate_id = tencentcloud_gaap_certificate.foo.id auth_type = 0 forward_protocol = "HTTP" @@ -193,7 +199,7 @@ resource tencentcloud_gaap_certificate "foo" { resource tencentcloud_gaap_layer7_listener "foo" { protocol = "HTTPS" name = "ci-test-gaap-l7-listener" - port = 80 + port = 81 certificate_id = tencentcloud_gaap_certificate.foo.id auth_type = 0 forward_protocol = "HTTP" @@ -217,7 +223,7 @@ resource tencentcloud_gaap_certificate "foo" { resource tencentcloud_gaap_layer7_listener "foo" { protocol = "HTTPS" name = "ci-test-gaap-l7-listener" - port = 80 + port = 81 certificate_id = tencentcloud_gaap_certificate.foo.id auth_type = 0 forward_protocol = "HTTP" diff --git a/tencentcloud/resource_tc_gaap_layer4_listener.go b/tencentcloud/resource_tc_gaap_layer4_listener.go index d52d86d598..843f407d11 100644 --- a/tencentcloud/resource_tc_gaap_layer4_listener.go +++ b/tencentcloud/resource_tc_gaap_layer4_listener.go @@ -303,6 +303,7 @@ func resourceTencentCloudGaapLayer4ListenerRead(d *schema.ResourceData, m interf createTime string realservers []map[string]interface{} clientIpMethod *uint64 + proxyId *string ) service := GaapService{client: m.(*TencentCloudClient).apiV3Conn} @@ -327,6 +328,7 @@ func resourceTencentCloudGaapLayer4ListenerRead(d *schema.ResourceData, m interf port = listener.Port scheduler = listener.Scheduler realServerType = listener.RealServerType + proxyId = listener.ProxyId if listener.HealthCheck == nil { return errors.New("listener health check is nil") @@ -364,6 +366,7 @@ func resourceTencentCloudGaapLayer4ListenerRead(d *schema.ResourceData, m interf port = listener.Port scheduler = listener.Scheduler realServerType = listener.RealServerType + proxyId = listener.ProxyId healthCheck = helper.Bool(false) connectTimeout = helper.IntUint64(2) @@ -406,6 +409,7 @@ func resourceTencentCloudGaapLayer4ListenerRead(d *schema.ResourceData, m interf _ = d.Set("realserver_bind_set", realservers) _ = d.Set("status", status) _ = d.Set("create_time", createTime) + _ = d.Set("proxy_id", proxyId) return nil } diff --git a/tencentcloud/resource_tc_gaap_layer4_listener_test.go b/tencentcloud/resource_tc_gaap_layer4_listener_test.go index 1e28544afd..c625d80222 100644 --- a/tencentcloud/resource_tc_gaap_layer4_listener_test.go +++ b/tencentcloud/resource_tc_gaap_layer4_listener_test.go @@ -110,13 +110,13 @@ func TestAccTencentCloudGaapLayer4Listener_basic(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer4_listener.foo", "realserver_bind_set.#", "2"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "proxy_id"), ), }, { - ResourceName: "tencentcloud_gaap_layer4_listener.foo", - ImportState: true, - ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"proxy_id"}, + ResourceName: "tencentcloud_gaap_layer4_listener.foo", + ImportState: true, + ImportStateVerify: true, }, }, }) @@ -146,6 +146,7 @@ func TestAccTencentCloudGaapLayer4Listener_TcpDomain(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer4_listener.foo", "realserver_bind_set.#", "2"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "proxy_id"), ), }, }, @@ -177,6 +178,7 @@ func TestAccTencentCloudGaapLayer4Listener_update(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer4_listener.foo", "realserver_bind_set.#", "2"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "proxy_id"), ), }, { @@ -230,15 +232,13 @@ func TestAccTencentCloudGaapLayer4Listener_udp_basic(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer4_listener.foo", "realserver_bind_set.#", "2"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "proxy_id"), ), }, { ResourceName: "tencentcloud_gaap_layer4_listener.foo", ImportState: true, ImportStateVerify: true, - ImportStateVerifyIgnore: []string{ - "proxy_id", - }, }, }, }) @@ -267,6 +267,7 @@ func TestAccTencentCloudGaapLayer4Listener_udpDomain(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer4_listener.foo", "realserver_bind_set.#", "2"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "proxy_id"), ), }, }, @@ -296,6 +297,7 @@ func TestAccTencentCloudGaapLayer4Listener_udpUpdate(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer4_listener.foo", "realserver_bind_set.#", "2"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer4_listener.foo", "proxy_id"), ), }, { diff --git a/tencentcloud/resource_tc_gaap_layer7_listener.go b/tencentcloud/resource_tc_gaap_layer7_listener.go index 1f3a917461..3787e92ad9 100644 --- a/tencentcloud/resource_tc_gaap_layer7_listener.go +++ b/tencentcloud/resource_tc_gaap_layer7_listener.go @@ -227,6 +227,7 @@ func resourceTencentCloudGaapLayer7ListenerRead(d *schema.ResourceData, m interf status *uint64 createTime string polyClientCertificateIds []*string + proxyId *string ) service := GaapService{client: m.(*TencentCloudClient).apiV3Conn} @@ -283,6 +284,7 @@ LOOP: name = listener.ListenerName port = listener.Port status = listener.ListenerStatus + proxyId = listener.ProxyId if listener.CreateTime == nil { return errors.New("listener create time is nil") @@ -318,6 +320,7 @@ LOOP: certificateId = listener.CertificateId forwardProtocol = listener.ForwardProtocol authType = listener.AuthType + proxyId = listener.ProxyId // mutual authentication if *authType == 1 { @@ -349,6 +352,7 @@ LOOP: _ = d.Set("client_certificate_ids", polyClientCertificateIds) _ = d.Set("status", status) _ = d.Set("create_time", createTime) + _ = d.Set("proxy_id", proxyId) return nil } diff --git a/tencentcloud/resource_tc_gaap_layer7_listener_test.go b/tencentcloud/resource_tc_gaap_layer7_listener_test.go index ec6e227134..4348d322fa 100644 --- a/tencentcloud/resource_tc_gaap_layer7_listener_test.go +++ b/tencentcloud/resource_tc_gaap_layer7_listener_test.go @@ -105,6 +105,7 @@ func TestAccTencentCloudGaapLayer7Listener_basic(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer7_listener.foo", "client_certificate_ids.#", "0"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "proxy_id"), ), }, { @@ -118,9 +119,6 @@ func TestAccTencentCloudGaapLayer7Listener_basic(t *testing.T) { ResourceName: "tencentcloud_gaap_layer7_listener.foo", ImportState: true, ImportStateVerify: true, - ImportStateVerifyIgnore: []string{ - "proxy_id", - }, }, }, }) @@ -147,6 +145,7 @@ func TestAccTencentCloudGaapLayer7Listener_https_basic(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer7_listener.foo", "auth_type", "0"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "proxy_id"), ), }, { @@ -161,9 +160,6 @@ func TestAccTencentCloudGaapLayer7Listener_https_basic(t *testing.T) { ResourceName: "tencentcloud_gaap_layer7_listener.foo", ImportState: true, ImportStateVerify: true, - ImportStateVerifyIgnore: []string{ - "proxy_id", - }, }, }, }) @@ -191,6 +187,7 @@ func TestAccTencentCloudGaapLayer7Listener_httpsTwoWayAuthentication(t *testing. resource.TestCheckResourceAttr("tencentcloud_gaap_layer7_listener.foo", "client_certificate_ids.#", "1"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "proxy_id"), ), }, }, @@ -218,6 +215,7 @@ func TestAccTencentCloudGaapLayer7Listener_httpsForwardHttps(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer7_listener.foo", "auth_type", "0"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "proxy_id"), ), }, }, @@ -246,6 +244,7 @@ func TestAccTencentCloudGaapLayer7Listener_httpsPolyClientCertificateIds(t *test resource.TestCheckResourceAttr("tencentcloud_gaap_layer7_listener.foo", "client_certificate_ids.#", "1"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "proxy_id"), ), }, { @@ -260,9 +259,6 @@ func TestAccTencentCloudGaapLayer7Listener_httpsPolyClientCertificateIds(t *test ResourceName: "tencentcloud_gaap_layer7_listener.foo", ImportState: true, ImportStateVerify: true, - ImportStateVerifyIgnore: []string{ - "proxy_id", - }, }, }, }) @@ -290,6 +286,7 @@ func TestAccTencentCloudGaapLayer7Listener_httpsCcToPoly(t *testing.T) { resource.TestCheckResourceAttr("tencentcloud_gaap_layer7_listener.foo", "client_certificate_ids.#", "1"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "status"), resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "create_time"), + resource.TestCheckResourceAttrSet("tencentcloud_gaap_layer7_listener.foo", "proxy_id"), ), }, { diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/client.go index 50aca92f5d..a676d7fd9d 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/client.go @@ -444,7 +444,13 @@ func (c *Client) GetRegion() string { } func (c *Client) Init(region string) *Client { - c.httpClient = &http.Client{Transport: http.DefaultTransport.(*http.Transport).Clone()} + // try not to modify http.DefaultTransport if possible + transport := http.DefaultTransport + if ht, ok := transport.(*http.Transport); ok { + transport = ht.Clone() + } + + c.httpClient = &http.Client{Transport: transport} c.region = region c.signMethod = "TC3-HMAC-SHA256" c.debug = false @@ -503,7 +509,16 @@ func (c *Client) WithProfile(clientProfile *profile.ClientProfile) *Client { if err != nil { panic(err) } - c.httpClient.Transport.(*http.Transport).Proxy = http.ProxyURL(u) + + if c.httpClient.Transport == nil { + c.logger.Println("trying to set proxy when httpClient.Transport is nil") + } + + if _, ok := c.httpClient.Transport.(*http.Transport); ok { + c.httpClient.Transport.(*http.Transport).Proxy = http.ProxyURL(u) + } else { + c.logger.Println("setting proxy while httpClient.Transport is not a http.Transport is not supported") + } } return c } 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 9e4c71a824..dd63b92b2d 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 @@ -265,7 +265,7 @@ func CompleteCommonParams(request Request, region string, requestClient 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.503" + params["RequestClient"] = "SDK_GO_1.0.514" if requestClient != "" { params["RequestClient"] += ": " + requestClient } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/client.go index 6d8ad23c80..2ba16ebb98 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/client.go @@ -49,6 +49,7 @@ func NewAddRealServersRequest() (request *AddRealServersRequest) { request = &AddRealServersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "AddRealServers") @@ -70,12 +71,16 @@ func NewAddRealServersResponse() (response *AddRealServersResponse) { // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_DUPLICATERS = "InvalidParameterValue.DuplicateRS" // INVALIDPARAMETERVALUE_INVALIDTAGS = "InvalidParameterValue.InvalidTags" // INVALIDPARAMETERVALUE_PROJECTIDNOTBELONG = "InvalidParameterValue.ProjectIdNotBelong" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCEUNAVAILABLE = "ResourceUnavailable" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" @@ -92,12 +97,16 @@ func (c *Client) AddRealServers(request *AddRealServersRequest) (response *AddRe // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_DUPLICATERS = "InvalidParameterValue.DuplicateRS" // INVALIDPARAMETERVALUE_INVALIDTAGS = "InvalidParameterValue.InvalidTags" // INVALIDPARAMETERVALUE_PROJECTIDNOTBELONG = "InvalidParameterValue.ProjectIdNotBelong" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCEUNAVAILABLE = "ResourceUnavailable" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" @@ -118,10 +127,87 @@ func (c *Client) AddRealServersWithContext(ctx context.Context, request *AddReal return } +func NewBanAndRecoverProxyRequest() (request *BanAndRecoverProxyRequest) { + request = &BanAndRecoverProxyRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "BanAndRecoverProxy") + + + return +} + +func NewBanAndRecoverProxyResponse() (response *BanAndRecoverProxyResponse) { + response = &BanAndRecoverProxyResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// BanAndRecoverProxy +// 本接口(BanAndRecoverProxy)用于联通封禁解封GAAP跨境通道实例,支持按照客户UIN维度下发请求。被封禁的实例带宽上限将会被限制到0Mbps,无法正常处理客户端和源站之间的请求。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_RESOURCEHADBEENDONE = "FailedOperation.ResourceHadBeenDone" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) BanAndRecoverProxy(request *BanAndRecoverProxyRequest) (response *BanAndRecoverProxyResponse, err error) { + return c.BanAndRecoverProxyWithContext(context.Background(), request) +} + +// BanAndRecoverProxy +// 本接口(BanAndRecoverProxy)用于联通封禁解封GAAP跨境通道实例,支持按照客户UIN维度下发请求。被封禁的实例带宽上限将会被限制到0Mbps,无法正常处理客户端和源站之间的请求。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_RESOURCEHADBEENDONE = "FailedOperation.ResourceHadBeenDone" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) BanAndRecoverProxyWithContext(ctx context.Context, request *BanAndRecoverProxyRequest) (response *BanAndRecoverProxyResponse, err error) { + if request == nil { + request = NewBanAndRecoverProxyRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("BanAndRecoverProxy require credential") + } + + request.SetContext(ctx) + + response = NewBanAndRecoverProxyResponse() + err = c.Send(request, response) + return +} + func NewBindListenerRealServersRequest() (request *BindListenerRealServersRequest) { request = &BindListenerRealServersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "BindListenerRealServers") @@ -151,6 +237,7 @@ func NewBindListenerRealServersResponse() (response *BindListenerRealServersResp // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -180,6 +267,7 @@ func (c *Client) BindListenerRealServers(request *BindListenerRealServersRequest // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -209,6 +297,7 @@ func NewBindRuleRealServersRequest() (request *BindRuleRealServersRequest) { request = &BindRuleRealServersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "BindRuleRealServers") @@ -238,6 +327,7 @@ func NewBindRuleRealServersResponse() (response *BindRuleRealServersResponse) { // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -267,6 +357,7 @@ func (c *Client) BindRuleRealServers(request *BindRuleRealServersRequest) (respo // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -296,6 +387,7 @@ func NewCheckProxyCreateRequest() (request *CheckProxyCreateRequest) { request = &CheckProxyCreateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CheckProxyCreate") @@ -317,6 +409,7 @@ func NewCheckProxyCreateResponse() (response *CheckProxyCreateResponse) { // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -338,6 +431,7 @@ func (c *Client) CheckProxyCreate(request *CheckProxyCreateRequest) (response *C // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -367,6 +461,7 @@ func NewCloseProxiesRequest() (request *CloseProxiesRequest) { request = &CloseProxiesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CloseProxies") @@ -391,6 +486,7 @@ func NewCloseProxiesResponse() (response *CloseProxiesResponse) { // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -415,6 +511,7 @@ func (c *Client) CloseProxies(request *CloseProxiesRequest) (response *CloseProx // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -444,6 +541,7 @@ func NewCloseProxyGroupRequest() (request *CloseProxyGroupRequest) { request = &CloseProxyGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CloseProxyGroup") @@ -467,6 +565,7 @@ func NewCloseProxyGroupResponse() (response *CloseProxyGroupResponse) { // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" @@ -489,6 +588,7 @@ func (c *Client) CloseProxyGroup(request *CloseProxyGroupRequest) (response *Clo // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // MISSINGPARAMETER = "MissingParameter" @@ -517,6 +617,7 @@ func NewCloseSecurityPolicyRequest() (request *CloseSecurityPolicyRequest) { request = &CloseSecurityPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CloseSecurityPolicy") @@ -540,6 +641,7 @@ func NewCloseSecurityPolicyResponse() (response *CloseSecurityPolicyResponse) { // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACTIONISDOING = "FailedOperation.ActionIsDoing" // FAILEDOPERATION_PROXYSECURITYALREADYCLOSE = "FailedOperation.ProxySecurityAlreadyClose" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -563,6 +665,7 @@ func (c *Client) CloseSecurityPolicy(request *CloseSecurityPolicyRequest) (respo // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACTIONISDOING = "FailedOperation.ActionIsDoing" // FAILEDOPERATION_PROXYSECURITYALREADYCLOSE = "FailedOperation.ProxySecurityAlreadyClose" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -592,6 +695,7 @@ func NewCreateCertificateRequest() (request *CreateCertificateRequest) { request = &CreateCertificateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateCertificate") @@ -612,9 +716,11 @@ func NewCreateCertificateResponse() (response *CreateCertificateResponse) { // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_CERTIFICATECONTENTNOTMATCHKEY = "InvalidParameterValue.CertificateContentNotMatchKey" // INVALIDPARAMETERVALUE_INVALIDCERTIFICATECONTENT = "InvalidParameterValue.InvalidCertificateContent" // INVALIDPARAMETERVALUE_INVALIDCERTIFICATEKEY = "InvalidParameterValue.InvalidCertificateKey" // MISSINGPARAMETER = "MissingParameter" @@ -633,9 +739,11 @@ func (c *Client) CreateCertificate(request *CreateCertificateRequest) (response // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" +// INVALIDPARAMETERVALUE_CERTIFICATECONTENTNOTMATCHKEY = "InvalidParameterValue.CertificateContentNotMatchKey" // INVALIDPARAMETERVALUE_INVALIDCERTIFICATECONTENT = "InvalidParameterValue.InvalidCertificateContent" // INVALIDPARAMETERVALUE_INVALIDCERTIFICATEKEY = "InvalidParameterValue.InvalidCertificateKey" // MISSINGPARAMETER = "MissingParameter" @@ -663,6 +771,7 @@ func NewCreateCustomHeaderRequest() (request *CreateCustomHeaderRequest) { request = &CreateCustomHeaderRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateCustomHeader") @@ -689,11 +798,13 @@ func NewCreateCustomHeaderResponse() (response *CreateCustomHeaderResponse) { // FAILEDOPERATION_INVALIDLISTENERPROTOCOL = "FailedOperation.InvalidListenerProtocol" // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_HITBLACKLIST = "InvalidParameterValue.HitBlacklist" // LIMITEXCEEDED = "LimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" func (c *Client) CreateCustomHeader(request *CreateCustomHeaderRequest) (response *CreateCustomHeaderResponse, err error) { return c.CreateCustomHeaderWithContext(context.Background(), request) @@ -712,11 +823,13 @@ func (c *Client) CreateCustomHeader(request *CreateCustomHeaderRequest) (respons // FAILEDOPERATION_INVALIDLISTENERPROTOCOL = "FailedOperation.InvalidListenerProtocol" // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_HITBLACKLIST = "InvalidParameterValue.HitBlacklist" // LIMITEXCEEDED = "LimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" func (c *Client) CreateCustomHeaderWithContext(ctx context.Context, request *CreateCustomHeaderRequest) (response *CreateCustomHeaderResponse, err error) { if request == nil { @@ -738,6 +851,7 @@ func NewCreateDomainRequest() (request *CreateDomainRequest) { request = &CreateDomainRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateDomain") @@ -768,6 +882,7 @@ func NewCreateDomainResponse() (response *CreateDomainResponse) { // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -798,6 +913,7 @@ func (c *Client) CreateDomain(request *CreateDomainRequest) (response *CreateDom // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -827,6 +943,7 @@ func NewCreateDomainErrorPageInfoRequest() (request *CreateDomainErrorPageInfoRe request = &CreateDomainErrorPageInfoRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateDomainErrorPageInfo") @@ -852,6 +969,7 @@ func NewCreateDomainErrorPageInfoResponse() (response *CreateDomainErrorPageInfo // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -874,6 +992,7 @@ func (c *Client) CreateDomainErrorPageInfo(request *CreateDomainErrorPageInfoReq // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -896,10 +1015,229 @@ func (c *Client) CreateDomainErrorPageInfoWithContext(ctx context.Context, reque return } +func NewCreateFirstLinkSessionRequest() (request *CreateFirstLinkSessionRequest) { + request = &CreateFirstLinkSessionRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "CreateFirstLinkSession") + + + return +} + +func NewCreateFirstLinkSessionResponse() (response *CreateFirstLinkSessionResponse) { + response = &CreateFirstLinkSessionResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateFirstLinkSession +// 本接口(CreateFirstLinkSession)用于创建接入段加速会话,创建有可能成功,也可能失败,需要通过返回码来进行判断。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_CTCCTOKENEXPIRED = "FailedOperation.CTCCTokenExpired" +// FAILEDOPERATION_CREATEQOSEXCEEDLIMIT = "FailedOperation.CreateQosExceedLimit" +// FAILEDOPERATION_IPUNMATCHED = "FailedOperation.IPUnmatched" +// FAILEDOPERATION_NORESOURCEBOUND = "FailedOperation.NoResourceBound" +// FAILEDOPERATION_REQUESTVENDORTIMEOUT = "FailedOperation.RequestVendorTimeout" +// FAILEDOPERATION_RESOURCENOTFOUND = "FailedOperation.ResourceNotFound" +// FAILEDOPERATION_SESSIONNOTEXIST = "FailedOperation.SessionNotExist" +// FAILEDOPERATION_USEROUTOFCOVERAGE = "FailedOperation.UserOutOfCoverage" +// FAILEDOPERATION_VENDORRETURNERROR = "FailedOperation.VendorReturnError" +// FAILEDOPERATION_VENDORSERVERERROR = "FailedOperation.VendorServerError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateFirstLinkSession(request *CreateFirstLinkSessionRequest) (response *CreateFirstLinkSessionResponse, err error) { + return c.CreateFirstLinkSessionWithContext(context.Background(), request) +} + +// CreateFirstLinkSession +// 本接口(CreateFirstLinkSession)用于创建接入段加速会话,创建有可能成功,也可能失败,需要通过返回码来进行判断。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_CTCCTOKENEXPIRED = "FailedOperation.CTCCTokenExpired" +// FAILEDOPERATION_CREATEQOSEXCEEDLIMIT = "FailedOperation.CreateQosExceedLimit" +// FAILEDOPERATION_IPUNMATCHED = "FailedOperation.IPUnmatched" +// FAILEDOPERATION_NORESOURCEBOUND = "FailedOperation.NoResourceBound" +// FAILEDOPERATION_REQUESTVENDORTIMEOUT = "FailedOperation.RequestVendorTimeout" +// FAILEDOPERATION_RESOURCENOTFOUND = "FailedOperation.ResourceNotFound" +// FAILEDOPERATION_SESSIONNOTEXIST = "FailedOperation.SessionNotExist" +// FAILEDOPERATION_USEROUTOFCOVERAGE = "FailedOperation.UserOutOfCoverage" +// FAILEDOPERATION_VENDORRETURNERROR = "FailedOperation.VendorReturnError" +// FAILEDOPERATION_VENDORSERVERERROR = "FailedOperation.VendorServerError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) CreateFirstLinkSessionWithContext(ctx context.Context, request *CreateFirstLinkSessionRequest) (response *CreateFirstLinkSessionResponse, err error) { + if request == nil { + request = NewCreateFirstLinkSessionRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateFirstLinkSession require credential") + } + + request.SetContext(ctx) + + response = NewCreateFirstLinkSessionResponse() + err = c.Send(request, response) + return +} + +func NewCreateGlobalDomainRequest() (request *CreateGlobalDomainRequest) { + request = &CreateGlobalDomainRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "CreateGlobalDomain") + + + return +} + +func NewCreateGlobalDomainResponse() (response *CreateGlobalDomainResponse) { + response = &CreateGlobalDomainResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateGlobalDomain +// 用来创建统一域名 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INVALIDPARAMETERVALUE_GLOBALDOMAINHITBANBLACKLIST = "InvalidParameterValue.GlobalDomainHitBanBlacklist" +// LIMITEXCEEDED_DOMAIN = "LimitExceeded.Domain" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) CreateGlobalDomain(request *CreateGlobalDomainRequest) (response *CreateGlobalDomainResponse, err error) { + return c.CreateGlobalDomainWithContext(context.Background(), request) +} + +// CreateGlobalDomain +// 用来创建统一域名 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INVALIDPARAMETERVALUE_GLOBALDOMAINHITBANBLACKLIST = "InvalidParameterValue.GlobalDomainHitBanBlacklist" +// LIMITEXCEEDED_DOMAIN = "LimitExceeded.Domain" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) CreateGlobalDomainWithContext(ctx context.Context, request *CreateGlobalDomainRequest) (response *CreateGlobalDomainResponse, err error) { + if request == nil { + request = NewCreateGlobalDomainRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateGlobalDomain require credential") + } + + request.SetContext(ctx) + + response = NewCreateGlobalDomainResponse() + err = c.Send(request, response) + return +} + +func NewCreateGlobalDomainDnsRequest() (request *CreateGlobalDomainDnsRequest) { + request = &CreateGlobalDomainDnsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "CreateGlobalDomainDns") + + + return +} + +func NewCreateGlobalDomainDnsResponse() (response *CreateGlobalDomainDnsResponse) { + response = &CreateGlobalDomainDnsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateGlobalDomainDns +// 创建域名解析记录 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INVALIDPARAMETERVALUE_HITBANBLACKLIST = "InvalidParameterValue.HitBanBlacklist" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) CreateGlobalDomainDns(request *CreateGlobalDomainDnsRequest) (response *CreateGlobalDomainDnsResponse, err error) { + return c.CreateGlobalDomainDnsWithContext(context.Background(), request) +} + +// CreateGlobalDomainDns +// 创建域名解析记录 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INVALIDPARAMETERVALUE_HITBANBLACKLIST = "InvalidParameterValue.HitBanBlacklist" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) CreateGlobalDomainDnsWithContext(ctx context.Context, request *CreateGlobalDomainDnsRequest) (response *CreateGlobalDomainDnsResponse, err error) { + if request == nil { + request = NewCreateGlobalDomainDnsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateGlobalDomainDns require credential") + } + + request.SetContext(ctx) + + response = NewCreateGlobalDomainDnsResponse() + err = c.Send(request, response) + return +} + func NewCreateHTTPListenerRequest() (request *CreateHTTPListenerRequest) { request = &CreateHTTPListenerRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateHTTPListener") @@ -928,6 +1266,7 @@ func NewCreateHTTPListenerResponse() (response *CreateHTTPListenerResponse) { // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -957,6 +1296,7 @@ func (c *Client) CreateHTTPListener(request *CreateHTTPListenerRequest) (respons // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -987,6 +1327,7 @@ func NewCreateHTTPSListenerRequest() (request *CreateHTTPSListenerRequest) { request = &CreateHTTPSListenerRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateHTTPSListener") @@ -1014,6 +1355,7 @@ func NewCreateHTTPSListenerResponse() (response *CreateHTTPSListenerResponse) { // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1043,6 +1385,7 @@ func (c *Client) CreateHTTPSListener(request *CreateHTTPSListenerRequest) (respo // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1074,6 +1417,7 @@ func NewCreateProxyRequest() (request *CreateProxyRequest) { request = &CreateProxyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateProxy") @@ -1099,7 +1443,10 @@ func NewCreateProxyResponse() (response *CreateProxyResponse) { // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_LIMITNUMOFLISTENER = "FailedOperation.LimitNumofListener" // FAILEDOPERATION_PROXYSELLOUT = "FailedOperation.ProxySellOut" +// FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" // FAILEDOPERATION_USERNOTAUTHENTICATED = "FailedOperation.UserNotAuthenticated" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1110,6 +1457,7 @@ func NewCreateProxyResponse() (response *CreateProxyResponse) { // INVALIDPARAMETERVALUE_PROJECTIDNOTBELONG = "InvalidParameterValue.ProjectIdNotBelong" // INVALIDPARAMETERVALUE_PROXYANDGROUPFEATURECONFLICT = "InvalidParameterValue.ProxyAndGroupFeatureConflict" // INVALIDPARAMETERVALUE_PROXYANDREGIONFEATURECONFLICT = "InvalidParameterValue.ProxyAndRegionFeatureConflict" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE = "ResourceUnavailable" @@ -1132,7 +1480,10 @@ func (c *Client) CreateProxy(request *CreateProxyRequest) (response *CreateProxy // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_LIMITNUMOFLISTENER = "FailedOperation.LimitNumofListener" // FAILEDOPERATION_PROXYSELLOUT = "FailedOperation.ProxySellOut" +// FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" // FAILEDOPERATION_USERNOTAUTHENTICATED = "FailedOperation.UserNotAuthenticated" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1143,6 +1494,7 @@ func (c *Client) CreateProxy(request *CreateProxyRequest) (response *CreateProxy // INVALIDPARAMETERVALUE_PROJECTIDNOTBELONG = "InvalidParameterValue.ProjectIdNotBelong" // INVALIDPARAMETERVALUE_PROXYANDGROUPFEATURECONFLICT = "InvalidParameterValue.ProxyAndGroupFeatureConflict" // INVALIDPARAMETERVALUE_PROXYANDREGIONFEATURECONFLICT = "InvalidParameterValue.ProxyAndRegionFeatureConflict" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE = "ResourceUnavailable" @@ -1169,6 +1521,7 @@ func NewCreateProxyGroupRequest() (request *CreateProxyGroupRequest) { request = &CreateProxyGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateProxyGroup") @@ -1191,11 +1544,15 @@ func NewCreateProxyGroupResponse() (response *CreateProxyGroupResponse) { // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_LIMITNUMOFPROXIESINGROUP = "FailedOperation.LimitNumofProxiesInGroup" +// FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_FEATURECONFLICT = "InvalidParameterValue.FeatureConflict" // INVALIDPARAMETERVALUE_INVALIDTAGS = "InvalidParameterValue.InvalidTags" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE = "ResourceUnavailable" @@ -1215,11 +1572,15 @@ func (c *Client) CreateProxyGroup(request *CreateProxyGroupRequest) (response *C // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_LIMITNUMOFPROXIESINGROUP = "FailedOperation.LimitNumofProxiesInGroup" +// FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // INVALIDPARAMETERVALUE_FEATURECONFLICT = "InvalidParameterValue.FeatureConflict" // INVALIDPARAMETERVALUE_INVALIDTAGS = "InvalidParameterValue.InvalidTags" +// LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" // MISSINGPARAMETER = "MissingParameter" // RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE = "ResourceUnavailable" @@ -1246,6 +1607,7 @@ func NewCreateProxyGroupDomainRequest() (request *CreateProxyGroupDomainRequest) request = &CreateProxyGroupDomainRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateProxyGroupDomain") @@ -1267,6 +1629,7 @@ func NewCreateProxyGroupDomainResponse() (response *CreateProxyGroupDomainRespon // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1288,6 +1651,7 @@ func (c *Client) CreateProxyGroupDomain(request *CreateProxyGroupDomainRequest) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1317,6 +1681,7 @@ func NewCreateRuleRequest() (request *CreateRuleRequest) { request = &CreateRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateRule") @@ -1346,6 +1711,7 @@ func NewCreateRuleResponse() (response *CreateRuleResponse) { // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_RULEALREADYEXISTED = "FailedOperation.RuleAlreadyExisted" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1373,6 +1739,7 @@ func (c *Client) CreateRule(request *CreateRuleRequest) (response *CreateRuleRes // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_RULEALREADYEXISTED = "FailedOperation.RuleAlreadyExisted" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1400,6 +1767,7 @@ func NewCreateSecurityPolicyRequest() (request *CreateSecurityPolicyRequest) { request = &CreateSecurityPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateSecurityPolicy") @@ -1423,6 +1791,7 @@ func NewCreateSecurityPolicyResponse() (response *CreateSecurityPolicyResponse) // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSECURITYPOLICYEXISTED = "FailedOperation.ProxySecurityPolicyExisted" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1446,6 +1815,7 @@ func (c *Client) CreateSecurityPolicy(request *CreateSecurityPolicyRequest) (res // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSECURITYPOLICYEXISTED = "FailedOperation.ProxySecurityPolicyExisted" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1475,6 +1845,7 @@ func NewCreateSecurityRulesRequest() (request *CreateSecurityRulesRequest) { request = &CreateSecurityRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateSecurityRules") @@ -1500,6 +1871,7 @@ func NewCreateSecurityRulesResponse() (response *CreateSecurityRulesResponse) { // FAILEDOPERATION_PROXYSECURITYPOLICYDEFAULTRULE = "FailedOperation.ProxySecurityPolicyDefaultRule" // FAILEDOPERATION_PROXYSECURITYPOLICYDUPLICATEDRULE = "FailedOperation.ProxySecurityPolicyDuplicatedRule" // FAILEDOPERATION_PROXYSECURITYPOLICYOPERATING = "FailedOperation.ProxySecurityPolicyOperating" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1525,6 +1897,7 @@ func (c *Client) CreateSecurityRules(request *CreateSecurityRulesRequest) (respo // FAILEDOPERATION_PROXYSECURITYPOLICYDEFAULTRULE = "FailedOperation.ProxySecurityPolicyDefaultRule" // FAILEDOPERATION_PROXYSECURITYPOLICYDUPLICATEDRULE = "FailedOperation.ProxySecurityPolicyDuplicatedRule" // FAILEDOPERATION_PROXYSECURITYPOLICYOPERATING = "FailedOperation.ProxySecurityPolicyOperating" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1554,6 +1927,7 @@ func NewCreateTCPListenersRequest() (request *CreateTCPListenersRequest) { request = &CreateTCPListenersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateTCPListeners") @@ -1584,6 +1958,7 @@ func NewCreateTCPListenersResponse() (response *CreateTCPListenersResponse) { // FAILEDOPERATION_OPERATELIMITNUMOFLISTENER = "FailedOperation.OperateLimitNumofListener" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1615,6 +1990,7 @@ func (c *Client) CreateTCPListeners(request *CreateTCPListenersRequest) (respons // FAILEDOPERATION_OPERATELIMITNUMOFLISTENER = "FailedOperation.OperateLimitNumofListener" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1645,6 +2021,7 @@ func NewCreateUDPListenersRequest() (request *CreateUDPListenersRequest) { request = &CreateUDPListenersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "CreateUDPListeners") @@ -1672,6 +2049,7 @@ func NewCreateUDPListenersResponse() (response *CreateUDPListenersResponse) { // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_OPERATELIMITNUMOFLISTENER = "FailedOperation.OperateLimitNumofListener" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1700,6 +2078,7 @@ func (c *Client) CreateUDPListeners(request *CreateUDPListenersRequest) (respons // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_OPERATELIMITNUMOFLISTENER = "FailedOperation.OperateLimitNumofListener" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1730,6 +2109,7 @@ func NewDeleteCertificateRequest() (request *DeleteCertificateRequest) { request = &DeleteCertificateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DeleteCertificate") @@ -1751,6 +2131,7 @@ func NewDeleteCertificateResponse() (response *DeleteCertificateResponse) { // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION_CERTIFICATEISUSING = "FailedOperation.CertificateIsUsing" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1772,6 +2153,7 @@ func (c *Client) DeleteCertificate(request *DeleteCertificateRequest) (response // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION_CERTIFICATEISUSING = "FailedOperation.CertificateIsUsing" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1801,6 +2183,7 @@ func NewDeleteDomainRequest() (request *DeleteDomainRequest) { request = &DeleteDomainRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DeleteDomain") @@ -1829,6 +2212,7 @@ func NewDeleteDomainResponse() (response *DeleteDomainResponse) { // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1854,6 +2238,7 @@ func (c *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDom // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1880,6 +2265,7 @@ func NewDeleteDomainErrorPageInfoRequest() (request *DeleteDomainErrorPageInfoRe request = &DeleteDomainErrorPageInfoRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DeleteDomainErrorPageInfo") @@ -1905,6 +2291,7 @@ func NewDeleteDomainErrorPageInfoResponse() (response *DeleteDomainErrorPageInfo // FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1926,6 +2313,7 @@ func (c *Client) DeleteDomainErrorPageInfo(request *DeleteDomainErrorPageInfoReq // FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -1947,79 +2335,276 @@ func (c *Client) DeleteDomainErrorPageInfoWithContext(ctx context.Context, reque return } -func NewDeleteListenersRequest() (request *DeleteListenersRequest) { - request = &DeleteListenersRequest{ +func NewDeleteFirstLinkSessionRequest() (request *DeleteFirstLinkSessionRequest) { + request = &DeleteFirstLinkSessionRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("gaap", APIVersion, "DeleteListeners") + + request.Init().WithApiInfo("gaap", APIVersion, "DeleteFirstLinkSession") return } -func NewDeleteListenersResponse() (response *DeleteListenersResponse) { - response = &DeleteListenersResponse{ +func NewDeleteFirstLinkSessionResponse() (response *DeleteFirstLinkSessionResponse) { + response = &DeleteFirstLinkSessionResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DeleteListeners -// 该接口(DeleteListeners)用于批量删除通道或通道组的监听器,包括4/7层监听器。 +// DeleteFirstLinkSession +// 本接口(DeleteFirstLinkSession)用于删除接入段加速会话,删除加速会话后会停止加速。 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" -// FAILEDOPERATION_INSTANCESTATUSNOTINRUNING = "FailedOperation.InstanceStatusNotInRuning" -// FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" -// FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" -// FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_REQUESTVENDORTIMEOUT = "FailedOperation.RequestVendorTimeout" +// FAILEDOPERATION_SESSIONNOTEXIST = "FailedOperation.SessionNotExist" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// FAILEDOPERATION_VENDORRETURNERROR = "FailedOperation.VendorReturnError" +// FAILEDOPERATION_VENDORSERVERERROR = "FailedOperation.VendorServerError" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -func (c *Client) DeleteListeners(request *DeleteListenersRequest) (response *DeleteListenersResponse, err error) { - return c.DeleteListenersWithContext(context.Background(), request) +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteFirstLinkSession(request *DeleteFirstLinkSessionRequest) (response *DeleteFirstLinkSessionResponse, err error) { + return c.DeleteFirstLinkSessionWithContext(context.Background(), request) } -// DeleteListeners -// 该接口(DeleteListeners)用于批量删除通道或通道组的监听器,包括4/7层监听器。 +// DeleteFirstLinkSession +// 本接口(DeleteFirstLinkSession)用于删除接入段加速会话,删除加速会话后会停止加速。 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" -// FAILEDOPERATION_INSTANCESTATUSNOTINRUNING = "FailedOperation.InstanceStatusNotInRuning" -// FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" -// FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" -// FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_REQUESTVENDORTIMEOUT = "FailedOperation.RequestVendorTimeout" +// FAILEDOPERATION_SESSIONNOTEXIST = "FailedOperation.SessionNotExist" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// FAILEDOPERATION_VENDORRETURNERROR = "FailedOperation.VendorReturnError" +// FAILEDOPERATION_VENDORSERVERERROR = "FailedOperation.VendorServerError" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -func (c *Client) DeleteListenersWithContext(ctx context.Context, request *DeleteListenersRequest) (response *DeleteListenersResponse, err error) { +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DeleteFirstLinkSessionWithContext(ctx context.Context, request *DeleteFirstLinkSessionRequest) (response *DeleteFirstLinkSessionResponse, err error) { if request == nil { - request = NewDeleteListenersRequest() + request = NewDeleteFirstLinkSessionRequest() } if c.GetCredential() == nil { - return nil, errors.New("DeleteListeners require credential") + return nil, errors.New("DeleteFirstLinkSession require credential") } request.SetContext(ctx) - response = NewDeleteListenersResponse() + response = NewDeleteFirstLinkSessionResponse() + err = c.Send(request, response) + return +} + +func NewDeleteGlobalDomainRequest() (request *DeleteGlobalDomainRequest) { + request = &DeleteGlobalDomainRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DeleteGlobalDomain") + + + return +} + +func NewDeleteGlobalDomainResponse() (response *DeleteGlobalDomainResponse) { + response = &DeleteGlobalDomainResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteGlobalDomain +// 删除统一域名 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DeleteGlobalDomain(request *DeleteGlobalDomainRequest) (response *DeleteGlobalDomainResponse, err error) { + return c.DeleteGlobalDomainWithContext(context.Background(), request) +} + +// DeleteGlobalDomain +// 删除统一域名 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DeleteGlobalDomainWithContext(ctx context.Context, request *DeleteGlobalDomainRequest) (response *DeleteGlobalDomainResponse, err error) { + if request == nil { + request = NewDeleteGlobalDomainRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteGlobalDomain require credential") + } + + request.SetContext(ctx) + + response = NewDeleteGlobalDomainResponse() + err = c.Send(request, response) + return +} + +func NewDeleteGlobalDomainDnsRequest() (request *DeleteGlobalDomainDnsRequest) { + request = &DeleteGlobalDomainDnsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DeleteGlobalDomainDns") + + + return +} + +func NewDeleteGlobalDomainDnsResponse() (response *DeleteGlobalDomainDnsResponse) { + response = &DeleteGlobalDomainDnsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteGlobalDomainDns +// 删除域名的某条解析记录 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DeleteGlobalDomainDns(request *DeleteGlobalDomainDnsRequest) (response *DeleteGlobalDomainDnsResponse, err error) { + return c.DeleteGlobalDomainDnsWithContext(context.Background(), request) +} + +// DeleteGlobalDomainDns +// 删除域名的某条解析记录 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DeleteGlobalDomainDnsWithContext(ctx context.Context, request *DeleteGlobalDomainDnsRequest) (response *DeleteGlobalDomainDnsResponse, err error) { + if request == nil { + request = NewDeleteGlobalDomainDnsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteGlobalDomainDns require credential") + } + + request.SetContext(ctx) + + response = NewDeleteGlobalDomainDnsResponse() + err = c.Send(request, response) + return +} + +func NewDeleteListenersRequest() (request *DeleteListenersRequest) { + request = &DeleteListenersRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DeleteListeners") + + + return +} + +func NewDeleteListenersResponse() (response *DeleteListenersResponse) { + response = &DeleteListenersResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteListeners +// 该接口(DeleteListeners)用于批量删除通道或通道组的监听器,包括4/7层监听器。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" +// FAILEDOPERATION_INSTANCESTATUSNOTINRUNING = "FailedOperation.InstanceStatusNotInRuning" +// FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" +// FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) DeleteListeners(request *DeleteListenersRequest) (response *DeleteListenersResponse, err error) { + return c.DeleteListenersWithContext(context.Background(), request) +} + +// DeleteListeners +// 该接口(DeleteListeners)用于批量删除通道或通道组的监听器,包括4/7层监听器。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" +// FAILEDOPERATION_INSTANCESTATUSNOTINRUNING = "FailedOperation.InstanceStatusNotInRuning" +// FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" +// FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) DeleteListenersWithContext(ctx context.Context, request *DeleteListenersRequest) (response *DeleteListenersResponse, err error) { + if request == nil { + request = NewDeleteListenersRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteListeners require credential") + } + + request.SetContext(ctx) + + response = NewDeleteListenersResponse() err = c.Send(request, response) return } @@ -2028,6 +2613,7 @@ func NewDeleteProxyGroupRequest() (request *DeleteProxyGroupRequest) { request = &DeleteProxyGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DeleteProxyGroup") @@ -2050,7 +2636,10 @@ func NewDeleteProxyGroupResponse() (response *DeleteProxyGroupResponse) { // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DELETEPROXYGROUPPROXYREMAINED = "FailedOperation.DeleteProxyGroupProxyRemained" +// FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2073,7 +2662,10 @@ func (c *Client) DeleteProxyGroup(request *DeleteProxyGroupRequest) (response *D // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DELETEPROXYGROUPPROXYREMAINED = "FailedOperation.DeleteProxyGroupProxyRemained" +// FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2103,6 +2695,7 @@ func NewDeleteRuleRequest() (request *DeleteRuleRequest) { request = &DeleteRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DeleteRule") @@ -2131,6 +2724,7 @@ func NewDeleteRuleResponse() (response *DeleteRuleResponse) { // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2156,6 +2750,7 @@ func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleRes // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2182,6 +2777,7 @@ func NewDeleteSecurityPolicyRequest() (request *DeleteSecurityPolicyRequest) { request = &DeleteSecurityPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DeleteSecurityPolicy") @@ -2203,6 +2799,7 @@ func NewDeleteSecurityPolicyResponse() (response *DeleteSecurityPolicyResponse) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2225,6 +2822,7 @@ func (c *Client) DeleteSecurityPolicy(request *DeleteSecurityPolicyRequest) (res // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2255,6 +2853,7 @@ func NewDeleteSecurityRulesRequest() (request *DeleteSecurityRulesRequest) { request = &DeleteSecurityRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DeleteSecurityRules") @@ -2277,6 +2876,7 @@ func NewDeleteSecurityRulesResponse() (response *DeleteSecurityRulesResponse) { // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2299,6 +2899,7 @@ func (c *Client) DeleteSecurityRules(request *DeleteSecurityRulesRequest) (respo // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2328,6 +2929,7 @@ func NewDescribeAccessRegionsRequest() (request *DescribeAccessRegionsRequest) { request = &DescribeAccessRegionsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeAccessRegions") @@ -2350,6 +2952,7 @@ func NewDescribeAccessRegionsResponse() (response *DescribeAccessRegionsResponse // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2370,6 +2973,7 @@ func (c *Client) DescribeAccessRegions(request *DescribeAccessRegionsRequest) (r // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2397,6 +3001,7 @@ func NewDescribeAccessRegionsByDestRegionRequest() (request *DescribeAccessRegio request = &DescribeAccessRegionsByDestRegionRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeAccessRegionsByDestRegion") @@ -2418,6 +3023,7 @@ func NewDescribeAccessRegionsByDestRegionResponse() (response *DescribeAccessReg // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2438,6 +3044,7 @@ func (c *Client) DescribeAccessRegionsByDestRegion(request *DescribeAccessRegion // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2466,6 +3073,7 @@ func NewDescribeBlackHeaderRequest() (request *DescribeBlackHeaderRequest) { request = &DescribeBlackHeaderRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeBlackHeader") @@ -2487,6 +3095,7 @@ func NewDescribeBlackHeaderResponse() (response *DescribeBlackHeaderResponse) { // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2506,6 +3115,7 @@ func (c *Client) DescribeBlackHeader(request *DescribeBlackHeaderRequest) (respo // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2533,6 +3143,7 @@ func NewDescribeCertificateDetailRequest() (request *DescribeCertificateDetailRe request = &DescribeCertificateDetailRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeCertificateDetail") @@ -2553,6 +3164,7 @@ func NewDescribeCertificateDetailResponse() (response *DescribeCertificateDetail // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2573,6 +3185,7 @@ func (c *Client) DescribeCertificateDetail(request *DescribeCertificateDetailReq // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2602,6 +3215,7 @@ func NewDescribeCertificatesRequest() (request *DescribeCertificatesRequest) { request = &DescribeCertificatesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeCertificates") @@ -2623,6 +3237,7 @@ func NewDescribeCertificatesResponse() (response *DescribeCertificatesResponse) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2643,6 +3258,7 @@ func (c *Client) DescribeCertificates(request *DescribeCertificatesRequest) (res // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2671,6 +3287,7 @@ func NewDescribeCountryAreaMappingRequest() (request *DescribeCountryAreaMapping request = &DescribeCountryAreaMappingRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeCountryAreaMapping") @@ -2692,6 +3309,7 @@ func NewDescribeCountryAreaMappingResponse() (response *DescribeCountryAreaMappi // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2713,6 +3331,7 @@ func (c *Client) DescribeCountryAreaMapping(request *DescribeCountryAreaMappingR // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2738,10 +3357,75 @@ func (c *Client) DescribeCountryAreaMappingWithContext(ctx context.Context, requ return } +func NewDescribeCrossBorderProxiesRequest() (request *DescribeCrossBorderProxiesRequest) { + request = &DescribeCrossBorderProxiesRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DescribeCrossBorderProxies") + + + return +} + +func NewDescribeCrossBorderProxiesResponse() (response *DescribeCrossBorderProxiesResponse) { + response = &DescribeCrossBorderProxiesResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeCrossBorderProxies +// 本接口(DescribeCrossBorderProxies)用于查询跨境通道实例列表。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNKNOWNPARAMETER = "UnknownParameter" +func (c *Client) DescribeCrossBorderProxies(request *DescribeCrossBorderProxiesRequest) (response *DescribeCrossBorderProxiesResponse, err error) { + return c.DescribeCrossBorderProxiesWithContext(context.Background(), request) +} + +// DescribeCrossBorderProxies +// 本接口(DescribeCrossBorderProxies)用于查询跨境通道实例列表。 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE = "ResourceUnavailable" +// UNKNOWNPARAMETER = "UnknownParameter" +func (c *Client) DescribeCrossBorderProxiesWithContext(ctx context.Context, request *DescribeCrossBorderProxiesRequest) (response *DescribeCrossBorderProxiesResponse, err error) { + if request == nil { + request = NewDescribeCrossBorderProxiesRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeCrossBorderProxies require credential") + } + + request.SetContext(ctx) + + response = NewDescribeCrossBorderProxiesResponse() + err = c.Send(request, response) + return +} + func NewDescribeCustomHeaderRequest() (request *DescribeCustomHeaderRequest) { request = &DescribeCustomHeaderRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeCustomHeader") @@ -2763,6 +3447,7 @@ func NewDescribeCustomHeaderResponse() (response *DescribeCustomHeaderResponse) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2782,6 +3467,7 @@ func (c *Client) DescribeCustomHeader(request *DescribeCustomHeaderRequest) (res // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2809,6 +3495,7 @@ func NewDescribeDestRegionsRequest() (request *DescribeDestRegionsRequest) { request = &DescribeDestRegionsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeDestRegions") @@ -2830,6 +3517,7 @@ func NewDescribeDestRegionsResponse() (response *DescribeDestRegionsResponse) { // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2849,6 +3537,7 @@ func (c *Client) DescribeDestRegions(request *DescribeDestRegionsRequest) (respo // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -2876,6 +3565,7 @@ func NewDescribeDomainErrorPageInfoRequest() (request *DescribeDomainErrorPageIn request = &DescribeDomainErrorPageInfoRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeDomainErrorPageInfo") @@ -2898,102 +3588,299 @@ func NewDescribeDomainErrorPageInfoResponse() (response *DescribeDomainErrorPage // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DescribeDomainErrorPageInfo(request *DescribeDomainErrorPageInfoRequest) (response *DescribeDomainErrorPageInfoResponse, err error) { + return c.DescribeDomainErrorPageInfoWithContext(context.Background(), request) +} + +// DescribeDomainErrorPageInfo +// 查询目前定制域名的错误响应 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DescribeDomainErrorPageInfoWithContext(ctx context.Context, request *DescribeDomainErrorPageInfoRequest) (response *DescribeDomainErrorPageInfoResponse, err error) { + if request == nil { + request = NewDescribeDomainErrorPageInfoRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainErrorPageInfo require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainErrorPageInfoResponse() + err = c.Send(request, response) + return +} + +func NewDescribeDomainErrorPageInfoByIdsRequest() (request *DescribeDomainErrorPageInfoByIdsRequest) { + request = &DescribeDomainErrorPageInfoByIdsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DescribeDomainErrorPageInfoByIds") + + + return +} + +func NewDescribeDomainErrorPageInfoByIdsResponse() (response *DescribeDomainErrorPageInfoByIdsResponse) { + response = &DescribeDomainErrorPageInfoByIdsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeDomainErrorPageInfoByIds +// 根据定制错误ID查询错误响应 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" -func (c *Client) DescribeDomainErrorPageInfo(request *DescribeDomainErrorPageInfoRequest) (response *DescribeDomainErrorPageInfoResponse, err error) { - return c.DescribeDomainErrorPageInfoWithContext(context.Background(), request) +func (c *Client) DescribeDomainErrorPageInfoByIds(request *DescribeDomainErrorPageInfoByIdsRequest) (response *DescribeDomainErrorPageInfoByIdsResponse, err error) { + return c.DescribeDomainErrorPageInfoByIdsWithContext(context.Background(), request) +} + +// DescribeDomainErrorPageInfoByIds +// 根据定制错误ID查询错误响应 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DescribeDomainErrorPageInfoByIdsWithContext(ctx context.Context, request *DescribeDomainErrorPageInfoByIdsRequest) (response *DescribeDomainErrorPageInfoByIdsResponse, err error) { + if request == nil { + request = NewDescribeDomainErrorPageInfoByIdsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainErrorPageInfoByIds require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainErrorPageInfoByIdsResponse() + err = c.Send(request, response) + return +} + +func NewDescribeFirstLinkSessionRequest() (request *DescribeFirstLinkSessionRequest) { + request = &DescribeFirstLinkSessionRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DescribeFirstLinkSession") + + + return +} + +func NewDescribeFirstLinkSessionResponse() (response *DescribeFirstLinkSessionResponse) { + response = &DescribeFirstLinkSessionResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeFirstLinkSession +// 本接口(DescribeFirstLinkSession)用于查询接入段加速会话状态,包括会话状态,生效时长,加速套餐等信息。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// DRYRUNOPERATION = "DryRunOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_VENDORRETURNERROR = "FailedOperation.VendorReturnError" +// FAILEDOPERATION_VENDORSERVERERROR = "FailedOperation.VendorServerError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeFirstLinkSession(request *DescribeFirstLinkSessionRequest) (response *DescribeFirstLinkSessionResponse, err error) { + return c.DescribeFirstLinkSessionWithContext(context.Background(), request) +} + +// DescribeFirstLinkSession +// 本接口(DescribeFirstLinkSession)用于查询接入段加速会话状态,包括会话状态,生效时长,加速套餐等信息。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// DRYRUNOPERATION = "DryRunOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_VENDORRETURNERROR = "FailedOperation.VendorReturnError" +// FAILEDOPERATION_VENDORSERVERERROR = "FailedOperation.VendorServerError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +// UNKNOWNPARAMETER = "UnknownParameter" +// UNSUPPORTEDOPERATION = "UnsupportedOperation" +func (c *Client) DescribeFirstLinkSessionWithContext(ctx context.Context, request *DescribeFirstLinkSessionRequest) (response *DescribeFirstLinkSessionResponse, err error) { + if request == nil { + request = NewDescribeFirstLinkSessionRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeFirstLinkSession require credential") + } + + request.SetContext(ctx) + + response = NewDescribeFirstLinkSessionResponse() + err = c.Send(request, response) + return +} + +func NewDescribeGlobalDomainDnsRequest() (request *DescribeGlobalDomainDnsRequest) { + request = &DescribeGlobalDomainDnsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DescribeGlobalDomainDns") + + + return +} + +func NewDescribeGlobalDomainDnsResponse() (response *DescribeGlobalDomainDnsResponse) { + response = &DescribeGlobalDomainDnsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeGlobalDomainDns +// 查询域名解析列表 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DescribeGlobalDomainDns(request *DescribeGlobalDomainDnsRequest) (response *DescribeGlobalDomainDnsResponse, err error) { + return c.DescribeGlobalDomainDnsWithContext(context.Background(), request) } -// DescribeDomainErrorPageInfo -// 查询目前定制域名的错误响应 +// DescribeGlobalDomainDns +// 查询域名解析列表 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" -func (c *Client) DescribeDomainErrorPageInfoWithContext(ctx context.Context, request *DescribeDomainErrorPageInfoRequest) (response *DescribeDomainErrorPageInfoResponse, err error) { +func (c *Client) DescribeGlobalDomainDnsWithContext(ctx context.Context, request *DescribeGlobalDomainDnsRequest) (response *DescribeGlobalDomainDnsResponse, err error) { if request == nil { - request = NewDescribeDomainErrorPageInfoRequest() + request = NewDescribeGlobalDomainDnsRequest() } if c.GetCredential() == nil { - return nil, errors.New("DescribeDomainErrorPageInfo require credential") + return nil, errors.New("DescribeGlobalDomainDns require credential") } request.SetContext(ctx) - response = NewDescribeDomainErrorPageInfoResponse() + response = NewDescribeGlobalDomainDnsResponse() err = c.Send(request, response) return } -func NewDescribeDomainErrorPageInfoByIdsRequest() (request *DescribeDomainErrorPageInfoByIdsRequest) { - request = &DescribeDomainErrorPageInfoByIdsRequest{ +func NewDescribeGlobalDomainsRequest() (request *DescribeGlobalDomainsRequest) { + request = &DescribeGlobalDomainsRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("gaap", APIVersion, "DescribeDomainErrorPageInfoByIds") + + request.Init().WithApiInfo("gaap", APIVersion, "DescribeGlobalDomains") return } -func NewDescribeDomainErrorPageInfoByIdsResponse() (response *DescribeDomainErrorPageInfoByIdsResponse) { - response = &DescribeDomainErrorPageInfoByIdsResponse{ +func NewDescribeGlobalDomainsResponse() (response *DescribeGlobalDomainsResponse) { + response = &DescribeGlobalDomainsResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DescribeDomainErrorPageInfoByIds -// 根据定制错误ID查询错误响应 +// DescribeGlobalDomains +// 查询域名列表 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INVALIDPARAMETERVALUE_INVALIDTAGS = "InvalidParameterValue.InvalidTags" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" -func (c *Client) DescribeDomainErrorPageInfoByIds(request *DescribeDomainErrorPageInfoByIdsRequest) (response *DescribeDomainErrorPageInfoByIdsResponse, err error) { - return c.DescribeDomainErrorPageInfoByIdsWithContext(context.Background(), request) +func (c *Client) DescribeGlobalDomains(request *DescribeGlobalDomainsRequest) (response *DescribeGlobalDomainsResponse, err error) { + return c.DescribeGlobalDomainsWithContext(context.Background(), request) } -// DescribeDomainErrorPageInfoByIds -// 根据定制错误ID查询错误响应 +// DescribeGlobalDomains +// 查询域名列表 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INVALIDPARAMETERVALUE_INVALIDTAGS = "InvalidParameterValue.InvalidTags" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" -func (c *Client) DescribeDomainErrorPageInfoByIdsWithContext(ctx context.Context, request *DescribeDomainErrorPageInfoByIdsRequest) (response *DescribeDomainErrorPageInfoByIdsResponse, err error) { +func (c *Client) DescribeGlobalDomainsWithContext(ctx context.Context, request *DescribeGlobalDomainsRequest) (response *DescribeGlobalDomainsResponse, err error) { if request == nil { - request = NewDescribeDomainErrorPageInfoByIdsRequest() + request = NewDescribeGlobalDomainsRequest() } if c.GetCredential() == nil { - return nil, errors.New("DescribeDomainErrorPageInfoByIds require credential") + return nil, errors.New("DescribeGlobalDomains require credential") } request.SetContext(ctx) - response = NewDescribeDomainErrorPageInfoByIdsResponse() + response = NewDescribeGlobalDomainsResponse() err = c.Send(request, response) return } @@ -3002,6 +3889,7 @@ func NewDescribeGroupAndStatisticsProxyRequest() (request *DescribeGroupAndStati request = &DescribeGroupAndStatisticsProxyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeGroupAndStatisticsProxy") @@ -3024,6 +3912,7 @@ func NewDescribeGroupAndStatisticsProxyResponse() (response *DescribeGroupAndSta // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3044,6 +3933,7 @@ func (c *Client) DescribeGroupAndStatisticsProxy(request *DescribeGroupAndStatis // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3071,6 +3961,7 @@ func NewDescribeGroupDomainConfigRequest() (request *DescribeGroupDomainConfigRe request = &DescribeGroupDomainConfigRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeGroupDomainConfig") @@ -3093,6 +3984,7 @@ func NewDescribeGroupDomainConfigResponse() (response *DescribeGroupDomainConfig // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3115,6 +4007,7 @@ func (c *Client) DescribeGroupDomainConfig(request *DescribeGroupDomainConfigReq // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3144,6 +4037,7 @@ func NewDescribeHTTPListenersRequest() (request *DescribeHTTPListenersRequest) { request = &DescribeHTTPListenersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeHTTPListeners") @@ -3167,6 +4061,7 @@ func NewDescribeHTTPListenersResponse() (response *DescribeHTTPListenersResponse // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3189,6 +4084,7 @@ func (c *Client) DescribeHTTPListeners(request *DescribeHTTPListenersRequest) (r // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3217,6 +4113,7 @@ func NewDescribeHTTPSListenersRequest() (request *DescribeHTTPSListenersRequest) request = &DescribeHTTPSListenersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeHTTPSListeners") @@ -3240,6 +4137,7 @@ func NewDescribeHTTPSListenersResponse() (response *DescribeHTTPSListenersRespon // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3261,6 +4159,7 @@ func (c *Client) DescribeHTTPSListeners(request *DescribeHTTPSListenersRequest) // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3288,6 +4187,7 @@ func NewDescribeListenerRealServersRequest() (request *DescribeListenerRealServe request = &DescribeListenerRealServersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeListenerRealServers") @@ -3309,6 +4209,7 @@ func NewDescribeListenerRealServersResponse() (response *DescribeListenerRealSer // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3328,6 +4229,7 @@ func (c *Client) DescribeListenerRealServers(request *DescribeListenerRealServer // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3355,6 +4257,7 @@ func NewDescribeListenerStatisticsRequest() (request *DescribeListenerStatistics request = &DescribeListenerStatisticsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeListenerStatistics") @@ -3377,6 +4280,7 @@ func NewDescribeListenerStatisticsResponse() (response *DescribeListenerStatisti // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3397,6 +4301,7 @@ func (c *Client) DescribeListenerStatistics(request *DescribeListenerStatisticsR // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3424,6 +4329,7 @@ func NewDescribeProxiesRequest() (request *DescribeProxiesRequest) { request = &DescribeProxiesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeProxies") @@ -3445,6 +4351,7 @@ func NewDescribeProxiesResponse() (response *DescribeProxiesResponse) { // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3465,6 +4372,7 @@ func (c *Client) DescribeProxies(request *DescribeProxiesRequest) (response *Des // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3493,6 +4401,7 @@ func NewDescribeProxiesStatusRequest() (request *DescribeProxiesStatusRequest) { request = &DescribeProxiesStatusRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeProxiesStatus") @@ -3515,6 +4424,7 @@ func NewDescribeProxiesStatusResponse() (response *DescribeProxiesStatusResponse // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3536,6 +4446,7 @@ func (c *Client) DescribeProxiesStatus(request *DescribeProxiesStatusRequest) (r // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3564,6 +4475,7 @@ func NewDescribeProxyAndStatisticsListenersRequest() (request *DescribeProxyAndS request = &DescribeProxyAndStatisticsListenersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeProxyAndStatisticsListeners") @@ -3585,6 +4497,7 @@ func NewDescribeProxyAndStatisticsListenersResponse() (response *DescribeProxyAn // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3603,6 +4516,7 @@ func (c *Client) DescribeProxyAndStatisticsListeners(request *DescribeProxyAndSt // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3629,6 +4543,7 @@ func NewDescribeProxyDetailRequest() (request *DescribeProxyDetailRequest) { request = &DescribeProxyDetailRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeProxyDetail") @@ -3706,6 +4621,7 @@ func NewDescribeProxyGroupDetailsRequest() (request *DescribeProxyGroupDetailsRe request = &DescribeProxyGroupDetailsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeProxyGroupDetails") @@ -3777,6 +4693,7 @@ func NewDescribeProxyGroupListRequest() (request *DescribeProxyGroupListRequest) request = &DescribeProxyGroupListRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeProxyGroupList") @@ -3798,6 +4715,7 @@ func NewDescribeProxyGroupListResponse() (response *DescribeProxyGroupListRespon // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3819,6 +4737,7 @@ func (c *Client) DescribeProxyGroupList(request *DescribeProxyGroupListRequest) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3848,6 +4767,7 @@ func NewDescribeProxyGroupStatisticsRequest() (request *DescribeProxyGroupStatis request = &DescribeProxyGroupStatisticsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeProxyGroupStatistics") @@ -3870,6 +4790,7 @@ func NewDescribeProxyGroupStatisticsResponse() (response *DescribeProxyGroupStat // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3890,6 +4811,7 @@ func (c *Client) DescribeProxyGroupStatistics(request *DescribeProxyGroupStatist // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3917,6 +4839,7 @@ func NewDescribeProxyStatisticsRequest() (request *DescribeProxyStatisticsReques request = &DescribeProxyStatisticsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeProxyStatistics") @@ -3939,6 +4862,7 @@ func NewDescribeProxyStatisticsResponse() (response *DescribeProxyStatisticsResp // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3959,6 +4883,7 @@ func (c *Client) DescribeProxyStatistics(request *DescribeProxyStatisticsRequest // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -3986,6 +4911,7 @@ func NewDescribeRealServerStatisticsRequest() (request *DescribeRealServerStatis request = &DescribeRealServerStatisticsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeRealServerStatistics") @@ -4007,6 +4933,7 @@ func NewDescribeRealServerStatisticsResponse() (response *DescribeRealServerStat // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4025,6 +4952,7 @@ func (c *Client) DescribeRealServerStatistics(request *DescribeRealServerStatist // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4051,6 +4979,7 @@ func NewDescribeRealServersRequest() (request *DescribeRealServersRequest) { request = &DescribeRealServersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeRealServers") @@ -4072,6 +5001,7 @@ func NewDescribeRealServersResponse() (response *DescribeRealServersResponse) { // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4091,6 +5021,7 @@ func (c *Client) DescribeRealServers(request *DescribeRealServersRequest) (respo // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4118,6 +5049,7 @@ func NewDescribeRealServersStatusRequest() (request *DescribeRealServersStatusRe request = &DescribeRealServersStatusRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeRealServersStatus") @@ -4140,6 +5072,7 @@ func NewDescribeRealServersStatusResponse() (response *DescribeRealServersStatus // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_REALSERVERNOTINPROJECT = "FailedOperation.RealServerNotInProject" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4160,6 +5093,7 @@ func (c *Client) DescribeRealServersStatus(request *DescribeRealServersStatusReq // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_REALSERVERNOTINPROJECT = "FailedOperation.RealServerNotInProject" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4187,6 +5121,7 @@ func NewDescribeRegionAndPriceRequest() (request *DescribeRegionAndPriceRequest) request = &DescribeRegionAndPriceRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeRegionAndPrice") @@ -4208,6 +5143,7 @@ func NewDescribeRegionAndPriceResponse() (response *DescribeRegionAndPriceRespon // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4227,6 +5163,7 @@ func (c *Client) DescribeRegionAndPrice(request *DescribeRegionAndPriceRequest) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4254,6 +5191,7 @@ func NewDescribeResourcesByTagRequest() (request *DescribeResourcesByTagRequest) request = &DescribeResourcesByTagRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeResourcesByTag") @@ -4275,6 +5213,7 @@ func NewDescribeResourcesByTagResponse() (response *DescribeResourcesByTagRespon // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4294,6 +5233,7 @@ func (c *Client) DescribeResourcesByTag(request *DescribeResourcesByTagRequest) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4321,6 +5261,7 @@ func NewDescribeRuleRealServersRequest() (request *DescribeRuleRealServersReques request = &DescribeRuleRealServersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeRuleRealServers") @@ -4343,6 +5284,7 @@ func NewDescribeRuleRealServersResponse() (response *DescribeRuleRealServersResp // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4362,6 +5304,7 @@ func (c *Client) DescribeRuleRealServers(request *DescribeRuleRealServersRequest // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4388,6 +5331,7 @@ func NewDescribeRulesRequest() (request *DescribeRulesRequest) { request = &DescribeRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeRules") @@ -4409,6 +5353,7 @@ func NewDescribeRulesResponse() (response *DescribeRulesResponse) { // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4428,6 +5373,7 @@ func (c *Client) DescribeRules(request *DescribeRulesRequest) (response *Describ // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4455,6 +5401,7 @@ func NewDescribeRulesByRuleIdsRequest() (request *DescribeRulesByRuleIdsRequest) request = &DescribeRulesByRuleIdsRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeRulesByRuleIds") @@ -4477,6 +5424,7 @@ func NewDescribeRulesByRuleIdsResponse() (response *DescribeRulesByRuleIdsRespon // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4500,6 +5448,7 @@ func (c *Client) DescribeRulesByRuleIds(request *DescribeRulesByRuleIdsRequest) // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4530,6 +5479,7 @@ func NewDescribeSecurityPolicyDetailRequest() (request *DescribeSecurityPolicyDe request = &DescribeSecurityPolicyDetailRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeSecurityPolicyDetail") @@ -4551,6 +5501,7 @@ func NewDescribeSecurityPolicyDetailResponse() (response *DescribeSecurityPolicy // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4572,6 +5523,7 @@ func (c *Client) DescribeSecurityPolicyDetail(request *DescribeSecurityPolicyDet // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4601,6 +5553,7 @@ func NewDescribeSecurityRulesRequest() (request *DescribeSecurityRulesRequest) { request = &DescribeSecurityRulesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeSecurityRules") @@ -4623,6 +5576,7 @@ func NewDescribeSecurityRulesResponse() (response *DescribeSecurityRulesResponse // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4646,6 +5600,7 @@ func (c *Client) DescribeSecurityRules(request *DescribeSecurityRulesRequest) (r // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4676,6 +5631,7 @@ func NewDescribeTCPListenersRequest() (request *DescribeTCPListenersRequest) { request = &DescribeTCPListenersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeTCPListeners") @@ -4697,6 +5653,7 @@ func NewDescribeTCPListenersResponse() (response *DescribeTCPListenersResponse) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4717,6 +5674,7 @@ func (c *Client) DescribeTCPListeners(request *DescribeTCPListenersRequest) (res // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4745,6 +5703,7 @@ func NewDescribeUDPListenersRequest() (request *DescribeUDPListenersRequest) { request = &DescribeUDPListenersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DescribeUDPListeners") @@ -4766,6 +5725,7 @@ func NewDescribeUDPListenersResponse() (response *DescribeUDPListenersResponse) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4785,6 +5745,7 @@ func (c *Client) DescribeUDPListeners(request *DescribeUDPListenersRequest) (res // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4812,6 +5773,7 @@ func NewDestroyProxiesRequest() (request *DestroyProxiesRequest) { request = &DestroyProxiesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "DestroyProxies") @@ -4839,6 +5801,8 @@ func NewDestroyProxiesResponse() (response *DestroyProxiesResponse) { // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4867,6 +5831,8 @@ func (c *Client) DestroyProxies(request *DestroyProxiesRequest) (response *Destr // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4893,10 +5859,123 @@ func (c *Client) DestroyProxiesWithContext(ctx context.Context, request *Destroy return } +func NewDisableGlobalDomainRequest() (request *DisableGlobalDomainRequest) { + request = &DisableGlobalDomainRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DisableGlobalDomain") + + + return +} + +func NewDisableGlobalDomainResponse() (response *DisableGlobalDomainResponse) { + response = &DisableGlobalDomainResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DisableGlobalDomain +// 暂停域名解析 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DisableGlobalDomain(request *DisableGlobalDomainRequest) (response *DisableGlobalDomainResponse, err error) { + return c.DisableGlobalDomainWithContext(context.Background(), request) +} + +// DisableGlobalDomain +// 暂停域名解析 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) DisableGlobalDomainWithContext(ctx context.Context, request *DisableGlobalDomainRequest) (response *DisableGlobalDomainResponse, err error) { + if request == nil { + request = NewDisableGlobalDomainRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DisableGlobalDomain require credential") + } + + request.SetContext(ctx) + + response = NewDisableGlobalDomainResponse() + err = c.Send(request, response) + return +} + +func NewEnableGlobalDomainRequest() (request *EnableGlobalDomainRequest) { + request = &EnableGlobalDomainRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "EnableGlobalDomain") + + + return +} + +func NewEnableGlobalDomainResponse() (response *EnableGlobalDomainResponse) { + response = &EnableGlobalDomainResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// EnableGlobalDomain +// 开启域名解析 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) EnableGlobalDomain(request *EnableGlobalDomainRequest) (response *EnableGlobalDomainResponse, err error) { + return c.EnableGlobalDomainWithContext(context.Background(), request) +} + +// EnableGlobalDomain +// 开启域名解析 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) EnableGlobalDomainWithContext(ctx context.Context, request *EnableGlobalDomainRequest) (response *EnableGlobalDomainResponse, err error) { + if request == nil { + request = NewEnableGlobalDomainRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("EnableGlobalDomain require credential") + } + + request.SetContext(ctx) + + response = NewEnableGlobalDomainResponse() + err = c.Send(request, response) + return +} + func NewInquiryPriceCreateProxyRequest() (request *InquiryPriceCreateProxyRequest) { request = &InquiryPriceCreateProxyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "InquiryPriceCreateProxy") @@ -4919,6 +5998,7 @@ func NewInquiryPriceCreateProxyResponse() (response *InquiryPriceCreateProxyResp // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4945,6 +6025,7 @@ func (c *Client) InquiryPriceCreateProxy(request *InquiryPriceCreateProxyRequest // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -4978,6 +6059,7 @@ func NewModifyCertificateRequest() (request *ModifyCertificateRequest) { request = &ModifyCertificateRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyCertificate") @@ -5000,9 +6082,11 @@ func NewModifyCertificateResponse() (response *ModifyCertificateResponse) { // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINSTATUSNOTINRUNNING = "FailedOperation.DomainStatusNotInRunning" +// FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5025,9 +6109,11 @@ func (c *Client) ModifyCertificate(request *ModifyCertificateRequest) (response // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINSTATUSNOTINRUNNING = "FailedOperation.DomainStatusNotInRunning" +// FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5057,6 +6143,7 @@ func NewModifyCertificateAttributesRequest() (request *ModifyCertificateAttribut request = &ModifyCertificateAttributesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyCertificateAttributes") @@ -5078,6 +6165,7 @@ func NewModifyCertificateAttributesResponse() (response *ModifyCertificateAttrib // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION_CERTIFICATEISUSING = "FailedOperation.CertificateIsUsing" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5099,6 +6187,7 @@ func (c *Client) ModifyCertificateAttributes(request *ModifyCertificateAttribute // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION_CERTIFICATEISUSING = "FailedOperation.CertificateIsUsing" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5128,6 +6217,7 @@ func NewModifyDomainRequest() (request *ModifyDomainRequest) { request = &ModifyDomainRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyDomain") @@ -5156,6 +6246,7 @@ func NewModifyDomainResponse() (response *ModifyDomainResponse) { // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5184,6 +6275,7 @@ func (c *Client) ModifyDomain(request *ModifyDomainRequest) (response *ModifyDom // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSTATUSNOTINRUNING = "FailedOperation.ProxyStatusNotInRuning" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5209,10 +6301,129 @@ func (c *Client) ModifyDomainWithContext(ctx context.Context, request *ModifyDom return } +func NewModifyGlobalDomainAttributeRequest() (request *ModifyGlobalDomainAttributeRequest) { + request = &ModifyGlobalDomainAttributeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "ModifyGlobalDomainAttribute") + + + return +} + +func NewModifyGlobalDomainAttributeResponse() (response *ModifyGlobalDomainAttributeResponse) { + response = &ModifyGlobalDomainAttributeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifyGlobalDomainAttribute +// 修改域名属性 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INVALIDPARAMETERVALUE_GLOBALDOMAINHITBANBLACKLIST = "InvalidParameterValue.GlobalDomainHitBanBlacklist" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) ModifyGlobalDomainAttribute(request *ModifyGlobalDomainAttributeRequest) (response *ModifyGlobalDomainAttributeResponse, err error) { + return c.ModifyGlobalDomainAttributeWithContext(context.Background(), request) +} + +// ModifyGlobalDomainAttribute +// 修改域名属性 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INVALIDPARAMETERVALUE_GLOBALDOMAINHITBANBLACKLIST = "InvalidParameterValue.GlobalDomainHitBanBlacklist" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) ModifyGlobalDomainAttributeWithContext(ctx context.Context, request *ModifyGlobalDomainAttributeRequest) (response *ModifyGlobalDomainAttributeResponse, err error) { + if request == nil { + request = NewModifyGlobalDomainAttributeRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyGlobalDomainAttribute require credential") + } + + request.SetContext(ctx) + + response = NewModifyGlobalDomainAttributeResponse() + err = c.Send(request, response) + return +} + +func NewModifyGlobalDomainDnsRequest() (request *ModifyGlobalDomainDnsRequest) { + request = &ModifyGlobalDomainDnsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "ModifyGlobalDomainDns") + + + return +} + +func NewModifyGlobalDomainDnsResponse() (response *ModifyGlobalDomainDnsResponse) { + response = &ModifyGlobalDomainDnsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifyGlobalDomainDns +// 修改域名解析记录 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) ModifyGlobalDomainDns(request *ModifyGlobalDomainDnsRequest) (response *ModifyGlobalDomainDnsResponse, err error) { + return c.ModifyGlobalDomainDnsWithContext(context.Background(), request) +} + +// ModifyGlobalDomainDns +// 修改域名解析记录 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +func (c *Client) ModifyGlobalDomainDnsWithContext(ctx context.Context, request *ModifyGlobalDomainDnsRequest) (response *ModifyGlobalDomainDnsResponse, err error) { + if request == nil { + request = NewModifyGlobalDomainDnsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyGlobalDomainDns require credential") + } + + request.SetContext(ctx) + + response = NewModifyGlobalDomainDnsResponse() + err = c.Send(request, response) + return +} + func NewModifyGroupDomainConfigRequest() (request *ModifyGroupDomainConfigRequest) { request = &ModifyGroupDomainConfigRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyGroupDomainConfig") @@ -5234,6 +6445,7 @@ func NewModifyGroupDomainConfigResponse() (response *ModifyGroupDomainConfigResp // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5255,6 +6467,7 @@ func (c *Client) ModifyGroupDomainConfig(request *ModifyGroupDomainConfigRequest // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5284,6 +6497,7 @@ func NewModifyHTTPListenerAttributeRequest() (request *ModifyHTTPListenerAttribu request = &ModifyHTTPListenerAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyHTTPListenerAttribute") @@ -5311,6 +6525,7 @@ func NewModifyHTTPListenerAttributeResponse() (response *ModifyHTTPListenerAttri // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5335,6 +6550,7 @@ func (c *Client) ModifyHTTPListenerAttribute(request *ModifyHTTPListenerAttribut // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_NOTSUPPORTPROXYGROUP = "FailedOperation.NotSupportProxyGroup" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5361,6 +6577,7 @@ func NewModifyHTTPSListenerAttributeRequest() (request *ModifyHTTPSListenerAttri request = &ModifyHTTPSListenerAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyHTTPSListenerAttribute") @@ -5387,6 +6604,7 @@ func NewModifyHTTPSListenerAttributeResponse() (response *ModifyHTTPSListenerAtt // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5411,6 +6629,7 @@ func (c *Client) ModifyHTTPSListenerAttribute(request *ModifyHTTPSListenerAttrib // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5438,6 +6657,7 @@ func NewModifyProxiesAttributeRequest() (request *ModifyProxiesAttributeRequest) request = &ModifyProxiesAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyProxiesAttribute") @@ -5463,6 +6683,7 @@ func NewModifyProxiesAttributeResponse() (response *ModifyProxiesAttributeRespon // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5488,6 +6709,7 @@ func (c *Client) ModifyProxiesAttribute(request *ModifyProxiesAttributeRequest) // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5517,6 +6739,7 @@ func NewModifyProxiesProjectRequest() (request *ModifyProxiesProjectRequest) { request = &ModifyProxiesProjectRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyProxiesProject") @@ -5541,6 +6764,7 @@ func NewModifyProxiesProjectResponse() (response *ModifyProxiesProjectResponse) // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5565,6 +6789,7 @@ func (c *Client) ModifyProxiesProject(request *ModifyProxiesProjectRequest) (res // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5594,6 +6819,7 @@ func NewModifyProxyConfigurationRequest() (request *ModifyProxyConfigurationRequ request = &ModifyProxyConfigurationRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyProxyConfiguration") @@ -5621,6 +6847,7 @@ func NewModifyProxyConfigurationResponse() (response *ModifyProxyConfigurationRe // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTSCALAR = "FailedOperation.NotSupportScalar" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5648,6 +6875,7 @@ func (c *Client) ModifyProxyConfiguration(request *ModifyProxyConfigurationReque // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTSCALAR = "FailedOperation.NotSupportScalar" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5677,6 +6905,7 @@ func NewModifyProxyGroupAttributeRequest() (request *ModifyProxyGroupAttributeRe request = &ModifyProxyGroupAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyProxyGroupAttribute") @@ -5698,6 +6927,7 @@ func NewModifyProxyGroupAttributeResponse() (response *ModifyProxyGroupAttribute // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5719,6 +6949,7 @@ func (c *Client) ModifyProxyGroupAttribute(request *ModifyProxyGroupAttributeReq // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5748,6 +6979,7 @@ func NewModifyRealServerNameRequest() (request *ModifyRealServerNameRequest) { request = &ModifyRealServerNameRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyRealServerName") @@ -5769,6 +7001,7 @@ func NewModifyRealServerNameResponse() (response *ModifyRealServerNameResponse) // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5788,6 +7021,7 @@ func (c *Client) ModifyRealServerName(request *ModifyRealServerNameRequest) (res // AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5815,6 +7049,7 @@ func NewModifyRuleAttributeRequest() (request *ModifyRuleAttributeRequest) { request = &ModifyRuleAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyRuleAttribute") @@ -5840,10 +7075,12 @@ func NewModifyRuleAttributeResponse() (response *ModifyRuleAttributeResponse) { // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_RULEALREADYEXISTED = "FailedOperation.RuleAlreadyExisted" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" func (c *Client) ModifyRuleAttribute(request *ModifyRuleAttributeRequest) (response *ModifyRuleAttributeResponse, err error) { @@ -5862,10 +7099,12 @@ func (c *Client) ModifyRuleAttribute(request *ModifyRuleAttributeRequest) (respo // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_RULEALREADYEXISTED = "FailedOperation.RuleAlreadyExisted" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // MISSINGPARAMETER = "MissingParameter" +// RESOURCENOTFOUND = "ResourceNotFound" // RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" func (c *Client) ModifyRuleAttributeWithContext(ctx context.Context, request *ModifyRuleAttributeRequest) (response *ModifyRuleAttributeResponse, err error) { @@ -5888,6 +7127,7 @@ func NewModifySecurityRuleRequest() (request *ModifySecurityRuleRequest) { request = &ModifySecurityRuleRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifySecurityRule") @@ -5912,6 +7152,8 @@ func NewModifySecurityRuleResponse() (response *ModifySecurityRuleResponse) { // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSECURITYPOLICYDEFAULTRULE = "FailedOperation.ProxySecurityPolicyDefaultRule" // FAILEDOPERATION_PROXYSECURITYPOLICYDUPLICATEDRULE = "FailedOperation.ProxySecurityPolicyDuplicatedRule" +// FAILEDOPERATION_PROXYSECURITYPOLICYOPERATING = "FailedOperation.ProxySecurityPolicyOperating" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5936,6 +7178,8 @@ func (c *Client) ModifySecurityRule(request *ModifySecurityRuleRequest) (respons // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_PROXYSECURITYPOLICYDEFAULTRULE = "FailedOperation.ProxySecurityPolicyDefaultRule" // FAILEDOPERATION_PROXYSECURITYPOLICYDUPLICATEDRULE = "FailedOperation.ProxySecurityPolicyDuplicatedRule" +// FAILEDOPERATION_PROXYSECURITYPOLICYOPERATING = "FailedOperation.ProxySecurityPolicyOperating" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -5965,6 +7209,7 @@ func NewModifyTCPListenerAttributeRequest() (request *ModifyTCPListenerAttribute request = &ModifyTCPListenerAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyTCPListenerAttribute") @@ -5991,6 +7236,7 @@ func NewModifyTCPListenerAttributeResponse() (response *ModifyTCPListenerAttribu // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6015,6 +7261,7 @@ func (c *Client) ModifyTCPListenerAttribute(request *ModifyTCPListenerAttributeR // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6042,6 +7289,7 @@ func NewModifyUDPListenerAttributeRequest() (request *ModifyUDPListenerAttribute request = &ModifyUDPListenerAttributeRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "ModifyUDPListenerAttribute") @@ -6068,6 +7316,7 @@ func NewModifyUDPListenerAttributeResponse() (response *ModifyUDPListenerAttribu // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6092,6 +7341,7 @@ func (c *Client) ModifyUDPListenerAttribute(request *ModifyUDPListenerAttributeR // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" // FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6119,6 +7369,7 @@ func NewOpenProxiesRequest() (request *OpenProxiesRequest) { request = &OpenProxiesRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "OpenProxies") @@ -6143,6 +7394,7 @@ func NewOpenProxiesResponse() (response *OpenProxiesResponse) { // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6167,6 +7419,7 @@ func (c *Client) OpenProxies(request *OpenProxiesRequest) (response *OpenProxies // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6196,6 +7449,7 @@ func NewOpenProxyGroupRequest() (request *OpenProxyGroupRequest) { request = &OpenProxyGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "OpenProxyGroup") @@ -6219,6 +7473,7 @@ func NewOpenProxyGroupResponse() (response *OpenProxyGroupResponse) { // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6240,6 +7495,7 @@ func (c *Client) OpenProxyGroup(request *OpenProxyGroupRequest) (response *OpenP // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACCOUNTBALANCEINSUFFICIENT = "FailedOperation.AccountBalanceInsufficient" // FAILEDOPERATION_DUPLICATEDREQUEST = "FailedOperation.DuplicatedRequest" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6267,6 +7523,7 @@ func NewOpenSecurityPolicyRequest() (request *OpenSecurityPolicyRequest) { request = &OpenSecurityPolicyRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "OpenSecurityPolicy") @@ -6290,6 +7547,7 @@ func NewOpenSecurityPolicyResponse() (response *OpenSecurityPolicyResponse) { // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACTIONISDOING = "FailedOperation.ActionIsDoing" // FAILEDOPERATION_PROXYSECURITYALREADYOPEN = "FailedOperation.ProxySecurityAlreadyOpen" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6313,6 +7571,7 @@ func (c *Client) OpenSecurityPolicy(request *OpenSecurityPolicyRequest) (respons // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_ACTIONISDOING = "FailedOperation.ActionIsDoing" // FAILEDOPERATION_PROXYSECURITYALREADYOPEN = "FailedOperation.ProxySecurityAlreadyOpen" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6342,6 +7601,7 @@ func NewRemoveRealServersRequest() (request *RemoveRealServersRequest) { request = &RemoveRealServersRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "RemoveRealServers") @@ -6364,6 +7624,8 @@ func NewRemoveRealServersResponse() (response *RemoveRealServersResponse) { // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6385,6 +7647,8 @@ func (c *Client) RemoveRealServers(request *RemoveRealServersRequest) (response // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_REALSERVERALREADYBOUND = "FailedOperation.RealServerAlreadyBound" +// FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6413,6 +7677,7 @@ func NewSetAuthenticationRequest() (request *SetAuthenticationRequest) { request = &SetAuthenticationRequest{ BaseRequest: &tchttp.BaseRequest{}, } + request.Init().WithApiInfo("gaap", APIVersion, "SetAuthentication") @@ -6439,6 +7704,7 @@ func NewSetAuthenticationResponse() (response *SetAuthenticationResponse) { // FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" @@ -6466,6 +7732,7 @@ func (c *Client) SetAuthentication(request *SetAuthenticationRequest) (response // FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_PROXYVERSIONNOTSUPPORT = "FailedOperation.ProxyVersionNotSupport" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/errors.go index cf65c17a8d..f9ec99fd15 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/errors.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/errors.go @@ -26,6 +26,9 @@ const ( // 子账户未授权操作。 AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" + // DryRun 操作,代表请求将会是成功的,只是多传了 DryRun 参数。 + DRYRUNOPERATION = "DryRunOperation" + // 操作失败。 FAILEDOPERATION = "FailedOperation" @@ -41,9 +44,15 @@ const ( // 该批通道归属于不同的通道组,无法批量操作。 FAILEDOPERATION_BELONGDIFFERENTGROUP = "FailedOperation.BelongDifferentGroup" + // 中国电信加速token过期。 + FAILEDOPERATION_CTCCTOKENEXPIRED = "FailedOperation.CTCCTokenExpired" + // 证书正在使用中,无法操作。 FAILEDOPERATION_CERTIFICATEISUSING = "FailedOperation.CertificateIsUsing" + // 相同加速间隔时间过短。 + FAILEDOPERATION_CREATEQOSEXCEEDLIMIT = "FailedOperation.CreateQosExceedLimit" + // 通道组中存在通道,无法删除。 FAILEDOPERATION_DELETEPROXYGROUPPROXYREMAINED = "FailedOperation.DeleteProxyGroupProxyRemained" @@ -59,6 +68,9 @@ const ( // 通道组状态为非运行状态,无法操作。 FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" + // 加速目标IP与绑定的通道IP不匹配。 + FAILEDOPERATION_IPUNMATCHED = "FailedOperation.IPUnmatched" + // 通道状态为非运行状态,无法操作。 FAILEDOPERATION_INSTANCESTATUSNOTINRUNING = "FailedOperation.InstanceStatusNotInRuning" @@ -86,6 +98,9 @@ const ( // 加速通道在升级中,暂不支持配置变更,请提工单申请。 FAILEDOPERATION_MIGRATION = "FailedOperation.Migration" + // 该应用模版没有绑定通道。 + FAILEDOPERATION_NORESOURCEBOUND = "FailedOperation.NoResourceBound" + // 该通道为非标通道,限制所有写操作。 FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" @@ -134,18 +149,48 @@ const ( // 源站不归属于该项目。 FAILEDOPERATION_REALSERVERNOTINPROJECT = "FailedOperation.RealServerNotInProject" + // 请求运营商超时。 + FAILEDOPERATION_REQUESTVENDORTIMEOUT = "FailedOperation.RequestVendorTimeout" + // 该资源不可访问。 FAILEDOPERATION_RESOURCECANNOTACCESS = "FailedOperation.ResourceCanNotAccess" + // 资源已经被操作过。 + FAILEDOPERATION_RESOURCEHADBEENDONE = "FailedOperation.ResourceHadBeenDone" + + // 应用ID填写有误,请检查应用ID是否存在。 + FAILEDOPERATION_RESOURCENOTFOUND = "FailedOperation.ResourceNotFound" + // 资源升级中。 FAILEDOPERATION_RESOURCEUPGRADING = "FailedOperation.ResourceUpgrading" // 规则已经存在。 FAILEDOPERATION_RULEALREADYEXISTED = "FailedOperation.RuleAlreadyExisted" + // Session不存在或已经被取消。 + FAILEDOPERATION_SESSIONNOTEXIST = "FailedOperation.SessionNotExist" + + // 标签资源绑定失败。 + FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" + + // 标签资源解绑失败。 + FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" + // 用户未认证。 FAILEDOPERATION_USERNOTAUTHENTICATED = "FailedOperation.UserNotAuthenticated" + // 未开通协议。 + FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" + + // 该用户不在运营商网络可加速范围内。 + FAILEDOPERATION_USEROUTOFCOVERAGE = "FailedOperation.UserOutOfCoverage" + + // 运营商返回结果错误。 + FAILEDOPERATION_VENDORRETURNERROR = "FailedOperation.VendorReturnError" + + // 运营商服务器临时错误。 + FAILEDOPERATION_VENDORSERVERERROR = "FailedOperation.VendorServerError" + // 内部错误。 INTERNALERROR = "InternalError" @@ -155,6 +200,9 @@ const ( // 参数取值错误。 INVALIDPARAMETERVALUE = "InvalidParameterValue" + // 证书和私钥不匹配。 + INVALIDPARAMETERVALUE_CERTIFICATECONTENTNOTMATCHKEY = "InvalidParameterValue.CertificateContentNotMatchKey" + // Https证书与域名不匹配。 INVALIDPARAMETERVALUE_CERTIFICATENOTMATCHDOMAIN = "InvalidParameterValue.CertificateNotMatchDomain" @@ -173,6 +221,9 @@ const ( // 无法同时开启所设置的特性。 INVALIDPARAMETERVALUE_FEATURECONFLICT = "InvalidParameterValue.FeatureConflict" + // 该默认入口被封禁,无法添加。 + INVALIDPARAMETERVALUE_GLOBALDOMAINHITBANBLACKLIST = "InvalidParameterValue.GlobalDomainHitBanBlacklist" + // 资源已被录入封禁黑名单。 INVALIDPARAMETERVALUE_HITBANBLACKLIST = "InvalidParameterValue.HitBanBlacklist" @@ -224,6 +275,12 @@ const ( // 超过配额限制。 LIMITEXCEEDED = "LimitExceeded" + // 域名数量超限制。 + LIMITEXCEEDED_DOMAIN = "LimitExceeded.Domain" + + // 标签配额不足。 + LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" + // 缺少参数错误。 MISSINGPARAMETER = "MissingParameter" diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/models.go index a24be003eb..5250025c34 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/models.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529/models.go @@ -21,7 +21,6 @@ import ( ) type AccessConfiguration struct { - // 加速地域。 AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` @@ -36,7 +35,6 @@ type AccessConfiguration struct { } type AccessRegionDetial struct { - // 区域ID RegionId *string `json:"RegionId,omitempty" name:"RegionId"` @@ -74,7 +72,6 @@ type AccessRegionDetial struct { } type AccessRegionDomainConf struct { - // 地域ID。 RegionId *string `json:"RegionId,omitempty" name:"RegionId"` @@ -82,9 +79,24 @@ type AccessRegionDomainConf struct { NationCountryInnerList []*string `json:"NationCountryInnerList,omitempty" name:"NationCountryInnerList"` } +// Predefined struct for user +type AddRealServersRequestParams struct { + // 源站对应的项目ID + ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 源站对应的IP或域名 + RealServerIP []*string `json:"RealServerIP,omitempty" name:"RealServerIP"` + + // 源站名称 + RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` + + // 标签列表 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` +} + type AddRealServersRequest struct { *tchttp.BaseRequest - + // 源站对应的项目ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` @@ -120,16 +132,18 @@ func (r *AddRealServersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type AddRealServersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type AddRealServersResponseParams struct { + // 源站信息列表 + RealServerSet []*NewRealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` - // 源站信息列表 - RealServerSet []*NewRealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type AddRealServersResponse struct { + *tchttp.BaseResponse + Response *AddRealServersResponseParams `json:"Response"` } func (r *AddRealServersResponse) ToJsonString() string { @@ -143,8 +157,58 @@ func (r *AddRealServersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type BandwidthPriceGradient struct { +// Predefined struct for user +type BanAndRecoverProxyRequestParams struct { + +} + +type BanAndRecoverProxyRequest struct { + *tchttp.BaseRequest + +} + +func (r *BanAndRecoverProxyRequest) 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 *BanAndRecoverProxyRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "BanAndRecoverProxyRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type BanAndRecoverProxyResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type BanAndRecoverProxyResponse struct { + *tchttp.BaseResponse + Response *BanAndRecoverProxyResponseParams `json:"Response"` +} + +func (r *BanAndRecoverProxyResponse) 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 *BanAndRecoverProxyResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type BandwidthPriceGradient struct { // 带宽范围。 BandwidthRange []*int64 `json:"BandwidthRange,omitempty" name:"BandwidthRange"` @@ -155,9 +219,18 @@ type BandwidthPriceGradient struct { DiscountBandwidthUnitPrice *float64 `json:"DiscountBandwidthUnitPrice,omitempty" name:"DiscountBandwidthUnitPrice"` } +// Predefined struct for user +type BindListenerRealServersRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 待绑定源站列表。如果该监听器的源站调度策略是加权轮询,需要填写源站权重 RealServerWeight, 不填或者其他调度类型默认源站权重为1。 + RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitempty" name:"RealServerBindSet"` +} + type BindListenerRealServersRequest struct { *tchttp.BaseRequest - + // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -185,13 +258,15 @@ func (r *BindListenerRealServersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type BindListenerRealServersResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type BindListenerRealServersResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *BindListenerRealServersResponseParams `json:"Response"` } func (r *BindListenerRealServersResponse) ToJsonString() string { @@ -206,7 +281,6 @@ func (r *BindListenerRealServersResponse) FromJsonString(s string) error { } type BindRealServer struct { - // 源站ID RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` @@ -229,10 +303,12 @@ type BindRealServer struct { // 当源站为域名时,域名被解析成一个或者多个IP,该字段表示其中异常的IP列表。状态异常,但该字段为空时,表示域名解析异常。 DownIPList []*string `json:"DownIPList,omitempty" name:"DownIPList"` + + // 源站主备角色:master表示主,slave表示备,该参数必须在监听器打开了源站主备模式。 + RealServerFailoverRole *string `json:"RealServerFailoverRole,omitempty" name:"RealServerFailoverRole"` } type BindRealServerInfo struct { - // 源站的IP或域名 RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"` @@ -250,9 +326,21 @@ type BindRealServerInfo struct { TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` } +// Predefined struct for user +type BindRuleRealServersRequestParams struct { + // 转发规则ID + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + + // 需要绑定的源站信息列表。 + // 如果已经存在绑定的源站,则会覆盖更新成这个源站列表。 + // 当不带该字段时,表示解绑该规则上的所有源站。 + // 如果该规则的源站调度策略是加权轮询,需要填写源站权重 RealServerWeight, 不填或者其他调度类型默认源站权重为1。 + RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitempty" name:"RealServerBindSet"` +} + type BindRuleRealServersRequest struct { *tchttp.BaseRequest - + // 转发规则ID RuleId *string `json:"RuleId,omitempty" name:"RuleId"` @@ -283,13 +371,15 @@ func (r *BindRuleRealServersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type BindRuleRealServersResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type BindRuleRealServersResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *BindRuleRealServersResponseParams `json:"Response"` } func (r *BindRuleRealServersResponse) ToJsonString() string { @@ -303,8 +393,15 @@ func (r *BindRuleRealServersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type Certificate struct { +type Capacity struct { + // 电信鉴权的Token + CTCCToken *string `json:"CTCCToken,omitempty" name:"CTCCToken"` + // 终端所处在的省份,建议不填写由服务端自动获取,若需填写请填写带有省、市、自治区、特别行政区等后缀的省份中文全称 + Province *string `json:"Province,omitempty" name:"Province"` +} + +type Certificate struct { // 证书ID CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` @@ -339,7 +436,6 @@ type Certificate struct { } type CertificateAliasInfo struct { - // 证书ID CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` @@ -348,7 +444,6 @@ type CertificateAliasInfo struct { } type CertificateDetail struct { - // 证书ID。 CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` @@ -387,9 +482,39 @@ type CertificateDetail struct { SubjectCN *string `json:"SubjectCN,omitempty" name:"SubjectCN"` } +// Predefined struct for user +type CheckProxyCreateRequestParams struct { + // 通道的接入(加速)区域。取值可通过接口DescribeAccessRegionsByDestRegion获取到 + AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + + // 通道的源站区域。取值可通过接口DescribeDestRegions获取到 + RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + + // 通道带宽上限,单位:Mbps。 + Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + + // 通道并发量上限,表示同时在线的连接数,单位:万。 + Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + + // 如果在通道组下创建通道,需要填写通道组的ID + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // IP版本,可取值:IPv4、IPv6,默认值IPv4 + IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + + // 网络类型,可取值:normal、cn2,默认值normal + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + // 通道套餐类型。Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 + PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + + // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 + Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` +} + type CheckProxyCreateRequest struct { *tchttp.BaseRequest - + // 通道的接入(加速)区域。取值可通过接口DescribeAccessRegionsByDestRegion获取到 AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` @@ -414,7 +539,7 @@ type CheckProxyCreateRequest struct { // 通道套餐类型。Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 PackageType *string `json:"PackageType,omitempty" name:"PackageType"` - // 支持Http3的开关,其中:0,表示不需要支持Http3接入;1,表示需要支持Http3接入。注意:如果开启了Http3的功能,那么该通道就不再支持TCP/UDP接入的功能。该功能的启停无法在通道创建完毕后再修改。 + // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` } @@ -445,16 +570,18 @@ func (r *CheckProxyCreateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CheckProxyCreateResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CheckProxyCreateResponseParams struct { + // 查询能否创建给定配置的通道,1可以创建,0不可创建。 + CheckFlag *uint64 `json:"CheckFlag,omitempty" name:"CheckFlag"` - // 查询能否创建给定配置的通道,1可以创建,0不可创建。 - CheckFlag *uint64 `json:"CheckFlag,omitempty" name:"CheckFlag"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CheckProxyCreateResponse struct { + *tchttp.BaseResponse + Response *CheckProxyCreateResponseParams `json:"Response"` } func (r *CheckProxyCreateResponse) ToJsonString() string { @@ -468,9 +595,22 @@ func (r *CheckProxyCreateResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CloseProxiesRequestParams struct { + // (旧参数,请切换到ProxyIds)通道的实例ID。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + + // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 + // 更多详细信息请参阅:如何保证幂等性。 + ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + + // (新参数)通道的实例ID。 + ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` +} + type CloseProxiesRequest struct { *tchttp.BaseRequest - + // (旧参数,请切换到ProxyIds)通道的实例ID。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` @@ -503,19 +643,21 @@ func (r *CloseProxiesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CloseProxiesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CloseProxiesResponseParams struct { + // 非运行状态下的通道实例ID列表,不可开启。 + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` - // 非运行状态下的通道实例ID列表,不可开启。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + // 开启操作失败的通道实例ID列表。 + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` - // 开启操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CloseProxiesResponse struct { + *tchttp.BaseResponse + Response *CloseProxiesResponseParams `json:"Response"` } func (r *CloseProxiesResponse) ToJsonString() string { @@ -529,9 +671,15 @@ func (r *CloseProxiesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CloseProxyGroupRequestParams struct { + // 通道组的实例 ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} + type CloseProxyGroupRequest struct { *tchttp.BaseRequest - + // 通道组的实例 ID。 GroupId *string `json:"GroupId,omitempty" name:"GroupId"` } @@ -555,19 +703,21 @@ func (r *CloseProxyGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CloseProxyGroupResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CloseProxyGroupResponseParams struct { + // 非运行状态下的通道实例ID列表,不可开启。 + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` - // 非运行状态下的通道实例ID列表,不可开启。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + // 开启操作失败的通道实例ID列表。 + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` - // 开启操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CloseProxyGroupResponse struct { + *tchttp.BaseResponse + Response *CloseProxyGroupResponseParams `json:"Response"` } func (r *CloseProxyGroupResponse) ToJsonString() string { @@ -581,9 +731,18 @@ func (r *CloseProxyGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CloseSecurityPolicyRequestParams struct { + // 通道ID + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 安全组策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` +} + type CloseSecurityPolicyRequest struct { *tchttp.BaseRequest - + // 通道ID ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` @@ -611,16 +770,18 @@ func (r *CloseSecurityPolicyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CloseSecurityPolicyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CloseSecurityPolicyResponseParams struct { + // 异步流程ID,可以通过DescribeAsyncTaskStatus 查询流程执行进展和状态 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步流程ID,可以通过DescribeAsyncTaskStatus 查询流程执行进展和状态 - TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CloseSecurityPolicyResponse struct { + *tchttp.BaseResponse + Response *CloseSecurityPolicyResponseParams `json:"Response"` } func (r *CloseSecurityPolicyResponse) ToJsonString() string { @@ -635,7 +796,6 @@ func (r *CloseSecurityPolicyResponse) FromJsonString(s string) error { } type CountryAreaMap struct { - // 国家名称。 NationCountryName *string `json:"NationCountryName,omitempty" name:"NationCountryName"` @@ -653,11 +813,37 @@ type CountryAreaMap struct { // 大洲编码。 ContinentInnerCode *string `json:"ContinentInnerCode,omitempty" name:"ContinentInnerCode"` + + // 标注信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Remark *string `json:"Remark,omitempty" name:"Remark"` +} + +// Predefined struct for user +type CreateCertificateRequestParams struct { + // 证书类型。其中: + // 0,表示基础认证配置; + // 1,表示客户端CA证书; + // 2,服务器SSL证书; + // 3,表示源站CA证书; + // 4,表示通道SSL证书。 + CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"` + + // 证书内容。采用url编码。其中: + // 当证书类型为基础认证配置时,该参数填写用户名/密码对。格式:“用户名:密码”,例如:root:FSGdT。其中密码使用htpasswd或者openssl,例如:openssl passwd -crypt 123456。 + // 当证书类型为CA/SSL证书时,该参数填写证书内容,格式为pem。 + CertificateContent *string `json:"CertificateContent,omitempty" name:"CertificateContent"` + + // 证书名称 + CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + + // 密钥内容。采用url编码。仅当证书类型为SSL证书时,需要填写该参数。格式为pem。 + CertificateKey *string `json:"CertificateKey,omitempty" name:"CertificateKey"` } type CreateCertificateRequest struct { *tchttp.BaseRequest - + // 证书类型。其中: // 0,表示基础认证配置; // 1,表示客户端CA证书; @@ -700,16 +886,18 @@ func (r *CreateCertificateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateCertificateResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateCertificateResponseParams struct { + // 证书ID + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` - // 证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateCertificateResponse struct { + *tchttp.BaseResponse + Response *CreateCertificateResponseParams `json:"Response"` } func (r *CreateCertificateResponse) ToJsonString() string { @@ -723,9 +911,18 @@ func (r *CreateCertificateResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateCustomHeaderRequestParams struct { + // 规则id + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + + // 新增的header名称和内容列表, ‘’$remote_addr‘’会被解析替换成客户端ip,其他值原样透传到源站。 + Headers []*HttpHeaderParam `json:"Headers,omitempty" name:"Headers"` +} + type CreateCustomHeaderRequest struct { *tchttp.BaseRequest - + // 规则id RuleId *string `json:"RuleId,omitempty" name:"RuleId"` @@ -753,13 +950,15 @@ func (r *CreateCustomHeaderRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateCustomHeaderResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateCustomHeaderResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateCustomHeaderResponseParams `json:"Response"` } func (r *CreateCustomHeaderResponse) ToJsonString() string { @@ -773,9 +972,33 @@ func (r *CreateCustomHeaderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDomainErrorPageInfoRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 域名 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 原始错误码 + ErrorNos []*int64 `json:"ErrorNos,omitempty" name:"ErrorNos"` + + // 新的响应包体 + Body *string `json:"Body,omitempty" name:"Body"` + + // 新错误码 + NewErrorNo *int64 `json:"NewErrorNo,omitempty" name:"NewErrorNo"` + + // 需要删除的响应头 + ClearHeaders []*string `json:"ClearHeaders,omitempty" name:"ClearHeaders"` + + // 需要设置的响应头 + SetHeaders []*HttpHeaderParam `json:"SetHeaders,omitempty" name:"SetHeaders"` +} + type CreateDomainErrorPageInfoRequest struct { *tchttp.BaseRequest - + // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -823,16 +1046,18 @@ func (r *CreateDomainErrorPageInfoRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateDomainErrorPageInfoResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateDomainErrorPageInfoResponseParams struct { + // 错误定制响应的配置ID + ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` - // 错误定制响应的配置ID - ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateDomainErrorPageInfoResponse struct { + *tchttp.BaseResponse + Response *CreateDomainErrorPageInfoResponseParams `json:"Response"` } func (r *CreateDomainErrorPageInfoResponse) ToJsonString() string { @@ -846,9 +1071,8 @@ func (r *CreateDomainErrorPageInfoResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateDomainRequest struct { - *tchttp.BaseRequest - +// Predefined struct for user +type CreateDomainRequestParams struct { // 监听器ID。 ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -873,18 +1097,45 @@ type CreateDomainRequest struct { Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` } -func (r *CreateDomainRequest) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} +type CreateDomainRequest struct { + *tchttp.BaseRequest + + // 监听器ID。 + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateDomainRequest) FromJsonString(s string) error { - f := make(map[string]interface{}) - if err := json.Unmarshal([]byte(s), &f); err != nil { - return err - } + // 需要创建的域名,一个监听器下最大支持100个域名。 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 服务器证书,用于客户端与GAAP的HTTPS的交互。 + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + + // 客户端CA证书,用于客户端与GAAP的HTTPS的交互。 + // 仅当采用双向认证的方式时,需要设置该字段或PolyClientCertificateIds字段。 + ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + + // 客户端CA证书,用于客户端与GAAP的HTTPS的交互。 + // 仅当采用双向认证的方式时,需要设置该字段或ClientCertificateId字段。 + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + + // 是否开启Http3特性的标识,其中: + // 0,表示不开启Http3; + // 1,表示开启Http3。 + // 默认不开启Http3。可以通过SetDomainHttp3开启。 + Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` +} + +func (r *CreateDomainRequest) 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 *CreateDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } delete(f, "ListenerId") delete(f, "Domain") delete(f, "CertificateId") @@ -897,13 +1148,15 @@ func (r *CreateDomainRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateDomainResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateDomainResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *CreateDomainResponseParams `json:"Response"` } func (r *CreateDomainResponse) ToJsonString() string { @@ -917,9 +1170,260 @@ func (r *CreateDomainResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateHTTPListenerRequest struct { +// Predefined struct for user +type CreateFirstLinkSessionRequestParams struct { + // 模版ID + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 终端网络信息 + SrcAddressInfo *SrcAddressInfo `json:"SrcAddressInfo,omitempty" name:"SrcAddressInfo"` + + // 加速目标网络信息 + DestAddressInfo *DestAddressInfo `json:"DestAddressInfo,omitempty" name:"DestAddressInfo"` + + // 终端设备信息 + DeviceInfo *DeviceInfo `json:"DeviceInfo,omitempty" name:"DeviceInfo"` + + // 接口扩展参数,如果是电信用户,需要填充CTCC Token字段 + Capacity *Capacity `json:"Capacity,omitempty" name:"Capacity"` +} + +type CreateFirstLinkSessionRequest struct { + *tchttp.BaseRequest + + // 模版ID + TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + + // 终端网络信息 + SrcAddressInfo *SrcAddressInfo `json:"SrcAddressInfo,omitempty" name:"SrcAddressInfo"` + + // 加速目标网络信息 + DestAddressInfo *DestAddressInfo `json:"DestAddressInfo,omitempty" name:"DestAddressInfo"` + + // 终端设备信息 + DeviceInfo *DeviceInfo `json:"DeviceInfo,omitempty" name:"DeviceInfo"` + + // 接口扩展参数,如果是电信用户,需要填充CTCC Token字段 + Capacity *Capacity `json:"Capacity,omitempty" name:"Capacity"` +} + +func (r *CreateFirstLinkSessionRequest) 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 *CreateFirstLinkSessionRequest) 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, "SrcAddressInfo") + delete(f, "DestAddressInfo") + delete(f, "DeviceInfo") + delete(f, "Capacity") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateFirstLinkSessionRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateFirstLinkSessionResponseParams struct { + // 加速成功时返回,单次加速唯一会话Id。。 + // 注意:此字段可能返回 null,表示取不到有效值。 + SessionId *string `json:"SessionId,omitempty" name:"SessionId"` + + // 剩余的加速时间,单位秒。 + // 注意:此字段可能返回 null,表示取不到有效值。 + Duration *int64 `json:"Duration,omitempty" name:"Duration"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateFirstLinkSessionResponse struct { + *tchttp.BaseResponse + Response *CreateFirstLinkSessionResponseParams `json:"Response"` +} + +func (r *CreateFirstLinkSessionResponse) 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 *CreateFirstLinkSessionResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateGlobalDomainDnsRequestParams struct { + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 通道ID列表 + ProxyIdList []*string `json:"ProxyIdList,omitempty" name:"ProxyIdList"` + + // 国家ID列表 + NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitempty" name:"NationCountryInnerCodes"` +} + +type CreateGlobalDomainDnsRequest struct { + *tchttp.BaseRequest + + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 通道ID列表 + ProxyIdList []*string `json:"ProxyIdList,omitempty" name:"ProxyIdList"` + + // 国家ID列表 + NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitempty" name:"NationCountryInnerCodes"` +} + +func (r *CreateGlobalDomainDnsRequest) 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 *CreateGlobalDomainDnsRequest) 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, "ProxyIdList") + delete(f, "NationCountryInnerCodes") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateGlobalDomainDnsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateGlobalDomainDnsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateGlobalDomainDnsResponse struct { + *tchttp.BaseResponse + Response *CreateGlobalDomainDnsResponseParams `json:"Response"` +} + +func (r *CreateGlobalDomainDnsResponse) 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 *CreateGlobalDomainDnsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateGlobalDomainRequestParams struct { + // 域名所属项目ID + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 域名默认入口 + DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` + + // 别名 + Alias *string `json:"Alias,omitempty" name:"Alias"` + + // 标签列表 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` +} + +type CreateGlobalDomainRequest struct { *tchttp.BaseRequest + + // 域名所属项目ID + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 域名默认入口 + DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` + + // 别名 + Alias *string `json:"Alias,omitempty" name:"Alias"` + + // 标签列表 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` +} + +func (r *CreateGlobalDomainRequest) 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 *CreateGlobalDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ProjectId") + delete(f, "DefaultValue") + delete(f, "Alias") + delete(f, "TagSet") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateGlobalDomainRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateGlobalDomainResponseParams struct { + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type CreateGlobalDomainResponse struct { + *tchttp.BaseResponse + Response *CreateGlobalDomainResponseParams `json:"Response"` +} + +func (r *CreateGlobalDomainResponse) 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 *CreateGlobalDomainResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateHTTPListenerRequestParams struct { + // 监听器名称 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 监听器端口,基于同种传输层协议(TCP 或 UDP)的监听器,端口不可重复 + Port *uint64 `json:"Port,omitempty" name:"Port"` + + // 通道ID,与GroupId不能同时设置,对应为通道创建监听器 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 通道组ID,与ProxyId不能同时设置,对应为通道组创建监听器 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} + +type CreateHTTPListenerRequest struct { + *tchttp.BaseRequest + // 监听器名称 ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` @@ -955,16 +1459,18 @@ func (r *CreateHTTPListenerRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateHTTPListenerResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateHTTPListenerResponseParams struct { + // 创建的监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` - // 创建的监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateHTTPListenerResponse struct { + *tchttp.BaseResponse + Response *CreateHTTPListenerResponseParams `json:"Response"` } func (r *CreateHTTPListenerResponse) ToJsonString() string { @@ -978,9 +1484,49 @@ func (r *CreateHTTPListenerResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateHTTPSListenerRequestParams struct { + // 监听器名称 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 监听器端口,基于同种传输层协议(TCP 或 UDP)的监听器,端口不可重复 + Port *uint64 `json:"Port,omitempty" name:"Port"` + + // 服务器证书ID + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + + // 加速通道转发到源站的协议类型:HTTP | HTTPS + ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + + // 通道ID,与GroupId之间只能设置一个。表示创建通道的监听器。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 认证类型,其中: + // 0,单向认证; + // 1,双向认证。 + // 默认使用单向认证。 + AuthType *uint64 `json:"AuthType,omitempty" name:"AuthType"` + + // 客户端CA单证书ID,仅当双向认证时设置该参数或PolyClientCertificateIds参数 + ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + + // 新的客户端多CA证书ID,仅当双向认证时设置该参数或设置ClientCertificateId参数 + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + + // 通道组ID,与ProxyId之间只能设置一个。表示创建通道组的监听器。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 支持Http3的开关,其中: + // 0,表示不需要支持Http3接入; + // 1,表示需要支持Http3接入。 + // 注意:如果支持了Http3的功能,那么该监听器会占用对应的UDP接入端口,不可再创建相同端口的UDP监听器。 + // 该功能的启停无法在监听器创建完毕后再修改。 + Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` +} + type CreateHTTPSListenerRequest struct { *tchttp.BaseRequest - + // 监听器名称 ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` @@ -1047,16 +1593,18 @@ func (r *CreateHTTPSListenerRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateHTTPSListenerResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateHTTPSListenerResponseParams struct { + // 创建的监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` - // 创建的监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateHTTPSListenerResponse struct { + *tchttp.BaseResponse + Response *CreateHTTPSListenerResponseParams `json:"Response"` } func (r *CreateHTTPSListenerResponse) ToJsonString() string { @@ -1070,9 +1618,15 @@ func (r *CreateHTTPSListenerResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateProxyGroupDomainRequestParams struct { + // 需要开启域名的通道组ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} + type CreateProxyGroupDomainRequest struct { *tchttp.BaseRequest - + // 需要开启域名的通道组ID。 GroupId *string `json:"GroupId,omitempty" name:"GroupId"` } @@ -1096,16 +1650,18 @@ func (r *CreateProxyGroupDomainRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateProxyGroupDomainResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateProxyGroupDomainResponseParams struct { + // 通道组ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` - // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateProxyGroupDomainResponse struct { + *tchttp.BaseResponse + Response *CreateProxyGroupDomainResponseParams `json:"Response"` } func (r *CreateProxyGroupDomainResponse) ToJsonString() string { @@ -1119,9 +1675,36 @@ func (r *CreateProxyGroupDomainResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateProxyGroupRequestParams struct { + // 通道组所属项目ID + ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 通道组别名 + GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + + // 源站地域,参考接口DescribeDestRegions 返回参数RegionDetail中的RegionId + RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + + // 标签列表 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + + // 加速地域列表,包括加速地域名,及该地域对应的带宽和并发配置。 + AccessRegionSet []*AccessConfiguration `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` + + // IP版本,可取值:IPv4、IPv6,默认值IPv4 + IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + + // 通道组套餐类型,可取值:Thunder、Accelerator,默认值Thunder + PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + + // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道组默认支持Http3.0;当为IPv6,默认不支持Http3.0。 + Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` +} + type CreateProxyGroupRequest struct { *tchttp.BaseRequest - + // 通道组所属项目ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` @@ -1143,11 +1726,7 @@ type CreateProxyGroupRequest struct { // 通道组套餐类型,可取值:Thunder、Accelerator,默认值Thunder PackageType *string `json:"PackageType,omitempty" name:"PackageType"` - // 支持Http3的开关,其中: - // 0,表示不需要支持Http3接入; - // 1,表示需要支持Http3接入。 - // 注意:如果开启了Http3的功能,那么该通道组就不再支持TCP/UDP接入的功能。 - // 该功能的启停无法在通道组创建完毕后再修改。 + // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道组默认支持Http3.0;当为IPv6,默认不支持Http3.0。 Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` } @@ -1177,16 +1756,18 @@ func (r *CreateProxyGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateProxyGroupResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateProxyGroupResponseParams struct { + // 通道组ID + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` - // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateProxyGroupResponse struct { + *tchttp.BaseResponse + Response *CreateProxyGroupResponseParams `json:"Response"` } func (r *CreateProxyGroupResponse) ToJsonString() string { @@ -1200,9 +1781,59 @@ func (r *CreateProxyGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateProxyRequestParams struct { + // 通道的项目ID。 + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 通道名称。 + ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"` + + // 接入地域。 + AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + + // 通道带宽上限,单位:Mbps。 + Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + + // 通道并发量上限,表示同时在线的连接数,单位:万。 + Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + + // 源站地域。当GroupId存在时,源站地域为通道组的源站地域,此时可不填该字段。当GroupId不存在时,需要填写该字段 + RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + + // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 + // 更多详细信息请参阅:如何保证幂等性。 + ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + + // 通道所在的通道组ID,当在通道组中创建通道时必带,否则忽略该字段。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 通道需要添加的标签列表。 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + + // 被复制的通道ID。只有处于运行中状态的通道可以被复制。 + // 当设置该参数时,表示复制该通道。 + ClonedProxyId *string `json:"ClonedProxyId,omitempty" name:"ClonedProxyId"` + + // 计费方式 (0:按带宽计费,1:按流量计费 默认按带宽计费) + BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + + // IP版本,可取值:IPv4、IPv6,默认值IPv4 + IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + + // 网络类型,normal表示常规BGP,cn2表示精品BGP,triple表示三网 + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 + PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + + // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 + Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` +} + type CreateProxyRequest struct { *tchttp.BaseRequest - + // 通道的项目ID。 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` @@ -1247,7 +1878,7 @@ type CreateProxyRequest struct { // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 PackageType *string `json:"PackageType,omitempty" name:"PackageType"` - // 支持Http3的开关,其中:0,表示不需要支持Http3接入;1,表示需要支持Http3接入。注意:如果开启了Http3的功能,那么该通道就不再支持TCP/UDP接入的功能。该功能的启停无法在通道创建完毕后再修改。 + // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` } @@ -1284,16 +1915,18 @@ func (r *CreateProxyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateProxyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateProxyResponseParams struct { + // 通道的实例ID。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` - // 通道的实例ID。 - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateProxyResponse struct { + *tchttp.BaseResponse + Response *CreateProxyResponseParams `json:"Response"` } func (r *CreateProxyResponse) ToJsonString() string { @@ -1307,9 +1940,49 @@ func (r *CreateProxyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateRuleRequestParams struct { + // 7层监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 转发规则的域名 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 转发规则的路径 + Path *string `json:"Path,omitempty" name:"Path"` + + // 转发规则对应源站的类型,支持IP和DOMAIN类型。 + RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 + Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + + // 规则是否开启健康检查,1开启,0关闭。 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + + // 源站健康检查相关参数 + CheckParams *RuleCheckParams `json:"CheckParams,omitempty" name:"CheckParams"` + + // 加速通道转发到源站的协议类型:支持HTTP或HTTPS。 + // 不传递该字段时表示使用对应监听器的ForwardProtocol。 + ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + + // 回源Host。加速通道转发到源站的host,不设置该参数时,使用默认的host设置,即客户端发起的http请求的host。 + ForwardHost *string `json:"ForwardHost,omitempty" name:"ForwardHost"` + + // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。 + ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitempty" name:"ServerNameIndicationSwitch"` + + // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 + ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + + // HTTP强制跳转HTTPS。输入当前规则对应的域名与地址。 + ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` +} + type CreateRuleRequest struct { *tchttp.BaseRequest - + // 7层监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -1322,7 +1995,7 @@ type CreateRuleRequest struct { // 转发规则对应源站的类型,支持IP和DOMAIN类型。 RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` - // 规则转发源站调度策略,支持轮询(rr),加权轮询(wrr),最小连接数(lc)。 + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // 规则是否开启健康检查,1开启,0关闭。 @@ -1343,6 +2016,9 @@ type CreateRuleRequest struct { // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + + // HTTP强制跳转HTTPS。输入当前规则对应的域名与地址。 + ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` } func (r *CreateRuleRequest) ToJsonString() string { @@ -1368,22 +2044,25 @@ func (r *CreateRuleRequest) FromJsonString(s string) error { delete(f, "ForwardHost") delete(f, "ServerNameIndicationSwitch") delete(f, "ServerNameIndication") + delete(f, "ForcedRedirect") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateRuleRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateRuleResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateRuleResponseParams struct { + // 创建转发规则成功返回规则ID + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` - // 创建转发规则成功返回规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateRuleResponse struct { + *tchttp.BaseResponse + Response *CreateRuleResponseParams `json:"Response"` } func (r *CreateRuleResponse) ToJsonString() string { @@ -1397,9 +2076,21 @@ func (r *CreateRuleResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateSecurityPolicyRequestParams struct { + // 默认策略:ACCEPT或DROP + DefaultAction *string `json:"DefaultAction,omitempty" name:"DefaultAction"` + + // 加速通道ID + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 通道组ID + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} + type CreateSecurityPolicyRequest struct { *tchttp.BaseRequest - + // 默认策略:ACCEPT或DROP DefaultAction *string `json:"DefaultAction,omitempty" name:"DefaultAction"` @@ -1431,16 +2122,18 @@ func (r *CreateSecurityPolicyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateSecurityPolicyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSecurityPolicyResponseParams struct { + // 安全策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` - // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateSecurityPolicyResponse struct { + *tchttp.BaseResponse + Response *CreateSecurityPolicyResponseParams `json:"Response"` } func (r *CreateSecurityPolicyResponse) ToJsonString() string { @@ -1454,9 +2147,18 @@ func (r *CreateSecurityPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateSecurityRulesRequestParams struct { + // 安全策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + + // 访问规则列表 + RuleList []*SecurityPolicyRuleIn `json:"RuleList,omitempty" name:"RuleList"` +} + type CreateSecurityRulesRequest struct { *tchttp.BaseRequest - + // 安全策略ID PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` @@ -1484,16 +2186,18 @@ func (r *CreateSecurityRulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type CreateSecurityRulesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateSecurityRulesResponseParams struct { + // 规则ID列表 + RuleIdList []*string `json:"RuleIdList,omitempty" name:"RuleIdList"` - // 规则ID列表 - RuleIdList []*string `json:"RuleIdList,omitempty" name:"RuleIdList"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateSecurityRulesResponse struct { + *tchttp.BaseResponse + Response *CreateSecurityRulesResponseParams `json:"Response"` } func (r *CreateSecurityRulesResponse) ToJsonString() string { @@ -1507,22 +2211,67 @@ func (r *CreateSecurityRulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateTCPListenersRequestParams struct { + // 监听器名称。 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 监听器端口列表。 + Ports []*uint64 `json:"Ports,omitempty" name:"Ports"` + + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 + Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + + // 源站是否开启健康检查:1开启,0关闭,UDP监听器不支持健康检查 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + + // 监听器绑定源站类型。IP表示IP地址,DOMAIN表示域名。 + RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + + // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 + DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + + // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 + ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + + // 源站端口列表,该参数仅支持v1版本监听器和通道组监听器。 + RealServerPorts []*uint64 `json:"RealServerPorts,omitempty" name:"RealServerPorts"` + + // 监听器获取客户端 IP 的方式,0表示 TOA, 1表示Proxy Protocol + ClientIPMethod *int64 `json:"ClientIPMethod,omitempty" name:"ClientIPMethod"` + + // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 + FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + + // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 + HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + + // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` +} + type CreateTCPListenersRequest struct { *tchttp.BaseRequest - + // 监听器名称。 ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` // 监听器端口列表。 Ports []*uint64 `json:"Ports,omitempty" name:"Ports"` - // 监听器源站调度策略,支持轮询(rr),加权轮询(wrr),最小连接数(lc)。 + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // 源站是否开启健康检查:1开启,0关闭,UDP监听器不支持健康检查 HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` - // 监听器对应源站类型,支持IP或者DOMAIN类型。DOMAIN源站类型不支持wrr的源站调度策略。 + // 监听器绑定源站类型。IP表示IP地址,DOMAIN表示域名。 RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 @@ -1585,42 +2334,101 @@ func (r *CreateTCPListenersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateTCPListenersResponseParams struct { + // 返回监听器ID + ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type CreateTCPListenersResponse struct { *tchttp.BaseResponse - Response *struct { + Response *CreateTCPListenersResponseParams `json:"Response"` +} - // 返回监听器ID - ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` +func (r *CreateTCPListenersResponse) ToJsonString() string { + b, _ := json.Marshal(r) + return string(b) +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +// FromJsonString It is highly **NOT** recommended to use this function +// because it has no param check, nor strict type check +func (r *CreateTCPListenersResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) } -func (r *CreateTCPListenersResponse) ToJsonString() string { - b, _ := json.Marshal(r) - return string(b) -} +// Predefined struct for user +type CreateUDPListenersRequestParams struct { + // 监听器名称 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 监听器端口列表 + Ports []*uint64 `json:"Ports,omitempty" name:"Ports"` + + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 + Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + + // 监听器绑定源站类型。IP表示IP地址,DOMAIN表示域名。 + RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + + // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 源站端口列表,该参数仅支持v1版本监听器和通道组监听器 + RealServerPorts []*uint64 `json:"RealServerPorts,omitempty" name:"RealServerPorts"` + + // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 + DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + + // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 + ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + + // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 + HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + + // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + + // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 + FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + + // 源站是否开启健康检查:1开启,0关闭。 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + + // UDP源站健康类型。PORT表示检查端口,PING表示PING。 + CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + + // UDP源站健康检查探测端口。 + CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + + // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 + ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + + // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 + SendContext *string `json:"SendContext,omitempty" name:"SendContext"` -// FromJsonString It is highly **NOT** recommended to use this function -// because it has no param check, nor strict type check -func (r *CreateTCPListenersResponse) FromJsonString(s string) error { - return json.Unmarshal([]byte(s), &r) + // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 + RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` } type CreateUDPListenersRequest struct { *tchttp.BaseRequest - + // 监听器名称 ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` // 监听器端口列表 Ports []*uint64 `json:"Ports,omitempty" name:"Ports"` - // 监听器源站调度策略,支持轮询(rr),加权轮询(wrr),最小连接数(lc) + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` - // 监听器对应源站类型,支持IP或者DOMAIN类型 + // 监听器绑定源站类型。IP表示IP地址,DOMAIN表示域名。 RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 @@ -1631,6 +2439,39 @@ type CreateUDPListenersRequest struct { // 源站端口列表,该参数仅支持v1版本监听器和通道组监听器 RealServerPorts []*uint64 `json:"RealServerPorts,omitempty" name:"RealServerPorts"` + + // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 + DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + + // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 + ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + + // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 + HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + + // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + + // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 + FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + + // 源站是否开启健康检查:1开启,0关闭。 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + + // UDP源站健康类型。PORT表示检查端口,PING表示PING。 + CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + + // UDP源站健康检查探测端口。 + CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + + // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 + ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + + // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 + SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + + // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 + RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` } func (r *CreateUDPListenersRequest) ToJsonString() string { @@ -1652,22 +2493,35 @@ func (r *CreateUDPListenersRequest) FromJsonString(s string) error { delete(f, "ProxyId") delete(f, "GroupId") delete(f, "RealServerPorts") + delete(f, "DelayLoop") + delete(f, "ConnectTimeout") + delete(f, "HealthyThreshold") + delete(f, "UnhealthyThreshold") + delete(f, "FailoverSwitch") + delete(f, "HealthCheck") + delete(f, "CheckType") + delete(f, "CheckPort") + delete(f, "ContextType") + delete(f, "SendContext") + delete(f, "RecvContext") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateUDPListenersRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type CreateUDPListenersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type CreateUDPListenersResponseParams struct { + // 返回监听器ID + ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` - // 返回监听器ID - ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type CreateUDPListenersResponse struct { + *tchttp.BaseResponse + Response *CreateUDPListenersResponseParams `json:"Response"` } func (r *CreateUDPListenersResponse) ToJsonString() string { @@ -1681,9 +2535,15 @@ func (r *CreateUDPListenersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteCertificateRequestParams struct { + // 需要删除的证书ID。 + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` +} + type DeleteCertificateRequest struct { *tchttp.BaseRequest - + // 需要删除的证书ID。 CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` } @@ -1707,13 +2567,15 @@ func (r *DeleteCertificateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteCertificateResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteCertificateResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteCertificateResponseParams `json:"Response"` } func (r *DeleteCertificateResponse) ToJsonString() string { @@ -1727,9 +2589,15 @@ func (r *DeleteCertificateResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDomainErrorPageInfoRequestParams struct { + // 定制错误响应页的唯一ID,请参考CreateDomainErrorPageInfo的响应 + ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` +} + type DeleteDomainErrorPageInfoRequest struct { *tchttp.BaseRequest - + // 定制错误响应页的唯一ID,请参考CreateDomainErrorPageInfo的响应 ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` } @@ -1753,13 +2621,15 @@ func (r *DeleteDomainErrorPageInfoRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDomainErrorPageInfoResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteDomainErrorPageInfoResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteDomainErrorPageInfoResponseParams `json:"Response"` } func (r *DeleteDomainErrorPageInfoResponse) ToJsonString() string { @@ -1773,9 +2643,22 @@ func (r *DeleteDomainErrorPageInfoResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDomainRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 需要删除的域名 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 是否强制删除已绑定源站的转发规则,0非强制,1强制。 + // 当采用非强制删除时,如果域名下已有规则绑定了源站,则无法删除。 + Force *uint64 `json:"Force,omitempty" name:"Force"` +} + type DeleteDomainRequest struct { *tchttp.BaseRequest - + // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -1808,13 +2691,15 @@ func (r *DeleteDomainRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteDomainResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteDomainResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteDomainResponseParams `json:"Response"` } func (r *DeleteDomainResponse) ToJsonString() string { @@ -1828,9 +2713,186 @@ func (r *DeleteDomainResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteListenersRequest struct { +// Predefined struct for user +type DeleteFirstLinkSessionRequestParams struct { + // 单次加速唯一会话Id + SessionId *string `json:"SessionId,omitempty" name:"SessionId"` +} + +type DeleteFirstLinkSessionRequest struct { + *tchttp.BaseRequest + + // 单次加速唯一会话Id + SessionId *string `json:"SessionId,omitempty" name:"SessionId"` +} + +func (r *DeleteFirstLinkSessionRequest) 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 *DeleteFirstLinkSessionRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "SessionId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteFirstLinkSessionRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteFirstLinkSessionResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteFirstLinkSessionResponse struct { + *tchttp.BaseResponse + Response *DeleteFirstLinkSessionResponseParams `json:"Response"` +} + +func (r *DeleteFirstLinkSessionResponse) 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 *DeleteFirstLinkSessionResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteGlobalDomainDnsRequestParams struct { + // 解析记录的ID + DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` +} + +type DeleteGlobalDomainDnsRequest struct { + *tchttp.BaseRequest + + // 解析记录的ID + DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` +} + +func (r *DeleteGlobalDomainDnsRequest) 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 *DeleteGlobalDomainDnsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DnsRecordId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteGlobalDomainDnsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteGlobalDomainDnsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteGlobalDomainDnsResponse struct { + *tchttp.BaseResponse + Response *DeleteGlobalDomainDnsResponseParams `json:"Response"` +} + +func (r *DeleteGlobalDomainDnsResponse) 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 *DeleteGlobalDomainDnsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteGlobalDomainRequestParams struct { + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` +} + +type DeleteGlobalDomainRequest struct { *tchttp.BaseRequest + + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` +} + +func (r *DeleteGlobalDomainRequest) 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 *DeleteGlobalDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteGlobalDomainRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteGlobalDomainResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DeleteGlobalDomainResponse struct { + *tchttp.BaseResponse + Response *DeleteGlobalDomainResponseParams `json:"Response"` +} + +func (r *DeleteGlobalDomainResponse) 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 *DeleteGlobalDomainResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DeleteListenersRequestParams struct { + // 待删除的监听器ID列表 + ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` + + // 已绑定源站的监听器是否允许强制删除,1:允许, 0:不允许 + Force *uint64 `json:"Force,omitempty" name:"Force"` + + // 通道组ID,该参数和GroupId必须设置一个,但不能同时设置。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + // 通道ID,该参数和GroupId必须设置一个,但不能同时设置。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` +} + +type DeleteListenersRequest struct { + *tchttp.BaseRequest + // 待删除的监听器ID列表 ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` @@ -1866,22 +2928,24 @@ func (r *DeleteListenersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DeleteListenersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DeleteListenersResponseParams struct { + // 删除操作失败的监听器ID列表 + OperationFailedListenerSet []*string `json:"OperationFailedListenerSet,omitempty" name:"OperationFailedListenerSet"` - // 删除操作失败的监听器ID列表 - OperationFailedListenerSet []*string `json:"OperationFailedListenerSet,omitempty" name:"OperationFailedListenerSet"` + // 删除操作成功的监听器ID列表 + OperationSucceedListenerSet []*string `json:"OperationSucceedListenerSet,omitempty" name:"OperationSucceedListenerSet"` - // 删除操作成功的监听器ID列表 - OperationSucceedListenerSet []*string `json:"OperationSucceedListenerSet,omitempty" name:"OperationSucceedListenerSet"` + // 无效的监听器ID列表,如:监听器不存在,监听器对应实例不匹配 + InvalidStatusListenerSet []*string `json:"InvalidStatusListenerSet,omitempty" name:"InvalidStatusListenerSet"` - // 无效的监听器ID列表,如:监听器不存在,监听器对应实例不匹配 - InvalidStatusListenerSet []*string `json:"InvalidStatusListenerSet,omitempty" name:"InvalidStatusListenerSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DeleteListenersResponse struct { + *tchttp.BaseResponse + Response *DeleteListenersResponseParams `json:"Response"` } func (r *DeleteListenersResponse) ToJsonString() string { @@ -1895,9 +2959,21 @@ func (r *DeleteListenersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteProxyGroupRequestParams struct { + // 需要删除的通道组ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 强制删除标识。其中: + // 0,不强制删除, + // 1,强制删除。 + // 默认为0,当通道组中存在通道或通道组中存在监听器/规则绑定了源站时,且Force为0时,该操作会返回失败。 + Force *uint64 `json:"Force,omitempty" name:"Force"` +} + type DeleteProxyGroupRequest struct { *tchttp.BaseRequest - + // 需要删除的通道组ID。 GroupId *string `json:"GroupId,omitempty" name:"GroupId"` @@ -1928,13 +3004,15 @@ func (r *DeleteProxyGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteProxyGroupResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteProxyGroupResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteProxyGroupResponseParams `json:"Response"` } func (r *DeleteProxyGroupResponse) ToJsonString() string { @@ -1948,9 +3026,21 @@ func (r *DeleteProxyGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteRuleRequestParams struct { + // 7层监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 转发规则ID + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + + // 是否可以强制删除已绑定源站的转发规则,0非强制,1强制 + Force *uint64 `json:"Force,omitempty" name:"Force"` +} + type DeleteRuleRequest struct { *tchttp.BaseRequest - + // 7层监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -1982,13 +3072,15 @@ func (r *DeleteRuleRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteRuleResponseParams `json:"Response"` } func (r *DeleteRuleResponse) ToJsonString() string { @@ -2002,9 +3094,15 @@ func (r *DeleteRuleResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSecurityPolicyRequestParams struct { + // 策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` +} + type DeleteSecurityPolicyRequest struct { *tchttp.BaseRequest - + // 策略ID PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` } @@ -2028,13 +3126,15 @@ func (r *DeleteSecurityPolicyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSecurityPolicyResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteSecurityPolicyResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteSecurityPolicyResponseParams `json:"Response"` } func (r *DeleteSecurityPolicyResponse) ToJsonString() string { @@ -2048,9 +3148,18 @@ func (r *DeleteSecurityPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSecurityRulesRequestParams struct { + // 安全策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + + // 访问规则ID列表 + RuleIdList []*string `json:"RuleIdList,omitempty" name:"RuleIdList"` +} + type DeleteSecurityRulesRequest struct { *tchttp.BaseRequest - + // 安全策略ID PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` @@ -2078,13 +3187,15 @@ func (r *DeleteSecurityRulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DeleteSecurityRulesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DeleteSecurityRulesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DeleteSecurityRulesResponseParams `json:"Response"` } func (r *DeleteSecurityRulesResponse) ToJsonString() string { @@ -2098,9 +3209,21 @@ func (r *DeleteSecurityRulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAccessRegionsByDestRegionRequestParams struct { + // 源站区域:接口DescribeDestRegions返回DestRegionSet中的RegionId字段值 + DestRegion *string `json:"DestRegion,omitempty" name:"DestRegion"` + + // IP版本,可取值:IPv4、IPv6,默认值IPv4 + IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + + // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 + PackageType *string `json:"PackageType,omitempty" name:"PackageType"` +} + type DescribeAccessRegionsByDestRegionRequest struct { *tchttp.BaseRequest - + // 源站区域:接口DescribeDestRegions返回DestRegionSet中的RegionId字段值 DestRegion *string `json:"DestRegion,omitempty" name:"DestRegion"` @@ -2132,19 +3255,21 @@ func (r *DescribeAccessRegionsByDestRegionRequest) FromJsonString(s string) erro return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAccessRegionsByDestRegionResponseParams struct { + // 可用加速区域数量 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 可用加速区域信息列表 + AccessRegionSet []*AccessRegionDetial `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type DescribeAccessRegionsByDestRegionResponse struct { *tchttp.BaseResponse - Response *struct { - - // 可用加速区域数量 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - - // 可用加速区域信息列表 - AccessRegionSet []*AccessRegionDetial `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *DescribeAccessRegionsByDestRegionResponseParams `json:"Response"` } func (r *DescribeAccessRegionsByDestRegionResponse) ToJsonString() string { @@ -2158,8 +3283,14 @@ func (r *DescribeAccessRegionsByDestRegionResponse) FromJsonString(s string) err return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAccessRegionsRequestParams struct { + +} + type DescribeAccessRegionsRequest struct { *tchttp.BaseRequest + } func (r *DescribeAccessRegionsRequest) ToJsonString() string { @@ -2174,25 +3305,28 @@ func (r *DescribeAccessRegionsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeAccessRegionsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeAccessRegionsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeAccessRegionsResponseParams struct { + // 加速区域总数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 加速区域总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 加速区域详情列表 + AccessRegionSet []*RegionDetail `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` - // 加速区域详情列表 - AccessRegionSet []*RegionDetail `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeAccessRegionsResponse struct { + *tchttp.BaseResponse + Response *DescribeAccessRegionsResponseParams `json:"Response"` } func (r *DescribeAccessRegionsResponse) ToJsonString() string { @@ -2206,8 +3340,14 @@ func (r *DescribeAccessRegionsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeBlackHeaderRequestParams struct { + +} + type DescribeBlackHeaderRequest struct { *tchttp.BaseRequest + } func (r *DescribeBlackHeaderRequest) ToJsonString() string { @@ -2222,23 +3362,26 @@ func (r *DescribeBlackHeaderRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBlackHeaderRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeBlackHeaderResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 禁用的自定义header列表 +// Predefined struct for user +type DescribeBlackHeaderResponseParams struct { + // 禁用的自定义header列表 // 注意:此字段可能返回 null,表示取不到有效值。 - BlackHeaders []*string `json:"BlackHeaders,omitempty" name:"BlackHeaders"` + BlackHeaders []*string `json:"BlackHeaders,omitempty" name:"BlackHeaders"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeBlackHeaderResponse struct { + *tchttp.BaseResponse + Response *DescribeBlackHeaderResponseParams `json:"Response"` } func (r *DescribeBlackHeaderResponse) ToJsonString() string { @@ -2252,9 +3395,15 @@ func (r *DescribeBlackHeaderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCertificateDetailRequestParams struct { + // 证书ID。 + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` +} + type DescribeCertificateDetailRequest struct { *tchttp.BaseRequest - + // 证书ID。 CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` } @@ -2278,16 +3427,18 @@ func (r *DescribeCertificateDetailRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeCertificateDetailResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCertificateDetailResponseParams struct { + // 证书详情。 + CertificateDetail *CertificateDetail `json:"CertificateDetail,omitempty" name:"CertificateDetail"` - // 证书详情。 - CertificateDetail *CertificateDetail `json:"CertificateDetail,omitempty" name:"CertificateDetail"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCertificateDetailResponse struct { + *tchttp.BaseResponse + Response *DescribeCertificateDetailResponseParams `json:"Response"` } func (r *DescribeCertificateDetailResponse) ToJsonString() string { @@ -2301,9 +3452,28 @@ func (r *DescribeCertificateDetailResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCertificatesRequestParams struct { + // 证书类型。其中: + // 0,表示基础认证配置; + // 1,表示客户端CA证书; + // 2,表示服务器SSL证书; + // 3,表示源站CA证书; + // 4,表示通道SSL证书。 + // -1,所有类型。 + // 默认为-1。 + CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 限制数量,默认为20。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeCertificatesRequest struct { *tchttp.BaseRequest - + // 证书类型。其中: // 0,表示基础认证配置; // 1,表示客户端CA证书; @@ -2342,19 +3512,21 @@ func (r *DescribeCertificatesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeCertificatesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCertificatesResponseParams struct { + // 服务器证书列表,包括证书ID 和证书名称。 + CertificateSet []*Certificate `json:"CertificateSet,omitempty" name:"CertificateSet"` - // 服务器证书列表,包括证书ID 和证书名称。 - CertificateSet []*Certificate `json:"CertificateSet,omitempty" name:"CertificateSet"` + // 满足查询条件的服务器证书总数量。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 满足查询条件的服务器证书总数量。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCertificatesResponse struct { + *tchttp.BaseResponse + Response *DescribeCertificatesResponseParams `json:"Response"` } func (r *DescribeCertificatesResponse) ToJsonString() string { @@ -2368,8 +3540,14 @@ func (r *DescribeCertificatesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCountryAreaMappingRequestParams struct { + +} + type DescribeCountryAreaMappingRequest struct { *tchttp.BaseRequest + } func (r *DescribeCountryAreaMappingRequest) ToJsonString() string { @@ -2384,22 +3562,25 @@ func (r *DescribeCountryAreaMappingRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCountryAreaMappingRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeCountryAreaMappingResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeCountryAreaMappingResponseParams struct { + // 国家地区编码映射表。 + CountryAreaMappingList []*CountryAreaMap `json:"CountryAreaMappingList,omitempty" name:"CountryAreaMappingList"` - // 国家地区编码映射表。 - CountryAreaMappingList []*CountryAreaMap `json:"CountryAreaMappingList,omitempty" name:"CountryAreaMappingList"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCountryAreaMappingResponse struct { + *tchttp.BaseResponse + Response *DescribeCountryAreaMappingResponseParams `json:"Response"` } func (r *DescribeCountryAreaMappingResponse) ToJsonString() string { @@ -2413,8 +3594,65 @@ func (r *DescribeCountryAreaMappingResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeCrossBorderProxiesRequestParams struct { + +} + +type DescribeCrossBorderProxiesRequest struct { + *tchttp.BaseRequest + +} + +func (r *DescribeCrossBorderProxiesRequest) 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 *DescribeCrossBorderProxiesRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCrossBorderProxiesRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeCrossBorderProxiesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeCrossBorderProxiesResponse struct { + *tchttp.BaseResponse + Response *DescribeCrossBorderProxiesResponseParams `json:"Response"` +} + +func (r *DescribeCrossBorderProxiesResponse) 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 *DescribeCrossBorderProxiesResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeCustomHeaderRequestParams struct { + +} + type DescribeCustomHeaderRequest struct { *tchttp.BaseRequest + } func (r *DescribeCustomHeaderRequest) ToJsonString() string { @@ -2429,27 +3667,30 @@ func (r *DescribeCustomHeaderRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCustomHeaderRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeCustomHeaderResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 规则id +// Predefined struct for user +type DescribeCustomHeaderResponseParams struct { + // 规则id // 注意:此字段可能返回 null,表示取不到有效值。 - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` - // 自定义header列表 + // 自定义header列表 // 注意:此字段可能返回 null,表示取不到有效值。 - Headers []*HttpHeaderParam `json:"Headers,omitempty" name:"Headers"` + Headers []*HttpHeaderParam `json:"Headers,omitempty" name:"Headers"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeCustomHeaderResponse struct { + *tchttp.BaseResponse + Response *DescribeCustomHeaderResponseParams `json:"Response"` } func (r *DescribeCustomHeaderResponse) ToJsonString() string { @@ -2463,8 +3704,14 @@ func (r *DescribeCustomHeaderResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeDestRegionsRequestParams struct { + +} + type DescribeDestRegionsRequest struct { *tchttp.BaseRequest + } func (r *DescribeDestRegionsRequest) ToJsonString() string { @@ -2479,145 +3726,400 @@ func (r *DescribeDestRegionsRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDestRegionsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeDestRegionsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeDestRegionsResponseParams struct { + // 源站区域总数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + + // 源站区域详情列表 + DestRegionSet []*RegionDetail `json:"DestRegionSet,omitempty" name:"DestRegionSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeDestRegionsResponse struct { + *tchttp.BaseResponse + Response *DescribeDestRegionsResponseParams `json:"Response"` +} + +func (r *DescribeDestRegionsResponse) 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 *DescribeDestRegionsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainErrorPageInfoByIdsRequestParams struct { + // 定制错误ID列表,最多支持10个 + ErrorPageIds []*string `json:"ErrorPageIds,omitempty" name:"ErrorPageIds"` +} + +type DescribeDomainErrorPageInfoByIdsRequest struct { + *tchttp.BaseRequest + + // 定制错误ID列表,最多支持10个 + ErrorPageIds []*string `json:"ErrorPageIds,omitempty" name:"ErrorPageIds"` +} + +func (r *DescribeDomainErrorPageInfoByIdsRequest) 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 *DescribeDomainErrorPageInfoByIdsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ErrorPageIds") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainErrorPageInfoByIdsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainErrorPageInfoByIdsResponseParams struct { + // 定制错误响应配置集 + // 注意:此字段可能返回 null,表示取不到有效值。 + ErrorPageSet []*DomainErrorPageInfo `json:"ErrorPageSet,omitempty" name:"ErrorPageSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeDomainErrorPageInfoByIdsResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainErrorPageInfoByIdsResponseParams `json:"Response"` +} + +func (r *DescribeDomainErrorPageInfoByIdsResponse) 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 *DescribeDomainErrorPageInfoByIdsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainErrorPageInfoRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 域名 + Domain *string `json:"Domain,omitempty" name:"Domain"` +} + +type DescribeDomainErrorPageInfoRequest struct { + *tchttp.BaseRequest + + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 域名 + Domain *string `json:"Domain,omitempty" name:"Domain"` +} + +func (r *DescribeDomainErrorPageInfoRequest) 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 *DescribeDomainErrorPageInfoRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "ListenerId") + delete(f, "Domain") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainErrorPageInfoRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainErrorPageInfoResponseParams struct { + // 定制错误响应配置集 + // 注意:此字段可能返回 null,表示取不到有效值。 + ErrorPageSet []*DomainErrorPageInfo `json:"ErrorPageSet,omitempty" name:"ErrorPageSet"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DescribeDomainErrorPageInfoResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainErrorPageInfoResponseParams `json:"Response"` +} + +func (r *DescribeDomainErrorPageInfoResponse) 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 *DescribeDomainErrorPageInfoResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeFirstLinkSessionRequestParams struct { + // 单次加速唯一会话Id + SessionId *string `json:"SessionId,omitempty" name:"SessionId"` +} + +type DescribeFirstLinkSessionRequest struct { + *tchttp.BaseRequest + + // 单次加速唯一会话Id + SessionId *string `json:"SessionId,omitempty" name:"SessionId"` +} + +func (r *DescribeFirstLinkSessionRequest) 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 *DescribeFirstLinkSessionRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "SessionId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeFirstLinkSessionRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeFirstLinkSessionResponseParams struct { + // 会话状态,具体如下: + // 1: 加速中; + // 0: 非加速中。 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *int64 `json:"Status,omitempty" name:"Status"` + + // 剩余加速时间,单位秒。 + // 注意:此字段可能返回 null,表示取不到有效值。 + Duration *int64 `json:"Duration,omitempty" name:"Duration"` + + // 加速套餐类型。 + // 套餐说明如下: + // T100K:上/下行保障100kbps; + // BD4M:下行带宽保障4Mbps; + // BU4M:上行带宽保障4Mbps。 + // 注意:此字段可能返回 null,表示取不到有效值。 + SuiteType *string `json:"SuiteType,omitempty" name:"SuiteType"` - // 源站区域总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 加速终端的公网ip + // 注意:此字段可能返回 null,表示取不到有效值。 + SrcPublicIpv4 *string `json:"SrcPublicIpv4,omitempty" name:"SrcPublicIpv4"` - // 源站区域详情列表 - DestRegionSet []*RegionDetail `json:"DestRegionSet,omitempty" name:"DestRegionSet"` + // 加速目标ip + // 注意:此字段可能返回 null,表示取不到有效值。 + DestIpv4 []*string `json:"DestIpv4,omitempty" name:"DestIpv4"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } -func (r *DescribeDestRegionsResponse) ToJsonString() string { +type DescribeFirstLinkSessionResponse struct { + *tchttp.BaseResponse + Response *DescribeFirstLinkSessionResponseParams `json:"Response"` +} + +func (r *DescribeFirstLinkSessionResponse) 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 *DescribeDestRegionsResponse) FromJsonString(s string) error { +func (r *DescribeFirstLinkSessionResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeDomainErrorPageInfoByIdsRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type DescribeGlobalDomainDnsRequestParams struct { + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` +} - // 定制错误ID列表,最多支持10个 - ErrorPageIds []*string `json:"ErrorPageIds,omitempty" name:"ErrorPageIds"` +type DescribeGlobalDomainDnsRequest struct { + *tchttp.BaseRequest + + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` } -func (r *DescribeDomainErrorPageInfoByIdsRequest) ToJsonString() string { +func (r *DescribeGlobalDomainDnsRequest) 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 *DescribeDomainErrorPageInfoByIdsRequest) FromJsonString(s string) error { +func (r *DescribeGlobalDomainDnsRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "ErrorPageIds") + delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainErrorPageInfoByIdsRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeGlobalDomainDnsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeDomainErrorPageInfoByIdsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeGlobalDomainDnsResponseParams struct { + // DNS解析记录详细信息列表 + GlobalDnsList []*GlobalDns `json:"GlobalDnsList,omitempty" name:"GlobalDnsList"` - // 定制错误响应配置集 - // 注意:此字段可能返回 null,表示取不到有效值。 - ErrorPageSet []*DomainErrorPageInfo `json:"ErrorPageSet,omitempty" name:"ErrorPageSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeGlobalDomainDnsResponse struct { + *tchttp.BaseResponse + Response *DescribeGlobalDomainDnsResponseParams `json:"Response"` } -func (r *DescribeDomainErrorPageInfoByIdsResponse) ToJsonString() string { +func (r *DescribeGlobalDomainDnsResponse) 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 *DescribeDomainErrorPageInfoByIdsResponse) FromJsonString(s string) error { +func (r *DescribeGlobalDomainDnsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeDomainErrorPageInfoRequest struct { +// Predefined struct for user +type DescribeGlobalDomainsRequestParams struct { + // 项目ID + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 分页偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 分页数量限制 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 + // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,域名会被拉取出来。 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` +} + +type DescribeGlobalDomainsRequest struct { *tchttp.BaseRequest + + // 项目ID + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` - // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + // 分页偏移量 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` - // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + // 分页数量限制 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 + // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,域名会被拉取出来。 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` } -func (r *DescribeDomainErrorPageInfoRequest) ToJsonString() string { +func (r *DescribeGlobalDomainsRequest) 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 *DescribeDomainErrorPageInfoRequest) FromJsonString(s string) error { +func (r *DescribeGlobalDomainsRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "ListenerId") - delete(f, "Domain") + delete(f, "ProjectId") + delete(f, "Offset") + delete(f, "Limit") + delete(f, "Filters") + delete(f, "TagSet") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainErrorPageInfoRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeGlobalDomainsRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } -type DescribeDomainErrorPageInfoResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeGlobalDomainsResponseParams struct { + // 域名信息列表 + Domains []*Domain `json:"Domains,omitempty" name:"Domains"` - // 定制错误响应配置集 - // 注意:此字段可能返回 null,表示取不到有效值。 - ErrorPageSet []*DomainErrorPageInfo `json:"ErrorPageSet,omitempty" name:"ErrorPageSet"` + // 总记录数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` } -func (r *DescribeDomainErrorPageInfoResponse) ToJsonString() string { +type DescribeGlobalDomainsResponse struct { + *tchttp.BaseResponse + Response *DescribeGlobalDomainsResponseParams `json:"Response"` +} + +func (r *DescribeGlobalDomainsResponse) 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 *DescribeDomainErrorPageInfoResponse) FromJsonString(s string) error { +func (r *DescribeGlobalDomainsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeGroupAndStatisticsProxyRequestParams struct { + // 项目ID + ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` +} + type DescribeGroupAndStatisticsProxyRequest struct { *tchttp.BaseRequest - + // 项目ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` } @@ -2641,19 +4143,21 @@ func (r *DescribeGroupAndStatisticsProxyRequest) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } -type DescribeGroupAndStatisticsProxyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeGroupAndStatisticsProxyResponseParams struct { + // 可以统计的通道组信息 + GroupSet []*GroupStatisticsInfo `json:"GroupSet,omitempty" name:"GroupSet"` - // 可以统计的通道组信息 - GroupSet []*GroupStatisticsInfo `json:"GroupSet,omitempty" name:"GroupSet"` + // 通道组数量 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 通道组数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeGroupAndStatisticsProxyResponse struct { + *tchttp.BaseResponse + Response *DescribeGroupAndStatisticsProxyResponseParams `json:"Response"` } func (r *DescribeGroupAndStatisticsProxyResponse) ToJsonString() string { @@ -2667,9 +4171,15 @@ func (r *DescribeGroupAndStatisticsProxyResponse) FromJsonString(s string) error return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeGroupDomainConfigRequestParams struct { + // 通道组ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} + type DescribeGroupDomainConfigRequest struct { *tchttp.BaseRequest - + // 通道组ID。 GroupId *string `json:"GroupId,omitempty" name:"GroupId"` } @@ -2693,25 +4203,27 @@ func (r *DescribeGroupDomainConfigRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeGroupDomainConfigResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeGroupDomainConfigResponseParams struct { + // 域名解析就近接入配置列表。 + AccessRegionList []*DomainAccessRegionDict `json:"AccessRegionList,omitempty" name:"AccessRegionList"` - // 域名解析就近接入配置列表。 - AccessRegionList []*DomainAccessRegionDict `json:"AccessRegionList,omitempty" name:"AccessRegionList"` + // 默认访问Ip。 + DefaultDnsIp *string `json:"DefaultDnsIp,omitempty" name:"DefaultDnsIp"` - // 默认访问Ip。 - DefaultDnsIp *string `json:"DefaultDnsIp,omitempty" name:"DefaultDnsIp"` + // 通道组ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` - // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + // 接入地域的配置的总数。 + AccessRegionCount *int64 `json:"AccessRegionCount,omitempty" name:"AccessRegionCount"` - // 接入地域的配置的总数。 - AccessRegionCount *int64 `json:"AccessRegionCount,omitempty" name:"AccessRegionCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeGroupDomainConfigResponse struct { + *tchttp.BaseResponse + Response *DescribeGroupDomainConfigResponseParams `json:"Response"` } func (r *DescribeGroupDomainConfigResponse) ToJsonString() string { @@ -2725,9 +4237,36 @@ func (r *DescribeGroupDomainConfigResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeHTTPListenersRequestParams struct { + // 通道ID + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 过滤条件,按照监听器ID进行精确查询 + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 过滤条件,按照监听器名称进行精确查询 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 过滤条件,按照监听器端口进行精确查询 + Port *uint64 `json:"Port,omitempty" name:"Port"` + + // 偏移量,默认为0 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 限制数量,默认为20个 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 + SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + + // 通道组ID + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} + type DescribeHTTPListenersRequest struct { *tchttp.BaseRequest - + // 通道ID ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` @@ -2779,19 +4318,21 @@ func (r *DescribeHTTPListenersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeHTTPListenersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeHTTPListenersResponseParams struct { + // 监听器数量 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 监听器数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // HTTP监听器列表 + ListenerSet []*HTTPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` - // HTTP监听器列表 - ListenerSet []*HTTPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeHTTPListenersResponse struct { + *tchttp.BaseResponse + Response *DescribeHTTPListenersResponseParams `json:"Response"` } func (r *DescribeHTTPListenersResponse) ToJsonString() string { @@ -2805,9 +4346,43 @@ func (r *DescribeHTTPListenersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeHTTPSListenersRequestParams struct { + // 过滤条件,通道ID + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 过滤条件,根据监听器ID进行精确查询。 + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 过滤条件,根据监听器名称进行精确查询。 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 过滤条件,根据监听器端口进行精确查询。 + Port *uint64 `json:"Port,omitempty" name:"Port"` + + // 偏移量, 默认为0 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 限制数量,默认为20 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件,支持按照端口或监听器名称进行模糊查询 + SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + + // 过滤条件,通道组ID + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 支持Http3的开关,其中: + // 0,表示不需要支持Http3接入; + // 1,表示需要支持Http3接入。 + // 注意:如果支持了Http3的功能,那么该监听器会占用对应的UDP接入端口,不可再创建相同端口的UDP监听器。 + // 该功能的启停无法在监听器创建完毕后再修改。 + Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` +} + type DescribeHTTPSListenersRequest struct { *tchttp.BaseRequest - + // 过滤条件,通道ID ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` @@ -2867,19 +4442,21 @@ func (r *DescribeHTTPSListenersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeHTTPSListenersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeHTTPSListenersResponseParams struct { + // 监听器数量 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 监听器数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // HTTPS监听器列表 + ListenerSet []*HTTPSListener `json:"ListenerSet,omitempty" name:"ListenerSet"` - // HTTPS监听器列表 - ListenerSet []*HTTPSListener `json:"ListenerSet,omitempty" name:"ListenerSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeHTTPSListenersResponse struct { + *tchttp.BaseResponse + Response *DescribeHTTPSListenersResponseParams `json:"Response"` } func (r *DescribeHTTPSListenersResponse) ToJsonString() string { @@ -2893,9 +4470,15 @@ func (r *DescribeHTTPSListenersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeListenerRealServersRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` +} + type DescribeListenerRealServersRequest struct { *tchttp.BaseRequest - + // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` } @@ -2919,25 +4502,27 @@ func (r *DescribeListenerRealServersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeListenerRealServersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeListenerRealServersResponseParams struct { + // 可绑定源站的个数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 可绑定源站的个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 源站信息列表 + RealServerSet []*RealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` - // 源站信息列表 - RealServerSet []*RealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + // 已绑定源站的个数 + BindRealServerTotalCount *uint64 `json:"BindRealServerTotalCount,omitempty" name:"BindRealServerTotalCount"` - // 已绑定源站的个数 - BindRealServerTotalCount *uint64 `json:"BindRealServerTotalCount,omitempty" name:"BindRealServerTotalCount"` + // 已绑定源站信息列表 + BindRealServerSet []*BindRealServer `json:"BindRealServerSet,omitempty" name:"BindRealServerSet"` - // 已绑定源站信息列表 - BindRealServerSet []*BindRealServer `json:"BindRealServerSet,omitempty" name:"BindRealServerSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeListenerRealServersResponse struct { + *tchttp.BaseResponse + Response *DescribeListenerRealServersResponseParams `json:"Response"` } func (r *DescribeListenerRealServersResponse) ToJsonString() string { @@ -2951,9 +4536,30 @@ func (r *DescribeListenerRealServersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeListenerStatisticsRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 起始时间 + StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + + // 结束时间 + EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + + // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets。 + MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + + // 监控粒度,目前支持300,3600,86400,单位:秒。 + // 查询时间范围不超过1天,支持最小粒度300秒; + // 查询间范围不超过7天,支持最小粒度3600秒; + // 查询间范围超过7天,支持最小粒度86400秒。 + Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` +} + type DescribeListenerStatisticsRequest struct { *tchttp.BaseRequest - + // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -2996,16 +4602,18 @@ func (r *DescribeListenerStatisticsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeListenerStatisticsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeListenerStatisticsResponseParams struct { + // 通道组统计数据 + StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` - // 通道组统计数据 - StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeListenerStatisticsResponse struct { + *tchttp.BaseResponse + Response *DescribeListenerStatisticsResponseParams `json:"Response"` } func (r *DescribeListenerStatisticsResponse) ToJsonString() string { @@ -3019,9 +4627,57 @@ func (r *DescribeListenerStatisticsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProxiesRequestParams struct { + // (旧参数,请切换到ProxyIds)按照一个或者多个实例ID查询。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为100。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件。 + // 每次请求的Filters的上限为10,Filter.Values的上限为5。参数不支持同时指定InstanceIds和Filters。 + // ProjectId - String - 是否必填:否 -(过滤条件)按照项目ID过滤。 + // AccessRegion - String - 是否必填:否 - (过滤条件)按照接入地域过滤。 + // RealServerRegion - String - 是否必填:否 - (过滤条件)按照源站地域过滤。 + // GroupId - String - 是否必填:否 - (过滤条件)按照通道组ID过滤。 + // IPAddressVersion - String - 是否必填:否 - (过滤条件)按照IP版本过滤。 + // PackageType - String - 是否必填:否 - (过滤条件)按照通道套餐类型过滤。 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // (新参数,替代InstanceIds)按照一个或者多个实例ID查询。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 + ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + + // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 + // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,通道会被拉取出来。 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + + // 当该字段为1时,仅拉取非通道组的通道, + // 当该字段为0时,仅拉取通道组的通道, + // 不存在该字段时,拉取所有通道,包括独立通道和通道组通道。 + Independent *int64 `json:"Independent,omitempty" name:"Independent"` + + // 输出通道列表的排列顺序。取值范围: + // asc:升序排列; + // desc:降序排列。 + // 默认为降序。 + Order *string `json:"Order,omitempty" name:"Order"` + + // 通道列表排序的依据字段。取值范围: + // create_time:依据通道的创建时间排序; + // proxy_id:依据通道的ID排序; + // bandwidth:依据通道带宽上限排序; + // concurrent_connections:依据通道并发排序; + // 默认按通道创建时间排序。 + OrderField *string `json:"OrderField,omitempty" name:"OrderField"` +} + type DescribeProxiesRequest struct { *tchttp.BaseRequest - + // (旧参数,请切换到ProxyIds)按照一个或者多个实例ID查询。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` @@ -3095,22 +4751,24 @@ func (r *DescribeProxiesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeProxiesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeProxiesResponseParams struct { + // 通道个数。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 通道个数。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // (旧参数,请切换到ProxySet)通道实例信息列表。 + InstanceSet []*ProxyInfo `json:"InstanceSet,omitempty" name:"InstanceSet"` - // (旧参数,请切换到ProxySet)通道实例信息列表。 - InstanceSet []*ProxyInfo `json:"InstanceSet,omitempty" name:"InstanceSet"` + // (新参数)通道实例信息列表。 + ProxySet []*ProxyInfo `json:"ProxySet,omitempty" name:"ProxySet"` - // (新参数)通道实例信息列表。 - ProxySet []*ProxyInfo `json:"ProxySet,omitempty" name:"ProxySet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProxiesResponse struct { + *tchttp.BaseResponse + Response *DescribeProxiesResponseParams `json:"Response"` } func (r *DescribeProxiesResponse) ToJsonString() string { @@ -3124,9 +4782,18 @@ func (r *DescribeProxiesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProxiesStatusRequestParams struct { + // (旧参数,请切换到ProxyIds)通道ID列表。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + + // (新参数)通道ID列表。 + ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` +} + type DescribeProxiesStatusRequest struct { *tchttp.BaseRequest - + // (旧参数,请切换到ProxyIds)通道ID列表。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` @@ -3154,16 +4821,18 @@ func (r *DescribeProxiesStatusRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeProxiesStatusResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeProxiesStatusResponseParams struct { + // 通道状态列表。 + InstanceStatusSet []*ProxyStatus `json:"InstanceStatusSet,omitempty" name:"InstanceStatusSet"` - // 通道状态列表。 - InstanceStatusSet []*ProxyStatus `json:"InstanceStatusSet,omitempty" name:"InstanceStatusSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProxiesStatusResponse struct { + *tchttp.BaseResponse + Response *DescribeProxiesStatusResponseParams `json:"Response"` } func (r *DescribeProxiesStatusResponse) ToJsonString() string { @@ -3177,9 +4846,15 @@ func (r *DescribeProxiesStatusResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProxyAndStatisticsListenersRequestParams struct { + // 项目ID + ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` +} + type DescribeProxyAndStatisticsListenersRequest struct { *tchttp.BaseRequest - + // 项目ID ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` } @@ -3203,19 +4878,21 @@ func (r *DescribeProxyAndStatisticsListenersRequest) FromJsonString(s string) er return json.Unmarshal([]byte(s), &r) } -type DescribeProxyAndStatisticsListenersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeProxyAndStatisticsListenersResponseParams struct { + // 可以统计的通道信息 + ProxySet []*ProxySimpleInfo `json:"ProxySet,omitempty" name:"ProxySet"` - // 可以统计的通道信息 - ProxySet []*ProxySimpleInfo `json:"ProxySet,omitempty" name:"ProxySet"` + // 通道数量 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 通道数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProxyAndStatisticsListenersResponse struct { + *tchttp.BaseResponse + Response *DescribeProxyAndStatisticsListenersResponseParams `json:"Response"` } func (r *DescribeProxyAndStatisticsListenersResponse) ToJsonString() string { @@ -3229,9 +4906,15 @@ func (r *DescribeProxyAndStatisticsListenersResponse) FromJsonString(s string) e return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProxyDetailRequestParams struct { + // 需查询的通道ID。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` +} + type DescribeProxyDetailRequest struct { *tchttp.BaseRequest - + // 需查询的通道ID。 ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` } @@ -3255,16 +4938,18 @@ func (r *DescribeProxyDetailRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeProxyDetailResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeProxyDetailResponseParams struct { + // 通道详情信息。 + ProxyDetail *ProxyInfo `json:"ProxyDetail,omitempty" name:"ProxyDetail"` - // 通道详情信息。 - ProxyDetail *ProxyInfo `json:"ProxyDetail,omitempty" name:"ProxyDetail"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProxyDetailResponse struct { + *tchttp.BaseResponse + Response *DescribeProxyDetailResponseParams `json:"Response"` } func (r *DescribeProxyDetailResponse) ToJsonString() string { @@ -3278,9 +4963,15 @@ func (r *DescribeProxyDetailResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProxyGroupDetailsRequestParams struct { + // 通道组ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} + type DescribeProxyGroupDetailsRequest struct { *tchttp.BaseRequest - + // 通道组ID。 GroupId *string `json:"GroupId,omitempty" name:"GroupId"` } @@ -3304,16 +4995,18 @@ func (r *DescribeProxyGroupDetailsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeProxyGroupDetailsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeProxyGroupDetailsResponseParams struct { + // 通道组详细信息。 + ProxyGroupDetail *ProxyGroupDetail `json:"ProxyGroupDetail,omitempty" name:"ProxyGroupDetail"` - // 通道组详细信息。 - ProxyGroupDetail *ProxyGroupDetail `json:"ProxyGroupDetail,omitempty" name:"ProxyGroupDetail"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProxyGroupDetailsResponse struct { + *tchttp.BaseResponse + Response *DescribeProxyGroupDetailsResponseParams `json:"Response"` } func (r *DescribeProxyGroupDetailsResponse) ToJsonString() string { @@ -3327,9 +5020,34 @@ func (r *DescribeProxyGroupDetailsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProxyGroupListRequestParams struct { + // 偏移量,默认值为0。 + Offset *int64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认值为20,最大值为100。 + Limit *int64 `json:"Limit,omitempty" name:"Limit"` + + // 项目ID。取值范围: + // -1,该用户下所有项目 + // 0,默认项目 + // 其他值,指定的项目 + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 过滤条件。 + // 每次请求的Filter.Values的上限为5。 + // RealServerRegion - String - 是否必填:否 -(过滤条件)按照源站地域过滤,可参考DescribeDestRegions接口返回结果中的RegionId。 + // PackageType - String - 是否必填:否 - (过滤条件)通道组类型,Thunder表示标准通道组,Accelerator表示银牌加速通道组。 + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + + // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 + // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,该通道组会被拉取出来。 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` +} + type DescribeProxyGroupListRequest struct { *tchttp.BaseRequest - + // 偏移量,默认值为0。 Offset *int64 `json:"Offset,omitempty" name:"Offset"` @@ -3376,20 +5094,22 @@ func (r *DescribeProxyGroupListRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeProxyGroupListResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 通道组总数。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` +// Predefined struct for user +type DescribeProxyGroupListResponseParams struct { + // 通道组总数。 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 通道组列表。 + // 通道组列表。 // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyGroupList []*ProxyGroupInfo `json:"ProxyGroupList,omitempty" name:"ProxyGroupList"` + ProxyGroupList []*ProxyGroupInfo `json:"ProxyGroupList,omitempty" name:"ProxyGroupList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProxyGroupListResponse struct { + *tchttp.BaseResponse + Response *DescribeProxyGroupListResponseParams `json:"Response"` } func (r *DescribeProxyGroupListResponse) ToJsonString() string { @@ -3403,9 +5123,30 @@ func (r *DescribeProxyGroupListResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProxyGroupStatisticsRequestParams struct { + // 通道组ID + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 起始时间 + StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + + // 结束时间 + EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + + // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets + MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + + // 监控粒度,目前支持60,300,3600,86400,单位:秒。 + // 当时间范围不超过1天,支持最小粒度60秒; + // 当时间范围不超过7天,支持最小粒度3600秒; + // 当时间范围不超过30天,支持最小粒度86400秒。 + Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` +} + type DescribeProxyGroupStatisticsRequest struct { *tchttp.BaseRequest - + // 通道组ID GroupId *string `json:"GroupId,omitempty" name:"GroupId"` @@ -3448,16 +5189,18 @@ func (r *DescribeProxyGroupStatisticsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeProxyGroupStatisticsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeProxyGroupStatisticsResponseParams struct { + // 通道组统计数据 + StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` - // 通道组统计数据 - StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProxyGroupStatisticsResponse struct { + *tchttp.BaseResponse + Response *DescribeProxyGroupStatisticsResponseParams `json:"Response"` } func (r *DescribeProxyGroupStatisticsResponse) ToJsonString() string { @@ -3471,9 +5214,33 @@ func (r *DescribeProxyGroupStatisticsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeProxyStatisticsRequestParams struct { + // 通道ID + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 起始时间(2019-03-25 12:00:00) + StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + + // 结束时间(2019-03-25 12:00:00) + EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + + // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets, 丢包率:PacketLoss, 延迟:Latency,http请求量:HttpQPS, Https请求量:HttpsQPS + MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + + // 监控粒度,目前支持60,300,3600,86400,单位:秒。 + // 当时间范围不超过3天,支持最小粒度60秒; + // 当时间范围不超过7天,支持最小粒度300秒; + // 当时间范围不超过30天,支持最小粒度3600秒。 + Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + + // 运营商(通道为三网通道时有效),支持CMCC,CUCC,CTCC,传空值或不传则合并三个运营商数据 + Isp *string `json:"Isp,omitempty" name:"Isp"` +} + type DescribeProxyStatisticsRequest struct { *tchttp.BaseRequest - + // 通道ID ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` @@ -3520,16 +5287,18 @@ func (r *DescribeProxyStatisticsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeProxyStatisticsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeProxyStatisticsResponseParams struct { + // 通道统计数据 + StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` - // 通道统计数据 - StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeProxyStatisticsResponse struct { + *tchttp.BaseResponse + Response *DescribeProxyStatisticsResponseParams `json:"Response"` } func (r *DescribeProxyStatisticsResponse) ToJsonString() string { @@ -3543,9 +5312,33 @@ func (r *DescribeProxyStatisticsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRealServerStatisticsRequestParams struct { + // 源站ID + RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // L7层规则ID + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + + // 统计时长,单位:小时。仅支持最近1,3,6,12,24小时的统计查询 + WithinTime *uint64 `json:"WithinTime,omitempty" name:"WithinTime"` + + // 统计开始时间(2020-08-19 00:00:00) + StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + + // 统计结束时间(2020-08-19 23:59:59) + EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + + // 统计的数据粒度,单位:秒,仅支持1分钟-60和5分钟-300粒度 + Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` +} + type DescribeRealServerStatisticsRequest struct { *tchttp.BaseRequest - + // 源站ID RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` @@ -3593,19 +5386,21 @@ func (r *DescribeRealServerStatisticsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRealServerStatisticsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRealServerStatisticsResponseParams struct { + // 指定监听器的源站状态统计数据 + StatisticsData []*StatisticsDataInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` - // 指定监听器的源站状态统计数据 - StatisticsData []*StatisticsDataInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` + // 多个源站状态统计数据 + RsStatisticsData []*MetricStatisticsInfo `json:"RsStatisticsData,omitempty" name:"RsStatisticsData"` - // 多个源站状态统计数据 - RsStatisticsData []*MetricStatisticsInfo `json:"RsStatisticsData,omitempty" name:"RsStatisticsData"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRealServerStatisticsResponse struct { + *tchttp.BaseResponse + Response *DescribeRealServerStatisticsResponseParams `json:"Response"` } func (r *DescribeRealServerStatisticsResponse) ToJsonString() string { @@ -3619,9 +5414,31 @@ func (r *DescribeRealServerStatisticsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRealServersRequestParams struct { + // 查询源站的所属项目ID,-1表示所有项目 + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 需要查询的源站IP或域名,支持模糊匹配 + SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + + // 偏移量,默认值是0 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20个,最大值为50个 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 + // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,源站会被拉取出来。 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + + // 过滤条件。filter的name取值(RealServerName,RealServerIP) + Filters []*Filter `json:"Filters,omitempty" name:"Filters"` +} + type DescribeRealServersRequest struct { *tchttp.BaseRequest - + // 查询源站的所属项目ID,-1表示所有项目 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` @@ -3666,19 +5483,21 @@ func (r *DescribeRealServersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRealServersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRealServersResponseParams struct { + // 源站信息列表 + RealServerSet []*BindRealServerInfo `json:"RealServerSet,omitempty" name:"RealServerSet"` - // 源站信息列表 - RealServerSet []*BindRealServerInfo `json:"RealServerSet,omitempty" name:"RealServerSet"` + // 查询得到的源站数量 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 查询得到的源站数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRealServersResponse struct { + *tchttp.BaseResponse + Response *DescribeRealServersResponseParams `json:"Response"` } func (r *DescribeRealServersResponse) ToJsonString() string { @@ -3692,9 +5511,15 @@ func (r *DescribeRealServersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRealServersStatusRequestParams struct { + // 源站ID列表 + RealServerIds []*string `json:"RealServerIds,omitempty" name:"RealServerIds"` +} + type DescribeRealServersStatusRequest struct { *tchttp.BaseRequest - + // 源站ID列表 RealServerIds []*string `json:"RealServerIds,omitempty" name:"RealServerIds"` } @@ -3718,19 +5543,21 @@ func (r *DescribeRealServersStatusRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRealServersStatusResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRealServersStatusResponseParams struct { + // 返回源站查询结果的个数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 返回源站查询结果的个数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 源站被绑定状态列表 + RealServerStatusSet []*RealServerStatus `json:"RealServerStatusSet,omitempty" name:"RealServerStatusSet"` - // 源站被绑定状态列表 - RealServerStatusSet []*RealServerStatus `json:"RealServerStatusSet,omitempty" name:"RealServerStatusSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRealServersStatusResponse struct { + *tchttp.BaseResponse + Response *DescribeRealServersStatusResponseParams `json:"Response"` } func (r *DescribeRealServersStatusResponse) ToJsonString() string { @@ -3744,9 +5571,18 @@ func (r *DescribeRealServersStatusResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRegionAndPriceRequestParams struct { + // IP版本,可取值:IPv4、IPv6,默认值IPv4 + IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + + // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 + PackageType *string `json:"PackageType,omitempty" name:"PackageType"` +} + type DescribeRegionAndPriceRequest struct { *tchttp.BaseRequest - + // IP版本,可取值:IPv4、IPv6,默认值IPv4 IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` @@ -3774,27 +5610,29 @@ func (r *DescribeRegionAndPriceRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRegionAndPriceResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 源站区域总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` +// Predefined struct for user +type DescribeRegionAndPriceResponseParams struct { + // 源站区域总数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 源站区域详情列表 - DestRegionSet []*RegionDetail `json:"DestRegionSet,omitempty" name:"DestRegionSet"` + // 源站区域详情列表 + DestRegionSet []*RegionDetail `json:"DestRegionSet,omitempty" name:"DestRegionSet"` - // 通道带宽费用梯度价格 - BandwidthUnitPrice []*BandwidthPriceGradient `json:"BandwidthUnitPrice,omitempty" name:"BandwidthUnitPrice"` + // 通道带宽费用梯度价格 + BandwidthUnitPrice []*BandwidthPriceGradient `json:"BandwidthUnitPrice,omitempty" name:"BandwidthUnitPrice"` - // 带宽价格货币类型: + // 带宽价格货币类型: // CNY 人民币 // USD 美元 - Currency *string `json:"Currency,omitempty" name:"Currency"` + Currency *string `json:"Currency,omitempty" name:"Currency"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRegionAndPriceResponse struct { + *tchttp.BaseResponse + Response *DescribeRegionAndPriceResponseParams `json:"Response"` } func (r *DescribeRegionAndPriceResponse) ToJsonString() string { @@ -3808,9 +5646,25 @@ func (r *DescribeRegionAndPriceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeResourcesByTagRequestParams struct { + // 标签键。 + TagKey *string `json:"TagKey,omitempty" name:"TagKey"` + + // 标签值。 + TagValue *string `json:"TagValue,omitempty" name:"TagValue"` + + // 资源类型,其中: + // Proxy表示通道; + // ProxyGroup表示通道组; + // RealServer表示源站。 + // 不指定该字段则查询该标签下所有资源。 + ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` +} + type DescribeResourcesByTagRequest struct { *tchttp.BaseRequest - + // 标签键。 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` @@ -3846,19 +5700,21 @@ func (r *DescribeResourcesByTagRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeResourcesByTagResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeResourcesByTagResponseParams struct { + // 资源总数 + TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 资源总数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 标签对应的资源列表 + ResourceSet []*TagResourceInfo `json:"ResourceSet,omitempty" name:"ResourceSet"` - // 标签对应的资源列表 - ResourceSet []*TagResourceInfo `json:"ResourceSet,omitempty" name:"ResourceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeResourcesByTagResponse struct { + *tchttp.BaseResponse + Response *DescribeResourcesByTagResponseParams `json:"Response"` } func (r *DescribeResourcesByTagResponse) ToJsonString() string { @@ -3872,9 +5728,21 @@ func (r *DescribeResourcesByTagResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRuleRealServersRequestParams struct { + // 转发规则ID + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + + // 偏移量,默认为0。 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 返回数量,默认为20,最大值为1000。 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +} + type DescribeRuleRealServersRequest struct { *tchttp.BaseRequest - + // 转发规则ID RuleId *string `json:"RuleId,omitempty" name:"RuleId"` @@ -3906,25 +5774,27 @@ func (r *DescribeRuleRealServersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRuleRealServersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRuleRealServersResponseParams struct { + // 可绑定的源站个数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 可绑定的源站个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 可绑定的源站信息列表 + RealServerSet []*RealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` - // 可绑定的源站信息列表 - RealServerSet []*RealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + // 已绑定的源站个数 + BindRealServerTotalCount *uint64 `json:"BindRealServerTotalCount,omitempty" name:"BindRealServerTotalCount"` - // 已绑定的源站个数 - BindRealServerTotalCount *uint64 `json:"BindRealServerTotalCount,omitempty" name:"BindRealServerTotalCount"` + // 已绑定的源站信息列表 + BindRealServerSet []*BindRealServer `json:"BindRealServerSet,omitempty" name:"BindRealServerSet"` - // 已绑定的源站信息列表 - BindRealServerSet []*BindRealServer `json:"BindRealServerSet,omitempty" name:"BindRealServerSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRuleRealServersResponse struct { + *tchttp.BaseResponse + Response *DescribeRuleRealServersResponseParams `json:"Response"` } func (r *DescribeRuleRealServersResponse) ToJsonString() string { @@ -3938,9 +5808,15 @@ func (r *DescribeRuleRealServersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRulesByRuleIdsRequestParams struct { + // 规则ID列表。最多支持10个规则。 + RuleIds []*string `json:"RuleIds,omitempty" name:"RuleIds"` +} + type DescribeRulesByRuleIdsRequest struct { *tchttp.BaseRequest - + // 规则ID列表。最多支持10个规则。 RuleIds []*string `json:"RuleIds,omitempty" name:"RuleIds"` } @@ -3964,19 +5840,21 @@ func (r *DescribeRulesByRuleIdsRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRulesByRuleIdsResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRulesByRuleIdsResponseParams struct { + // 返回的规则总个数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 返回的规则总个数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 返回的规则列表。 + RuleSet []*RuleInfo `json:"RuleSet,omitempty" name:"RuleSet"` - // 返回的规则列表。 - RuleSet []*RuleInfo `json:"RuleSet,omitempty" name:"RuleSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRulesByRuleIdsResponse struct { + *tchttp.BaseResponse + Response *DescribeRulesByRuleIdsResponseParams `json:"Response"` } func (r *DescribeRulesByRuleIdsResponse) ToJsonString() string { @@ -3990,9 +5868,15 @@ func (r *DescribeRulesByRuleIdsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeRulesRequestParams struct { + // 7层监听器Id。 + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` +} + type DescribeRulesRequest struct { *tchttp.BaseRequest - + // 7层监听器Id。 ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` } @@ -4016,19 +5900,21 @@ func (r *DescribeRulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeRulesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeRulesResponseParams struct { + // 按照域名分类的规则信息列表 + DomainRuleSet []*DomainRuleSet `json:"DomainRuleSet,omitempty" name:"DomainRuleSet"` - // 按照域名分类的规则信息列表 - DomainRuleSet []*DomainRuleSet `json:"DomainRuleSet,omitempty" name:"DomainRuleSet"` + // 该监听器下的域名总数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 该监听器下的域名总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeRulesResponse struct { + *tchttp.BaseResponse + Response *DescribeRulesResponseParams `json:"Response"` } func (r *DescribeRulesResponse) ToJsonString() string { @@ -4042,9 +5928,15 @@ func (r *DescribeRulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSecurityPolicyDetailRequestParams struct { + // 安全策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` +} + type DescribeSecurityPolicyDetailRequest struct { *tchttp.BaseRequest - + // 安全策略ID PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` } @@ -4068,33 +5960,35 @@ func (r *DescribeSecurityPolicyDetailRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeSecurityPolicyDetailResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 通道ID +// Predefined struct for user +type DescribeSecurityPolicyDetailResponseParams struct { + // 通道ID // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` - // 安全策略状态: + // 安全策略状态: // BOUND,已开启安全策略 // UNBIND,已关闭安全策略 // BINDING,安全策略开启中 // UNBINDING,安全策略关闭中。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitempty" name:"Status"` + + // 默认策略:ACCEPT或DROP。 + DefaultAction *string `json:"DefaultAction,omitempty" name:"DefaultAction"` - // 默认策略:ACCEPT或DROP。 - DefaultAction *string `json:"DefaultAction,omitempty" name:"DefaultAction"` + // 策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` - // 策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + // 规则列表 + RuleList []*SecurityPolicyRuleOut `json:"RuleList,omitempty" name:"RuleList"` - // 规则列表 - RuleList []*SecurityPolicyRuleOut `json:"RuleList,omitempty" name:"RuleList"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSecurityPolicyDetailResponse struct { + *tchttp.BaseResponse + Response *DescribeSecurityPolicyDetailResponseParams `json:"Response"` } func (r *DescribeSecurityPolicyDetailResponse) ToJsonString() string { @@ -4108,9 +6002,15 @@ func (r *DescribeSecurityPolicyDetailResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeSecurityRulesRequestParams struct { + // 安全规则ID列表。总数不能超过20个。 + SecurityRuleIds []*string `json:"SecurityRuleIds,omitempty" name:"SecurityRuleIds"` +} + type DescribeSecurityRulesRequest struct { *tchttp.BaseRequest - + // 安全规则ID列表。总数不能超过20个。 SecurityRuleIds []*string `json:"SecurityRuleIds,omitempty" name:"SecurityRuleIds"` } @@ -4134,19 +6034,21 @@ func (r *DescribeSecurityRulesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeSecurityRulesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeSecurityRulesResponseParams struct { + // 返回的安全规则详情总数。 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 返回的安全规则详情总数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 返回的安全规则详情列表。 + SecurityRuleSet []*SecurityPolicyRuleOut `json:"SecurityRuleSet,omitempty" name:"SecurityRuleSet"` - // 返回的安全规则详情列表。 - SecurityRuleSet []*SecurityPolicyRuleOut `json:"SecurityRuleSet,omitempty" name:"SecurityRuleSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeSecurityRulesResponse struct { + *tchttp.BaseResponse + Response *DescribeSecurityRulesResponseParams `json:"Response"` } func (r *DescribeSecurityRulesResponse) ToJsonString() string { @@ -4160,9 +6062,38 @@ func (r *DescribeSecurityRulesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeTCPListenersRequestParams struct { + // 过滤条件,根据通道ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 过滤条件,根据监听器ID精确查询。 + // 当设置了ProxyId时,会检查该监听器是否归属于该通道。 + // 当设置了GroupId时,会检查该监听器是否归属于该通道组。 + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 过滤条件,根据监听器名称精确查询 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 过滤条件,根据监听器端口精确查询 + Port *uint64 `json:"Port,omitempty" name:"Port"` + + // 偏移量,默认为0 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 限制数量,默认为20 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件,根据通道组ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 + SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` +} + type DescribeTCPListenersRequest struct { *tchttp.BaseRequest - + // 过滤条件,根据通道ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` @@ -4216,19 +6147,21 @@ func (r *DescribeTCPListenersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeTCPListenersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeTCPListenersResponseParams struct { + // 满足条件的监听器总个数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 满足条件的监听器总个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // TCP监听器列表 + ListenerSet []*TCPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` - // TCP监听器列表 - ListenerSet []*TCPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeTCPListenersResponse struct { + *tchttp.BaseResponse + Response *DescribeTCPListenersResponseParams `json:"Response"` } func (r *DescribeTCPListenersResponse) ToJsonString() string { @@ -4242,9 +6175,38 @@ func (r *DescribeTCPListenersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeUDPListenersRequestParams struct { + // 过滤条件,根据通道ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 过滤条件,根据监听器ID精确查询。 + // 当设置了ProxyId时,会检查该监听器是否归属于该通道。 + // 当设置了GroupId时,会检查该监听器是否归属于该通道组。 + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 过滤条件,根据监听器名称精确查询 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 过滤条件,根据监听器端口精确查询 + Port *uint64 `json:"Port,omitempty" name:"Port"` + + // 偏移量,默认为0 + Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + + // 限制数量,默认为20 + Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + + // 过滤条件,根据通道组ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 + SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` +} + type DescribeUDPListenersRequest struct { *tchttp.BaseRequest - + // 过滤条件,根据通道ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` @@ -4298,19 +6260,21 @@ func (r *DescribeUDPListenersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeUDPListenersResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DescribeUDPListenersResponseParams struct { + // 监听器个数 + TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` - // 监听器个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // UDP监听器列表 + ListenerSet []*UDPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` - // UDP监听器列表 - ListenerSet []*UDPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DescribeUDPListenersResponse struct { + *tchttp.BaseResponse + Response *DescribeUDPListenersResponseParams `json:"Response"` } func (r *DescribeUDPListenersResponse) ToJsonString() string { @@ -4324,9 +6288,33 @@ func (r *DescribeUDPListenersResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type DestAddressInfo struct { + // 加速的目标IP,可多ip一起加速 + DestIp []*string `json:"DestIp,omitempty" name:"DestIp"` +} + +// Predefined struct for user +type DestroyProxiesRequestParams struct { + // 强制删除标识。 + // 1,强制删除该通道列表,无论是否已经绑定了源站; + // 0,如果已绑定了源站,则无法删除。 + // 删除多通道时,如果该标识为0,只有所有的通道都没有绑定源站,才允许删除。 + Force *int64 `json:"Force,omitempty" name:"Force"` + + // (旧参数,请切换到ProxyIds)通道实例ID列表。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + + // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 + // 更多详细信息请参阅:如何保证幂等性。 + ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + + // (新参数)通道实例ID列表。 + ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` +} + type DestroyProxiesRequest struct { *tchttp.BaseRequest - + // 强制删除标识。 // 1,强制删除该通道列表,无论是否已经绑定了源站; // 0,如果已绑定了源站,则无法删除。 @@ -4366,19 +6354,21 @@ func (r *DestroyProxiesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DestroyProxiesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type DestroyProxiesResponseParams struct { + // 处于不可销毁状态下的通道实例ID列表。 + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` - // 处于不可销毁状态下的通道实例ID列表。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + // 销毁操作失败的通道实例ID列表。 + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` - // 销毁操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type DestroyProxiesResponse struct { + *tchttp.BaseResponse + Response *DestroyProxiesResponseParams `json:"Response"` } func (r *DestroyProxiesResponse) ToJsonString() string { @@ -4392,8 +6382,134 @@ func (r *DestroyProxiesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DomainAccessRegionDict struct { +type DeviceInfo struct { + // 设备数据卡所属的运营商 + // 1:移动 + // 2:电信 + // 3:联通 + // 4:广电 + // 99:其他 + Vendor *int64 `json:"Vendor,omitempty" name:"Vendor"` + + // 设备操作系统 + // 1:Android + // 2: IOS + // 99:其他 + OS *int64 `json:"OS,omitempty" name:"OS"` + + // 设备唯一标识 + // IOS 填写 IDFV + // Android 填写 IMEI + DeviceId *string `json:"DeviceId,omitempty" name:"DeviceId"` + + // 用户手机号码 + PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` + + // 无线信息 + // 1:4G + // 2:5G + // 3:WIFI + // 99:其他 + Wireless *int64 `json:"Wireless,omitempty" name:"Wireless"` +} + +// Predefined struct for user +type DisableGlobalDomainRequestParams struct { + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` +} + +type DisableGlobalDomainRequest struct { + *tchttp.BaseRequest + + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` +} + +func (r *DisableGlobalDomainRequest) 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 *DisableGlobalDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DisableGlobalDomainRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DisableGlobalDomainResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type DisableGlobalDomainResponse struct { + *tchttp.BaseResponse + Response *DisableGlobalDomainResponseParams `json:"Response"` +} + +func (r *DisableGlobalDomainResponse) 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 *DisableGlobalDomainResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type Domain struct { + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 完整域名记录 + FullDomain *string `json:"FullDomain,omitempty" name:"FullDomain"` + + // 别名 + Alias *string `json:"Alias,omitempty" name:"Alias"` + + // 类型 + Type *string `json:"Type,omitempty" name:"Type"` + + // 状态,1表示关闭,0表示开启,2表示关闭中,3表示开启中 + Status *uint64 `json:"Status,omitempty" name:"Status"` + + // 所属项目 + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 默认入口 + // 注意:此字段可能返回 null,表示取不到有效值。 + DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` + + // 通道数量 + ProxyCount *uint64 `json:"ProxyCount,omitempty" name:"ProxyCount"` + + // 创建时间,使用UNIX时间戳 + CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + + // 更新时间,使用UNIX时间戳 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdateTime *uint64 `json:"UpdateTime,omitempty" name:"UpdateTime"` + + // 标签列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + + // 封禁解封状态:BANNED表示已封禁,RECOVER表示已解封或未封禁,BANNING表示封禁中,RECOVERING表示解封中,BAN_FAILED表示封禁失败,RECOVER_FAILED表示解封失败。 + // 注意:此字段可能返回 null,表示取不到有效值。 + BanStatus *string `json:"BanStatus,omitempty" name:"BanStatus"` +} +type DomainAccessRegionDict struct { // 就近接入区域 NationCountryInnerList []*NationCountryInnerInfo `json:"NationCountryInnerList,omitempty" name:"NationCountryInnerList"` @@ -4414,7 +6530,6 @@ type DomainAccessRegionDict struct { } type DomainErrorPageInfo struct { - // 错误定制响应的配置ID ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` @@ -4449,7 +6564,6 @@ type DomainErrorPageInfo struct { } type DomainRuleSet struct { - // 转发规则域名。 Domain *string `json:"Domain,omitempty" name:"Domain"` @@ -4544,8 +6658,61 @@ type DomainRuleSet struct { Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` } -type Filter struct { +// Predefined struct for user +type EnableGlobalDomainRequestParams struct { + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` +} + +type EnableGlobalDomainRequest struct { + *tchttp.BaseRequest + + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` +} + +func (r *EnableGlobalDomainRequest) 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 *EnableGlobalDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "EnableGlobalDomainRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type EnableGlobalDomainResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type EnableGlobalDomainResponse struct { + *tchttp.BaseResponse + Response *EnableGlobalDomainResponseParams `json:"Response"` +} + +func (r *EnableGlobalDomainResponse) 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 *EnableGlobalDomainResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type Filter struct { // 过滤条件 Name *string `json:"Name,omitempty" name:"Name"` @@ -4553,8 +6720,21 @@ type Filter struct { Values []*string `json:"Values,omitempty" name:"Values"` } -type GroupStatisticsInfo struct { +type GlobalDns struct { + // 解析记录ID + DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` + + // 域名就近接入地域信息列表 + CountryAreaList []*CountryAreaMap `json:"CountryAreaList,omitempty" name:"CountryAreaList"` + // 域名解析对应的通道接入点信息列表 + AccessList []*ProxyAccessInfo `json:"AccessList,omitempty" name:"AccessList"` + + // 解析状态:1表示运行中,2表示创建中,3表示修改中,4表示删除中 + Status *int64 `json:"Status,omitempty" name:"Status"` +} + +type GroupStatisticsInfo struct { // 通道组ID GroupId *string `json:"GroupId,omitempty" name:"GroupId"` @@ -4566,7 +6746,6 @@ type GroupStatisticsInfo struct { } type HTTPListener struct { - // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -4589,10 +6768,17 @@ type HTTPListener struct { // 3表示源站调整中; // 4表示配置变更中。 ListenerStatus *uint64 `json:"ListenerStatus,omitempty" name:"ListenerStatus"` + + // 监听器的通道ID,如果监听器属于通道组,则为null + // 注意:此字段可能返回 null,表示取不到有效值。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 监听器的通道组ID,如果监听器属于通道,则为null + // 注意:此字段可能返回 null,表示取不到有效值。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` } type HTTPSListener struct { - // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -4638,15 +6824,29 @@ type HTTPSListener struct { // 客户端CA证书别名 // 注意:此字段可能返回 null,表示取不到有效值。 - ClientCertificateAlias *string `json:"ClientCertificateAlias,omitempty" name:"ClientCertificateAlias"` + ClientCertificateAlias *string `json:"ClientCertificateAlias,omitempty" name:"ClientCertificateAlias"` + + // 多客户端CA证书别名信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + PolyClientCertificateAliasInfo []*CertificateAliasInfo `json:"PolyClientCertificateAliasInfo,omitempty" name:"PolyClientCertificateAliasInfo"` + + // 是否支持Http3,其中: + // 0,不支持Http3接入; + // 1,持Http3接入。 + // 注意:如果支持了Http3的功能,那么该监听器会占用对应的UDP接入端口,不可再创建相同端口的UDP监听器。 + // 注意:此字段可能返回 null,表示取不到有效值。 + Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + + // 监听器的通道ID,如果监听器属于通道组,则为null + // 注意:此字段可能返回 null,表示取不到有效值。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` - // 多客户端CA证书别名信息 + // 监听器的通道组ID,如果监听器属于通道,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - PolyClientCertificateAliasInfo []*CertificateAliasInfo `json:"PolyClientCertificateAliasInfo,omitempty" name:"PolyClientCertificateAliasInfo"` + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` } type HttpHeaderParam struct { - // HTTP头名 HeaderName *string `json:"HeaderName,omitempty" name:"HeaderName"` @@ -4655,7 +6855,6 @@ type HttpHeaderParam struct { } type IPDetail struct { - // IP字符串 IP *string `json:"IP,omitempty" name:"IP"` @@ -4666,9 +6865,45 @@ type IPDetail struct { Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` } +// Predefined struct for user +type InquiryPriceCreateProxyRequestParams struct { + // 加速区域名称。 + AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + + // 通道带宽上限,单位:Mbps。 + Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + + // (旧参数,请切换到RealServerRegion)源站区域名称。 + DestRegion *string `json:"DestRegion,omitempty" name:"DestRegion"` + + // (旧参数,请切换到Concurrent)通道并发量上限,表示同时在线的连接数,单位:万。 + Concurrency *int64 `json:"Concurrency,omitempty" name:"Concurrency"` + + // (新参数)源站区域名称。 + RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + + // (新参数)通道并发量上限,表示同时在线的连接数,单位:万。 + Concurrent *int64 `json:"Concurrent,omitempty" name:"Concurrent"` + + // 计费方式,0表示按带宽计费,1表示按流量计费。默认按带宽计费 + BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + + // IP版本,可取值:IPv4、IPv6,默认值IPv4 + IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + + // 网络类型,可取值:normal、cn2,默认值normal + NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + + // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 + PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + + // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 + Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` +} + type InquiryPriceCreateProxyRequest struct { *tchttp.BaseRequest - + // 加速区域名称。 AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` @@ -4699,7 +6934,7 @@ type InquiryPriceCreateProxyRequest struct { // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 PackageType *string `json:"PackageType,omitempty" name:"PackageType"` - // 支持Http3的开关,其中:0,表示不需要支持Http3接入;1,表示需要支持Http3接入。注意:如果开启了Http3的功能,那么该通道就不再支持TCP/UDP接入的功能。该功能的启停无法在通道创建完毕后再修改。 + // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` } @@ -4732,42 +6967,44 @@ func (r *InquiryPriceCreateProxyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type InquiryPriceCreateProxyResponse struct { - *tchttp.BaseResponse - Response *struct { - - // 通道基础费用价格,单位:元/天。 - ProxyDailyPrice *float64 `json:"ProxyDailyPrice,omitempty" name:"ProxyDailyPrice"` +// Predefined struct for user +type InquiryPriceCreateProxyResponseParams struct { + // 通道基础费用价格,单位:元/天。 + ProxyDailyPrice *float64 `json:"ProxyDailyPrice,omitempty" name:"ProxyDailyPrice"` - // 通道带宽费用梯度价格。 + // 通道带宽费用梯度价格。 // 注意:此字段可能返回 null,表示取不到有效值。 - BandwidthUnitPrice []*BandwidthPriceGradient `json:"BandwidthUnitPrice,omitempty" name:"BandwidthUnitPrice"` + BandwidthUnitPrice []*BandwidthPriceGradient `json:"BandwidthUnitPrice,omitempty" name:"BandwidthUnitPrice"` - // 通道基础费用折扣价格,单位:元/天。 - DiscountProxyDailyPrice *float64 `json:"DiscountProxyDailyPrice,omitempty" name:"DiscountProxyDailyPrice"` + // 通道基础费用折扣价格,单位:元/天。 + DiscountProxyDailyPrice *float64 `json:"DiscountProxyDailyPrice,omitempty" name:"DiscountProxyDailyPrice"` - // 价格使用的货币,支持人民币,美元等。 - Currency *string `json:"Currency,omitempty" name:"Currency"` + // 价格使用的货币,支持人民币,美元等。 + Currency *string `json:"Currency,omitempty" name:"Currency"` - // 通道的流量费用价格,单位: 元/GB + // 通道的流量费用价格,单位: 元/GB // 注意:此字段可能返回 null,表示取不到有效值。 - FlowUnitPrice *float64 `json:"FlowUnitPrice,omitempty" name:"FlowUnitPrice"` + FlowUnitPrice *float64 `json:"FlowUnitPrice,omitempty" name:"FlowUnitPrice"` - // 通道的流量费用折扣价格,单位:元/GB + // 通道的流量费用折扣价格,单位:元/GB // 注意:此字段可能返回 null,表示取不到有效值。 - DiscountFlowUnitPrice *float64 `json:"DiscountFlowUnitPrice,omitempty" name:"DiscountFlowUnitPrice"` + DiscountFlowUnitPrice *float64 `json:"DiscountFlowUnitPrice,omitempty" name:"DiscountFlowUnitPrice"` - // 精品BGP的带宽费用价格,单位: 元/Mbps/天 + // 精品BGP的带宽费用价格,单位: 元/Mbps/天 // 注意:此字段可能返回 null,表示取不到有效值。 - Cn2BandwidthPrice *float64 `json:"Cn2BandwidthPrice,omitempty" name:"Cn2BandwidthPrice"` + Cn2BandwidthPrice *float64 `json:"Cn2BandwidthPrice,omitempty" name:"Cn2BandwidthPrice"` - // 精品BGP的折后带宽费用价格,单位: 元/Mbps/天 + // 精品BGP的折后带宽费用价格,单位: 元/Mbps/天 // 注意:此字段可能返回 null,表示取不到有效值。 - Cn2BandwidthPriceWithDiscount *float64 `json:"Cn2BandwidthPriceWithDiscount,omitempty" name:"Cn2BandwidthPriceWithDiscount"` + Cn2BandwidthPriceWithDiscount *float64 `json:"Cn2BandwidthPriceWithDiscount,omitempty" name:"Cn2BandwidthPriceWithDiscount"` - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type InquiryPriceCreateProxyResponse struct { + *tchttp.BaseResponse + Response *InquiryPriceCreateProxyResponseParams `json:"Response"` } func (r *InquiryPriceCreateProxyResponse) ToJsonString() string { @@ -4782,7 +7019,6 @@ func (r *InquiryPriceCreateProxyResponse) FromJsonString(s string) error { } type ListenerInfo struct { - // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -4797,7 +7033,6 @@ type ListenerInfo struct { } type MetricStatisticsInfo struct { - // 指标名称 MetricName *string `json:"MetricName,omitempty" name:"MetricName"` @@ -4805,9 +7040,18 @@ type MetricStatisticsInfo struct { MetricData []*StatisticsDataInfo `json:"MetricData,omitempty" name:"MetricData"` } +// Predefined struct for user +type ModifyCertificateAttributesRequestParams struct { + // 证书ID。 + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + + // 证书名字。长度不超过50个字符。 + CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` +} + type ModifyCertificateAttributesRequest struct { *tchttp.BaseRequest - + // 证书ID。 CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` @@ -4835,13 +7079,15 @@ func (r *ModifyCertificateAttributesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCertificateAttributesResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyCertificateAttributesResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyCertificateAttributesResponseParams `json:"Response"` } func (r *ModifyCertificateAttributesResponse) ToJsonString() string { @@ -4855,9 +7101,31 @@ func (r *ModifyCertificateAttributesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCertificateRequestParams struct { + // 监听器实例ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 需要修改证书的域名 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 新的服务器证书ID。其中: + // 当CertificateId=default时,表示使用监听器的证书。 + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + + // 新的客户端证书ID。其中: + // 当ClientCertificateId=default时,表示使用监听器的证书。 + // 仅当采用双向认证方式时,需要设置该参数或者PolyClientCertificateIds。 + ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + + // 新的多客户端证书ID列表。其中: + // 仅当采用双向认证方式时,需要设置该参数或ClientCertificateId参数。 + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` +} + type ModifyCertificateRequest struct { *tchttp.BaseRequest - + // 监听器实例ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -4901,13 +7169,15 @@ func (r *ModifyCertificateRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyCertificateResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyCertificateResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyCertificateResponseParams `json:"Response"` } func (r *ModifyCertificateResponse) ToJsonString() string { @@ -4921,9 +7191,39 @@ func (r *ModifyCertificateResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyDomainRequestParams struct { + // 7层监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 修改前的域名信息 + OldDomain *string `json:"OldDomain,omitempty" name:"OldDomain"` + + // 修改后的域名信息 + NewDomain *string `json:"NewDomain,omitempty" name:"NewDomain"` + + // 服务器SSL证书ID,仅适用于version3.0的通道。其中: + // 不带该字段时,表示使用原证书; + // 携带该字段时并且CertificateId=default,表示使用监听器证书; + // 其他情况,使用该CertificateId指定的证书。 + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + + // 客户端CA证书ID,仅适用于version3.0的通道。其中: + // 不带该字段和PolyClientCertificateIds时,表示使用原证书; + // 携带该字段时并且ClientCertificateId=default,表示使用监听器证书; + // 其他情况,使用该ClientCertificateId或PolyClientCertificateIds指定的证书。 + ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + + // 客户端CA证书ID,仅适用于version3.0的通道。其中: + // 不带该字段和ClientCertificateId时,表示使用原证书; + // 携带该字段时并且ClientCertificateId=default,表示使用监听器证书; + // 其他情况,使用该ClientCertificateId或PolyClientCertificateIds指定的证书。 + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` +} + type ModifyDomainRequest struct { *tchttp.BaseRequest - + // 7层监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -4976,13 +7276,15 @@ func (r *ModifyDomainRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyDomainResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyDomainResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyDomainResponseParams `json:"Response"` } func (r *ModifyDomainResponse) ToJsonString() string { @@ -4996,9 +7298,171 @@ func (r *ModifyDomainResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifyGroupDomainConfigRequest struct { +// Predefined struct for user +type ModifyGlobalDomainAttributeRequestParams struct { + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 项目ID + ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 别名 + Alias *string `json:"Alias,omitempty" name:"Alias"` + + // 默认入口 + DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` +} + +type ModifyGlobalDomainAttributeRequest struct { + *tchttp.BaseRequest + + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 项目ID + ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // 别名 + Alias *string `json:"Alias,omitempty" name:"Alias"` + + // 默认入口 + DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` +} + +func (r *ModifyGlobalDomainAttributeRequest) 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 *ModifyGlobalDomainAttributeRequest) 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, "ProjectId") + delete(f, "Alias") + delete(f, "DefaultValue") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyGlobalDomainAttributeRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyGlobalDomainAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type ModifyGlobalDomainAttributeResponse struct { + *tchttp.BaseResponse + Response *ModifyGlobalDomainAttributeResponseParams `json:"Response"` +} + +func (r *ModifyGlobalDomainAttributeResponse) 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 *ModifyGlobalDomainAttributeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyGlobalDomainDnsRequestParams struct { + // 解析记录ID + DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` + + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 国家ID列表 + NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitempty" name:"NationCountryInnerCodes"` + + // 通道ID列表 + ProxyIdList []*string `json:"ProxyIdList,omitempty" name:"ProxyIdList"` +} + +type ModifyGlobalDomainDnsRequest struct { *tchttp.BaseRequest + + // 解析记录ID + DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` + + // 域名ID + DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + + // 国家ID列表 + NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitempty" name:"NationCountryInnerCodes"` + + // 通道ID列表 + ProxyIdList []*string `json:"ProxyIdList,omitempty" name:"ProxyIdList"` +} + +func (r *ModifyGlobalDomainDnsRequest) 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 *ModifyGlobalDomainDnsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DnsRecordId") + delete(f, "DomainId") + delete(f, "NationCountryInnerCodes") + delete(f, "ProxyIdList") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyGlobalDomainDnsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyGlobalDomainDnsResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + +type ModifyGlobalDomainDnsResponse struct { + *tchttp.BaseResponse + Response *ModifyGlobalDomainDnsResponseParams `json:"Response"` +} +func (r *ModifyGlobalDomainDnsResponse) 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 *ModifyGlobalDomainDnsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyGroupDomainConfigRequestParams struct { + // 通道组ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 域名解析默认访问IP或域名。 + DefaultDnsIp *string `json:"DefaultDnsIp,omitempty" name:"DefaultDnsIp"` + + // 就近接入区域配置。 + AccessRegionList []*AccessRegionDomainConf `json:"AccessRegionList,omitempty" name:"AccessRegionList"` +} + +type ModifyGroupDomainConfigRequest struct { + *tchttp.BaseRequest + // 通道组ID。 GroupId *string `json:"GroupId,omitempty" name:"GroupId"` @@ -5030,13 +7494,15 @@ func (r *ModifyGroupDomainConfigRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyGroupDomainConfigResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyGroupDomainConfigResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyGroupDomainConfigResponseParams `json:"Response"` } func (r *ModifyGroupDomainConfigResponse) ToJsonString() string { @@ -5050,9 +7516,21 @@ func (r *ModifyGroupDomainConfigResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyHTTPListenerAttributeRequestParams struct { + // 需要修改的监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 新的监听器名称 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 通道ID + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` +} + type ModifyHTTPListenerAttributeRequest struct { *tchttp.BaseRequest - + // 需要修改的监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -5084,13 +7562,15 @@ func (r *ModifyHTTPListenerAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyHTTPListenerAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyHTTPListenerAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyHTTPListenerAttributeResponseParams `json:"Response"` } func (r *ModifyHTTPListenerAttributeResponse) ToJsonString() string { @@ -5104,9 +7584,33 @@ func (r *ModifyHTTPListenerAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyHTTPSListenerAttributeRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 通道ID, 若为单通道监听器,此项必须填写 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 修改后的监听器名称 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 监听器后端转发与源站之间的协议类型 + ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + + // 修改后的监听器服务器证书ID + CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + + // 修改后的监听器客户端证书ID,不支持多客户端证书,多客户端证书新采用PolyClientCertificateIds字段 + ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + + // 新字段,修改后的监听器客户端证书ID + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` +} + type ModifyHTTPSListenerAttributeRequest struct { *tchttp.BaseRequest - + // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -5154,13 +7658,15 @@ func (r *ModifyHTTPSListenerAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyHTTPSListenerAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyHTTPSListenerAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyHTTPSListenerAttributeResponseParams `json:"Response"` } func (r *ModifyHTTPSListenerAttributeResponse) ToJsonString() string { @@ -5174,9 +7680,25 @@ func (r *ModifyHTTPSListenerAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyProxiesAttributeRequestParams struct { + // (旧参数,请切换到ProxyIds)一个或多个待操作的通道ID。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + + // 通道名称。可任意命名,但不得超过30个字符。 + ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"` + + // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 + // 更多详细信息请参阅:如何保证幂等性。 + ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + + // (新参数)一个或多个待操作的通道ID。 + ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` +} + type ModifyProxiesAttributeRequest struct { *tchttp.BaseRequest - + // (旧参数,请切换到ProxyIds)一个或多个待操作的通道ID。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` @@ -5213,13 +7735,15 @@ func (r *ModifyProxiesAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyProxiesAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyProxiesAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyProxiesAttributeResponseParams `json:"Response"` } func (r *ModifyProxiesAttributeResponse) ToJsonString() string { @@ -5233,9 +7757,25 @@ func (r *ModifyProxiesAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyProxiesProjectRequestParams struct { + // 需要修改到的项目ID。 + ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + + // (旧参数,请切换到ProxyIds)一个或多个待操作的通道ID。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + + // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 + // 更多详细信息请参阅:如何保证幂等性。 + ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + + // (新参数)一个或多个待操作的通道ID。 + ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` +} + type ModifyProxiesProjectRequest struct { *tchttp.BaseRequest - + // 需要修改到的项目ID。 ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` @@ -5272,13 +7812,15 @@ func (r *ModifyProxiesProjectRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyProxiesProjectResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyProxiesProjectResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyProxiesProjectResponseParams `json:"Response"` } func (r *ModifyProxiesProjectResponse) ToJsonString() string { @@ -5292,9 +7834,33 @@ func (r *ModifyProxiesProjectResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyProxyConfigurationRequestParams struct { + // (旧参数,请切换到ProxyId)通道的实例ID。 + InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + + // 需要调整到的目标带宽,单位:Mbps。 + // Bandwidth与Concurrent必须至少设置一个。取值范围根据DescribeAccessRegionsByDestRegion接口获取得到 + Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + + // 需要调整到的目标并发值,单位:万。 + // Bandwidth与Concurrent必须至少设置一个。取值范围根据DescribeAccessRegionsByDestRegion接口获取得到 + Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + + // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 + // 更多详细信息请参阅:如何保证幂等性。 + ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + + // (新参数)通道的实例ID。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 计费方式 (0:按带宽计费,1:按流量计费 默认按带宽计费) + BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` +} + type ModifyProxyConfigurationRequest struct { *tchttp.BaseRequest - + // (旧参数,请切换到ProxyId)通道的实例ID。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -5341,13 +7907,15 @@ func (r *ModifyProxyConfigurationRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyProxyConfigurationResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyProxyConfigurationResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyProxyConfigurationResponseParams `json:"Response"` } func (r *ModifyProxyConfigurationResponse) ToJsonString() string { @@ -5361,9 +7929,21 @@ func (r *ModifyProxyConfigurationResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyProxyGroupAttributeRequestParams struct { + // 需要修改的通道组ID。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 修改后的通道组名称:不超过30个字符,超过部分会被截断。 + GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + + // 项目ID + ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` +} + type ModifyProxyGroupAttributeRequest struct { *tchttp.BaseRequest - + // 需要修改的通道组ID。 GroupId *string `json:"GroupId,omitempty" name:"GroupId"` @@ -5395,13 +7975,15 @@ func (r *ModifyProxyGroupAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyProxyGroupAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyProxyGroupAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyProxyGroupAttributeResponseParams `json:"Response"` } func (r *ModifyProxyGroupAttributeResponse) ToJsonString() string { @@ -5415,9 +7997,18 @@ func (r *ModifyProxyGroupAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRealServerNameRequestParams struct { + // 源站名称 + RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` + + // 源站ID + RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` +} + type ModifyRealServerNameRequest struct { *tchttp.BaseRequest - + // 源站名称 RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` @@ -5445,13 +8036,15 @@ func (r *ModifyRealServerNameRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRealServerNameResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyRealServerNameResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyRealServerNameResponseParams `json:"Response"` } func (r *ModifyRealServerNameResponse) ToJsonString() string { @@ -5465,19 +8058,56 @@ func (r *ModifyRealServerNameResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRuleAttributeRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 转发规则ID + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 + Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + + // 源站健康检查开关,其中: + // 1,开启; + // 0,关闭。 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + + // 健康检查配置参数 + CheckParams *RuleCheckParams `json:"CheckParams,omitempty" name:"CheckParams"` + + // 转发规则路径 + Path *string `json:"Path,omitempty" name:"Path"` + + // 加速通道转发到源站的协议类型,支持:default, HTTP和HTTPS。 + // 当ForwardProtocol=default时,表示使用对应监听器的ForwardProtocol。 + ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + + // 回源Host。加速通道转发到源站的请求中携带的host。 + // 当ForwardHost=default时,使用规则的域名,其他情况为该字段所设置的值。 + ForwardHost *string `json:"ForwardHost,omitempty" name:"ForwardHost"` + + // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。 + ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitempty" name:"ServerNameIndicationSwitch"` + + // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 + ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + + // HTTP强制跳转HTTPS。输入当前规则对应的域名与地址。 + ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` +} + type ModifyRuleAttributeRequest struct { *tchttp.BaseRequest - + // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` // 转发规则ID RuleId *string `json:"RuleId,omitempty" name:"RuleId"` - // 调度策略,其中: - // rr,轮询; - // wrr,加权轮询; - // lc,最小连接数。 + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // 源站健康检查开关,其中: @@ -5504,6 +8134,9 @@ type ModifyRuleAttributeRequest struct { // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + + // HTTP强制跳转HTTPS。输入当前规则对应的域名与地址。 + ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` } func (r *ModifyRuleAttributeRequest) ToJsonString() string { @@ -5528,19 +8161,22 @@ func (r *ModifyRuleAttributeRequest) FromJsonString(s string) error { delete(f, "ForwardHost") delete(f, "ServerNameIndicationSwitch") delete(f, "ServerNameIndication") + delete(f, "ForcedRedirect") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRuleAttributeRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyRuleAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyRuleAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyRuleAttributeResponseParams `json:"Response"` } func (r *ModifyRuleAttributeResponse) ToJsonString() string { @@ -5554,9 +8190,37 @@ func (r *ModifyRuleAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySecurityRuleRequestParams struct { + // 规则ID + RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + + // 规则名:不得超过30个字符,超过部分会被截断。 + AliasName *string `json:"AliasName,omitempty" name:"AliasName"` + + // 安全策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + + // 安全规则动作 + RuleAction *string `json:"RuleAction,omitempty" name:"RuleAction"` + + // 规则关联地址,格式需要满足CIDR网络地址规范 + SourceCidr *string `json:"SourceCidr,omitempty" name:"SourceCidr"` + + // 协议类型 + Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + + // 端口范围,支持以下格式 + // 单个端口: 80 + // 多个端口: 80,443 + // 连续端口: 3306-20000 + // 所有端口: ALL + DestPortRange *string `json:"DestPortRange,omitempty" name:"DestPortRange"` +} + type ModifySecurityRuleRequest struct { *tchttp.BaseRequest - + // 规则ID RuleId *string `json:"RuleId,omitempty" name:"RuleId"` @@ -5608,13 +8272,15 @@ func (r *ModifySecurityRuleRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifySecurityRuleResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifySecurityRuleResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifySecurityRuleResponseParams `json:"Response"` } func (r *ModifySecurityRuleResponse) ToJsonString() string { @@ -5628,9 +8294,45 @@ func (r *ModifySecurityRuleResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyTCPListenerAttributeRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 监听器名称 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 + Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + + // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 + DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + + // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 + ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + + // 是否开启健康检查,1开启,0关闭。 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + + // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 + FailoverSwitch *uint64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + + // 健康阈值,表示连续检查成功多少次数后认定源站健康。范围为1到10 + HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + + // 不健康阈值,表示连续检查失败次数后认定源站不健康。范围为1到10 + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` +} + type ModifyTCPListenerAttributeRequest struct { *tchttp.BaseRequest - + // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -5643,7 +8345,7 @@ type ModifyTCPListenerAttributeRequest struct { // 监听器名称 ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` - // 监听器源站调度策略,支持轮询(rr),加权轮询(wrr),最小连接数(lc)。 + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 @@ -5694,13 +8396,15 @@ func (r *ModifyTCPListenerAttributeRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyTCPListenerAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyTCPListenerAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyTCPListenerAttributeResponseParams `json:"Response"` } func (r *ModifyTCPListenerAttributeResponse) ToJsonString() string { @@ -5714,23 +8418,107 @@ func (r *ModifyTCPListenerAttributeResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ModifyUDPListenerAttributeRequest struct { - *tchttp.BaseRequest +// Predefined struct for user +type ModifyUDPListenerAttributeRequestParams struct { + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 监听器名称 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 + Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + + // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 + DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + + // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 + ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + + // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 + HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + + // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + + // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 + FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + + // 源站是否开启健康检查:1开启,0关闭。 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + + // UDP源站健康类型。PORT表示检查端口,PING表示PING。 + CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + + // UDP源站健康检查探测端口。 + CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + + // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 + ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + + // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 + SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + + // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 + RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` +} + +type ModifyUDPListenerAttributeRequest struct { + *tchttp.BaseRequest + + // 监听器ID + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + + // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 监听器名称 + ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 + Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + + // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 + DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + + // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 + ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + + // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 + HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + + // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` - // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 + FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` - // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + // 源站是否开启健康检查:1开启,0关闭。 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` - // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + // UDP源站健康类型。PORT表示检查端口,PING表示PING。 + CheckType *string `json:"CheckType,omitempty" name:"CheckType"` - // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + // UDP源站健康检查探测端口。 + CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` - // 监听器源站调度策略 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 + ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + + // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 + SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + + // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 + RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` } func (r *ModifyUDPListenerAttributeRequest) ToJsonString() string { @@ -5750,19 +8538,32 @@ func (r *ModifyUDPListenerAttributeRequest) FromJsonString(s string) error { delete(f, "ProxyId") delete(f, "ListenerName") delete(f, "Scheduler") + delete(f, "DelayLoop") + delete(f, "ConnectTimeout") + delete(f, "HealthyThreshold") + delete(f, "UnhealthyThreshold") + delete(f, "FailoverSwitch") + delete(f, "HealthCheck") + delete(f, "CheckType") + delete(f, "CheckPort") + delete(f, "ContextType") + delete(f, "SendContext") + delete(f, "RecvContext") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyUDPListenerAttributeRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type ModifyUDPListenerAttributeResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type ModifyUDPListenerAttributeResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *ModifyUDPListenerAttributeResponseParams `json:"Response"` } func (r *ModifyUDPListenerAttributeResponse) ToJsonString() string { @@ -5777,7 +8578,6 @@ func (r *ModifyUDPListenerAttributeResponse) FromJsonString(s string) error { } type NationCountryInnerInfo struct { - // 国家名 NationCountryName *string `json:"NationCountryName,omitempty" name:"NationCountryName"` @@ -5786,7 +8586,6 @@ type NationCountryInnerInfo struct { } type NewRealServer struct { - // 源站ID RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` @@ -5794,9 +8593,22 @@ type NewRealServer struct { RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"` } +// Predefined struct for user +type OpenProxiesRequestParams struct { + // (旧参数,请切换到ProxyIds)通道的实例ID列表。 + InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + + // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 + // 更多详细信息请参阅:如何保证幂等性。 + ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + + // (新参数)通道的实例ID列表。 + ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` +} + type OpenProxiesRequest struct { *tchttp.BaseRequest - + // (旧参数,请切换到ProxyIds)通道的实例ID列表。 InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` @@ -5829,19 +8641,21 @@ func (r *OpenProxiesRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type OpenProxiesResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type OpenProxiesResponseParams struct { + // 非关闭状态下的通道实例ID列表,不可开启。 + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` - // 非关闭状态下的通道实例ID列表,不可开启。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + // 开启操作失败的通道实例ID列表。 + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` - // 开启操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type OpenProxiesResponse struct { + *tchttp.BaseResponse + Response *OpenProxiesResponseParams `json:"Response"` } func (r *OpenProxiesResponse) ToJsonString() string { @@ -5855,9 +8669,15 @@ func (r *OpenProxiesResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type OpenProxyGroupRequestParams struct { + // 通道组实例 ID + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} + type OpenProxyGroupRequest struct { *tchttp.BaseRequest - + // 通道组实例 ID GroupId *string `json:"GroupId,omitempty" name:"GroupId"` } @@ -5881,19 +8701,21 @@ func (r *OpenProxyGroupRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type OpenProxyGroupResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type OpenProxyGroupResponseParams struct { + // 非关闭状态下的通道实例ID列表,不可开启。 + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` - // 非关闭状态下的通道实例ID列表,不可开启。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + // 开启操作失败的通道实例ID列表。 + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` - // 开启操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type OpenProxyGroupResponse struct { + *tchttp.BaseResponse + Response *OpenProxyGroupResponseParams `json:"Response"` } func (r *OpenProxyGroupResponse) ToJsonString() string { @@ -5907,9 +8729,18 @@ func (r *OpenProxyGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type OpenSecurityPolicyRequestParams struct { + // 需开启安全策略的通道ID + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 安全策略ID + PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` +} + type OpenSecurityPolicyRequest struct { *tchttp.BaseRequest - + // 需开启安全策略的通道ID ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` @@ -5937,16 +8768,18 @@ func (r *OpenSecurityPolicyRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type OpenSecurityPolicyResponse struct { - *tchttp.BaseResponse - Response *struct { +// Predefined struct for user +type OpenSecurityPolicyResponseParams struct { + // 异步流程ID,可以通过DescribeAsyncTaskStatus接口查询流程运行状态 + TaskId *string `json:"TaskId,omitempty" name:"TaskId"` - // 异步流程ID,可以通过DescribeAsyncTaskStatus接口查询流程运行状态 - TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` +type OpenSecurityPolicyResponse struct { + *tchttp.BaseResponse + Response *OpenSecurityPolicyResponseParams `json:"Response"` } func (r *OpenSecurityPolicyResponse) ToJsonString() string { @@ -5960,8 +8793,33 @@ func (r *OpenSecurityPolicyResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type ProxyGroupDetail struct { +type ProxyAccessInfo struct { + // 地域ID + // 注意:此字段可能返回 null,表示取不到有效值。 + RegionId *string `json:"RegionId,omitempty" name:"RegionId"` + + // 地域名称 + // 注意:此字段可能返回 null,表示取不到有效值。 + RegionName *string `json:"RegionName,omitempty" name:"RegionName"` + + // 通道ID + // 注意:此字段可能返回 null,表示取不到有效值。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 通道接入ip + // 注意:此字段可能返回 null,表示取不到有效值。 + Vip *string `json:"Vip,omitempty" name:"Vip"` + + // 三网通道VIP列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + VipList []*IPDetail `json:"VipList,omitempty" name:"VipList"` + + // 接入点IDC类型。ec或dc + // 注意:此字段可能返回 null,表示取不到有效值。 + SourceRegionIdcType *string `json:"SourceRegionIdcType,omitempty" name:"SourceRegionIdcType"` +} +type ProxyGroupDetail struct { // 创建时间 CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"` @@ -5976,6 +8834,7 @@ type ProxyGroupDetail struct { // 1表示创建中; // 4表示销毁中; // 11表示迁移中; + // 12表示部分部署中。 Status *int64 `json:"Status,omitempty" name:"Status"` // 归属Uin @@ -6032,10 +8891,24 @@ type ProxyGroupDetail struct { // 1表示启用。 // 注意:此字段可能返回 null,表示取不到有效值。 Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + + // 特性位图,每个bit位代表一种特性,其中: + // 0,表示不支持该特性; + // 1,表示支持该特性。 + // 特性位图含义如下(从右往左): + // 第1个bit,支持4层加速; + // 第2个bit,支持7层加速; + // 第3个bit,支持Http3接入; + // 第4个bit,支持IPv6; + // 第5个bit,支持精品BGP接入; + // 第6个bit,支持三网接入; + // 第7个bit,支持接入段Qos加速。 + // 注意:此字段可能返回 null,表示取不到有效值。 + // 注意:此字段可能返回 null,表示取不到有效值。 + FeatureBitmap *int64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` } type ProxyGroupInfo struct { - // 通道组id GroupId *string `json:"GroupId,omitempty" name:"GroupId"` @@ -6058,7 +8931,8 @@ type ProxyGroupInfo struct { // RUNNING表示运行中; // CREATING表示创建中; // DESTROYING表示销毁中; - // MOVING表示通道迁移中。 + // MOVING表示通道迁移中; + // CHANGING表示部分部署中。 Status *string `json:"Status,omitempty" name:"Status"` // 标签列表。 @@ -6077,20 +8951,33 @@ type ProxyGroupInfo struct { ProxyType *uint64 `json:"ProxyType,omitempty" name:"ProxyType"` // 支持Http3特性的标识,其中: - // 0,表示不支持Http3; - // 1,表示支持Http3。 + // 0表示关闭; + // 1表示启用。 // 注意:此字段可能返回 null,表示取不到有效值。 Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + + // 特性位图,每个bit位代表一种特性,其中: + // 0,表示不支持该特性; + // 1,表示支持该特性。 + // 特性位图含义如下(从右往左): + // 第1个bit,支持4层加速; + // 第2个bit,支持7层加速; + // 第3个bit,支持Http3接入; + // 第4个bit,支持IPv6; + // 第5个bit,支持精品BGP接入; + // 第6个bit,支持三网接入; + // 第7个bit,支持接入段Qos加速。 + // 注意:此字段可能返回 null,表示取不到有效值。 + // 注意:此字段可能返回 null,表示取不到有效值。 + FeatureBitmap *int64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` } type ProxyIdDict struct { - // 通道ID ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` } type ProxyInfo struct { - // (旧参数,请使用ProxyId)通道实例ID。 // 注意:此字段可能返回 null,表示取不到有效值。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -6113,7 +9000,7 @@ type ProxyInfo struct { // 带宽,单位:Mbps。 Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` - // 并发,单位:个/秒。 + // 并发,单位:万个/秒。 Concurrent *int64 `json:"Concurrent,omitempty" name:"Concurrent"` // 通道状态。其中: @@ -6127,7 +9014,8 @@ type ProxyInfo struct { // ISOLATING表示隔离中; // ISOLATED表示已隔离; // CLONING表示复制中; - // RECOVERING表示通道维护中。 + // RECOVERING表示通道维护中; + // MOVING表示迁移中。 Status *string `json:"Status,omitempty" name:"Status"` // 接入域名。 @@ -6200,7 +9088,7 @@ type ProxyInfo struct { // 注意:此字段可能返回 null,表示取不到有效值。 IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` - // 网络类型:normal表示常规BGP,cn2表示精品BGP,triple表示三网 + // 网络类型:normal表示常规BGP,cn2表示精品BGP,triple表示三网,secure_eip表示定制安全EIP // 注意:此字段可能返回 null,表示取不到有效值。 NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` @@ -6226,10 +9114,24 @@ type ProxyInfo struct { // 是否在封禁黑名单中,其中:0表示不在黑名单中,1表示在黑名单中。 // 注意:此字段可能返回 null,表示取不到有效值。 InBanBlacklist *int64 `json:"InBanBlacklist,omitempty" name:"InBanBlacklist"` + + // 特性位图,每个bit位代表一种特性,其中: + // 0,表示不支持该特性; + // 1,表示支持该特性。 + // 特性位图含义如下(从右往左): + // 第1个bit,支持4层加速; + // 第2个bit,支持7层加速; + // 第3个bit,支持Http3接入; + // 第4个bit,支持IPv6; + // 第5个bit,支持精品BGP接入; + // 第6个bit,支持三网接入; + // 第7个bit,支持接入段Qos加速。 + // 注意:此字段可能返回 null,表示取不到有效值。 + // 注意:此字段可能返回 null,表示取不到有效值。 + FeatureBitmap *int64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` } type ProxySimpleInfo struct { - // 通道ID ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` @@ -6241,7 +9143,6 @@ type ProxySimpleInfo struct { } type ProxyStatus struct { - // 通道实例ID。 InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -6255,12 +9156,12 @@ type ProxyStatus struct { // CLOSED表示已关闭; // ADJUSTING表示配置变更中; // ISOLATING表示隔离中; - // ISOLATED表示已隔离。 + // ISOLATED表示已隔离; + // MOVING表示迁移中。 Status *string `json:"Status,omitempty" name:"Status"` } type RealServer struct { - // 源站的IP或域名 RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"` @@ -6278,7 +9179,6 @@ type RealServer struct { } type RealServerBindSetReq struct { - // 源站id RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` @@ -6291,12 +9191,11 @@ type RealServerBindSetReq struct { // 源站权重 RealServerWeight *uint64 `json:"RealServerWeight,omitempty" name:"RealServerWeight"` - // 源站主备角色:master主,slave备,该参数必须在监听器打开了源站主备模式,且监听器类型为TCP监听器 + // 源站主备角色:master表示主,slave表示备,该参数必须在监听器打开了源站主备模式。 RealServerFailoverRole *string `json:"RealServerFailoverRole,omitempty" name:"RealServerFailoverRole"` } type RealServerStatus struct { - // 源站ID。 RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` @@ -6312,7 +9211,6 @@ type RealServerStatus struct { } type RegionDetail struct { - // 区域ID RegionId *string `json:"RegionId,omitempty" name:"RegionId"` @@ -6343,9 +9241,15 @@ type RegionDetail struct { FeatureBitmap *uint64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` } +// Predefined struct for user +type RemoveRealServersRequestParams struct { + // 源站Id列表 + RealServerIds []*string `json:"RealServerIds,omitempty" name:"RealServerIds"` +} + type RemoveRealServersRequest struct { *tchttp.BaseRequest - + // 源站Id列表 RealServerIds []*string `json:"RealServerIds,omitempty" name:"RealServerIds"` } @@ -6369,13 +9273,15 @@ func (r *RemoveRealServersRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type RemoveRealServersResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type RemoveRealServersResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *RemoveRealServersResponseParams `json:"Response"` } func (r *RemoveRealServersResponse) ToJsonString() string { @@ -6390,7 +9296,6 @@ func (r *RemoveRealServersResponse) FromJsonString(s string) error { } type RuleCheckParams struct { - // 健康检查的时间间隔 DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` @@ -6424,7 +9329,6 @@ type RuleCheckParams struct { } type RuleInfo struct { - // 规则信息 RuleId *string `json:"RuleId,omitempty" name:"RuleId"` @@ -6440,7 +9344,7 @@ type RuleInfo struct { // 源站类型 RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` - // 转发源站策略 + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // 是否开启健康检查标志,1表示开启,0表示关闭 @@ -6473,10 +9377,13 @@ type RuleInfo struct { // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + + // 强转HTTPS指示,当传递值为https:时表示强转为https + // 注意:此字段可能返回 null,表示取不到有效值。 + ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` } type SecurityPolicyRuleIn struct { - // 请求来源IP或IP段。 SourceCidr *string `json:"SourceCidr,omitempty" name:"SourceCidr"` @@ -6498,7 +9405,6 @@ type SecurityPolicyRuleIn struct { } type SecurityPolicyRuleOut struct { - // 策略:允许(ACCEPT)或拒绝(DROP) Action *string `json:"Action,omitempty" name:"Action"` @@ -6524,9 +9430,51 @@ type SecurityPolicyRuleOut struct { PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` } +// Predefined struct for user +type SetAuthenticationRequestParams struct { + // 监听器ID。 + ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + + // 需要进行高级配置的域名,该域名为监听器下的转发规则的域名。 + Domain *string `json:"Domain,omitempty" name:"Domain"` + + // 基础认证开关,其中: + // 0,关闭基础认证; + // 1,开启基础认证。 + // 默认为0。 + BasicAuth *int64 `json:"BasicAuth,omitempty" name:"BasicAuth"` + + // 通道认证开关,用于源站对Gaap的认证,其中: + // 0,关闭通道认证; + // 1,开启通道认证。 + // 默认为0。 + GaapAuth *int64 `json:"GaapAuth,omitempty" name:"GaapAuth"` + + // 源站认证开关,用于Gaap对服务器的认证,其中: + // 0,关闭源站认证; + // 1,开启源站认证。 + // 默认为0。 + RealServerAuth *int64 `json:"RealServerAuth,omitempty" name:"RealServerAuth"` + + // 基础认证配置ID,从证书管理页获取。 + BasicAuthConfId *string `json:"BasicAuthConfId,omitempty" name:"BasicAuthConfId"` + + // 通道SSL证书ID,从证书管理页获取。 + GaapCertificateId *string `json:"GaapCertificateId,omitempty" name:"GaapCertificateId"` + + // 源站CA证书ID,从证书管理页获取。源站认证时,填写该参数或RealServerCertificateId参数 + RealServerCertificateId *string `json:"RealServerCertificateId,omitempty" name:"RealServerCertificateId"` + + // 该字段已废弃,请使用创建规则和修改规则中的SNI功能。 + RealServerCertificateDomain *string `json:"RealServerCertificateDomain,omitempty" name:"RealServerCertificateDomain"` + + // 多源站CA证书ID,从证书管理页获取。源站认证时,填写该参数或RealServerCertificateId参数 + PolyRealServerCertificateIds []*string `json:"PolyRealServerCertificateIds,omitempty" name:"PolyRealServerCertificateIds"` +} + type SetAuthenticationRequest struct { *tchttp.BaseRequest - + // 监听器ID。 ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -6595,13 +9543,15 @@ func (r *SetAuthenticationRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type SetAuthenticationResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitempty" name:"RequestId"` +} + type SetAuthenticationResponse struct { *tchttp.BaseResponse - Response *struct { - - // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` - } `json:"Response"` + Response *SetAuthenticationResponseParams `json:"Response"` } func (r *SetAuthenticationResponse) ToJsonString() string { @@ -6615,8 +9565,15 @@ func (r *SetAuthenticationResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type StatisticsDataInfo struct { +type SrcAddressInfo struct { + // 内网Ip4地址 + SrcIpv4 *string `json:"SrcIpv4,omitempty" name:"SrcIpv4"` + + // 公网Ip4地址 + SrcPublicIpv4 *string `json:"SrcPublicIpv4,omitempty" name:"SrcPublicIpv4"` +} +type StatisticsDataInfo struct { // 对应的时间点 Time *uint64 `json:"Time,omitempty" name:"Time"` @@ -6626,7 +9583,6 @@ type StatisticsDataInfo struct { } type TCPListener struct { - // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -6654,10 +9610,7 @@ type TCPListener struct { // 4表示配置变更中。 ListenerStatus *uint64 `json:"ListenerStatus,omitempty" name:"ListenerStatus"` - // 监听器源站访问策略,其中: - // rr表示轮询; - // wrr表示加权轮询; - // lc表示最小连接数。 + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // 源站健康检查响应超时时间,单位:秒 @@ -6702,10 +9655,17 @@ type TCPListener struct { // 是否开启会话保持选项:0关闭, 非0开启,非0值为会话保持时间 // 注意:此字段可能返回 null,表示取不到有效值。 SessionPersist *uint64 `json:"SessionPersist,omitempty" name:"SessionPersist"` + + // 监听器的通道ID,如果监听器属于通道组,则为null + // 注意:此字段可能返回 null,表示取不到有效值。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 监听器的通道组ID,如果监听器属于通道,则为null + // 注意:此字段可能返回 null,表示取不到有效值。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` } type TagPair struct { - // 标签键 TagKey *string `json:"TagKey,omitempty" name:"TagKey"` @@ -6714,7 +9674,6 @@ type TagPair struct { } type TagResourceInfo struct { - // 资源类型,其中: // Proxy表示通道, // ProxyGroup表示通道组, @@ -6726,7 +9685,6 @@ type TagResourceInfo struct { } type UDPListener struct { - // 监听器ID ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` @@ -6754,7 +9712,7 @@ type UDPListener struct { // 4表示配置变更中。 ListenerStatus *uint64 `json:"ListenerStatus,omitempty" name:"ListenerStatus"` - // 监听器源站访问策略 + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` // 监听器绑定源站状态, 0表示正常,1表示IP异常,2表示域名解析异常 @@ -6769,4 +9727,56 @@ type UDPListener struct { // 是否开启会话保持选项:0关闭, 非0开启,非0值为会话保持时间 // 注意:此字段可能返回 null,表示取不到有效值。 SessionPersist *uint64 `json:"SessionPersist,omitempty" name:"SessionPersist"` -} + + // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 + // 注意:此字段可能返回 null,表示取不到有效值。 + DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + + // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 + // 注意:此字段可能返回 null,表示取不到有效值。 + ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + + // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 + // 注意:此字段可能返回 null,表示取不到有效值。 + HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + + // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 + // 注意:此字段可能返回 null,表示取不到有效值。 + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + + // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 + // 注意:此字段可能返回 null,表示取不到有效值。 + FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + + // 源站是否开启健康检查:1开启,0关闭。 + // 注意:此字段可能返回 null,表示取不到有效值。 + HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + + // UDP源站健康类型。PORT表示检查端口,PING表示PING。 + // 注意:此字段可能返回 null,表示取不到有效值。 + CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + + // UDP源站健康检查探测端口。 + // 注意:此字段可能返回 null,表示取不到有效值。 + CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + + // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 + // 注意:此字段可能返回 null,表示取不到有效值。 + ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + + // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 + // 注意:此字段可能返回 null,表示取不到有效值。 + SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + + // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 + // 注意:此字段可能返回 null,表示取不到有效值。 + RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` + + // 监听器的通道ID,如果监听器属于通道组,则为null + // 注意:此字段可能返回 null,表示取不到有效值。 + ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + + // 监听器的通道组ID,如果监听器属于通道,则为null + // 注意:此字段可能返回 null,表示取不到有效值。 + GroupId *string `json:"GroupId,omitempty" name:"GroupId"` +} \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index ba21355853..9e1532e02e 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -557,7 +557,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.503 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.514 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 @@ -579,7 +579,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain/v20180808 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr/v20190103 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.383 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.397 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.514 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.199 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms/v20190118 diff --git a/website/docs/d/gaap_layer4_listeners.html.markdown b/website/docs/d/gaap_layer4_listeners.html.markdown index 78f53130c0..88bcd994dc 100644 --- a/website/docs/d/gaap_layer4_listeners.html.markdown +++ b/website/docs/d/gaap_layer4_listeners.html.markdown @@ -75,6 +75,7 @@ In addition to all arguments above, the following attributes are exported: * `name` - Name of the layer4 listener. * `port` - Port of the layer4 listener. * `protocol` - Protocol of the layer4 listener. + * `proxy_id` - ID of the GAAP proxy. * `realserver_type` - Type of the realserver. * `scheduler` - Scheduling policy of the layer4 listener. * `status` - Status of the layer4 listener. diff --git a/website/docs/d/gaap_layer7_listeners.html.markdown b/website/docs/d/gaap_layer7_listeners.html.markdown index c4119cae8b..b24ec5c8ab 100644 --- a/website/docs/d/gaap_layer7_listeners.html.markdown +++ b/website/docs/d/gaap_layer7_listeners.html.markdown @@ -62,6 +62,7 @@ In addition to all arguments above, the following attributes are exported: * `name` - Name of the layer7 listener. * `port` - Port of the layer7 listener. * `protocol` - Protocol of the layer7 listener. + * `proxy_id` - ID of the GAAP proxy. * `status` - Status of the layer7 listener.