From 6b023330263fa3ad2d6486b2af8740a26bc95386 Mon Sep 17 00:00:00 2001 From: tongyiming <1290863722@qq.com> Date: Mon, 9 Oct 2023 21:54:25 +0800 Subject: [PATCH] add gaap datasource (#2183) * add gaap datasource * add changelog and update doc --------- Co-authored-by: mikatong --- .changelog/2183.txt | 43 + go.mod | 2 +- go.sum | 2 + .../data_source_tc_gaap_access_regions.go | 170 + ...e_tc_gaap_access_regions_by_dest_region.go | 201 ++ ...gaap_access_regions_by_dest_region_test.go | 30 + ...data_source_tc_gaap_access_regions_test.go | 29 + .../data_source_tc_gaap_black_header.go | 80 + .../data_source_tc_gaap_black_header_test.go | 30 + ...ata_source_tc_gaap_country_area_mapping.go | 153 + ...ource_tc_gaap_country_area_mapping_test.go | 31 + .../data_source_tc_gaap_custom_header.go | 113 + .../data_source_tc_gaap_custom_header_test.go | 30 + .../data_source_tc_gaap_dest_regions.go | 171 + .../data_source_tc_gaap_dest_regions_test.go | 29 + .../data_source_tc_gaap_proxy_detail.go | 653 ++++ .../data_source_tc_gaap_proxy_detail_test.go | 30 + ...a_source_tc_gaap_proxy_group_statistics.go | 198 ++ ...rce_tc_gaap_proxy_group_statistics_test.go | 34 + .../data_source_tc_gaap_proxy_groups.go | 413 +++ .../data_source_tc_gaap_proxy_groups_test.go | 34 + .../data_source_tc_gaap_proxy_statistics.go | 209 ++ ...ta_source_tc_gaap_proxy_statistics_test.go | 34 + ...data_source_tc_gaap_real_servers_status.go | 143 + ...source_tc_gaap_real_servers_status_test.go | 30 + tencentcloud/provider.go | 22 + tencentcloud/service_tencentcloud_gaap.go | 398 +++ .../tencentcloud/gaap/v20180529/client.go | 72 + .../tencentcloud/gaap/v20180529/errors.go | 3 + .../tencentcloud/gaap/v20180529/models.go | 2851 +++++++++-------- vendor/modules.txt | 2 +- .../docs/d/gaap_access_regions.html.markdown | 41 + ...ccess_regions_by_dest_region.html.markdown | 45 + .../docs/d/gaap_black_header.html.markdown | 33 + .../d/gaap_country_area_mapping.html.markdown | 40 + .../docs/d/gaap_custom_header.html.markdown | 37 + .../docs/d/gaap_dest_regions.html.markdown | 41 + .../docs/d/gaap_proxy_detail.html.markdown | 91 + .../gaap_proxy_group_statistics.html.markdown | 47 + .../docs/d/gaap_proxy_groups.html.markdown | 73 + .../d/gaap_proxy_statistics.html.markdown | 48 + .../d/gaap_real_servers_status.html.markdown | 39 + website/tencentcloud.erb | 33 + 43 files changed, 5412 insertions(+), 1396 deletions(-) create mode 100644 .changelog/2183.txt create mode 100644 tencentcloud/data_source_tc_gaap_access_regions.go create mode 100644 tencentcloud/data_source_tc_gaap_access_regions_by_dest_region.go create mode 100644 tencentcloud/data_source_tc_gaap_access_regions_by_dest_region_test.go create mode 100644 tencentcloud/data_source_tc_gaap_access_regions_test.go create mode 100644 tencentcloud/data_source_tc_gaap_black_header.go create mode 100644 tencentcloud/data_source_tc_gaap_black_header_test.go create mode 100644 tencentcloud/data_source_tc_gaap_country_area_mapping.go create mode 100644 tencentcloud/data_source_tc_gaap_country_area_mapping_test.go create mode 100644 tencentcloud/data_source_tc_gaap_custom_header.go create mode 100644 tencentcloud/data_source_tc_gaap_custom_header_test.go create mode 100644 tencentcloud/data_source_tc_gaap_dest_regions.go create mode 100644 tencentcloud/data_source_tc_gaap_dest_regions_test.go create mode 100644 tencentcloud/data_source_tc_gaap_proxy_detail.go create mode 100644 tencentcloud/data_source_tc_gaap_proxy_detail_test.go create mode 100644 tencentcloud/data_source_tc_gaap_proxy_group_statistics.go create mode 100644 tencentcloud/data_source_tc_gaap_proxy_group_statistics_test.go create mode 100644 tencentcloud/data_source_tc_gaap_proxy_groups.go create mode 100644 tencentcloud/data_source_tc_gaap_proxy_groups_test.go create mode 100644 tencentcloud/data_source_tc_gaap_proxy_statistics.go create mode 100644 tencentcloud/data_source_tc_gaap_proxy_statistics_test.go create mode 100644 tencentcloud/data_source_tc_gaap_real_servers_status.go create mode 100644 tencentcloud/data_source_tc_gaap_real_servers_status_test.go create mode 100644 website/docs/d/gaap_access_regions.html.markdown create mode 100644 website/docs/d/gaap_access_regions_by_dest_region.html.markdown create mode 100644 website/docs/d/gaap_black_header.html.markdown create mode 100644 website/docs/d/gaap_country_area_mapping.html.markdown create mode 100644 website/docs/d/gaap_custom_header.html.markdown create mode 100644 website/docs/d/gaap_dest_regions.html.markdown create mode 100644 website/docs/d/gaap_proxy_detail.html.markdown create mode 100644 website/docs/d/gaap_proxy_group_statistics.html.markdown create mode 100644 website/docs/d/gaap_proxy_groups.html.markdown create mode 100644 website/docs/d/gaap_proxy_statistics.html.markdown create mode 100644 website/docs/d/gaap_real_servers_status.html.markdown diff --git a/.changelog/2183.txt b/.changelog/2183.txt new file mode 100644 index 0000000000..6c5c6cbe06 --- /dev/null +++ b/.changelog/2183.txt @@ -0,0 +1,43 @@ +```release-note:new-data-source +tencentcloud_gaap_access_regions +``` + +```release-note:new-data-source +tencentcloud_gaap_access_regions_by_dest_region +``` + +```release-note:new-data-source +tencentcloud_gaap_black_header +``` + +```release-note:new-data-source +tencentcloud_gaap_country_area_mapping +``` + +```release-note:new-data-source +tencentcloud_gaap_custom_header +``` + +```release-note:new-data-source +tencentcloud_gaap_dest_regions +``` + +```release-note:new-data-source +tencentcloud_gaap_proxy_detail +``` + +```release-note:new-data-source +tencentcloud_gaap_proxy_groups +``` + +```release-note:new-data-source +tencentcloud_gaap_proxy_statistics +``` + +```release-note:new-data-source +tencentcloud_gaap_proxy_group_statistics +``` + +```release-note:new-data-source +tencentcloud_gaap_real_servers_status +``` \ No newline at end of file diff --git a/go.mod b/go.mod index 43180529d0..b9abba2ebd 100644 --- a/go.mod +++ b/go.mod @@ -58,7 +58,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/eb v1.0.760 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.725 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.699 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.514 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.760 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.563 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/lighthouse v1.0.729 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/live v1.0.756 diff --git a/go.sum b/go.sum index 21779d55cb..de98233c20 100644 --- a/go.sum +++ b/go.sum @@ -914,6 +914,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.699 h1:7lFObucm github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.699/go.mod h1:Iq+JZDHZlYu/dcmpT48SLFESqxL+C9GjRKrQHcw+FjQ= 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/gaap v1.0.760 h1:Fs6q2kYxWAZPbeAs8t5edzhRX7iiyXvHR0qaCHMZgDU= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.760/go.mod h1:yVviYUc0zcxhibofZpMTIUGh4wCgya9derdkIVlUQLo= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.563 h1:FoX+MK4vHThvPO6FbP5q98zD8S3n+d5+DbtK7skl++c= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.563/go.mod h1:uom4Nvi9W+Qkom0exYiJ9VWJjXwyxtPYTkKkaLMlfE0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/lighthouse v1.0.729 h1:WQpzm3x27Jo/5uh6/Yqe/gbJ7r2ui9hc9ST7Ml2eP9Y= diff --git a/tencentcloud/data_source_tc_gaap_access_regions.go b/tencentcloud/data_source_tc_gaap_access_regions.go new file mode 100644 index 0000000000..07dc9c0019 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_access_regions.go @@ -0,0 +1,170 @@ +/* +Use this data source to query detailed information of gaap access regions + +Example Usage + +```hcl +data "tencentcloud_gaap_access_regions" "access_regions" { +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapAccessRegions() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapAccessRegionsRead, + Schema: map[string]*schema.Schema{ + "access_region_set": { + Computed: true, + Type: schema.TypeList, + Description: "Acceleration Zone Details List.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "region_id": { + Type: schema.TypeString, + Computed: true, + Description: "Region id.", + }, + "region_name": { + Type: schema.TypeString, + Computed: true, + Description: "English or Chinese name of the region.", + }, + "region_area": { + Type: schema.TypeString, + Computed: true, + Description: "Region of the computer room.", + }, + "region_area_name": { + Type: schema.TypeString, + Computed: true, + Description: "Name of the region to which the computer room belongs.", + }, + "idc_type": { + Type: schema.TypeString, + Computed: true, + Description: "The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node.", + }, + "feature_bitmap": { + Type: schema.TypeInt, + Computed: true, + Description: "Property bitmap, where each bit represents a property, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "support_feature": { + Type: schema.TypeList, + Computed: true, + Description: "Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "network_type": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "A list of network types supported by the access area, with normal indicating support for regular BGP, cn2 indicating premium BGP, triple indicating three networks, and secure_ EIP represents a custom secure EIP.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapAccessRegionsRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_access_regions.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var accessRegionSet []*gaap.RegionDetail + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapAccessRegions(ctx) + if e != nil { + return retryError(e) + } + accessRegionSet = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(accessRegionSet)) + tmpList := make([]map[string]interface{}, 0, len(accessRegionSet)) + + if accessRegionSet != nil { + for _, regionDetail := range accessRegionSet { + regionDetailMap := map[string]interface{}{} + + if regionDetail.RegionId != nil { + regionDetailMap["region_id"] = regionDetail.RegionId + } + + if regionDetail.RegionName != nil { + regionDetailMap["region_name"] = regionDetail.RegionName + } + + if regionDetail.RegionArea != nil { + regionDetailMap["region_area"] = regionDetail.RegionArea + } + + if regionDetail.RegionAreaName != nil { + regionDetailMap["region_area_name"] = regionDetail.RegionAreaName + } + + if regionDetail.IDCType != nil { + regionDetailMap["idc_type"] = regionDetail.IDCType + } + + if regionDetail.FeatureBitmap != nil { + regionDetailMap["feature_bitmap"] = regionDetail.FeatureBitmap + } + + if regionDetail.SupportFeature != nil { + supportFeatureMap := map[string]interface{}{} + + if regionDetail.SupportFeature.NetworkType != nil { + supportFeatureMap["network_type"] = regionDetail.SupportFeature.NetworkType + } + + regionDetailMap["support_feature"] = []interface{}{supportFeatureMap} + } + + ids = append(ids, *regionDetail.RegionId) + tmpList = append(tmpList, regionDetailMap) + } + + _ = d.Set("access_region_set", tmpList) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region.go b/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region.go new file mode 100644 index 0000000000..180d6f9141 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region.go @@ -0,0 +1,201 @@ +/* +Use this data source to query detailed information of gaap access regions by dest region + +Example Usage + +```hcl +data "tencentcloud_gaap_access_regions_by_dest_region" "access_regions_by_dest_region" { + dest_region = "SouthChina" +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapAccessRegionsByDestRegion() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapAccessRegionsByDestRegionRead, + Schema: map[string]*schema.Schema{ + "dest_region": { + Required: true, + Type: schema.TypeString, + Description: "Origin region.", + }, + + "ip_address_version": { + Optional: true, + Type: schema.TypeString, + Description: "IP version, can be taken as IPv4 or IPv6, with a default value of IPv4.", + }, + + "package_type": { + Optional: true, + Type: schema.TypeString, + Description: "Channel package type, where Thunder represents a standard proxy group, Accelerator represents a game accelerator proxy, and CrossBorder represents a cross-border proxy.", + }, + + "access_region_set": { + Computed: true, + Type: schema.TypeList, + Description: "List of available acceleration zone information.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "region_id": { + Type: schema.TypeString, + Computed: true, + Description: "Region id.", + }, + "region_name": { + Type: schema.TypeString, + Computed: true, + Description: "Chinese or English name of the region.", + }, + "concurrent_list": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeInt, + }, + Computed: true, + Description: "Optional concurrency value array.", + }, + "bandwidth_list": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeInt, + }, + Computed: true, + Description: "Optional bandwidth value array.", + }, + "region_area": { + Type: schema.TypeString, + Computed: true, + Description: "Region of the computer room.", + }, + "region_area_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region name of the computer room.", + }, + "idc_type": { + Type: schema.TypeString, + Computed: true, + Description: "The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node.", + }, + "feature_bitmap": { + Type: schema.TypeInt, + Computed: true, + Description: "The type of computer room, where dc represents the DataCenter data center, ec represents the feature bitmap, and each bit represents a feature, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained. Edge nodes.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapAccessRegionsByDestRegionRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_access_regions_by_dest_region.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("dest_region"); ok { + paramMap["dest_region"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("ip_address_version"); ok { + paramMap["ip_address_version"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("package_type"); ok { + paramMap["package_type"] = helper.String(v.(string)) + } + + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var accessRegionSet []*gaap.AccessRegionDetial + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapAccessRegionsByDestRegionByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + accessRegionSet = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(accessRegionSet)) + tmpList := make([]map[string]interface{}, 0, len(accessRegionSet)) + + if accessRegionSet != nil { + for _, accessRegionDetial := range accessRegionSet { + accessRegionDetialMap := map[string]interface{}{} + + if accessRegionDetial.RegionId != nil { + accessRegionDetialMap["region_id"] = accessRegionDetial.RegionId + } + + if accessRegionDetial.RegionName != nil { + accessRegionDetialMap["region_name"] = accessRegionDetial.RegionName + } + + if accessRegionDetial.ConcurrentList != nil { + accessRegionDetialMap["concurrent_list"] = accessRegionDetial.ConcurrentList + } + + if accessRegionDetial.BandwidthList != nil { + accessRegionDetialMap["bandwidth_list"] = accessRegionDetial.BandwidthList + } + + if accessRegionDetial.RegionArea != nil { + accessRegionDetialMap["region_area"] = accessRegionDetial.RegionArea + } + + if accessRegionDetial.RegionAreaName != nil { + accessRegionDetialMap["region_area_name"] = accessRegionDetial.RegionAreaName + } + + if accessRegionDetial.IDCType != nil { + accessRegionDetialMap["idc_type"] = accessRegionDetial.IDCType + } + + if accessRegionDetial.FeatureBitmap != nil { + accessRegionDetialMap["feature_bitmap"] = accessRegionDetial.FeatureBitmap + } + + ids = append(ids, *accessRegionDetial.RegionId) + tmpList = append(tmpList, accessRegionDetialMap) + } + + _ = d.Set("access_region_set", tmpList) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region_test.go b/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region_test.go new file mode 100644 index 0000000000..17895f0973 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_access_regions_by_dest_region_test.go @@ -0,0 +1,30 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapAccessRegionsByDestRegionDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapAccessRegionsByDestRegionDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_access_regions_by_dest_region.access_regions_by_dest_region"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_access_regions_by_dest_region.access_regions_by_dest_region", "access_region_set.#"), + ), + }, + }, + }) +} + +const testAccGaapAccessRegionsByDestRegionDataSource = ` +data "tencentcloud_gaap_access_regions_by_dest_region" "access_regions_by_dest_region" { + dest_region = "SouthChina" +} +` diff --git a/tencentcloud/data_source_tc_gaap_access_regions_test.go b/tencentcloud/data_source_tc_gaap_access_regions_test.go new file mode 100644 index 0000000000..5319c36e43 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_access_regions_test.go @@ -0,0 +1,29 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapAccessRegionsDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapAccessRegionsDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_access_regions.access_regions"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_access_regions.access_regions", "access_region_set.#"), + ), + }, + }, + }) +} + +const testAccGaapAccessRegionsDataSource = ` +data "tencentcloud_gaap_access_regions" "access_regions" { +} +` diff --git a/tencentcloud/data_source_tc_gaap_black_header.go b/tencentcloud/data_source_tc_gaap_black_header.go new file mode 100644 index 0000000000..d06f05e87d --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_black_header.go @@ -0,0 +1,80 @@ +/* +Use this data source to query detailed information of gaap black header + +Example Usage + +```hcl +data "tencentcloud_gaap_black_header" "black_header" { +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapBlackHeader() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapBlackHeaderRead, + Schema: map[string]*schema.Schema{ + "black_headers": { + Computed: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Disabled custom header listNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapBlackHeaderRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_black_header.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var blackHeaders []*string + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapBlackHeader(ctx) + if e != nil { + return retryError(e) + } + blackHeaders = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(blackHeaders)) + if blackHeaders != nil { + _ = d.Set("black_headers", blackHeaders) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), blackHeaders); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_black_header_test.go b/tencentcloud/data_source_tc_gaap_black_header_test.go new file mode 100644 index 0000000000..dae3ded90d --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_black_header_test.go @@ -0,0 +1,30 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapBlackHeaderDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapBlackHeaderDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_black_header.black_header"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_black_header.black_header", "black_headers.#"), + ), + }, + }, + }) +} + +const testAccGaapBlackHeaderDataSource = ` + +data "tencentcloud_gaap_black_header" "black_header" { +} +` diff --git a/tencentcloud/data_source_tc_gaap_country_area_mapping.go b/tencentcloud/data_source_tc_gaap_country_area_mapping.go new file mode 100644 index 0000000000..53626dde62 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_country_area_mapping.go @@ -0,0 +1,153 @@ +/* +Use this data source to query detailed information of gaap country area mapping + +Example Usage + +```hcl +data "tencentcloud_gaap_country_area_mapping" "country_area_mapping" { +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapCountryAreaMapping() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapCountryAreaMappingRead, + Schema: map[string]*schema.Schema{ + "country_area_mapping_list": { + Computed: true, + Type: schema.TypeList, + Description: "Country/region code mapping table.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "nation_country_name": { + Type: schema.TypeString, + Computed: true, + Description: "Country name.", + }, + "nation_country_inner_code": { + Type: schema.TypeString, + Computed: true, + Description: "Country code.", + }, + "geographical_zone_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region name.", + }, + "geographical_zone_inner_code": { + Type: schema.TypeString, + Computed: true, + Description: "Region code.", + }, + "continent_name": { + Type: schema.TypeString, + Computed: true, + Description: "The name of the continent.", + }, + "continent_inner_code": { + Type: schema.TypeString, + Computed: true, + Description: "Continental Code.", + }, + "remark": { + Type: schema.TypeString, + Computed: true, + Description: "Annotation InformationNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapCountryAreaMappingRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_country_area_mapping.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + var countryAreaMappingList []*gaap.CountryAreaMap + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapCountryAreaMapping(ctx) + if e != nil { + return retryError(e) + } + countryAreaMappingList = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(countryAreaMappingList)) + tmpList := make([]map[string]interface{}, 0, len(countryAreaMappingList)) + + if countryAreaMappingList != nil { + for _, countryAreaMap := range countryAreaMappingList { + countryAreaMapMap := map[string]interface{}{} + + if countryAreaMap.NationCountryName != nil { + countryAreaMapMap["nation_country_name"] = countryAreaMap.NationCountryName + } + + if countryAreaMap.NationCountryInnerCode != nil { + countryAreaMapMap["nation_country_inner_code"] = countryAreaMap.NationCountryInnerCode + } + + if countryAreaMap.GeographicalZoneName != nil { + countryAreaMapMap["geographical_zone_name"] = countryAreaMap.GeographicalZoneName + } + + if countryAreaMap.GeographicalZoneInnerCode != nil { + countryAreaMapMap["geographical_zone_inner_code"] = countryAreaMap.GeographicalZoneInnerCode + } + + if countryAreaMap.ContinentName != nil { + countryAreaMapMap["continent_name"] = countryAreaMap.ContinentName + } + + if countryAreaMap.ContinentInnerCode != nil { + countryAreaMapMap["continent_inner_code"] = countryAreaMap.ContinentInnerCode + } + + if countryAreaMap.Remark != nil { + countryAreaMapMap["remark"] = countryAreaMap.Remark + } + + ids = append(ids, *countryAreaMap.NationCountryInnerCode) + tmpList = append(tmpList, countryAreaMapMap) + } + + _ = d.Set("country_area_mapping_list", tmpList) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_country_area_mapping_test.go b/tencentcloud/data_source_tc_gaap_country_area_mapping_test.go new file mode 100644 index 0000000000..14491388b2 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_country_area_mapping_test.go @@ -0,0 +1,31 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapCountryAreaMappingDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapCountryAreaMappingDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_country_area_mapping.country_area_mapping"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_country_area_mapping.country_area_mapping", "country_area_mapping_list.#"), + ), + }, + }, + }) +} + +const testAccGaapCountryAreaMappingDataSource = ` + +data "tencentcloud_gaap_country_area_mapping" "country_area_mapping" { + } + +` diff --git a/tencentcloud/data_source_tc_gaap_custom_header.go b/tencentcloud/data_source_tc_gaap_custom_header.go new file mode 100644 index 0000000000..74e285c473 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_custom_header.go @@ -0,0 +1,113 @@ +/* +Use this data source to query detailed information of gaap custom header + +Example Usage + +```hcl +data "tencentcloud_gaap_custom_header" "custom_header" { + rule_id = "rule-9sdhv655" +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapCustomHeader() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapCustomHeaderRead, + Schema: map[string]*schema.Schema{ + "rule_id": { + Required: true, + Type: schema.TypeString, + Description: "Rule IdNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + + "headers": { + Computed: true, + Type: schema.TypeList, + Description: "HeadersNote: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "header_name": { + Type: schema.TypeString, + Computed: true, + Description: "Header Name.", + }, + "header_value": { + Type: schema.TypeString, + Computed: true, + Description: "Header Value.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapCustomHeaderRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_custom_header.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + var headers []*gaap.HttpHeaderParam + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + ruleId := d.Get("rule_id").(string) + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapCustomHeader(ctx, ruleId) + if e != nil { + return retryError(e) + } + headers = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(ruleId)) + tmpList := make([]map[string]interface{}, 0) + if headers != nil { + for _, httpHeaderParam := range headers { + httpHeaderParamMap := map[string]interface{}{} + + if httpHeaderParam.HeaderName != nil { + httpHeaderParamMap["header_name"] = httpHeaderParam.HeaderName + } + + if httpHeaderParam.HeaderValue != nil { + httpHeaderParamMap["header_value"] = httpHeaderParam.HeaderValue + } + + ids = append(ids, *httpHeaderParam.HeaderName) + tmpList = append(tmpList, httpHeaderParamMap) + } + + _ = d.Set("headers", tmpList) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_custom_header_test.go b/tencentcloud/data_source_tc_gaap_custom_header_test.go new file mode 100644 index 0000000000..b7b58a0700 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_custom_header_test.go @@ -0,0 +1,30 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapCustomHeaderDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapCustomHeaderDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_custom_header.custom_header"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_custom_header.custom_header", "headers.#"), + ), + }, + }, + }) +} + +const testAccGaapCustomHeaderDataSource = ` +data "tencentcloud_gaap_custom_header" "custom_header" { + rule_id = "rule-9sdhv655" +} +` diff --git a/tencentcloud/data_source_tc_gaap_dest_regions.go b/tencentcloud/data_source_tc_gaap_dest_regions.go new file mode 100644 index 0000000000..de77de8466 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_dest_regions.go @@ -0,0 +1,171 @@ +/* +Use this data source to query detailed information of gaap dest regions + +Example Usage + +```hcl +data "tencentcloud_gaap_dest_regions" "dest_regions" { +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapDestRegions() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapDestRegionsRead, + Schema: map[string]*schema.Schema{ + "dest_region_set": { + Computed: true, + Type: schema.TypeList, + Description: "Source Site Area Details List.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "region_id": { + Type: schema.TypeString, + Computed: true, + Description: "region ID.", + }, + "region_name": { + Type: schema.TypeString, + Computed: true, + Description: "region name.", + }, + "region_area": { + Type: schema.TypeString, + Computed: true, + Description: "Region of the computer room.", + }, + "region_area_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region name of the computer room.", + }, + "idc_type": { + Type: schema.TypeString, + Computed: true, + Description: "The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node.", + }, + "feature_bitmap": { + Type: schema.TypeInt, + Computed: true, + Description: "Property bitmap, where each bit represents a property, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "support_feature": { + Type: schema.TypeList, + Computed: true, + Description: "Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "network_type": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "A list of network types supported by the access area, with normal indicating support for regular BGP, cn2 indicating premium BGP, triple indicating three networks, and secure_EIP represents a custom secure EIP.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapDestRegionsRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_dest_regions.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var destRegionSet []*gaap.RegionDetail + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapDestRegions(ctx) + if e != nil { + return retryError(e) + } + destRegionSet = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(destRegionSet)) + tmpList := make([]map[string]interface{}, 0, len(destRegionSet)) + + if destRegionSet != nil { + for _, regionDetail := range destRegionSet { + regionDetailMap := map[string]interface{}{} + + if regionDetail.RegionId != nil { + regionDetailMap["region_id"] = regionDetail.RegionId + } + + if regionDetail.RegionName != nil { + regionDetailMap["region_name"] = regionDetail.RegionName + } + + if regionDetail.RegionArea != nil { + regionDetailMap["region_area"] = regionDetail.RegionArea + } + + if regionDetail.RegionAreaName != nil { + regionDetailMap["region_area_name"] = regionDetail.RegionAreaName + } + + if regionDetail.IDCType != nil { + regionDetailMap["idc_type"] = regionDetail.IDCType + } + + if regionDetail.FeatureBitmap != nil { + regionDetailMap["feature_bitmap"] = regionDetail.FeatureBitmap + } + + if regionDetail.SupportFeature != nil { + supportFeatureMap := map[string]interface{}{} + + if regionDetail.SupportFeature.NetworkType != nil { + supportFeatureMap["network_type"] = regionDetail.SupportFeature.NetworkType + } + + regionDetailMap["support_feature"] = []interface{}{supportFeatureMap} + } + + ids = append(ids, *regionDetail.RegionId) + tmpList = append(tmpList, regionDetailMap) + } + + _ = d.Set("dest_region_set", tmpList) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_dest_regions_test.go b/tencentcloud/data_source_tc_gaap_dest_regions_test.go new file mode 100644 index 0000000000..0938ebd005 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_dest_regions_test.go @@ -0,0 +1,29 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapDestRegionsDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapDestRegionsDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_dest_regions.dest_regions"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_dest_regions.dest_regions", "dest_region_set.#"), + ), + }, + }, + }) +} + +const testAccGaapDestRegionsDataSource = ` +data "tencentcloud_gaap_dest_regions" "dest_regions" { +} +` diff --git a/tencentcloud/data_source_tc_gaap_proxy_detail.go b/tencentcloud/data_source_tc_gaap_proxy_detail.go new file mode 100644 index 0000000000..fb3eab0640 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_proxy_detail.go @@ -0,0 +1,653 @@ +/* +Use this data source to query detailed information of gaap proxy detail + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_detail" "proxy_detail" { + proxy_id = "link-8lpyo88p" +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" +) + +func dataSourceTencentCloudGaapProxyDetail() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapProxyDetailRead, + Schema: map[string]*schema.Schema{ + "proxy_id": { + Required: true, + Type: schema.TypeString, + Description: "Proxy Id.", + }, + + "proxy_detail": { + Computed: true, + Type: schema.TypeList, + Description: "Proxy Detail.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "instance_id": { + Type: schema.TypeString, + Computed: true, + Description: "(Old parameter, please use ProxyId) Proxy instance ID.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "create_time": { + Type: schema.TypeInt, + Computed: true, + Description: "The creation time, using a Unix timestamp, represents the number of seconds that have passed since January 1, 1970 (midnight UTC/GMT).", + }, + "project_id": { + Type: schema.TypeInt, + Computed: true, + Description: "Project Id.", + }, + "proxy_name": { + Type: schema.TypeString, + Computed: true, + Description: "Proxy Name.", + }, + "access_region": { + Type: schema.TypeString, + Computed: true, + Description: "Access Region.", + }, + "real_server_region": { + Type: schema.TypeString, + Computed: true, + Description: "Real Server Region.", + }, + "bandwidth": { + Type: schema.TypeInt, + Computed: true, + Description: "Band width, in Mbps.", + }, + "concurrent": { + Type: schema.TypeInt, + Computed: true, + Description: "Concurrent, in 10000 pieces/second.", + }, + "status": { + Type: schema.TypeString, + Computed: true, + Description: "proxy status. Among them:RUNNING indicates running;CREATING indicates being created;DESTROYING indicates being destroyed;OPENING indicates being opened;CLOSING indicates being closed;Closed indicates that it has been closed;ADJUSTING represents a configuration change in progress;ISOLATING indicates being isolated;ISOLATED indicates that it has been isolated;CLONING indicates copying;RECOVERING indicates that the proxy is being maintained;MOVING indicates that migration is in progress.", + }, + "domain": { + Type: schema.TypeString, + Computed: true, + Description: "Domain.", + }, + "ip": { + Type: schema.TypeString, + Computed: true, + Description: "IP.", + }, + "version": { + Type: schema.TypeString, + Computed: true, + Description: "Version 1.0, 2.0, 3.0.", + }, + "proxy_id": { + Type: schema.TypeString, + Computed: true, + Description: "(New parameter) proxy instance ID.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "scalarable": { + Type: schema.TypeInt, + Computed: true, + Description: "1. This proxy can be scaled and expanded; 0, this proxy cannot be scaled or expanded.", + }, + "support_protocols": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "Supported protocol types.", + }, + "group_id": { + Type: schema.TypeString, + Computed: true, + Description: "proxy group ID, which exists when a proxy belongs to a certain proxy group.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "policy_id": { + Type: schema.TypeString, + Computed: true, + Description: "Security policy ID, which exists when a security policy is set.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "access_region_info": { + Type: schema.TypeList, + Computed: true, + Description: "Detailed information about the access region, including the region ID and domain name.Note: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "region_id": { + Type: schema.TypeString, + Computed: true, + Description: "Region Id.", + }, + "region_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region Name.", + }, + "region_area": { + Type: schema.TypeString, + Computed: true, + Description: "Region of the computer room.", + }, + "region_area_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region name of the computer room.", + }, + "idc_type": { + Type: schema.TypeString, + Computed: true, + Description: "The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node.", + }, + "feature_bitmap": { + Type: schema.TypeInt, + Computed: true, + Description: "Property bitmap, where each bit represents a property, where:0 indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "support_feature": { + Type: schema.TypeList, + Computed: true, + Description: "Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "network_type": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "A list of network types supported by the access area, with normal indicating support for regular BGP, cn2 indicating premium BGP, triple indicating three networks, and secure_EIP represents a custom secure EIP.", + }, + }, + }, + }, + }, + }, + }, + "real_server_region_info": { + Type: schema.TypeList, + Computed: true, + Description: "Detailed information of the real server region, including the region ID and domain name.Note: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "region_id": { + Type: schema.TypeString, + Computed: true, + Description: "Region Id.", + }, + "region_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region Name.", + }, + "region_area": { + Type: schema.TypeString, + Computed: true, + Description: "Region of the computer room.", + }, + "region_area_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region name of the computer room.", + }, + "idc_type": { + Type: schema.TypeString, + Computed: true, + Description: "The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node.", + }, + "feature_bitmap": { + Type: schema.TypeInt, + Computed: true, + Description: "Property bitmap, where each bit represents a property, where:0 indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "support_feature": { + Type: schema.TypeList, + Computed: true, + Description: "Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "network_type": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "A list of network types supported by the access area, with normal indicating support for regular BGP, cn2 indicating premium BGP, triple indicating three networks, and secure_EIP represents a custom secure EIP.", + }, + }, + }, + }, + }, + }, + }, + "forward_ip": { + Type: schema.TypeString, + Computed: true, + Description: "proxy forwarding IP.", + }, + "tag_set": { + Type: schema.TypeList, + Computed: true, + Description: "tag list, when there are no labels, this field is an empty list.Note: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "tag_key": { + Type: schema.TypeString, + Computed: true, + Description: "Tag Key.", + }, + "tag_value": { + Type: schema.TypeString, + Computed: true, + Description: "Tag Value.", + }, + }, + }, + }, + "support_security": { + Type: schema.TypeInt, + Computed: true, + Description: "Does it support security group configurationNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "billing_type": { + Type: schema.TypeInt, + Computed: true, + Description: "Billing type: 0 represents bandwidth based billing, and 1 represents traffic based billing.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "related_global_domains": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "List of domain names associated with resolutionNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "modify_config_time": { + Type: schema.TypeInt, + Computed: true, + Description: "Configuration change timeNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "proxy_type": { + Type: schema.TypeInt, + Computed: true, + Description: "proxy type, 100 represents THUNDER proxy, 103 represents Microsoft cooperation proxyNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "client_ip_method": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeInt, + }, + Computed: true, + Description: "The method of obtaining client IP through proxys, where 0 represents TOA and 1 represents Proxy ProtocolNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "ip_address_version": { + Type: schema.TypeString, + Computed: true, + Description: "IP version: IPv4, IPv6Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "network_type": { + Type: schema.TypeString, + Computed: true, + Description: "Network type: normal represents regular BGP, cn2 represents premium BGP, triple represents triple network, secure_EIP represents customized security EIPNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "package_type": { + Type: schema.TypeString, + Computed: true, + Description: "proxy package type: Thunder represents standard proxy, Accelerator represents silver acceleration proxy,CrossBorder represents a cross-border proxy.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "ban_status": { + Type: schema.TypeString, + Computed: true, + Description: "Blocking and Unblocking Status: BANNED indicates that the ban has been lifted, RECOVER indicates that the ban has been lifted or not, BANNING indicates that the ban is in progress, RECOVERING indicates that the ban is being lifted, BAN_FAILED indicates that the ban has failed, RECOVER_FAILED indicates that the unblocking has failed.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "ip_list": { + Type: schema.TypeList, + Computed: true, + Description: "IP ListNote: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "ip": { + Type: schema.TypeString, + Computed: true, + Description: "IP.", + }, + "provider": { + Type: schema.TypeString, + Computed: true, + Description: "Supplier, BGP represents default, CMCC represents China Mobile, CUCC represents China Unicom, and CTCC represents China Telecom.", + }, + "bandwidth": { + Type: schema.TypeInt, + Computed: true, + Description: "Band width.", + }, + }, + }, + }, + "http3_supported": { + Type: schema.TypeInt, + Computed: true, + Description: "Identification that supports the Http3 protocol, where:0 indicates shutdown;1 indicates enabled.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "in_ban_blacklist": { + Type: schema.TypeInt, + Computed: true, + Description: "Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "feature_bitmap": { + Type: schema.TypeInt, + Computed: true, + Description: "Property bitmap, where each bit represents a property, where:0 indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapProxyDetailRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_proxy_detail.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + proxyId := d.Get("proxy_id").(string) + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var proxyDetail *gaap.ProxyInfo + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapProxyDetail(ctx, proxyId) + if e != nil { + return retryError(e) + } + proxyDetail = result + return nil + }) + if err != nil { + return err + } + proxyInfoMap := map[string]interface{}{} + + if proxyDetail != nil { + if proxyDetail.InstanceId != nil { + proxyInfoMap["instance_id"] = proxyDetail.InstanceId + } + + if proxyDetail.CreateTime != nil { + proxyInfoMap["create_time"] = proxyDetail.CreateTime + } + + if proxyDetail.ProjectId != nil { + proxyInfoMap["project_id"] = proxyDetail.ProjectId + } + + if proxyDetail.ProxyName != nil { + proxyInfoMap["proxy_name"] = proxyDetail.ProxyName + } + + if proxyDetail.AccessRegion != nil { + proxyInfoMap["access_region"] = proxyDetail.AccessRegion + } + + if proxyDetail.RealServerRegion != nil { + proxyInfoMap["real_server_region"] = proxyDetail.RealServerRegion + } + + if proxyDetail.Bandwidth != nil { + proxyInfoMap["bandwidth"] = proxyDetail.Bandwidth + } + + if proxyDetail.Concurrent != nil { + proxyInfoMap["concurrent"] = proxyDetail.Concurrent + } + + if proxyDetail.Status != nil { + proxyInfoMap["status"] = proxyDetail.Status + } + + if proxyDetail.Domain != nil { + proxyInfoMap["domain"] = proxyDetail.Domain + } + + if proxyDetail.IP != nil { + proxyInfoMap["ip"] = proxyDetail.IP + } + + if proxyDetail.Version != nil { + proxyInfoMap["version"] = proxyDetail.Version + } + + if proxyDetail.ProxyId != nil { + proxyInfoMap["proxy_id"] = proxyDetail.ProxyId + } + + if proxyDetail.Scalarable != nil { + proxyInfoMap["scalarable"] = proxyDetail.Scalarable + } + + if proxyDetail.SupportProtocols != nil { + proxyInfoMap["support_protocols"] = proxyDetail.SupportProtocols + } + + if proxyDetail.GroupId != nil { + proxyInfoMap["group_id"] = proxyDetail.GroupId + } + + if proxyDetail.PolicyId != nil { + proxyInfoMap["policy_id"] = proxyDetail.PolicyId + } + + if proxyDetail.AccessRegionInfo != nil { + accessRegionInfoMap := map[string]interface{}{} + + if proxyDetail.AccessRegionInfo.RegionId != nil { + accessRegionInfoMap["region_id"] = proxyDetail.AccessRegionInfo.RegionId + } + + if proxyDetail.AccessRegionInfo.RegionName != nil { + accessRegionInfoMap["region_name"] = proxyDetail.AccessRegionInfo.RegionName + } + + if proxyDetail.AccessRegionInfo.RegionArea != nil { + accessRegionInfoMap["region_area"] = proxyDetail.AccessRegionInfo.RegionArea + } + + if proxyDetail.AccessRegionInfo.RegionAreaName != nil { + accessRegionInfoMap["region_area_name"] = proxyDetail.AccessRegionInfo.RegionAreaName + } + + if proxyDetail.AccessRegionInfo.IDCType != nil { + accessRegionInfoMap["idc_type"] = proxyDetail.AccessRegionInfo.IDCType + } + + if proxyDetail.AccessRegionInfo.FeatureBitmap != nil { + accessRegionInfoMap["feature_bitmap"] = proxyDetail.AccessRegionInfo.FeatureBitmap + } + + if proxyDetail.AccessRegionInfo.SupportFeature != nil { + supportFeatureMap := map[string]interface{}{} + + if proxyDetail.AccessRegionInfo.SupportFeature.NetworkType != nil { + supportFeatureMap["network_type"] = proxyDetail.AccessRegionInfo.SupportFeature.NetworkType + } + + accessRegionInfoMap["support_feature"] = []interface{}{supportFeatureMap} + } + + proxyInfoMap["access_region_info"] = []interface{}{accessRegionInfoMap} + } + + if proxyDetail.RealServerRegionInfo != nil { + realServerRegionInfoMap := map[string]interface{}{} + + if proxyDetail.RealServerRegionInfo.RegionId != nil { + realServerRegionInfoMap["region_id"] = proxyDetail.RealServerRegionInfo.RegionId + } + + if proxyDetail.RealServerRegionInfo.RegionName != nil { + realServerRegionInfoMap["region_name"] = proxyDetail.RealServerRegionInfo.RegionName + } + + if proxyDetail.RealServerRegionInfo.RegionArea != nil { + realServerRegionInfoMap["region_area"] = proxyDetail.RealServerRegionInfo.RegionArea + } + + if proxyDetail.RealServerRegionInfo.RegionAreaName != nil { + realServerRegionInfoMap["region_area_name"] = proxyDetail.RealServerRegionInfo.RegionAreaName + } + + if proxyDetail.RealServerRegionInfo.IDCType != nil { + realServerRegionInfoMap["idc_type"] = proxyDetail.RealServerRegionInfo.IDCType + } + + if proxyDetail.RealServerRegionInfo.FeatureBitmap != nil { + realServerRegionInfoMap["feature_bitmap"] = proxyDetail.RealServerRegionInfo.FeatureBitmap + } + + if proxyDetail.RealServerRegionInfo.SupportFeature != nil { + supportFeatureMap := map[string]interface{}{} + + if proxyDetail.RealServerRegionInfo.SupportFeature.NetworkType != nil { + supportFeatureMap["network_type"] = proxyDetail.RealServerRegionInfo.SupportFeature.NetworkType + } + + realServerRegionInfoMap["support_feature"] = []interface{}{supportFeatureMap} + } + + proxyInfoMap["real_server_region_info"] = []interface{}{realServerRegionInfoMap} + } + + if proxyDetail.ForwardIP != nil { + proxyInfoMap["forward_ip"] = proxyDetail.ForwardIP + } + + if proxyDetail.TagSet != nil { + tagSetList := []interface{}{} + for _, tagSet := range proxyDetail.TagSet { + tagSetMap := map[string]interface{}{} + + if tagSet.TagKey != nil { + tagSetMap["tag_key"] = tagSet.TagKey + } + + if tagSet.TagValue != nil { + tagSetMap["tag_value"] = tagSet.TagValue + } + + tagSetList = append(tagSetList, tagSetMap) + } + + proxyInfoMap["tag_set"] = tagSetList + } + + if proxyDetail.SupportSecurity != nil { + proxyInfoMap["support_security"] = proxyDetail.SupportSecurity + } + + if proxyDetail.BillingType != nil { + proxyInfoMap["billing_type"] = proxyDetail.BillingType + } + + if proxyDetail.RelatedGlobalDomains != nil { + proxyInfoMap["related_global_domains"] = proxyDetail.RelatedGlobalDomains + } + + if proxyDetail.ModifyConfigTime != nil { + proxyInfoMap["modify_config_time"] = proxyDetail.ModifyConfigTime + } + + if proxyDetail.ProxyType != nil { + proxyInfoMap["proxy_type"] = proxyDetail.ProxyType + } + + if proxyDetail.ClientIPMethod != nil { + proxyInfoMap["client_ip_method"] = proxyDetail.ClientIPMethod + } + + if proxyDetail.IPAddressVersion != nil { + proxyInfoMap["ip_address_version"] = proxyDetail.IPAddressVersion + } + + if proxyDetail.NetworkType != nil { + proxyInfoMap["network_type"] = proxyDetail.NetworkType + } + + if proxyDetail.PackageType != nil { + proxyInfoMap["package_type"] = proxyDetail.PackageType + } + + if proxyDetail.BanStatus != nil { + proxyInfoMap["ban_status"] = proxyDetail.BanStatus + } + + if proxyDetail.IPList != nil { + iPListList := []interface{}{} + for _, iPList := range proxyDetail.IPList { + iPListMap := map[string]interface{}{} + + if iPList.IP != nil { + iPListMap["ip"] = iPList.IP + } + + if iPList.Provider != nil { + iPListMap["provider"] = iPList.Provider + } + + if iPList.Bandwidth != nil { + iPListMap["bandwidth"] = iPList.Bandwidth + } + + iPListList = append(iPListList, iPListMap) + } + + proxyInfoMap["ip_list"] = iPListList + } + + if proxyDetail.Http3Supported != nil { + proxyInfoMap["http3_supported"] = proxyDetail.Http3Supported + } + + if proxyDetail.InBanBlacklist != nil { + proxyInfoMap["in_ban_blacklist"] = proxyDetail.InBanBlacklist + } + + if proxyDetail.FeatureBitmap != nil { + proxyInfoMap["feature_bitmap"] = proxyDetail.FeatureBitmap + } + + _ = d.Set("proxy_detail", []interface{}{proxyInfoMap}) + } + + d.SetId(proxyId) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), proxyInfoMap); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_proxy_detail_test.go b/tencentcloud/data_source_tc_gaap_proxy_detail_test.go new file mode 100644 index 0000000000..68131b9c3c --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_proxy_detail_test.go @@ -0,0 +1,30 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapProxyDetailDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapProxyDetailDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_proxy_detail.proxy_detail"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_proxy_detail.proxy_detail", "proxy_detail.#"), + ), + }, + }, + }) +} + +const testAccGaapProxyDetailDataSource = ` +data "tencentcloud_gaap_proxy_detail" "proxy_detail" { + proxy_id = "link-8lpyo88p" +} +` diff --git a/tencentcloud/data_source_tc_gaap_proxy_group_statistics.go b/tencentcloud/data_source_tc_gaap_proxy_group_statistics.go new file mode 100644 index 0000000000..8a38736692 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_proxy_group_statistics.go @@ -0,0 +1,198 @@ +/* +Use this data source to query detailed information of gaap proxy group statistics + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_group_statistics" "proxy_group_statistics" { + group_id = "link-8lpyo88p" + start_time = "2023-10-09 00:00:00" + end_time = "2023-10-09 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow"] + granularity = 300 +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapProxyGroupStatistics() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapProxyGroupStatisticsRead, + Schema: map[string]*schema.Schema{ + "group_id": { + Required: true, + Type: schema.TypeString, + Description: "Group Id.", + }, + + "start_time": { + Required: true, + Type: schema.TypeString, + Description: "Start Time.", + }, + + "end_time": { + Required: true, + Type: schema.TypeString, + Description: "End Time.", + }, + + "metric_names": { + Required: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Metric Names. support, InBandwidth, OutBandwidth, Concurrent, InPackets, OutPackets.", + }, + + "granularity": { + Required: true, + Type: schema.TypeInt, + Description: "Monitoring granularity, currently supporting 60 300 3600 86400, in seconds.When the time range does not exceed 1 day, support a minimum granularity of 60 seconds;When the time range does not exceed 7 days, support a minimum granularity of 3600 seconds;When the time range does not exceed 30 days, the minimum granularity supported is 86400 seconds.", + }, + + "statistics_data": { + Computed: true, + Type: schema.TypeList, + Description: "proxy Group Statistics.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "metric_name": { + Type: schema.TypeString, + Computed: true, + Description: "Metric Name.", + }, + "metric_data": { + Type: schema.TypeList, + Computed: true, + Description: "Metric Data.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "time": { + Type: schema.TypeInt, + Computed: true, + Description: "Time.", + }, + "data": { + Type: schema.TypeFloat, + Computed: true, + Description: "DataNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapProxyGroupStatisticsRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_proxy_group_statistics.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + paramMap := make(map[string]interface{}) + var groupId string + if v, ok := d.GetOk("group_id"); ok { + groupId = v.(string) + paramMap["GroupId"] = helper.String(groupId) + } + + if v, ok := d.GetOk("start_time"); ok { + paramMap["StartTime"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("end_time"); ok { + paramMap["EndTime"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("metric_names"); ok { + metricNamesSet := v.(*schema.Set).List() + paramMap["MetricNames"] = helper.InterfacesStringsPoint(metricNamesSet) + } + + if v, _ := d.GetOk("granularity"); v != nil { + paramMap["Granularity"] = helper.IntUint64(v.(int)) + } + + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var statisticsData []*gaap.MetricStatisticsInfo + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapProxyGroupStatisticsByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + statisticsData = result + return nil + }) + if err != nil { + return err + } + + tmpList := make([]map[string]interface{}, 0, len(statisticsData)) + + if statisticsData != nil { + for _, metricStatisticsInfo := range statisticsData { + metricStatisticsInfoMap := map[string]interface{}{} + + if metricStatisticsInfo.MetricName != nil { + metricStatisticsInfoMap["metric_name"] = metricStatisticsInfo.MetricName + } + + if metricStatisticsInfo.MetricData != nil { + metricDataList := []interface{}{} + for _, metricData := range metricStatisticsInfo.MetricData { + metricDataMap := map[string]interface{}{} + + if metricData.Time != nil { + metricDataMap["time"] = metricData.Time + } + + if metricData.Data != nil { + metricDataMap["data"] = metricData.Data + } + + metricDataList = append(metricDataList, metricDataMap) + } + + metricStatisticsInfoMap["metric_data"] = metricDataList + } + + tmpList = append(tmpList, metricStatisticsInfoMap) + } + + _ = d.Set("statistics_data", tmpList) + } + + d.SetId(groupId) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_proxy_group_statistics_test.go b/tencentcloud/data_source_tc_gaap_proxy_group_statistics_test.go new file mode 100644 index 0000000000..26dadb9626 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_proxy_group_statistics_test.go @@ -0,0 +1,34 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapProxyGroupStatisticsDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapProxyGroupStatisticsDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_proxy_group_statistics.proxy_group_statistics"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_proxy_group_statistics.proxy_group_statistics", "statistics_data.#"), + ), + }, + }, + }) +} + +const testAccGaapProxyGroupStatisticsDataSource = ` +data "tencentcloud_gaap_proxy_group_statistics" "proxy_group_statistics" { + group_id = "link-8lpyo88p" + start_time = "2023-10-09 00:00:00" + end_time = "2023-10-09 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow"] + granularity = 300 +} +` diff --git a/tencentcloud/data_source_tc_gaap_proxy_groups.go b/tencentcloud/data_source_tc_gaap_proxy_groups.go new file mode 100644 index 0000000000..47ce7232b7 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_proxy_groups.go @@ -0,0 +1,413 @@ +/* +Use this data source to query detailed information of gaap proxy groups + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_groups" "proxy_groups" { + project_id = 0 + filters { + name = "GroupId" + values = ["lg-5anbbou5"] + } +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapProxyGroups() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapProxyGroupsRead, + Schema: map[string]*schema.Schema{ + "project_id": { + Required: true, + Type: schema.TypeInt, + Description: "Project ID. Value range:-1, All projects under this user0, default projectOther values, specified items.", + }, + + "filters": { + Optional: true, + Type: schema.TypeList, + Description: "Filter conditions,The upper limit of Filter.Values per request is 5.RealServerRegion - String - Required: No - (filtering criteria) Filter by real server region, refer to the RegionId in the returned results of the DescribeDestRegions interface.PackageType - String - Required: No - (Filter condition) proxy group type, where &#39;Thunder&#39; represents the standard proxy group and &#39;Accelerator&#39; represents the silver acceleration proxy group.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Required: true, + Description: "Filter conditions.", + }, + "values": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Required: true, + Description: "filtering value.", + }, + }, + }, + }, + + "tag_set": { + Optional: true, + Type: schema.TypeList, + Description: "Tag list, when this field exists, pulls the resource list under the corresponding tag.Supports a maximum of 5 labels. When there are two or more labels and any one of them is met, the proxy group will be pulled out.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "tag_key": { + Type: schema.TypeString, + Required: true, + Description: "Tag Key.", + }, + "tag_value": { + Type: schema.TypeString, + Required: true, + Description: "Tag Value.", + }, + }, + }, + }, + + "proxy_group_list": { + Computed: true, + Type: schema.TypeList, + Description: "List of proxy groups.Note: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "group_id": { + Type: schema.TypeString, + Computed: true, + Description: "proxy group Id.", + }, + "domain": { + Type: schema.TypeString, + Computed: true, + Description: "proxy group domain nameNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "group_name": { + Type: schema.TypeString, + Computed: true, + Description: "proxy Group NameNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "project_id": { + Type: schema.TypeInt, + Computed: true, + Description: "Project Id.", + }, + "real_server_region_info": { + Type: schema.TypeList, + Computed: true, + Description: "Real Server Region Info.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "region_id": { + Type: schema.TypeString, + Computed: true, + Description: "Region Id.", + }, + "region_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region Name.", + }, + "region_area": { + Type: schema.TypeString, + Computed: true, + Description: "Region of the computer room.", + }, + "region_area_name": { + Type: schema.TypeString, + Computed: true, + Description: "Region name of the computer room.", + }, + "idc_type": { + Type: schema.TypeString, + Computed: true, + Description: "The type of computer room, where 'dc' represents the DataCenter data center and 'ec' represents the EdgeComputing edge node.", + }, + "feature_bitmap": { + Type: schema.TypeInt, + Computed: true, + Description: "Property bitmap, where each bit represents a property, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "support_feature": { + Type: schema.TypeList, + Computed: true, + Description: "Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "network_type": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "A list of network types supported by the access area, with 'normal' indicating support for regular BGP, 'cn2' indicating premium BGP, 'triple' indicating three networks, and 'secure_EIP' represents a custom secure EIP.", + }, + }, + }, + }, + }, + }, + }, + "status": { + Type: schema.TypeString, + Computed: true, + Description: "proxy group status.Among them,'RUNNING' indicates running;'CREATING' indicates being created;'DESTROYING' indicates being destroyed;'MOVING' indicates that the proxy is being migrated;'CHANGING' indicates partial deployment.", + }, + "tag_set": { + Type: schema.TypeList, + Computed: true, + Description: "Tag Set.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "tag_key": { + Type: schema.TypeString, + Computed: true, + Description: "Tag Key.", + }, + "tag_value": { + Type: schema.TypeString, + Computed: true, + Description: "Tag Value.", + }, + }, + }, + }, + "version": { + Type: schema.TypeString, + Computed: true, + Description: "proxy Group VersionNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "create_time": { + Type: schema.TypeInt, + Computed: true, + Description: "Create TimeNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "proxy_type": { + Type: schema.TypeInt, + Computed: true, + Description: "Does the proxy group include Microsoft proxysNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + "http3_supported": { + Type: schema.TypeInt, + Computed: true, + Description: "Supports the identification of Http3 features, where:0 indicates shutdown;1 indicates enabled.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "feature_bitmap": { + Type: schema.TypeInt, + Computed: true, + Description: "Property bitmap, where each bit represents a property, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapProxyGroupsRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_proxy_groups.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + paramMap := make(map[string]interface{}) + if v, _ := d.GetOk("project_id"); v != nil { + paramMap["ProjectId"] = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("filters"); ok { + filtersSet := v.([]interface{}) + tmpSet := make([]*gaap.Filter, 0, len(filtersSet)) + + for _, item := range filtersSet { + filter := gaap.Filter{} + filterMap := item.(map[string]interface{}) + + if v, ok := filterMap["name"]; ok { + filter.Name = helper.String(v.(string)) + } + if v, ok := filterMap["values"]; ok { + valuesSet := v.(*schema.Set).List() + filter.Values = helper.InterfacesStringsPoint(valuesSet) + } + tmpSet = append(tmpSet, &filter) + } + paramMap["filters"] = tmpSet + } + + if v, ok := d.GetOk("tag_set"); ok { + tagSetSet := v.([]interface{}) + tmpSet := make([]*gaap.TagPair, 0, len(tagSetSet)) + + for _, item := range tagSetSet { + tagPair := gaap.TagPair{} + tagPairMap := item.(map[string]interface{}) + + if v, ok := tagPairMap["tag_key"]; ok { + tagPair.TagKey = helper.String(v.(string)) + } + if v, ok := tagPairMap["tag_value"]; ok { + tagPair.TagValue = helper.String(v.(string)) + } + tmpSet = append(tmpSet, &tagPair) + } + paramMap["tag_set"] = tmpSet + } + + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var proxyGroupList []*gaap.ProxyGroupInfo + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapProxyGroupsByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + proxyGroupList = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(proxyGroupList)) + tmpList := make([]map[string]interface{}, 0, len(proxyGroupList)) + + if proxyGroupList != nil { + for _, proxyGroupInfo := range proxyGroupList { + proxyGroupInfoMap := map[string]interface{}{} + + if proxyGroupInfo.GroupId != nil { + proxyGroupInfoMap["group_id"] = proxyGroupInfo.GroupId + } + + if proxyGroupInfo.Domain != nil { + proxyGroupInfoMap["domain"] = proxyGroupInfo.Domain + } + + if proxyGroupInfo.GroupName != nil { + proxyGroupInfoMap["group_name"] = proxyGroupInfo.GroupName + } + + if proxyGroupInfo.ProjectId != nil { + proxyGroupInfoMap["project_id"] = proxyGroupInfo.ProjectId + } + + if proxyGroupInfo.RealServerRegionInfo != nil { + realServerRegionInfoMap := map[string]interface{}{} + + if proxyGroupInfo.RealServerRegionInfo.RegionId != nil { + realServerRegionInfoMap["region_id"] = proxyGroupInfo.RealServerRegionInfo.RegionId + } + + if proxyGroupInfo.RealServerRegionInfo.RegionName != nil { + realServerRegionInfoMap["region_name"] = proxyGroupInfo.RealServerRegionInfo.RegionName + } + + if proxyGroupInfo.RealServerRegionInfo.RegionArea != nil { + realServerRegionInfoMap["region_area"] = proxyGroupInfo.RealServerRegionInfo.RegionArea + } + + if proxyGroupInfo.RealServerRegionInfo.RegionAreaName != nil { + realServerRegionInfoMap["region_area_name"] = proxyGroupInfo.RealServerRegionInfo.RegionAreaName + } + + if proxyGroupInfo.RealServerRegionInfo.IDCType != nil { + realServerRegionInfoMap["idc_type"] = proxyGroupInfo.RealServerRegionInfo.IDCType + } + + if proxyGroupInfo.RealServerRegionInfo.FeatureBitmap != nil { + realServerRegionInfoMap["feature_bitmap"] = proxyGroupInfo.RealServerRegionInfo.FeatureBitmap + } + + if proxyGroupInfo.RealServerRegionInfo.SupportFeature != nil { + supportFeatureMap := map[string]interface{}{} + + if proxyGroupInfo.RealServerRegionInfo.SupportFeature.NetworkType != nil { + supportFeatureMap["network_type"] = proxyGroupInfo.RealServerRegionInfo.SupportFeature.NetworkType + } + + realServerRegionInfoMap["support_feature"] = []interface{}{supportFeatureMap} + } + + proxyGroupInfoMap["real_server_region_info"] = []interface{}{realServerRegionInfoMap} + } + + if proxyGroupInfo.Status != nil { + proxyGroupInfoMap["status"] = proxyGroupInfo.Status + } + + if proxyGroupInfo.TagSet != nil { + tagSetList := []interface{}{} + for _, tagSet := range proxyGroupInfo.TagSet { + tagSetMap := map[string]interface{}{} + + if tagSet.TagKey != nil { + tagSetMap["tag_key"] = tagSet.TagKey + } + + if tagSet.TagValue != nil { + tagSetMap["tag_value"] = tagSet.TagValue + } + + tagSetList = append(tagSetList, tagSetMap) + } + + proxyGroupInfoMap["tag_set"] = tagSetList + } + + if proxyGroupInfo.Version != nil { + proxyGroupInfoMap["version"] = proxyGroupInfo.Version + } + + if proxyGroupInfo.CreateTime != nil { + proxyGroupInfoMap["create_time"] = proxyGroupInfo.CreateTime + } + + if proxyGroupInfo.ProxyType != nil { + proxyGroupInfoMap["proxy_type"] = proxyGroupInfo.ProxyType + } + + if proxyGroupInfo.Http3Supported != nil { + proxyGroupInfoMap["http3_supported"] = proxyGroupInfo.Http3Supported + } + + if proxyGroupInfo.FeatureBitmap != nil { + proxyGroupInfoMap["feature_bitmap"] = proxyGroupInfo.FeatureBitmap + } + + ids = append(ids, *proxyGroupInfo.GroupId) + tmpList = append(tmpList, proxyGroupInfoMap) + } + + _ = d.Set("proxy_group_list", tmpList) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_proxy_groups_test.go b/tencentcloud/data_source_tc_gaap_proxy_groups_test.go new file mode 100644 index 0000000000..509b0f8b92 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_proxy_groups_test.go @@ -0,0 +1,34 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapProxyGroupsDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapProxyGroupsDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_proxy_groups.proxy_groups"), + resource.TestCheckResourceAttr("data.tencentcloud_gaap_proxy_groups.proxy_groups", "proxy_group_list.0.group_id", "lg-5anbbou5"), + ), + }, + }, + }) +} + +const testAccGaapProxyGroupsDataSource = ` +data "tencentcloud_gaap_proxy_groups" "proxy_groups" { + project_id = 0 + filters { + name = "GroupId" + values = ["lg-5anbbou5"] + } +} +` diff --git a/tencentcloud/data_source_tc_gaap_proxy_statistics.go b/tencentcloud/data_source_tc_gaap_proxy_statistics.go new file mode 100644 index 0000000000..ff2fb5b1b1 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_proxy_statistics.go @@ -0,0 +1,209 @@ +/* +Use this data source to query detailed information of gaap proxy statistics + +Example Usage + +```hcl +data "tencentcloud_gaap_proxy_statistics" "proxy_statistics" { + proxy_id = "link-8lpyo88p" + start_time = "2023-10-09 00:00:00" + end_time = "2023-10-09 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow", "InPackets", "OutPackets", "Concurrent", "HttpQPS", "HttpsQPS", "Latency", "PacketLoss"] + granularity = 300 +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapProxyStatistics() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapProxyStatisticsRead, + Schema: map[string]*schema.Schema{ + "proxy_id": { + Required: true, + Type: schema.TypeString, + Description: "Proxy Id.", + }, + + "start_time": { + Required: true, + Type: schema.TypeString, + Description: "Start Time(2019-03-25 12:00:00).", + }, + + "end_time": { + Required: true, + Type: schema.TypeString, + Description: "End Time(2019-03-25 12:00:00).", + }, + + "metric_names": { + Required: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Metric Names. Valid values: InBandwidth,OutBandwidth, Concurrent, InPackets, OutPackets, PacketLoss, Latency, HttpQPS, HttpsQPS.", + }, + + "granularity": { + Required: true, + Type: schema.TypeInt, + Description: "Monitoring granularity, currently supporting 60 300 3600 86400, in seconds.When the time range does not exceed 3 days, support a minimum granularity of 60 seconds;When the time range does not exceed 7 days, support a minimum granularity of 300 seconds;When the time range does not exceed 30 days, the minimum granularity supported is 3600 seconds.", + }, + + "isp": { + Optional: true, + Type: schema.TypeString, + Description: "Operator (valid when the proxy is a three network proxy), supports CMCC, CUCC, CTCC, and merges data from the three operators if null values are passed or not passed.", + }, + + "statistics_data": { + Computed: true, + Type: schema.TypeList, + Description: "proxy Statistics.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "metric_name": { + Type: schema.TypeString, + Computed: true, + Description: "Metric Name.", + }, + "metric_data": { + Type: schema.TypeList, + Computed: true, + Description: "Metric Data.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "time": { + Type: schema.TypeInt, + Computed: true, + Description: "Time.", + }, + "data": { + Type: schema.TypeFloat, + Computed: true, + Description: "DataNote: This field may return null, indicating that a valid value cannot be obtained.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapProxyStatisticsRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_proxy_statistics.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + paramMap := make(map[string]interface{}) + + var proxyId string + if v, ok := d.GetOk("proxy_id"); ok { + proxyId = v.(string) + paramMap["ProxyId"] = helper.String(proxyId) + } + + if v, ok := d.GetOk("start_time"); ok { + paramMap["StartTime"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("end_time"); ok { + paramMap["EndTime"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("metric_names"); ok { + metricNamesSet := v.(*schema.Set).List() + paramMap["MetricNames"] = helper.InterfacesStringsPoint(metricNamesSet) + } + + if v, _ := d.GetOk("granularity"); v != nil { + paramMap["Granularity"] = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOk("isp"); ok { + paramMap["Isp"] = helper.String(v.(string)) + } + + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var statisticsData []*gaap.MetricStatisticsInfo + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapProxyStatisticsByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + statisticsData = result + return nil + }) + if err != nil { + return err + } + + tmpList := make([]map[string]interface{}, 0, len(statisticsData)) + + if statisticsData != nil { + for _, metricStatisticsInfo := range statisticsData { + metricStatisticsInfoMap := map[string]interface{}{} + + if metricStatisticsInfo.MetricName != nil { + metricStatisticsInfoMap["metric_name"] = metricStatisticsInfo.MetricName + } + + if metricStatisticsInfo.MetricData != nil { + metricDataList := []interface{}{} + for _, metricData := range metricStatisticsInfo.MetricData { + metricDataMap := map[string]interface{}{} + + if metricData.Time != nil { + metricDataMap["time"] = metricData.Time + } + + if metricData.Data != nil { + metricDataMap["data"] = metricData.Data + } + + metricDataList = append(metricDataList, metricDataMap) + } + + metricStatisticsInfoMap["metric_data"] = metricDataList + } + + tmpList = append(tmpList, metricStatisticsInfoMap) + } + + _ = d.Set("statistics_data", tmpList) + } + + d.SetId(proxyId) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_proxy_statistics_test.go b/tencentcloud/data_source_tc_gaap_proxy_statistics_test.go new file mode 100644 index 0000000000..b3d81d144e --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_proxy_statistics_test.go @@ -0,0 +1,34 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapProxyStatisticsDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapProxyStatisticsDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_proxy_statistics.proxy_statistics"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_proxy_statistics.proxy_statistics", "statistics_data.#"), + ), + }, + }, + }) +} + +const testAccGaapProxyStatisticsDataSource = ` +data "tencentcloud_gaap_proxy_statistics" "proxy_statistics" { + proxy_id = "link-8lpyo88p" + start_time = "2023-10-09 00:00:00" + end_time = "2023-10-09 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow", "InPackets", "OutPackets", "Concurrent", "HttpQPS", "HttpsQPS", "Latency", "PacketLoss"] + granularity = 300 +} +` diff --git a/tencentcloud/data_source_tc_gaap_real_servers_status.go b/tencentcloud/data_source_tc_gaap_real_servers_status.go new file mode 100644 index 0000000000..823919fe43 --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_real_servers_status.go @@ -0,0 +1,143 @@ +/* +Use this data source to query detailed information of gaap real servers status + +Example Usage + +```hcl +data "tencentcloud_gaap_real_servers_status" "real_servers_status" { + real_server_ids = ["rs-qcygnwpd"] +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + gaap "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudGaapRealServersStatus() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudGaapRealServersStatusRead, + Schema: map[string]*schema.Schema{ + "real_server_ids": { + Required: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Real Server Ids.", + }, + + "real_server_status_set": { + Computed: true, + Type: schema.TypeList, + Description: "Real Server Status Set.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "real_server_id": { + Type: schema.TypeString, + Computed: true, + Description: "Real Server Id.", + }, + "bind_status": { + Type: schema.TypeInt, + Computed: true, + Description: "Bind Status, 0 indicates unbound, 1 indicates bound by rules or listeners.", + }, + "proxy_id": { + Type: schema.TypeString, + Computed: true, + Description: "Bind the proxy ID of this real server, which is an empty string when not bound.", + }, + "group_id": { + Type: schema.TypeString, + Computed: true, + Description: "Bind the group ID of this real server, which is an empty string when not bound.Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudGaapRealServersStatusRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_gaap_real_servers_status.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("real_server_ids"); ok { + realServerIdsSet := v.(*schema.Set).List() + paramMap["RealServerIds"] = helper.InterfacesStringsPoint(realServerIdsSet) + } + + service := GaapService{client: meta.(*TencentCloudClient).apiV3Conn} + + var realServerStatusSet []*gaap.RealServerStatus + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeGaapRealServersStatusByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + realServerStatusSet = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(realServerStatusSet)) + tmpList := make([]map[string]interface{}, 0, len(realServerStatusSet)) + + if realServerStatusSet != nil { + for _, realServerStatus := range realServerStatusSet { + realServerStatusMap := map[string]interface{}{} + + if realServerStatus.RealServerId != nil { + realServerStatusMap["real_server_id"] = realServerStatus.RealServerId + } + + if realServerStatus.BindStatus != nil { + realServerStatusMap["bind_status"] = realServerStatus.BindStatus + } + + if realServerStatus.ProxyId != nil { + realServerStatusMap["proxy_id"] = realServerStatus.ProxyId + } + + if realServerStatus.GroupId != nil { + realServerStatusMap["group_id"] = realServerStatus.GroupId + } + + ids = append(ids, *realServerStatus.RealServerId) + tmpList = append(tmpList, realServerStatusMap) + } + + _ = d.Set("real_server_status_set", tmpList) + } + + d.SetId(helper.DataResourceIdsHash(ids)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), tmpList); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_gaap_real_servers_status_test.go b/tencentcloud/data_source_tc_gaap_real_servers_status_test.go new file mode 100644 index 0000000000..e89dafce0f --- /dev/null +++ b/tencentcloud/data_source_tc_gaap_real_servers_status_test.go @@ -0,0 +1,30 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudGaapRealServersStatusDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_PREPAY) }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccGaapRealServersStatusDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_gaap_real_servers_status.real_servers_status"), + resource.TestCheckResourceAttrSet("data.tencentcloud_gaap_real_servers_status.real_servers_status", "real_server_status_set.#"), + ), + }, + }, + }) +} + +const testAccGaapRealServersStatusDataSource = ` +data "tencentcloud_gaap_real_servers_status" "real_servers_status" { + real_server_ids = ["rs-qcygnwpd"] +} +` diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index d2ceaff9f3..4870cff8f0 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -528,6 +528,17 @@ Global Application Acceleration(GAAP) tencentcloud_gaap_security_policies tencentcloud_gaap_security_rules tencentcloud_gaap_domain_error_pages + tencentcloud_gaap_access_regions + tencentcloud_gaap_access_regions_by_dest_region + tencentcloud_gaap_black_header + tencentcloud_gaap_country_area_mapping + tencentcloud_gaap_custom_header + tencentcloud_gaap_dest_regions + tencentcloud_gaap_proxy_detail + tencentcloud_gaap_proxy_groups + tencentcloud_gaap_proxy_statistics + tencentcloud_gaap_proxy_group_statistics + tencentcloud_gaap_real_servers_status Resource tencentcloud_gaap_proxy @@ -2031,6 +2042,17 @@ func Provider() *schema.Provider { "tencentcloud_gaap_security_rules": dataSourceTencentCloudGaapSecurityRules(), "tencentcloud_gaap_certificates": dataSourceTencentCloudGaapCertificates(), "tencentcloud_gaap_domain_error_pages": dataSourceTencentCloudGaapDomainErrorPageInfoList(), + "tencentcloud_gaap_access_regions": dataSourceTencentCloudGaapAccessRegions(), + "tencentcloud_gaap_access_regions_by_dest_region": dataSourceTencentCloudGaapAccessRegionsByDestRegion(), + "tencentcloud_gaap_black_header": dataSourceTencentCloudGaapBlackHeader(), + "tencentcloud_gaap_country_area_mapping": dataSourceTencentCloudGaapCountryAreaMapping(), + "tencentcloud_gaap_custom_header": dataSourceTencentCloudGaapCustomHeader(), + "tencentcloud_gaap_dest_regions": dataSourceTencentCloudGaapDestRegions(), + "tencentcloud_gaap_proxy_detail": dataSourceTencentCloudGaapProxyDetail(), + "tencentcloud_gaap_proxy_groups": dataSourceTencentCloudGaapProxyGroups(), + "tencentcloud_gaap_proxy_group_statistics": dataSourceTencentCloudGaapProxyGroupStatistics(), + "tencentcloud_gaap_proxy_statistics": dataSourceTencentCloudGaapProxyStatistics(), + "tencentcloud_gaap_real_servers_status": dataSourceTencentCloudGaapRealServersStatus(), "tencentcloud_ssl_certificates": dataSourceTencentCloudSslCertificates(), "tencentcloud_cam_roles": dataSourceTencentCloudCamRoles(), "tencentcloud_cam_users": dataSourceTencentCloudCamUsers(), diff --git a/tencentcloud/service_tencentcloud_gaap.go b/tencentcloud/service_tencentcloud_gaap.go index de7e5b53fb..2e0475623d 100644 --- a/tencentcloud/service_tencentcloud_gaap.go +++ b/tencentcloud/service_tencentcloud_gaap.go @@ -3276,3 +3276,401 @@ func (me *GaapService) DeleteDomainErrorPageInfo(ctx context.Context, id string) return nil } + +func (me *GaapService) DescribeGaapAccessRegions(ctx context.Context) (describeAccessRegions []*gaap.RegionDetail, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeAccessRegionsRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + ratelimit.Check(request.GetAction()) + response, err := me.client.UseGaapClient().DescribeAccessRegions(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.AccessRegionSet) < 1 { + return + } + describeAccessRegions = append(describeAccessRegions, response.Response.AccessRegionSet...) + + return +} + +func (me *GaapService) DescribeGaapAccessRegionsByDestRegionByFilter(ctx context.Context, param map[string]interface{}) (accessRegionsByDestRegion []*gaap.AccessRegionDetial, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeAccessRegionsByDestRegionRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + for k, v := range param { + if k == "dest_region" { + request.DestRegion = v.(*string) + } + if k == "ip_address_version" { + request.IPAddressVersion = v.(*string) + } + if k == "package_type" { + request.PackageType = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseGaapClient().DescribeAccessRegionsByDestRegion(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.AccessRegionSet) < 1 { + return + } + accessRegionsByDestRegion = append(accessRegionsByDestRegion, response.Response.AccessRegionSet...) + + return +} + +func (me *GaapService) DescribeGaapBlackHeader(ctx context.Context) (blackHeader []*string, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeBlackHeaderRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + ratelimit.Check(request.GetAction()) + response, err := me.client.UseGaapClient().DescribeBlackHeader(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.BlackHeaders) < 1 { + return + } + blackHeader = append(blackHeader, response.Response.BlackHeaders...) + + return +} + +func (me *GaapService) DescribeGaapCountryAreaMapping(ctx context.Context) (countryAreaMapping []*gaap.CountryAreaMap, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeCountryAreaMappingRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseGaapClient().DescribeCountryAreaMapping(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.CountryAreaMappingList) < 1 { + return + } + countryAreaMapping = append(countryAreaMapping, response.Response.CountryAreaMappingList...) + + return +} + +func (me *GaapService) DescribeGaapCustomHeader(ctx context.Context, ruleId string) (customHeader []*gaap.HttpHeaderParam, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeCustomHeaderRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + ratelimit.Check(request.GetAction()) + request.RuleId = &ruleId + response, err := me.client.UseGaapClient().DescribeCustomHeader(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.Headers) < 1 { + return + } + customHeader = append(customHeader, response.Response.Headers...) + + return +} + +func (me *GaapService) DescribeGaapDestRegions(ctx context.Context) (destRegions []*gaap.RegionDetail, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeDestRegionsRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseGaapClient().DescribeDestRegions(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.DestRegionSet) < 1 { + return + } + destRegions = append(destRegions, response.Response.DestRegionSet...) + return +} + +func (me *GaapService) DescribeGaapProxyDetail(ctx context.Context, proxyId string) (proxyDetail *gaap.ProxyInfo, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeProxyDetailRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + ratelimit.Check(request.GetAction()) + request.ProxyId = &proxyId + response, err := me.client.UseGaapClient().DescribeProxyDetail(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || response.Response == nil { + return + } + proxyDetail = response.Response.ProxyDetail + + return +} + +func (me *GaapService) DescribeGaapProxyGroupsByFilter(ctx context.Context, param map[string]interface{}) (proxyGroups []*gaap.ProxyGroupInfo, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeProxyGroupListRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + for k, v := range param { + if k == "ProjectId" { + request.ProjectId = v.(*int64) + } + if k == "Filters" { + request.Filters = v.([]*gaap.Filter) + } + if k == "TagSet" { + request.TagSet = v.([]*gaap.TagPair) + } + } + + ratelimit.Check(request.GetAction()) + + var ( + offset int64 = 0 + limit int64 = 20 + ) + for { + request.Offset = &offset + request.Limit = &limit + response, err := me.client.UseGaapClient().DescribeProxyGroupList(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.ProxyGroupList) < 1 { + break + } + proxyGroups = append(proxyGroups, response.Response.ProxyGroupList...) + if len(response.Response.ProxyGroupList) < int(limit) { + break + } + + offset += limit + } + + return +} + +func (me *GaapService) DescribeGaapProxyStatisticsByFilter(ctx context.Context, param map[string]interface{}) (proxyStatistics []*gaap.MetricStatisticsInfo, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeProxyStatisticsRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + for k, v := range param { + if k == "ProxyId" { + request.ProxyId = v.(*string) + } + if k == "StartTime" { + request.StartTime = v.(*string) + } + if k == "EndTime" { + request.EndTime = v.(*string) + } + if k == "MetricNames" { + request.MetricNames = v.([]*string) + } + if k == "Granularity" { + request.Granularity = v.(*uint64) + } + if k == "Isp" { + request.Isp = v.(*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseGaapClient().DescribeProxyStatistics(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.StatisticsData) < 1 { + return + } + proxyStatistics = append(proxyStatistics, response.Response.StatisticsData...) + + return +} + +func (me *GaapService) DescribeGaapProxyGroupStatisticsByFilter(ctx context.Context, param map[string]interface{}) (proxyGroupStatistics []*gaap.MetricStatisticsInfo, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeProxyGroupStatisticsRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + for k, v := range param { + if k == "GroupId" { + request.GroupId = v.(*string) + } + if k == "StartTime" { + request.StartTime = v.(*string) + } + if k == "EndTime" { + request.EndTime = v.(*string) + } + if k == "MetricNames" { + request.MetricNames = v.([]*string) + } + if k == "Granularity" { + request.Granularity = v.(*uint64) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseGaapClient().DescribeProxyGroupStatistics(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.StatisticsData) < 1 { + return + } + proxyGroupStatistics = append(proxyGroupStatistics, response.Response.StatisticsData...) + + return +} + +func (me *GaapService) DescribeGaapRealServersStatusByFilter(ctx context.Context, param map[string]interface{}) (realServersStatus []*gaap.RealServerStatus, errRet error) { + var ( + logId = getLogId(ctx) + request = gaap.NewDescribeRealServersStatusRequest() + ) + + defer func() { + if errRet != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", logId, request.GetAction(), request.ToJsonString(), errRet.Error()) + } + }() + + for k, v := range param { + if k == "RealServerIds" { + request.RealServerIds = v.([]*string) + } + } + + ratelimit.Check(request.GetAction()) + + response, err := me.client.UseGaapClient().DescribeRealServersStatus(request) + if err != nil { + errRet = err + return + } + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), response.ToJsonString()) + + if response == nil || len(response.Response.RealServerStatusSet) < 1 { + return + } + realServersStatus = append(realServersStatus, response.Response.RealServerStatusSet...) + + return +} 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 2ba16ebb98..6a1e97a6a8 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 @@ -1134,6 +1134,7 @@ func NewCreateGlobalDomainResponse() (response *CreateGlobalDomainResponse) { // FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" // FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" // FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// FAILEDOPERATION_USERNOTINWHITELIST = "FailedOperation.UserNotInWhitelist" // INVALIDPARAMETERVALUE_GLOBALDOMAINHITBANBLACKLIST = "InvalidParameterValue.GlobalDomainHitBanBlacklist" // LIMITEXCEEDED_DOMAIN = "LimitExceeded.Domain" // LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" @@ -1153,6 +1154,7 @@ func (c *Client) CreateGlobalDomain(request *CreateGlobalDomainRequest) (respons // FAILEDOPERATION_TAGRESOURCESFAILED = "FailedOperation.TagResourcesFailed" // FAILEDOPERATION_UNTAGRESOURCESFAILED = "FailedOperation.UnTagResourcesFailed" // FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// FAILEDOPERATION_USERNOTINWHITELIST = "FailedOperation.UserNotInWhitelist" // INVALIDPARAMETERVALUE_GLOBALDOMAINHITBANBLACKLIST = "InvalidParameterValue.GlobalDomainHitBanBlacklist" // LIMITEXCEEDED_DOMAIN = "LimitExceeded.Domain" // LIMITEXCEEDED_TAGQUOTA = "LimitExceeded.TagQuota" @@ -3069,6 +3071,74 @@ func (c *Client) DescribeAccessRegionsByDestRegionWithContext(ctx context.Contex return } +func NewDescribeAuthSignatureRequest() (request *DescribeAuthSignatureRequest) { + request = &DescribeAuthSignatureRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("gaap", APIVersion, "DescribeAuthSignature") + + + return +} + +func NewDescribeAuthSignatureResponse() (response *DescribeAuthSignatureResponse) { + response = &DescribeAuthSignatureResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeAuthSignature +// 为了防止在下单、询价、后付费开通等过程中确保来源合法以及订单参数没有被篡改过,各个业务方使用下单、询价等场景需调用计费签名接口获取签名,获取签名的请求需带上签名以验证身份,本接口可以获取计费签名。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +// UNKNOWNPARAMETER = "UnknownParameter" +func (c *Client) DescribeAuthSignature(request *DescribeAuthSignatureRequest) (response *DescribeAuthSignatureResponse, err error) { + return c.DescribeAuthSignatureWithContext(context.Background(), request) +} + +// DescribeAuthSignature +// 为了防止在下单、询价、后付费开通等过程中确保来源合法以及订单参数没有被篡改过,各个业务方使用下单、询价等场景需调用计费签名接口获取签名,获取签名的请求需带上签名以验证身份,本接口可以获取计费签名。 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// AUTHFAILURE_NOTENTERPRISEAUTHORIZATION = "AuthFailure.NotEnterpriseAuthorization" +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETERVALUE = "InvalidParameterValue" +// MISSINGPARAMETER = "MissingParameter" +// RESOURCEUNAVAILABLE_ACCOUNTVIOLATION = "ResourceUnavailable.AccountViolation" +// UNKNOWNPARAMETER = "UnknownParameter" +func (c *Client) DescribeAuthSignatureWithContext(ctx context.Context, request *DescribeAuthSignatureRequest) (response *DescribeAuthSignatureResponse, err error) { + if request == nil { + request = NewDescribeAuthSignatureRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeAuthSignature require credential") + } + + request.SetContext(ctx) + + response = NewDescribeAuthSignatureResponse() + err = c.Send(request, response) + return +} + func NewDescribeBlackHeaderRequest() (request *DescribeBlackHeaderRequest) { request = &DescribeBlackHeaderRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -6602,6 +6672,7 @@ func NewModifyHTTPSListenerAttributeResponse() (response *ModifyHTTPSListenerAtt // FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" // FAILEDOPERATION_INSTANCESTATUSNOTINRUNING = "FailedOperation.InstanceStatusNotInRuning" // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" +// FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" @@ -6627,6 +6698,7 @@ func (c *Client) ModifyHTTPSListenerAttribute(request *ModifyHTTPSListenerAttrib // FAILEDOPERATION_GROUPSTATUSNOTINRUNING = "FailedOperation.GroupStatusNotInRuning" // FAILEDOPERATION_INSTANCESTATUSNOTINRUNING = "FailedOperation.InstanceStatusNotInRuning" // FAILEDOPERATION_LISTENERHASTASK = "FailedOperation.ListenerHasTask" +// FAILEDOPERATION_LISTENERSTATUSERROR = "FailedOperation.ListenerStatusError" // FAILEDOPERATION_NONSTANDARDPROXY = "FailedOperation.NonStandardProxy" // FAILEDOPERATION_NOTSUPPORTOLDVERSIONPROXY = "FailedOperation.NotSupportOldVersionProxy" // FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" 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 f9ec99fd15..3c3c091532 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 @@ -182,6 +182,9 @@ const ( // 未开通协议。 FAILEDOPERATION_USERNOTCONFIRMPROTOCOL = "FailedOperation.UserNotConfirmProtocol" + // 该功能为白名单功能,如有需要请联系腾讯云助手。 + FAILEDOPERATION_USERNOTINWHITELIST = "FailedOperation.UserNotInWhitelist" + // 该用户不在运营商网络可加速范围内。 FAILEDOPERATION_USEROUTOFCOVERAGE = "FailedOperation.UserOutOfCoverage" 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 5250025c34..ceb231d5cd 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 @@ -15,46 +15,46 @@ package v20180529 import ( - "encoding/json" tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors" tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http" + "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json" ) type AccessConfiguration struct { // 加速地域。 - AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + AccessRegion *string `json:"AccessRegion,omitnil" name:"AccessRegion"` // 通道带宽上限,单位:Mbps。 - Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *uint64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // 通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *uint64 `json:"Concurrent,omitnil" name:"Concurrent"` // 网络类型,可取值:normal、cn2,默认值为normal - NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + NetworkType *string `json:"NetworkType,omitnil" name:"NetworkType"` } type AccessRegionDetial struct { // 区域ID - RegionId *string `json:"RegionId,omitempty" name:"RegionId"` + RegionId *string `json:"RegionId,omitnil" name:"RegionId"` // 区域的中文或英文名称 - RegionName *string `json:"RegionName,omitempty" name:"RegionName"` + RegionName *string `json:"RegionName,omitnil" name:"RegionName"` // 可选的并发量取值数组 - ConcurrentList []*int64 `json:"ConcurrentList,omitempty" name:"ConcurrentList"` + ConcurrentList []*int64 `json:"ConcurrentList,omitnil" name:"ConcurrentList"` // 可选的带宽取值数组 - BandwidthList []*int64 `json:"BandwidthList,omitempty" name:"BandwidthList"` + BandwidthList []*int64 `json:"BandwidthList,omitnil" name:"BandwidthList"` // 机房所属大区 - RegionArea *string `json:"RegionArea,omitempty" name:"RegionArea"` + RegionArea *string `json:"RegionArea,omitnil" name:"RegionArea"` // 机房所属大区名 - RegionAreaName *string `json:"RegionAreaName,omitempty" name:"RegionAreaName"` + RegionAreaName *string `json:"RegionAreaName,omitnil" name:"RegionAreaName"` // 机房类型, dc表示DataCenter数据中心, ec表示EdgeComputing边缘节点 - IDCType *string `json:"IDCType,omitempty" name:"IDCType"` + IDCType *string `json:"IDCType,omitnil" name:"IDCType"` // 特性位图,每个bit位代表一种特性,其中: // 0,表示不支持该特性; @@ -68,46 +68,46 @@ type AccessRegionDetial struct { // 第6个bit,支持三网接入; // 第7个bit,支持接入段Qos加速。 // 注意:此字段可能返回 null,表示取不到有效值。 - FeatureBitmap *int64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` + FeatureBitmap *int64 `json:"FeatureBitmap,omitnil" name:"FeatureBitmap"` } type AccessRegionDomainConf struct { // 地域ID。 - RegionId *string `json:"RegionId,omitempty" name:"RegionId"` + RegionId *string `json:"RegionId,omitnil" name:"RegionId"` // 就近接入区域国家内部编码,编码列表可通过DescribeCountryAreaMapping接口获取。 - NationCountryInnerList []*string `json:"NationCountryInnerList,omitempty" name:"NationCountryInnerList"` + NationCountryInnerList []*string `json:"NationCountryInnerList,omitnil" name:"NationCountryInnerList"` } // Predefined struct for user type AddRealServersRequestParams struct { // 源站对应的项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // 源站对应的IP或域名 - RealServerIP []*string `json:"RealServerIP,omitempty" name:"RealServerIP"` + RealServerIP []*string `json:"RealServerIP,omitnil" name:"RealServerIP"` // 源站名称 - RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` + RealServerName *string `json:"RealServerName,omitnil" name:"RealServerName"` // 标签列表 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } type AddRealServersRequest struct { *tchttp.BaseRequest // 源站对应的项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // 源站对应的IP或域名 - RealServerIP []*string `json:"RealServerIP,omitempty" name:"RealServerIP"` + RealServerIP []*string `json:"RealServerIP,omitnil" name:"RealServerIP"` // 源站名称 - RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` + RealServerName *string `json:"RealServerName,omitnil" name:"RealServerName"` // 标签列表 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } func (r *AddRealServersRequest) ToJsonString() string { @@ -135,10 +135,10 @@ func (r *AddRealServersRequest) FromJsonString(s string) error { // Predefined struct for user type AddRealServersResponseParams struct { // 源站信息列表 - RealServerSet []*NewRealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + RealServerSet []*NewRealServer `json:"RealServerSet,omitnil" name:"RealServerSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type AddRealServersResponse struct { @@ -189,7 +189,7 @@ func (r *BanAndRecoverProxyRequest) FromJsonString(s string) error { // Predefined struct for user type BanAndRecoverProxyResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type BanAndRecoverProxyResponse struct { @@ -210,32 +210,32 @@ func (r *BanAndRecoverProxyResponse) FromJsonString(s string) error { type BandwidthPriceGradient struct { // 带宽范围。 - BandwidthRange []*int64 `json:"BandwidthRange,omitempty" name:"BandwidthRange"` + BandwidthRange []*int64 `json:"BandwidthRange,omitnil" name:"BandwidthRange"` // 在对应带宽范围内的单宽单价,单位:元/Mbps/天。 - BandwidthUnitPrice *float64 `json:"BandwidthUnitPrice,omitempty" name:"BandwidthUnitPrice"` + BandwidthUnitPrice *float64 `json:"BandwidthUnitPrice,omitnil" name:"BandwidthUnitPrice"` // 带宽折扣价,单位:元/Mbps/天。 - DiscountBandwidthUnitPrice *float64 `json:"DiscountBandwidthUnitPrice,omitempty" name:"DiscountBandwidthUnitPrice"` + DiscountBandwidthUnitPrice *float64 `json:"DiscountBandwidthUnitPrice,omitnil" name:"DiscountBandwidthUnitPrice"` } // Predefined struct for user type BindListenerRealServersRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 待绑定源站列表。如果该监听器的源站调度策略是加权轮询,需要填写源站权重 RealServerWeight, 不填或者其他调度类型默认源站权重为1。 - RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitempty" name:"RealServerBindSet"` + RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitnil" name:"RealServerBindSet"` } type BindListenerRealServersRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 待绑定源站列表。如果该监听器的源站调度策略是加权轮询,需要填写源站权重 RealServerWeight, 不填或者其他调度类型默认源站权重为1。 - RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitempty" name:"RealServerBindSet"` + RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitnil" name:"RealServerBindSet"` } func (r *BindListenerRealServersRequest) ToJsonString() string { @@ -261,7 +261,7 @@ func (r *BindListenerRealServersRequest) FromJsonString(s string) error { // Predefined struct for user type BindListenerRealServersResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type BindListenerRealServersResponse struct { @@ -282,73 +282,73 @@ func (r *BindListenerRealServersResponse) FromJsonString(s string) error { type BindRealServer struct { // 源站ID - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` // 源站IP或者域名 - RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"` + RealServerIP *string `json:"RealServerIP,omitnil" name:"RealServerIP"` // 该源站所占权重 - RealServerWeight *int64 `json:"RealServerWeight,omitempty" name:"RealServerWeight"` + RealServerWeight *int64 `json:"RealServerWeight,omitnil" name:"RealServerWeight"` // 源站健康检查状态,其中: // 0表示正常; // 1表示异常。 // 未开启健康检查状态时,该状态始终为正常。 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerStatus *int64 `json:"RealServerStatus,omitempty" name:"RealServerStatus"` + RealServerStatus *int64 `json:"RealServerStatus,omitnil" name:"RealServerStatus"` // 源站的端口号 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerPort *int64 `json:"RealServerPort,omitempty" name:"RealServerPort"` + RealServerPort *int64 `json:"RealServerPort,omitnil" name:"RealServerPort"` // 当源站为域名时,域名被解析成一个或者多个IP,该字段表示其中异常的IP列表。状态异常,但该字段为空时,表示域名解析异常。 - DownIPList []*string `json:"DownIPList,omitempty" name:"DownIPList"` + DownIPList []*string `json:"DownIPList,omitnil" name:"DownIPList"` // 源站主备角色:master表示主,slave表示备,该参数必须在监听器打开了源站主备模式。 - RealServerFailoverRole *string `json:"RealServerFailoverRole,omitempty" name:"RealServerFailoverRole"` + RealServerFailoverRole *string `json:"RealServerFailoverRole,omitnil" name:"RealServerFailoverRole"` } type BindRealServerInfo struct { // 源站的IP或域名 - RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"` + RealServerIP *string `json:"RealServerIP,omitnil" name:"RealServerIP"` // 源站ID - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` // 源站名称 - RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` + RealServerName *string `json:"RealServerName,omitnil" name:"RealServerName"` // 项目ID - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 标签列表 // 注意:此字段可能返回 null,表示取不到有效值。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } // Predefined struct for user type BindRuleRealServersRequestParams struct { // 转发规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 需要绑定的源站信息列表。 // 如果已经存在绑定的源站,则会覆盖更新成这个源站列表。 // 当不带该字段时,表示解绑该规则上的所有源站。 // 如果该规则的源站调度策略是加权轮询,需要填写源站权重 RealServerWeight, 不填或者其他调度类型默认源站权重为1。 - RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitempty" name:"RealServerBindSet"` + RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitnil" name:"RealServerBindSet"` } type BindRuleRealServersRequest struct { *tchttp.BaseRequest // 转发规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 需要绑定的源站信息列表。 // 如果已经存在绑定的源站,则会覆盖更新成这个源站列表。 // 当不带该字段时,表示解绑该规则上的所有源站。 // 如果该规则的源站调度策略是加权轮询,需要填写源站权重 RealServerWeight, 不填或者其他调度类型默认源站权重为1。 - RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitempty" name:"RealServerBindSet"` + RealServerBindSet []*RealServerBindSetReq `json:"RealServerBindSet,omitnil" name:"RealServerBindSet"` } func (r *BindRuleRealServersRequest) ToJsonString() string { @@ -374,7 +374,7 @@ func (r *BindRuleRealServersRequest) FromJsonString(s string) error { // Predefined struct for user type BindRuleRealServersResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type BindRuleRealServersResponse struct { @@ -395,152 +395,152 @@ func (r *BindRuleRealServersResponse) FromJsonString(s string) error { type Capacity struct { // 电信鉴权的Token - CTCCToken *string `json:"CTCCToken,omitempty" name:"CTCCToken"` + CTCCToken *string `json:"CTCCToken,omitnil" name:"CTCCToken"` // 终端所处在的省份,建议不填写由服务端自动获取,若需填写请填写带有省、市、自治区、特别行政区等后缀的省份中文全称 - Province *string `json:"Province,omitempty" name:"Province"` + Province *string `json:"Province,omitnil" name:"Province"` } type Certificate struct { // 证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 证书名称(旧参数,请使用CertificateAlias)。 - CertificateName *string `json:"CertificateName,omitempty" name:"CertificateName"` + CertificateName *string `json:"CertificateName,omitnil" name:"CertificateName"` // 证书类型。 - CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"` + CertificateType *int64 `json:"CertificateType,omitnil" name:"CertificateType"` // 证书名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` // 证书创建时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 证书生效起始时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。 // 注意:此字段可能返回 null,表示取不到有效值。 - BeginTime *uint64 `json:"BeginTime,omitempty" name:"BeginTime"` + BeginTime *uint64 `json:"BeginTime,omitnil" name:"BeginTime"` // 证书过期时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。 // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` + EndTime *uint64 `json:"EndTime,omitnil" name:"EndTime"` // 证书签发者通用名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - IssuerCN *string `json:"IssuerCN,omitempty" name:"IssuerCN"` + IssuerCN *string `json:"IssuerCN,omitnil" name:"IssuerCN"` // 证书主题通用名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - SubjectCN *string `json:"SubjectCN,omitempty" name:"SubjectCN"` + SubjectCN *string `json:"SubjectCN,omitnil" name:"SubjectCN"` } type CertificateAliasInfo struct { // 证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 证书别名 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` } type CertificateDetail struct { // 证书ID。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 证书类型。 - CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"` + CertificateType *int64 `json:"CertificateType,omitnil" name:"CertificateType"` // 证书名字。 // 注意:此字段可能返回 null,表示取不到有效值。 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` // 证书内容。 - CertificateContent *string `json:"CertificateContent,omitempty" name:"CertificateContent"` + CertificateContent *string `json:"CertificateContent,omitnil" name:"CertificateContent"` // 密钥内容。仅当证书类型为SSL证书时,返回该字段。 // 注意:此字段可能返回 null,表示取不到有效值。 - CertificateKey *string `json:"CertificateKey,omitempty" name:"CertificateKey"` + CertificateKey *string `json:"CertificateKey,omitnil" name:"CertificateKey"` // 创建时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。 // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 证书生效起始时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。 // 注意:此字段可能返回 null,表示取不到有效值。 - BeginTime *uint64 `json:"BeginTime,omitempty" name:"BeginTime"` + BeginTime *uint64 `json:"BeginTime,omitnil" name:"BeginTime"` // 证书过期时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。 // 注意:此字段可能返回 null,表示取不到有效值。 - EndTime *uint64 `json:"EndTime,omitempty" name:"EndTime"` + EndTime *uint64 `json:"EndTime,omitnil" name:"EndTime"` // 证书签发者通用名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - IssuerCN *string `json:"IssuerCN,omitempty" name:"IssuerCN"` + IssuerCN *string `json:"IssuerCN,omitnil" name:"IssuerCN"` // 证书主题通用名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - SubjectCN *string `json:"SubjectCN,omitempty" name:"SubjectCN"` + SubjectCN *string `json:"SubjectCN,omitnil" name:"SubjectCN"` } // Predefined struct for user type CheckProxyCreateRequestParams struct { // 通道的接入(加速)区域。取值可通过接口DescribeAccessRegionsByDestRegion获取到 - AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + AccessRegion *string `json:"AccessRegion,omitnil" name:"AccessRegion"` // 通道的源站区域。取值可通过接口DescribeDestRegions获取到 - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // 通道带宽上限,单位:Mbps。 - Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *uint64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // 通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *uint64 `json:"Concurrent,omitnil" name:"Concurrent"` // 如果在通道组下创建通道,需要填写通道组的ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 网络类型,可取值:normal、cn2,默认值normal - NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + NetworkType *string `json:"NetworkType,omitnil" name:"NetworkType"` // 通道套餐类型。Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } type CheckProxyCreateRequest struct { *tchttp.BaseRequest // 通道的接入(加速)区域。取值可通过接口DescribeAccessRegionsByDestRegion获取到 - AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + AccessRegion *string `json:"AccessRegion,omitnil" name:"AccessRegion"` // 通道的源站区域。取值可通过接口DescribeDestRegions获取到 - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // 通道带宽上限,单位:Mbps。 - Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *uint64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // 通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *uint64 `json:"Concurrent,omitnil" name:"Concurrent"` // 如果在通道组下创建通道,需要填写通道组的ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 网络类型,可取值:normal、cn2,默认值normal - NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + NetworkType *string `json:"NetworkType,omitnil" name:"NetworkType"` // 通道套餐类型。Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } func (r *CheckProxyCreateRequest) ToJsonString() string { @@ -573,10 +573,10 @@ func (r *CheckProxyCreateRequest) FromJsonString(s string) error { // Predefined struct for user type CheckProxyCreateResponseParams struct { // 查询能否创建给定配置的通道,1可以创建,0不可创建。 - CheckFlag *uint64 `json:"CheckFlag,omitempty" name:"CheckFlag"` + CheckFlag *uint64 `json:"CheckFlag,omitnil" name:"CheckFlag"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CheckProxyCreateResponse struct { @@ -598,28 +598,28 @@ func (r *CheckProxyCreateResponse) FromJsonString(s string) error { // Predefined struct for user type CloseProxiesRequestParams struct { // (旧参数,请切换到ProxyIds)通道的实例ID。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)通道的实例ID。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } type CloseProxiesRequest struct { *tchttp.BaseRequest // (旧参数,请切换到ProxyIds)通道的实例ID。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)通道的实例ID。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } func (r *CloseProxiesRequest) ToJsonString() string { @@ -646,13 +646,13 @@ func (r *CloseProxiesRequest) FromJsonString(s string) error { // Predefined struct for user type CloseProxiesResponseParams struct { // 非运行状态下的通道实例ID列表,不可开启。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitnil" name:"InvalidStatusInstanceSet"` // 开启操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitnil" name:"OperationFailedInstanceSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CloseProxiesResponse struct { @@ -674,14 +674,14 @@ func (r *CloseProxiesResponse) FromJsonString(s string) error { // Predefined struct for user type CloseProxyGroupRequestParams struct { // 通道组的实例 ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type CloseProxyGroupRequest struct { *tchttp.BaseRequest // 通道组的实例 ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } func (r *CloseProxyGroupRequest) ToJsonString() string { @@ -706,13 +706,13 @@ func (r *CloseProxyGroupRequest) FromJsonString(s string) error { // Predefined struct for user type CloseProxyGroupResponseParams struct { // 非运行状态下的通道实例ID列表,不可开启。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitnil" name:"InvalidStatusInstanceSet"` // 开启操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitnil" name:"OperationFailedInstanceSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CloseProxyGroupResponse struct { @@ -734,20 +734,20 @@ func (r *CloseProxyGroupResponse) FromJsonString(s string) error { // Predefined struct for user type CloseSecurityPolicyRequestParams struct { // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 安全组策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } type CloseSecurityPolicyRequest struct { *tchttp.BaseRequest // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 安全组策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } func (r *CloseSecurityPolicyRequest) ToJsonString() string { @@ -773,10 +773,10 @@ func (r *CloseSecurityPolicyRequest) FromJsonString(s string) error { // Predefined struct for user type CloseSecurityPolicyResponseParams struct { // 异步流程ID,可以通过DescribeAsyncTaskStatus 查询流程执行进展和状态 - TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + TaskId *string `json:"TaskId,omitnil" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CloseSecurityPolicyResponse struct { @@ -797,26 +797,26 @@ func (r *CloseSecurityPolicyResponse) FromJsonString(s string) error { type CountryAreaMap struct { // 国家名称。 - NationCountryName *string `json:"NationCountryName,omitempty" name:"NationCountryName"` + NationCountryName *string `json:"NationCountryName,omitnil" name:"NationCountryName"` // 国家编码。 - NationCountryInnerCode *string `json:"NationCountryInnerCode,omitempty" name:"NationCountryInnerCode"` + NationCountryInnerCode *string `json:"NationCountryInnerCode,omitnil" name:"NationCountryInnerCode"` // 地区名称。 - GeographicalZoneName *string `json:"GeographicalZoneName,omitempty" name:"GeographicalZoneName"` + GeographicalZoneName *string `json:"GeographicalZoneName,omitnil" name:"GeographicalZoneName"` // 地区编码。 - GeographicalZoneInnerCode *string `json:"GeographicalZoneInnerCode,omitempty" name:"GeographicalZoneInnerCode"` + GeographicalZoneInnerCode *string `json:"GeographicalZoneInnerCode,omitnil" name:"GeographicalZoneInnerCode"` // 大洲名称。 - ContinentName *string `json:"ContinentName,omitempty" name:"ContinentName"` + ContinentName *string `json:"ContinentName,omitnil" name:"ContinentName"` // 大洲编码。 - ContinentInnerCode *string `json:"ContinentInnerCode,omitempty" name:"ContinentInnerCode"` + ContinentInnerCode *string `json:"ContinentInnerCode,omitnil" name:"ContinentInnerCode"` // 标注信息 // 注意:此字段可能返回 null,表示取不到有效值。 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` } // Predefined struct for user @@ -827,18 +827,18 @@ type CreateCertificateRequestParams struct { // 2,服务器SSL证书; // 3,表示源站CA证书; // 4,表示通道SSL证书。 - CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"` + CertificateType *int64 `json:"CertificateType,omitnil" name:"CertificateType"` // 证书内容。采用url编码。其中: // 当证书类型为基础认证配置时,该参数填写用户名/密码对。格式:“用户名:密码”,例如:root:FSGdT。其中密码使用htpasswd或者openssl,例如:openssl passwd -crypt 123456。 // 当证书类型为CA/SSL证书时,该参数填写证书内容,格式为pem。 - CertificateContent *string `json:"CertificateContent,omitempty" name:"CertificateContent"` + CertificateContent *string `json:"CertificateContent,omitnil" name:"CertificateContent"` // 证书名称 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` // 密钥内容。采用url编码。仅当证书类型为SSL证书时,需要填写该参数。格式为pem。 - CertificateKey *string `json:"CertificateKey,omitempty" name:"CertificateKey"` + CertificateKey *string `json:"CertificateKey,omitnil" name:"CertificateKey"` } type CreateCertificateRequest struct { @@ -850,18 +850,18 @@ type CreateCertificateRequest struct { // 2,服务器SSL证书; // 3,表示源站CA证书; // 4,表示通道SSL证书。 - CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"` + CertificateType *int64 `json:"CertificateType,omitnil" name:"CertificateType"` // 证书内容。采用url编码。其中: // 当证书类型为基础认证配置时,该参数填写用户名/密码对。格式:“用户名:密码”,例如:root:FSGdT。其中密码使用htpasswd或者openssl,例如:openssl passwd -crypt 123456。 // 当证书类型为CA/SSL证书时,该参数填写证书内容,格式为pem。 - CertificateContent *string `json:"CertificateContent,omitempty" name:"CertificateContent"` + CertificateContent *string `json:"CertificateContent,omitnil" name:"CertificateContent"` // 证书名称 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` // 密钥内容。采用url编码。仅当证书类型为SSL证书时,需要填写该参数。格式为pem。 - CertificateKey *string `json:"CertificateKey,omitempty" name:"CertificateKey"` + CertificateKey *string `json:"CertificateKey,omitnil" name:"CertificateKey"` } func (r *CreateCertificateRequest) ToJsonString() string { @@ -889,10 +889,10 @@ func (r *CreateCertificateRequest) FromJsonString(s string) error { // Predefined struct for user type CreateCertificateResponseParams struct { // 证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateCertificateResponse struct { @@ -914,20 +914,20 @@ func (r *CreateCertificateResponse) FromJsonString(s string) error { // Predefined struct for user type CreateCustomHeaderRequestParams struct { // 规则id - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 新增的header名称和内容列表, ‘’$remote_addr‘’会被解析替换成客户端ip,其他值原样透传到源站。 - Headers []*HttpHeaderParam `json:"Headers,omitempty" name:"Headers"` + Headers []*HttpHeaderParam `json:"Headers,omitnil" name:"Headers"` } type CreateCustomHeaderRequest struct { *tchttp.BaseRequest // 规则id - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 新增的header名称和内容列表, ‘’$remote_addr‘’会被解析替换成客户端ip,其他值原样透传到源站。 - Headers []*HttpHeaderParam `json:"Headers,omitempty" name:"Headers"` + Headers []*HttpHeaderParam `json:"Headers,omitnil" name:"Headers"` } func (r *CreateCustomHeaderRequest) ToJsonString() string { @@ -953,7 +953,7 @@ func (r *CreateCustomHeaderRequest) FromJsonString(s string) error { // Predefined struct for user type CreateCustomHeaderResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateCustomHeaderResponse struct { @@ -975,50 +975,50 @@ func (r *CreateCustomHeaderResponse) FromJsonString(s string) error { // Predefined struct for user type CreateDomainErrorPageInfoRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 原始错误码 - ErrorNos []*int64 `json:"ErrorNos,omitempty" name:"ErrorNos"` + ErrorNos []*int64 `json:"ErrorNos,omitnil" name:"ErrorNos"` // 新的响应包体 - Body *string `json:"Body,omitempty" name:"Body"` + Body *string `json:"Body,omitnil" name:"Body"` // 新错误码 - NewErrorNo *int64 `json:"NewErrorNo,omitempty" name:"NewErrorNo"` + NewErrorNo *int64 `json:"NewErrorNo,omitnil" name:"NewErrorNo"` // 需要删除的响应头 - ClearHeaders []*string `json:"ClearHeaders,omitempty" name:"ClearHeaders"` + ClearHeaders []*string `json:"ClearHeaders,omitnil" name:"ClearHeaders"` // 需要设置的响应头 - SetHeaders []*HttpHeaderParam `json:"SetHeaders,omitempty" name:"SetHeaders"` + SetHeaders []*HttpHeaderParam `json:"SetHeaders,omitnil" name:"SetHeaders"` } type CreateDomainErrorPageInfoRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 原始错误码 - ErrorNos []*int64 `json:"ErrorNos,omitempty" name:"ErrorNos"` + ErrorNos []*int64 `json:"ErrorNos,omitnil" name:"ErrorNos"` // 新的响应包体 - Body *string `json:"Body,omitempty" name:"Body"` + Body *string `json:"Body,omitnil" name:"Body"` // 新错误码 - NewErrorNo *int64 `json:"NewErrorNo,omitempty" name:"NewErrorNo"` + NewErrorNo *int64 `json:"NewErrorNo,omitnil" name:"NewErrorNo"` // 需要删除的响应头 - ClearHeaders []*string `json:"ClearHeaders,omitempty" name:"ClearHeaders"` + ClearHeaders []*string `json:"ClearHeaders,omitnil" name:"ClearHeaders"` // 需要设置的响应头 - SetHeaders []*HttpHeaderParam `json:"SetHeaders,omitempty" name:"SetHeaders"` + SetHeaders []*HttpHeaderParam `json:"SetHeaders,omitnil" name:"SetHeaders"` } func (r *CreateDomainErrorPageInfoRequest) ToJsonString() string { @@ -1049,10 +1049,10 @@ func (r *CreateDomainErrorPageInfoRequest) FromJsonString(s string) error { // Predefined struct for user type CreateDomainErrorPageInfoResponseParams struct { // 错误定制响应的配置ID - ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` + ErrorPageId *string `json:"ErrorPageId,omitnil" name:"ErrorPageId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateDomainErrorPageInfoResponse struct { @@ -1074,54 +1074,54 @@ func (r *CreateDomainErrorPageInfoResponse) FromJsonString(s string) error { // Predefined struct for user type CreateDomainRequestParams struct { // 监听器ID。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 需要创建的域名,一个监听器下最大支持100个域名。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 服务器证书,用于客户端与GAAP的HTTPS的交互。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 客户端CA证书,用于客户端与GAAP的HTTPS的交互。 // 仅当采用双向认证的方式时,需要设置该字段或PolyClientCertificateIds字段。 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 客户端CA证书,用于客户端与GAAP的HTTPS的交互。 // 仅当采用双向认证的方式时,需要设置该字段或ClientCertificateId字段。 - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` // 是否开启Http3特性的标识,其中: // 0,表示不开启Http3; // 1,表示开启Http3。 // 默认不开启Http3。可以通过SetDomainHttp3开启。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } type CreateDomainRequest struct { *tchttp.BaseRequest // 监听器ID。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 需要创建的域名,一个监听器下最大支持100个域名。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 服务器证书,用于客户端与GAAP的HTTPS的交互。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 客户端CA证书,用于客户端与GAAP的HTTPS的交互。 // 仅当采用双向认证的方式时,需要设置该字段或PolyClientCertificateIds字段。 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 客户端CA证书,用于客户端与GAAP的HTTPS的交互。 // 仅当采用双向认证的方式时,需要设置该字段或ClientCertificateId字段。 - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` // 是否开启Http3特性的标识,其中: // 0,表示不开启Http3; // 1,表示开启Http3。 // 默认不开启Http3。可以通过SetDomainHttp3开启。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } func (r *CreateDomainRequest) ToJsonString() string { @@ -1151,7 +1151,7 @@ func (r *CreateDomainRequest) FromJsonString(s string) error { // Predefined struct for user type CreateDomainResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateDomainResponse struct { @@ -1173,38 +1173,38 @@ func (r *CreateDomainResponse) FromJsonString(s string) error { // Predefined struct for user type CreateFirstLinkSessionRequestParams struct { // 模版ID - TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + TemplateId *string `json:"TemplateId,omitnil" name:"TemplateId"` // 终端网络信息 - SrcAddressInfo *SrcAddressInfo `json:"SrcAddressInfo,omitempty" name:"SrcAddressInfo"` + SrcAddressInfo *SrcAddressInfo `json:"SrcAddressInfo,omitnil" name:"SrcAddressInfo"` // 加速目标网络信息 - DestAddressInfo *DestAddressInfo `json:"DestAddressInfo,omitempty" name:"DestAddressInfo"` + DestAddressInfo *DestAddressInfo `json:"DestAddressInfo,omitnil" name:"DestAddressInfo"` // 终端设备信息 - DeviceInfo *DeviceInfo `json:"DeviceInfo,omitempty" name:"DeviceInfo"` + DeviceInfo *DeviceInfo `json:"DeviceInfo,omitnil" name:"DeviceInfo"` // 接口扩展参数,如果是电信用户,需要填充CTCC Token字段 - Capacity *Capacity `json:"Capacity,omitempty" name:"Capacity"` + Capacity *Capacity `json:"Capacity,omitnil" name:"Capacity"` } type CreateFirstLinkSessionRequest struct { *tchttp.BaseRequest // 模版ID - TemplateId *string `json:"TemplateId,omitempty" name:"TemplateId"` + TemplateId *string `json:"TemplateId,omitnil" name:"TemplateId"` // 终端网络信息 - SrcAddressInfo *SrcAddressInfo `json:"SrcAddressInfo,omitempty" name:"SrcAddressInfo"` + SrcAddressInfo *SrcAddressInfo `json:"SrcAddressInfo,omitnil" name:"SrcAddressInfo"` // 加速目标网络信息 - DestAddressInfo *DestAddressInfo `json:"DestAddressInfo,omitempty" name:"DestAddressInfo"` + DestAddressInfo *DestAddressInfo `json:"DestAddressInfo,omitnil" name:"DestAddressInfo"` // 终端设备信息 - DeviceInfo *DeviceInfo `json:"DeviceInfo,omitempty" name:"DeviceInfo"` + DeviceInfo *DeviceInfo `json:"DeviceInfo,omitnil" name:"DeviceInfo"` // 接口扩展参数,如果是电信用户,需要填充CTCC Token字段 - Capacity *Capacity `json:"Capacity,omitempty" name:"Capacity"` + Capacity *Capacity `json:"Capacity,omitnil" name:"Capacity"` } func (r *CreateFirstLinkSessionRequest) ToJsonString() string { @@ -1234,14 +1234,14 @@ func (r *CreateFirstLinkSessionRequest) FromJsonString(s string) error { type CreateFirstLinkSessionResponseParams struct { // 加速成功时返回,单次加速唯一会话Id。。 // 注意:此字段可能返回 null,表示取不到有效值。 - SessionId *string `json:"SessionId,omitempty" name:"SessionId"` + SessionId *string `json:"SessionId,omitnil" name:"SessionId"` // 剩余的加速时间,单位秒。 // 注意:此字段可能返回 null,表示取不到有效值。 - Duration *int64 `json:"Duration,omitempty" name:"Duration"` + Duration *int64 `json:"Duration,omitnil" name:"Duration"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateFirstLinkSessionResponse struct { @@ -1263,26 +1263,26 @@ func (r *CreateFirstLinkSessionResponse) FromJsonString(s string) error { // Predefined struct for user type CreateGlobalDomainDnsRequestParams struct { // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` // 通道ID列表 - ProxyIdList []*string `json:"ProxyIdList,omitempty" name:"ProxyIdList"` + ProxyIdList []*string `json:"ProxyIdList,omitnil" name:"ProxyIdList"` // 国家ID列表 - NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitempty" name:"NationCountryInnerCodes"` + NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitnil" name:"NationCountryInnerCodes"` } type CreateGlobalDomainDnsRequest struct { *tchttp.BaseRequest // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` // 通道ID列表 - ProxyIdList []*string `json:"ProxyIdList,omitempty" name:"ProxyIdList"` + ProxyIdList []*string `json:"ProxyIdList,omitnil" name:"ProxyIdList"` // 国家ID列表 - NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitempty" name:"NationCountryInnerCodes"` + NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitnil" name:"NationCountryInnerCodes"` } func (r *CreateGlobalDomainDnsRequest) ToJsonString() string { @@ -1309,7 +1309,7 @@ func (r *CreateGlobalDomainDnsRequest) FromJsonString(s string) error { // Predefined struct for user type CreateGlobalDomainDnsResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateGlobalDomainDnsResponse struct { @@ -1331,32 +1331,32 @@ func (r *CreateGlobalDomainDnsResponse) FromJsonString(s string) error { // Predefined struct for user type CreateGlobalDomainRequestParams struct { // 域名所属项目ID - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 域名默认入口 - DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` + DefaultValue *string `json:"DefaultValue,omitnil" name:"DefaultValue"` // 别名 - Alias *string `json:"Alias,omitempty" name:"Alias"` + Alias *string `json:"Alias,omitnil" name:"Alias"` // 标签列表 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } type CreateGlobalDomainRequest struct { *tchttp.BaseRequest // 域名所属项目ID - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 域名默认入口 - DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` + DefaultValue *string `json:"DefaultValue,omitnil" name:"DefaultValue"` // 别名 - Alias *string `json:"Alias,omitempty" name:"Alias"` + Alias *string `json:"Alias,omitnil" name:"Alias"` // 标签列表 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } func (r *CreateGlobalDomainRequest) ToJsonString() string { @@ -1384,10 +1384,10 @@ func (r *CreateGlobalDomainRequest) FromJsonString(s string) error { // Predefined struct for user type CreateGlobalDomainResponseParams struct { // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateGlobalDomainResponse struct { @@ -1409,32 +1409,32 @@ func (r *CreateGlobalDomainResponse) FromJsonString(s string) error { // Predefined struct for user type CreateHTTPListenerRequestParams struct { // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口,基于同种传输层协议(TCP 或 UDP)的监听器,端口不可重复 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 通道ID,与GroupId不能同时设置,对应为通道创建监听器 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道组ID,与ProxyId不能同时设置,对应为通道组创建监听器 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type CreateHTTPListenerRequest struct { *tchttp.BaseRequest // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口,基于同种传输层协议(TCP 或 UDP)的监听器,端口不可重复 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 通道ID,与GroupId不能同时设置,对应为通道创建监听器 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道组ID,与ProxyId不能同时设置,对应为通道组创建监听器 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } func (r *CreateHTTPListenerRequest) ToJsonString() string { @@ -1462,10 +1462,10 @@ func (r *CreateHTTPListenerRequest) FromJsonString(s string) error { // Predefined struct for user type CreateHTTPListenerResponseParams struct { // 创建的监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateHTTPListenerResponse struct { @@ -1487,82 +1487,82 @@ func (r *CreateHTTPListenerResponse) FromJsonString(s string) error { // Predefined struct for user type CreateHTTPSListenerRequestParams struct { // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口,基于同种传输层协议(TCP 或 UDP)的监听器,端口不可重复 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 服务器证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 加速通道转发到源站的协议类型:HTTP | HTTPS - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 通道ID,与GroupId之间只能设置一个。表示创建通道的监听器。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 认证类型,其中: // 0,单向认证; // 1,双向认证。 // 默认使用单向认证。 - AuthType *uint64 `json:"AuthType,omitempty" name:"AuthType"` + AuthType *uint64 `json:"AuthType,omitnil" name:"AuthType"` // 客户端CA单证书ID,仅当双向认证时设置该参数或PolyClientCertificateIds参数 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 新的客户端多CA证书ID,仅当双向认证时设置该参数或设置ClientCertificateId参数 - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` // 通道组ID,与ProxyId之间只能设置一个。表示创建通道组的监听器。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 支持Http3的开关,其中: // 0,表示不需要支持Http3接入; // 1,表示需要支持Http3接入。 // 注意:如果支持了Http3的功能,那么该监听器会占用对应的UDP接入端口,不可再创建相同端口的UDP监听器。 // 该功能的启停无法在监听器创建完毕后再修改。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } type CreateHTTPSListenerRequest struct { *tchttp.BaseRequest // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口,基于同种传输层协议(TCP 或 UDP)的监听器,端口不可重复 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 服务器证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 加速通道转发到源站的协议类型:HTTP | HTTPS - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 通道ID,与GroupId之间只能设置一个。表示创建通道的监听器。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 认证类型,其中: // 0,单向认证; // 1,双向认证。 // 默认使用单向认证。 - AuthType *uint64 `json:"AuthType,omitempty" name:"AuthType"` + AuthType *uint64 `json:"AuthType,omitnil" name:"AuthType"` // 客户端CA单证书ID,仅当双向认证时设置该参数或PolyClientCertificateIds参数 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 新的客户端多CA证书ID,仅当双向认证时设置该参数或设置ClientCertificateId参数 - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` // 通道组ID,与ProxyId之间只能设置一个。表示创建通道组的监听器。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 支持Http3的开关,其中: // 0,表示不需要支持Http3接入; // 1,表示需要支持Http3接入。 // 注意:如果支持了Http3的功能,那么该监听器会占用对应的UDP接入端口,不可再创建相同端口的UDP监听器。 // 该功能的启停无法在监听器创建完毕后再修改。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } func (r *CreateHTTPSListenerRequest) ToJsonString() string { @@ -1596,10 +1596,10 @@ func (r *CreateHTTPSListenerRequest) FromJsonString(s string) error { // Predefined struct for user type CreateHTTPSListenerResponseParams struct { // 创建的监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateHTTPSListenerResponse struct { @@ -1621,14 +1621,14 @@ func (r *CreateHTTPSListenerResponse) FromJsonString(s string) error { // Predefined struct for user type CreateProxyGroupDomainRequestParams struct { // 需要开启域名的通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type CreateProxyGroupDomainRequest struct { *tchttp.BaseRequest // 需要开启域名的通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } func (r *CreateProxyGroupDomainRequest) ToJsonString() string { @@ -1653,10 +1653,10 @@ func (r *CreateProxyGroupDomainRequest) FromJsonString(s string) error { // Predefined struct for user type CreateProxyGroupDomainResponseParams struct { // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateProxyGroupDomainResponse struct { @@ -1678,56 +1678,56 @@ func (r *CreateProxyGroupDomainResponse) FromJsonString(s string) error { // Predefined struct for user type CreateProxyGroupRequestParams struct { // 通道组所属项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // 通道组别名 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` // 源站地域,参考接口DescribeDestRegions 返回参数RegionDetail中的RegionId - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // 标签列表 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 加速地域列表,包括加速地域名,及该地域对应的带宽和并发配置。 - AccessRegionSet []*AccessConfiguration `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` + AccessRegionSet []*AccessConfiguration `json:"AccessRegionSet,omitnil" name:"AccessRegionSet"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 通道组套餐类型,可取值:Thunder、Accelerator,默认值Thunder - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道组默认支持Http3.0;当为IPv6,默认不支持Http3.0。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } type CreateProxyGroupRequest struct { *tchttp.BaseRequest // 通道组所属项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // 通道组别名 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` // 源站地域,参考接口DescribeDestRegions 返回参数RegionDetail中的RegionId - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // 标签列表 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 加速地域列表,包括加速地域名,及该地域对应的带宽和并发配置。 - AccessRegionSet []*AccessConfiguration `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` + AccessRegionSet []*AccessConfiguration `json:"AccessRegionSet,omitnil" name:"AccessRegionSet"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 通道组套餐类型,可取值:Thunder、Accelerator,默认值Thunder - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道组默认支持Http3.0;当为IPv6,默认不支持Http3.0。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } func (r *CreateProxyGroupRequest) ToJsonString() string { @@ -1759,10 +1759,10 @@ func (r *CreateProxyGroupRequest) FromJsonString(s string) error { // Predefined struct for user type CreateProxyGroupResponseParams struct { // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateProxyGroupResponse struct { @@ -1784,102 +1784,102 @@ func (r *CreateProxyGroupResponse) FromJsonString(s string) error { // Predefined struct for user type CreateProxyRequestParams struct { // 通道的项目ID。 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 通道名称。 - ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"` + ProxyName *string `json:"ProxyName,omitnil" name:"ProxyName"` // 接入地域。 - AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + AccessRegion *string `json:"AccessRegion,omitnil" name:"AccessRegion"` // 通道带宽上限,单位:Mbps。 - Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *uint64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // 通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *uint64 `json:"Concurrent,omitnil" name:"Concurrent"` // 源站地域。当GroupId存在时,源站地域为通道组的源站地域,此时可不填该字段。当GroupId不存在时,需要填写该字段 - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // 通道所在的通道组ID,当在通道组中创建通道时必带,否则忽略该字段。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道需要添加的标签列表。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 被复制的通道ID。只有处于运行中状态的通道可以被复制。 // 当设置该参数时,表示复制该通道。 - ClonedProxyId *string `json:"ClonedProxyId,omitempty" name:"ClonedProxyId"` + ClonedProxyId *string `json:"ClonedProxyId,omitnil" name:"ClonedProxyId"` // 计费方式 (0:按带宽计费,1:按流量计费 默认按带宽计费) - BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + BillingType *int64 `json:"BillingType,omitnil" name:"BillingType"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 网络类型,normal表示常规BGP,cn2表示精品BGP,triple表示三网 - NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + NetworkType *string `json:"NetworkType,omitnil" name:"NetworkType"` // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } type CreateProxyRequest struct { *tchttp.BaseRequest // 通道的项目ID。 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 通道名称。 - ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"` + ProxyName *string `json:"ProxyName,omitnil" name:"ProxyName"` // 接入地域。 - AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + AccessRegion *string `json:"AccessRegion,omitnil" name:"AccessRegion"` // 通道带宽上限,单位:Mbps。 - Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *uint64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // 通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *uint64 `json:"Concurrent,omitnil" name:"Concurrent"` // 源站地域。当GroupId存在时,源站地域为通道组的源站地域,此时可不填该字段。当GroupId不存在时,需要填写该字段 - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // 通道所在的通道组ID,当在通道组中创建通道时必带,否则忽略该字段。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道需要添加的标签列表。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 被复制的通道ID。只有处于运行中状态的通道可以被复制。 // 当设置该参数时,表示复制该通道。 - ClonedProxyId *string `json:"ClonedProxyId,omitempty" name:"ClonedProxyId"` + ClonedProxyId *string `json:"ClonedProxyId,omitnil" name:"ClonedProxyId"` // 计费方式 (0:按带宽计费,1:按流量计费 默认按带宽计费) - BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + BillingType *int64 `json:"BillingType,omitnil" name:"BillingType"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 网络类型,normal表示常规BGP,cn2表示精品BGP,triple表示三网 - NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + NetworkType *string `json:"NetworkType,omitnil" name:"NetworkType"` // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } func (r *CreateProxyRequest) ToJsonString() string { @@ -1918,10 +1918,10 @@ func (r *CreateProxyRequest) FromJsonString(s string) error { // Predefined struct for user type CreateProxyResponseParams struct { // 通道的实例ID。 - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateProxyResponse struct { @@ -1943,82 +1943,82 @@ func (r *CreateProxyResponse) FromJsonString(s string) error { // Predefined struct for user type CreateRuleRequestParams struct { // 7层监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 转发规则的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 转发规则的路径 - Path *string `json:"Path,omitempty" name:"Path"` + Path *string `json:"Path,omitnil" name:"Path"` // 转发规则对应源站的类型,支持IP和DOMAIN类型。 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` - // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数。 + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 规则是否开启健康检查,1开启,0关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 源站健康检查相关参数 - CheckParams *RuleCheckParams `json:"CheckParams,omitempty" name:"CheckParams"` + CheckParams *RuleCheckParams `json:"CheckParams,omitnil" name:"CheckParams"` // 加速通道转发到源站的协议类型:支持HTTP或HTTPS。 // 不传递该字段时表示使用对应监听器的ForwardProtocol。 - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 回源Host。加速通道转发到源站的host,不设置该参数时,使用默认的host设置,即客户端发起的http请求的host。 - ForwardHost *string `json:"ForwardHost,omitempty" name:"ForwardHost"` + ForwardHost *string `json:"ForwardHost,omitnil" name:"ForwardHost"` - // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。 - ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitempty" name:"ServerNameIndicationSwitch"` + // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。创建HTTP监听器转发规则时,SNI功能默认关闭。 + ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitnil" name:"ServerNameIndicationSwitch"` // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 - ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + ServerNameIndication *string `json:"ServerNameIndication,omitnil" name:"ServerNameIndication"` // HTTP强制跳转HTTPS。输入当前规则对应的域名与地址。 - ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` + ForcedRedirect *string `json:"ForcedRedirect,omitnil" name:"ForcedRedirect"` } type CreateRuleRequest struct { *tchttp.BaseRequest // 7层监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 转发规则的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 转发规则的路径 - Path *string `json:"Path,omitempty" name:"Path"` + Path *string `json:"Path,omitnil" name:"Path"` // 转发规则对应源站的类型,支持IP和DOMAIN类型。 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` - // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数。 + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 规则是否开启健康检查,1开启,0关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 源站健康检查相关参数 - CheckParams *RuleCheckParams `json:"CheckParams,omitempty" name:"CheckParams"` + CheckParams *RuleCheckParams `json:"CheckParams,omitnil" name:"CheckParams"` // 加速通道转发到源站的协议类型:支持HTTP或HTTPS。 // 不传递该字段时表示使用对应监听器的ForwardProtocol。 - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 回源Host。加速通道转发到源站的host,不设置该参数时,使用默认的host设置,即客户端发起的http请求的host。 - ForwardHost *string `json:"ForwardHost,omitempty" name:"ForwardHost"` + ForwardHost *string `json:"ForwardHost,omitnil" name:"ForwardHost"` - // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。 - ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitempty" name:"ServerNameIndicationSwitch"` + // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。创建HTTP监听器转发规则时,SNI功能默认关闭。 + ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitnil" name:"ServerNameIndicationSwitch"` // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 - ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + ServerNameIndication *string `json:"ServerNameIndication,omitnil" name:"ServerNameIndication"` // HTTP强制跳转HTTPS。输入当前规则对应的域名与地址。 - ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` + ForcedRedirect *string `json:"ForcedRedirect,omitnil" name:"ForcedRedirect"` } func (r *CreateRuleRequest) ToJsonString() string { @@ -2054,10 +2054,10 @@ func (r *CreateRuleRequest) FromJsonString(s string) error { // Predefined struct for user type CreateRuleResponseParams struct { // 创建转发规则成功返回规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateRuleResponse struct { @@ -2079,26 +2079,26 @@ func (r *CreateRuleResponse) FromJsonString(s string) error { // Predefined struct for user type CreateSecurityPolicyRequestParams struct { // 默认策略:ACCEPT或DROP - DefaultAction *string `json:"DefaultAction,omitempty" name:"DefaultAction"` + DefaultAction *string `json:"DefaultAction,omitnil" name:"DefaultAction"` // 加速通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type CreateSecurityPolicyRequest struct { *tchttp.BaseRequest // 默认策略:ACCEPT或DROP - DefaultAction *string `json:"DefaultAction,omitempty" name:"DefaultAction"` + DefaultAction *string `json:"DefaultAction,omitnil" name:"DefaultAction"` // 加速通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } func (r *CreateSecurityPolicyRequest) ToJsonString() string { @@ -2125,10 +2125,10 @@ func (r *CreateSecurityPolicyRequest) FromJsonString(s string) error { // Predefined struct for user type CreateSecurityPolicyResponseParams struct { // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateSecurityPolicyResponse struct { @@ -2150,20 +2150,20 @@ func (r *CreateSecurityPolicyResponse) FromJsonString(s string) error { // Predefined struct for user type CreateSecurityRulesRequestParams struct { // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 访问规则列表 - RuleList []*SecurityPolicyRuleIn `json:"RuleList,omitempty" name:"RuleList"` + RuleList []*SecurityPolicyRuleIn `json:"RuleList,omitnil" name:"RuleList"` } type CreateSecurityRulesRequest struct { *tchttp.BaseRequest // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 访问规则列表 - RuleList []*SecurityPolicyRuleIn `json:"RuleList,omitempty" name:"RuleList"` + RuleList []*SecurityPolicyRuleIn `json:"RuleList,omitnil" name:"RuleList"` } func (r *CreateSecurityRulesRequest) ToJsonString() string { @@ -2189,10 +2189,10 @@ func (r *CreateSecurityRulesRequest) FromJsonString(s string) error { // Predefined struct for user type CreateSecurityRulesResponseParams struct { // 规则ID列表 - RuleIdList []*string `json:"RuleIdList,omitempty" name:"RuleIdList"` + RuleIdList []*string `json:"RuleIdList,omitnil" name:"RuleIdList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateSecurityRulesResponse struct { @@ -2214,92 +2214,92 @@ func (r *CreateSecurityRulesResponse) FromJsonString(s string) error { // Predefined struct for user type CreateTCPListenersRequestParams struct { // 监听器名称。 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口列表。 - Ports []*uint64 `json:"Ports,omitempty" name:"Ports"` + Ports []*uint64 `json:"Ports,omitnil" name:"Ports"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站是否开启健康检查:1开启,0关闭,UDP监听器不支持健康检查 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 监听器绑定源站类型。IP表示IP地址,DOMAIN表示域名。 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 源站端口列表,该参数仅支持v1版本监听器和通道组监听器。 - RealServerPorts []*uint64 `json:"RealServerPorts,omitempty" name:"RealServerPorts"` + RealServerPorts []*uint64 `json:"RealServerPorts,omitnil" name:"RealServerPorts"` // 监听器获取客户端 IP 的方式,0表示 TOA, 1表示Proxy Protocol - ClientIPMethod *int64 `json:"ClientIPMethod,omitempty" name:"ClientIPMethod"` + ClientIPMethod *int64 `json:"ClientIPMethod,omitnil" name:"ClientIPMethod"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 - FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *int64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` } type CreateTCPListenersRequest struct { *tchttp.BaseRequest // 监听器名称。 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口列表。 - Ports []*uint64 `json:"Ports,omitempty" name:"Ports"` + Ports []*uint64 `json:"Ports,omitnil" name:"Ports"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站是否开启健康检查:1开启,0关闭,UDP监听器不支持健康检查 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 监听器绑定源站类型。IP表示IP地址,DOMAIN表示域名。 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 源站端口列表,该参数仅支持v1版本监听器和通道组监听器。 - RealServerPorts []*uint64 `json:"RealServerPorts,omitempty" name:"RealServerPorts"` + RealServerPorts []*uint64 `json:"RealServerPorts,omitnil" name:"RealServerPorts"` // 监听器获取客户端 IP 的方式,0表示 TOA, 1表示Proxy Protocol - ClientIPMethod *int64 `json:"ClientIPMethod,omitempty" name:"ClientIPMethod"` + ClientIPMethod *int64 `json:"ClientIPMethod,omitnil" name:"ClientIPMethod"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 - FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *int64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` } func (r *CreateTCPListenersRequest) ToJsonString() string { @@ -2337,10 +2337,10 @@ func (r *CreateTCPListenersRequest) FromJsonString(s string) error { // Predefined struct for user type CreateTCPListenersResponseParams struct { // 返回监听器ID - ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` + ListenerIds []*string `json:"ListenerIds,omitnil" name:"ListenerIds"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateTCPListenersResponse struct { @@ -2362,116 +2362,116 @@ func (r *CreateTCPListenersResponse) FromJsonString(s string) error { // Predefined struct for user type CreateUDPListenersRequestParams struct { // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口列表 - Ports []*uint64 `json:"Ports,omitempty" name:"Ports"` + Ports []*uint64 `json:"Ports,omitnil" name:"Ports"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 监听器绑定源站类型。IP表示IP地址,DOMAIN表示域名。 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 源站端口列表,该参数仅支持v1版本监听器和通道组监听器 - RealServerPorts []*uint64 `json:"RealServerPorts,omitempty" name:"RealServerPorts"` + RealServerPorts []*uint64 `json:"RealServerPorts,omitnil" name:"RealServerPorts"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 - FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *int64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 源站是否开启健康检查:1开启,0关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // UDP源站健康类型。PORT表示检查端口,PING表示PING。 - CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + CheckType *string `json:"CheckType,omitnil" name:"CheckType"` // UDP源站健康检查探测端口。 - CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + CheckPort *int64 `json:"CheckPort,omitnil" name:"CheckPort"` // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 - ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + ContextType *string `json:"ContextType,omitnil" name:"ContextType"` // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 - SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + SendContext *string `json:"SendContext,omitnil" name:"SendContext"` // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 - RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` + RecvContext *string `json:"RecvContext,omitnil" name:"RecvContext"` } type CreateUDPListenersRequest struct { *tchttp.BaseRequest // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口列表 - Ports []*uint64 `json:"Ports,omitempty" name:"Ports"` + Ports []*uint64 `json:"Ports,omitnil" name:"Ports"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 监听器绑定源站类型。IP表示IP地址,DOMAIN表示域名。 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 源站端口列表,该参数仅支持v1版本监听器和通道组监听器 - RealServerPorts []*uint64 `json:"RealServerPorts,omitempty" name:"RealServerPorts"` + RealServerPorts []*uint64 `json:"RealServerPorts,omitnil" name:"RealServerPorts"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 - FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *int64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 源站是否开启健康检查:1开启,0关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // UDP源站健康类型。PORT表示检查端口,PING表示PING。 - CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + CheckType *string `json:"CheckType,omitnil" name:"CheckType"` // UDP源站健康检查探测端口。 - CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + CheckPort *int64 `json:"CheckPort,omitnil" name:"CheckPort"` // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 - ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + ContextType *string `json:"ContextType,omitnil" name:"ContextType"` // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 - SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + SendContext *string `json:"SendContext,omitnil" name:"SendContext"` // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 - RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` + RecvContext *string `json:"RecvContext,omitnil" name:"RecvContext"` } func (r *CreateUDPListenersRequest) ToJsonString() string { @@ -2513,10 +2513,10 @@ func (r *CreateUDPListenersRequest) FromJsonString(s string) error { // Predefined struct for user type CreateUDPListenersResponseParams struct { // 返回监听器ID - ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` + ListenerIds []*string `json:"ListenerIds,omitnil" name:"ListenerIds"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateUDPListenersResponse struct { @@ -2538,14 +2538,14 @@ func (r *CreateUDPListenersResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteCertificateRequestParams struct { // 需要删除的证书ID。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` } type DeleteCertificateRequest struct { *tchttp.BaseRequest // 需要删除的证书ID。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` } func (r *DeleteCertificateRequest) ToJsonString() string { @@ -2570,7 +2570,7 @@ func (r *DeleteCertificateRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteCertificateResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteCertificateResponse struct { @@ -2592,14 +2592,14 @@ func (r *DeleteCertificateResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteDomainErrorPageInfoRequestParams struct { // 定制错误响应页的唯一ID,请参考CreateDomainErrorPageInfo的响应 - ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` + ErrorPageId *string `json:"ErrorPageId,omitnil" name:"ErrorPageId"` } type DeleteDomainErrorPageInfoRequest struct { *tchttp.BaseRequest // 定制错误响应页的唯一ID,请参考CreateDomainErrorPageInfo的响应 - ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` + ErrorPageId *string `json:"ErrorPageId,omitnil" name:"ErrorPageId"` } func (r *DeleteDomainErrorPageInfoRequest) ToJsonString() string { @@ -2624,7 +2624,7 @@ func (r *DeleteDomainErrorPageInfoRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteDomainErrorPageInfoResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteDomainErrorPageInfoResponse struct { @@ -2646,28 +2646,28 @@ func (r *DeleteDomainErrorPageInfoResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteDomainRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 需要删除的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 是否强制删除已绑定源站的转发规则,0非强制,1强制。 // 当采用非强制删除时,如果域名下已有规则绑定了源站,则无法删除。 - Force *uint64 `json:"Force,omitempty" name:"Force"` + Force *uint64 `json:"Force,omitnil" name:"Force"` } type DeleteDomainRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 需要删除的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 是否强制删除已绑定源站的转发规则,0非强制,1强制。 // 当采用非强制删除时,如果域名下已有规则绑定了源站,则无法删除。 - Force *uint64 `json:"Force,omitempty" name:"Force"` + Force *uint64 `json:"Force,omitnil" name:"Force"` } func (r *DeleteDomainRequest) ToJsonString() string { @@ -2694,7 +2694,7 @@ func (r *DeleteDomainRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteDomainResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteDomainResponse struct { @@ -2716,14 +2716,14 @@ func (r *DeleteDomainResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteFirstLinkSessionRequestParams struct { // 单次加速唯一会话Id - SessionId *string `json:"SessionId,omitempty" name:"SessionId"` + SessionId *string `json:"SessionId,omitnil" name:"SessionId"` } type DeleteFirstLinkSessionRequest struct { *tchttp.BaseRequest // 单次加速唯一会话Id - SessionId *string `json:"SessionId,omitempty" name:"SessionId"` + SessionId *string `json:"SessionId,omitnil" name:"SessionId"` } func (r *DeleteFirstLinkSessionRequest) ToJsonString() string { @@ -2748,7 +2748,7 @@ func (r *DeleteFirstLinkSessionRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteFirstLinkSessionResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteFirstLinkSessionResponse struct { @@ -2770,14 +2770,14 @@ func (r *DeleteFirstLinkSessionResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteGlobalDomainDnsRequestParams struct { // 解析记录的ID - DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` + DnsRecordId *uint64 `json:"DnsRecordId,omitnil" name:"DnsRecordId"` } type DeleteGlobalDomainDnsRequest struct { *tchttp.BaseRequest // 解析记录的ID - DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` + DnsRecordId *uint64 `json:"DnsRecordId,omitnil" name:"DnsRecordId"` } func (r *DeleteGlobalDomainDnsRequest) ToJsonString() string { @@ -2802,7 +2802,7 @@ func (r *DeleteGlobalDomainDnsRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteGlobalDomainDnsResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteGlobalDomainDnsResponse struct { @@ -2824,14 +2824,14 @@ func (r *DeleteGlobalDomainDnsResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteGlobalDomainRequestParams struct { // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` } type DeleteGlobalDomainRequest struct { *tchttp.BaseRequest // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` } func (r *DeleteGlobalDomainRequest) ToJsonString() string { @@ -2856,7 +2856,7 @@ func (r *DeleteGlobalDomainRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteGlobalDomainResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteGlobalDomainResponse struct { @@ -2878,32 +2878,32 @@ func (r *DeleteGlobalDomainResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteListenersRequestParams struct { // 待删除的监听器ID列表 - ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` + ListenerIds []*string `json:"ListenerIds,omitnil" name:"ListenerIds"` // 已绑定源站的监听器是否允许强制删除,1:允许, 0:不允许 - Force *uint64 `json:"Force,omitempty" name:"Force"` + Force *uint64 `json:"Force,omitnil" name:"Force"` // 通道组ID,该参数和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道ID,该参数和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` } type DeleteListenersRequest struct { *tchttp.BaseRequest // 待删除的监听器ID列表 - ListenerIds []*string `json:"ListenerIds,omitempty" name:"ListenerIds"` + ListenerIds []*string `json:"ListenerIds,omitnil" name:"ListenerIds"` // 已绑定源站的监听器是否允许强制删除,1:允许, 0:不允许 - Force *uint64 `json:"Force,omitempty" name:"Force"` + Force *uint64 `json:"Force,omitnil" name:"Force"` // 通道组ID,该参数和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道ID,该参数和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` } func (r *DeleteListenersRequest) ToJsonString() string { @@ -2931,16 +2931,16 @@ func (r *DeleteListenersRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteListenersResponseParams struct { // 删除操作失败的监听器ID列表 - OperationFailedListenerSet []*string `json:"OperationFailedListenerSet,omitempty" name:"OperationFailedListenerSet"` + OperationFailedListenerSet []*string `json:"OperationFailedListenerSet,omitnil" name:"OperationFailedListenerSet"` // 删除操作成功的监听器ID列表 - OperationSucceedListenerSet []*string `json:"OperationSucceedListenerSet,omitempty" name:"OperationSucceedListenerSet"` + OperationSucceedListenerSet []*string `json:"OperationSucceedListenerSet,omitnil" name:"OperationSucceedListenerSet"` // 无效的监听器ID列表,如:监听器不存在,监听器对应实例不匹配 - InvalidStatusListenerSet []*string `json:"InvalidStatusListenerSet,omitempty" name:"InvalidStatusListenerSet"` + InvalidStatusListenerSet []*string `json:"InvalidStatusListenerSet,omitnil" name:"InvalidStatusListenerSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteListenersResponse struct { @@ -2962,26 +2962,26 @@ func (r *DeleteListenersResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteProxyGroupRequestParams struct { // 需要删除的通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 强制删除标识。其中: // 0,不强制删除, // 1,强制删除。 // 默认为0,当通道组中存在通道或通道组中存在监听器/规则绑定了源站时,且Force为0时,该操作会返回失败。 - Force *uint64 `json:"Force,omitempty" name:"Force"` + Force *uint64 `json:"Force,omitnil" name:"Force"` } type DeleteProxyGroupRequest struct { *tchttp.BaseRequest // 需要删除的通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 强制删除标识。其中: // 0,不强制删除, // 1,强制删除。 // 默认为0,当通道组中存在通道或通道组中存在监听器/规则绑定了源站时,且Force为0时,该操作会返回失败。 - Force *uint64 `json:"Force,omitempty" name:"Force"` + Force *uint64 `json:"Force,omitnil" name:"Force"` } func (r *DeleteProxyGroupRequest) ToJsonString() string { @@ -3007,7 +3007,7 @@ func (r *DeleteProxyGroupRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteProxyGroupResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteProxyGroupResponse struct { @@ -3029,26 +3029,26 @@ func (r *DeleteProxyGroupResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteRuleRequestParams struct { // 7层监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 转发规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 是否可以强制删除已绑定源站的转发规则,0非强制,1强制 - Force *uint64 `json:"Force,omitempty" name:"Force"` + Force *uint64 `json:"Force,omitnil" name:"Force"` } type DeleteRuleRequest struct { *tchttp.BaseRequest // 7层监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 转发规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 是否可以强制删除已绑定源站的转发规则,0非强制,1强制 - Force *uint64 `json:"Force,omitempty" name:"Force"` + Force *uint64 `json:"Force,omitnil" name:"Force"` } func (r *DeleteRuleRequest) ToJsonString() string { @@ -3075,7 +3075,7 @@ func (r *DeleteRuleRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteRuleResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteRuleResponse struct { @@ -3097,14 +3097,14 @@ func (r *DeleteRuleResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteSecurityPolicyRequestParams struct { // 策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } type DeleteSecurityPolicyRequest struct { *tchttp.BaseRequest // 策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } func (r *DeleteSecurityPolicyRequest) ToJsonString() string { @@ -3129,7 +3129,7 @@ func (r *DeleteSecurityPolicyRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteSecurityPolicyResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteSecurityPolicyResponse struct { @@ -3151,20 +3151,20 @@ func (r *DeleteSecurityPolicyResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteSecurityRulesRequestParams struct { // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 访问规则ID列表 - RuleIdList []*string `json:"RuleIdList,omitempty" name:"RuleIdList"` + RuleIdList []*string `json:"RuleIdList,omitnil" name:"RuleIdList"` } type DeleteSecurityRulesRequest struct { *tchttp.BaseRequest // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 访问规则ID列表 - RuleIdList []*string `json:"RuleIdList,omitempty" name:"RuleIdList"` + RuleIdList []*string `json:"RuleIdList,omitnil" name:"RuleIdList"` } func (r *DeleteSecurityRulesRequest) ToJsonString() string { @@ -3190,7 +3190,7 @@ func (r *DeleteSecurityRulesRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteSecurityRulesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteSecurityRulesResponse struct { @@ -3212,26 +3212,26 @@ func (r *DeleteSecurityRulesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeAccessRegionsByDestRegionRequestParams struct { // 源站区域:接口DescribeDestRegions返回DestRegionSet中的RegionId字段值 - DestRegion *string `json:"DestRegion,omitempty" name:"DestRegion"` + DestRegion *string `json:"DestRegion,omitnil" name:"DestRegion"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` } type DescribeAccessRegionsByDestRegionRequest struct { *tchttp.BaseRequest // 源站区域:接口DescribeDestRegions返回DestRegionSet中的RegionId字段值 - DestRegion *string `json:"DestRegion,omitempty" name:"DestRegion"` + DestRegion *string `json:"DestRegion,omitnil" name:"DestRegion"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` } func (r *DescribeAccessRegionsByDestRegionRequest) ToJsonString() string { @@ -3258,13 +3258,13 @@ func (r *DescribeAccessRegionsByDestRegionRequest) FromJsonString(s string) erro // Predefined struct for user type DescribeAccessRegionsByDestRegionResponseParams struct { // 可用加速区域数量 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // 可用加速区域信息列表 - AccessRegionSet []*AccessRegionDetial `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` + AccessRegionSet []*AccessRegionDetial `json:"AccessRegionSet,omitnil" name:"AccessRegionSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeAccessRegionsByDestRegionResponse struct { @@ -3315,13 +3315,13 @@ func (r *DescribeAccessRegionsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeAccessRegionsResponseParams struct { // 加速区域总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 加速区域详情列表 - AccessRegionSet []*RegionDetail `json:"AccessRegionSet,omitempty" name:"AccessRegionSet"` + AccessRegionSet []*RegionDetail `json:"AccessRegionSet,omitnil" name:"AccessRegionSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeAccessRegionsResponse struct { @@ -3340,6 +3340,57 @@ func (r *DescribeAccessRegionsResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeAuthSignatureRequestParams struct { + +} + +type DescribeAuthSignatureRequest struct { + *tchttp.BaseRequest + +} + +func (r *DescribeAuthSignatureRequest) 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 *DescribeAuthSignatureRequest) 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", "DescribeAuthSignatureRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeAuthSignatureResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeAuthSignatureResponse struct { + *tchttp.BaseResponse + Response *DescribeAuthSignatureResponseParams `json:"Response"` +} + +func (r *DescribeAuthSignatureResponse) 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 *DescribeAuthSignatureResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type DescribeBlackHeaderRequestParams struct { @@ -3373,10 +3424,10 @@ func (r *DescribeBlackHeaderRequest) FromJsonString(s string) error { type DescribeBlackHeaderResponseParams struct { // 禁用的自定义header列表 // 注意:此字段可能返回 null,表示取不到有效值。 - BlackHeaders []*string `json:"BlackHeaders,omitempty" name:"BlackHeaders"` + BlackHeaders []*string `json:"BlackHeaders,omitnil" name:"BlackHeaders"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeBlackHeaderResponse struct { @@ -3398,14 +3449,14 @@ func (r *DescribeBlackHeaderResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeCertificateDetailRequestParams struct { // 证书ID。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` } type DescribeCertificateDetailRequest struct { *tchttp.BaseRequest // 证书ID。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` } func (r *DescribeCertificateDetailRequest) ToJsonString() string { @@ -3430,10 +3481,10 @@ func (r *DescribeCertificateDetailRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeCertificateDetailResponseParams struct { // 证书详情。 - CertificateDetail *CertificateDetail `json:"CertificateDetail,omitempty" name:"CertificateDetail"` + CertificateDetail *CertificateDetail `json:"CertificateDetail,omitnil" name:"CertificateDetail"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeCertificateDetailResponse struct { @@ -3462,13 +3513,13 @@ type DescribeCertificatesRequestParams struct { // 4,表示通道SSL证书。 // -1,所有类型。 // 默认为-1。 - CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"` + CertificateType *int64 `json:"CertificateType,omitnil" name:"CertificateType"` // 偏移量,默认为0。 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` } type DescribeCertificatesRequest struct { @@ -3482,13 +3533,13 @@ type DescribeCertificatesRequest struct { // 4,表示通道SSL证书。 // -1,所有类型。 // 默认为-1。 - CertificateType *int64 `json:"CertificateType,omitempty" name:"CertificateType"` + CertificateType *int64 `json:"CertificateType,omitnil" name:"CertificateType"` // 偏移量,默认为0。 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` } func (r *DescribeCertificatesRequest) ToJsonString() string { @@ -3515,13 +3566,13 @@ func (r *DescribeCertificatesRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeCertificatesResponseParams struct { // 服务器证书列表,包括证书ID 和证书名称。 - CertificateSet []*Certificate `json:"CertificateSet,omitempty" name:"CertificateSet"` + CertificateSet []*Certificate `json:"CertificateSet,omitnil" name:"CertificateSet"` // 满足查询条件的服务器证书总数量。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeCertificatesResponse struct { @@ -3572,10 +3623,10 @@ func (r *DescribeCountryAreaMappingRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeCountryAreaMappingResponseParams struct { // 国家地区编码映射表。 - CountryAreaMappingList []*CountryAreaMap `json:"CountryAreaMappingList,omitempty" name:"CountryAreaMappingList"` + CountryAreaMappingList []*CountryAreaMap `json:"CountryAreaMappingList,omitnil" name:"CountryAreaMappingList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeCountryAreaMappingResponse struct { @@ -3626,7 +3677,7 @@ func (r *DescribeCrossBorderProxiesRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeCrossBorderProxiesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeCrossBorderProxiesResponse struct { @@ -3647,12 +3698,15 @@ func (r *DescribeCrossBorderProxiesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeCustomHeaderRequestParams struct { - + // 规则ID + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` } type DescribeCustomHeaderRequest struct { *tchttp.BaseRequest + // 规则ID + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` } func (r *DescribeCustomHeaderRequest) ToJsonString() string { @@ -3667,7 +3721,7 @@ func (r *DescribeCustomHeaderRequest) FromJsonString(s string) error { if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - + delete(f, "RuleId") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCustomHeaderRequest has unknown keys!", "") } @@ -3678,14 +3732,14 @@ func (r *DescribeCustomHeaderRequest) FromJsonString(s string) error { type DescribeCustomHeaderResponseParams struct { // 规则id // 注意:此字段可能返回 null,表示取不到有效值。 - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 自定义header列表 // 注意:此字段可能返回 null,表示取不到有效值。 - Headers []*HttpHeaderParam `json:"Headers,omitempty" name:"Headers"` + Headers []*HttpHeaderParam `json:"Headers,omitnil" name:"Headers"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeCustomHeaderResponse struct { @@ -3736,13 +3790,13 @@ func (r *DescribeDestRegionsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeDestRegionsResponseParams struct { // 源站区域总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 源站区域详情列表 - DestRegionSet []*RegionDetail `json:"DestRegionSet,omitempty" name:"DestRegionSet"` + DestRegionSet []*RegionDetail `json:"DestRegionSet,omitnil" name:"DestRegionSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeDestRegionsResponse struct { @@ -3764,14 +3818,14 @@ func (r *DescribeDestRegionsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeDomainErrorPageInfoByIdsRequestParams struct { // 定制错误ID列表,最多支持10个 - ErrorPageIds []*string `json:"ErrorPageIds,omitempty" name:"ErrorPageIds"` + ErrorPageIds []*string `json:"ErrorPageIds,omitnil" name:"ErrorPageIds"` } type DescribeDomainErrorPageInfoByIdsRequest struct { *tchttp.BaseRequest // 定制错误ID列表,最多支持10个 - ErrorPageIds []*string `json:"ErrorPageIds,omitempty" name:"ErrorPageIds"` + ErrorPageIds []*string `json:"ErrorPageIds,omitnil" name:"ErrorPageIds"` } func (r *DescribeDomainErrorPageInfoByIdsRequest) ToJsonString() string { @@ -3797,10 +3851,10 @@ func (r *DescribeDomainErrorPageInfoByIdsRequest) FromJsonString(s string) error type DescribeDomainErrorPageInfoByIdsResponseParams struct { // 定制错误响应配置集 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrorPageSet []*DomainErrorPageInfo `json:"ErrorPageSet,omitempty" name:"ErrorPageSet"` + ErrorPageSet []*DomainErrorPageInfo `json:"ErrorPageSet,omitnil" name:"ErrorPageSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeDomainErrorPageInfoByIdsResponse struct { @@ -3822,20 +3876,20 @@ func (r *DescribeDomainErrorPageInfoByIdsResponse) FromJsonString(s string) erro // Predefined struct for user type DescribeDomainErrorPageInfoRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` } type DescribeDomainErrorPageInfoRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` } func (r *DescribeDomainErrorPageInfoRequest) ToJsonString() string { @@ -3862,10 +3916,10 @@ func (r *DescribeDomainErrorPageInfoRequest) FromJsonString(s string) error { type DescribeDomainErrorPageInfoResponseParams struct { // 定制错误响应配置集 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrorPageSet []*DomainErrorPageInfo `json:"ErrorPageSet,omitempty" name:"ErrorPageSet"` + ErrorPageSet []*DomainErrorPageInfo `json:"ErrorPageSet,omitnil" name:"ErrorPageSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeDomainErrorPageInfoResponse struct { @@ -3887,14 +3941,14 @@ func (r *DescribeDomainErrorPageInfoResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeFirstLinkSessionRequestParams struct { // 单次加速唯一会话Id - SessionId *string `json:"SessionId,omitempty" name:"SessionId"` + SessionId *string `json:"SessionId,omitnil" name:"SessionId"` } type DescribeFirstLinkSessionRequest struct { *tchttp.BaseRequest // 单次加速唯一会话Id - SessionId *string `json:"SessionId,omitempty" name:"SessionId"` + SessionId *string `json:"SessionId,omitnil" name:"SessionId"` } func (r *DescribeFirstLinkSessionRequest) ToJsonString() string { @@ -3922,11 +3976,11 @@ type DescribeFirstLinkSessionResponseParams struct { // 1: 加速中; // 0: 非加速中。 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` // 剩余加速时间,单位秒。 // 注意:此字段可能返回 null,表示取不到有效值。 - Duration *int64 `json:"Duration,omitempty" name:"Duration"` + Duration *int64 `json:"Duration,omitnil" name:"Duration"` // 加速套餐类型。 // 套餐说明如下: @@ -3934,18 +3988,18 @@ type DescribeFirstLinkSessionResponseParams struct { // BD4M:下行带宽保障4Mbps; // BU4M:上行带宽保障4Mbps。 // 注意:此字段可能返回 null,表示取不到有效值。 - SuiteType *string `json:"SuiteType,omitempty" name:"SuiteType"` + SuiteType *string `json:"SuiteType,omitnil" name:"SuiteType"` // 加速终端的公网ip // 注意:此字段可能返回 null,表示取不到有效值。 - SrcPublicIpv4 *string `json:"SrcPublicIpv4,omitempty" name:"SrcPublicIpv4"` + SrcPublicIpv4 *string `json:"SrcPublicIpv4,omitnil" name:"SrcPublicIpv4"` // 加速目标ip // 注意:此字段可能返回 null,表示取不到有效值。 - DestIpv4 []*string `json:"DestIpv4,omitempty" name:"DestIpv4"` + DestIpv4 []*string `json:"DestIpv4,omitnil" name:"DestIpv4"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeFirstLinkSessionResponse struct { @@ -3967,14 +4021,14 @@ func (r *DescribeFirstLinkSessionResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeGlobalDomainDnsRequestParams struct { // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` } type DescribeGlobalDomainDnsRequest struct { *tchttp.BaseRequest // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` } func (r *DescribeGlobalDomainDnsRequest) ToJsonString() string { @@ -3999,10 +4053,10 @@ func (r *DescribeGlobalDomainDnsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeGlobalDomainDnsResponseParams struct { // DNS解析记录详细信息列表 - GlobalDnsList []*GlobalDns `json:"GlobalDnsList,omitempty" name:"GlobalDnsList"` + GlobalDnsList []*GlobalDns `json:"GlobalDnsList,omitnil" name:"GlobalDnsList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeGlobalDomainDnsResponse struct { @@ -4024,40 +4078,40 @@ func (r *DescribeGlobalDomainDnsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeGlobalDomainsRequestParams struct { // 项目ID - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 分页偏移量 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 分页数量限制 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件 - Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + Filters []*Filter `json:"Filters,omitnil" name:"Filters"` // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,域名会被拉取出来。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } type DescribeGlobalDomainsRequest struct { *tchttp.BaseRequest // 项目ID - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 分页偏移量 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 分页数量限制 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件 - Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + Filters []*Filter `json:"Filters,omitnil" name:"Filters"` // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,域名会被拉取出来。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } func (r *DescribeGlobalDomainsRequest) ToJsonString() string { @@ -4086,13 +4140,13 @@ func (r *DescribeGlobalDomainsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeGlobalDomainsResponseParams struct { // 域名信息列表 - Domains []*Domain `json:"Domains,omitempty" name:"Domains"` + Domains []*Domain `json:"Domains,omitnil" name:"Domains"` // 总记录数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeGlobalDomainsResponse struct { @@ -4114,14 +4168,14 @@ func (r *DescribeGlobalDomainsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeGroupAndStatisticsProxyRequestParams struct { // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` } type DescribeGroupAndStatisticsProxyRequest struct { *tchttp.BaseRequest // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` } func (r *DescribeGroupAndStatisticsProxyRequest) ToJsonString() string { @@ -4146,13 +4200,13 @@ func (r *DescribeGroupAndStatisticsProxyRequest) FromJsonString(s string) error // Predefined struct for user type DescribeGroupAndStatisticsProxyResponseParams struct { // 可以统计的通道组信息 - GroupSet []*GroupStatisticsInfo `json:"GroupSet,omitempty" name:"GroupSet"` + GroupSet []*GroupStatisticsInfo `json:"GroupSet,omitnil" name:"GroupSet"` // 通道组数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeGroupAndStatisticsProxyResponse struct { @@ -4174,14 +4228,14 @@ func (r *DescribeGroupAndStatisticsProxyResponse) FromJsonString(s string) error // Predefined struct for user type DescribeGroupDomainConfigRequestParams struct { // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type DescribeGroupDomainConfigRequest struct { *tchttp.BaseRequest // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } func (r *DescribeGroupDomainConfigRequest) ToJsonString() string { @@ -4206,19 +4260,19 @@ func (r *DescribeGroupDomainConfigRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeGroupDomainConfigResponseParams struct { // 域名解析就近接入配置列表。 - AccessRegionList []*DomainAccessRegionDict `json:"AccessRegionList,omitempty" name:"AccessRegionList"` + AccessRegionList []*DomainAccessRegionDict `json:"AccessRegionList,omitnil" name:"AccessRegionList"` // 默认访问Ip。 - DefaultDnsIp *string `json:"DefaultDnsIp,omitempty" name:"DefaultDnsIp"` + DefaultDnsIp *string `json:"DefaultDnsIp,omitnil" name:"DefaultDnsIp"` // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 接入地域的配置的总数。 - AccessRegionCount *int64 `json:"AccessRegionCount,omitempty" name:"AccessRegionCount"` + AccessRegionCount *int64 `json:"AccessRegionCount,omitnil" name:"AccessRegionCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeGroupDomainConfigResponse struct { @@ -4240,56 +4294,56 @@ func (r *DescribeGroupDomainConfigResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeHTTPListenersRequestParams struct { // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 过滤条件,按照监听器ID进行精确查询 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 过滤条件,按照监听器名称进行精确查询 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 过滤条件,按照监听器端口进行精确查询 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 偏移量,默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20个 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type DescribeHTTPListenersRequest struct { *tchttp.BaseRequest // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 过滤条件,按照监听器ID进行精确查询 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 过滤条件,按照监听器名称进行精确查询 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 过滤条件,按照监听器端口进行精确查询 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 偏移量,默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20个 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } func (r *DescribeHTTPListenersRequest) ToJsonString() string { @@ -4321,13 +4375,13 @@ func (r *DescribeHTTPListenersRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeHTTPListenersResponseParams struct { // 监听器数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // HTTP监听器列表 - ListenerSet []*HTTPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` + ListenerSet []*HTTPListener `json:"ListenerSet,omitnil" name:"ListenerSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeHTTPListenersResponse struct { @@ -4349,70 +4403,70 @@ func (r *DescribeHTTPListenersResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeHTTPSListenersRequestParams struct { // 过滤条件,通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 过滤条件,根据监听器ID进行精确查询。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 过滤条件,根据监听器名称进行精确查询。 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 过滤条件,根据监听器端口进行精确查询。 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 偏移量, 默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件,支持按照端口或监听器名称进行模糊查询 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` // 过滤条件,通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 支持Http3的开关,其中: // 0,表示不需要支持Http3接入; // 1,表示需要支持Http3接入。 // 注意:如果支持了Http3的功能,那么该监听器会占用对应的UDP接入端口,不可再创建相同端口的UDP监听器。 // 该功能的启停无法在监听器创建完毕后再修改。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } type DescribeHTTPSListenersRequest struct { *tchttp.BaseRequest // 过滤条件,通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 过滤条件,根据监听器ID进行精确查询。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 过滤条件,根据监听器名称进行精确查询。 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 过滤条件,根据监听器端口进行精确查询。 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 偏移量, 默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件,支持按照端口或监听器名称进行模糊查询 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` // 过滤条件,通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 支持Http3的开关,其中: // 0,表示不需要支持Http3接入; // 1,表示需要支持Http3接入。 // 注意:如果支持了Http3的功能,那么该监听器会占用对应的UDP接入端口,不可再创建相同端口的UDP监听器。 // 该功能的启停无法在监听器创建完毕后再修改。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } func (r *DescribeHTTPSListenersRequest) ToJsonString() string { @@ -4445,13 +4499,13 @@ func (r *DescribeHTTPSListenersRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeHTTPSListenersResponseParams struct { // 监听器数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // HTTPS监听器列表 - ListenerSet []*HTTPSListener `json:"ListenerSet,omitempty" name:"ListenerSet"` + ListenerSet []*HTTPSListener `json:"ListenerSet,omitnil" name:"ListenerSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeHTTPSListenersResponse struct { @@ -4473,14 +4527,14 @@ func (r *DescribeHTTPSListenersResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeListenerRealServersRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` } type DescribeListenerRealServersRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` } func (r *DescribeListenerRealServersRequest) ToJsonString() string { @@ -4505,19 +4559,19 @@ func (r *DescribeListenerRealServersRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeListenerRealServersResponseParams struct { // 可绑定源站的个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 源站信息列表 - RealServerSet []*RealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + RealServerSet []*RealServer `json:"RealServerSet,omitnil" name:"RealServerSet"` // 已绑定源站的个数 - BindRealServerTotalCount *uint64 `json:"BindRealServerTotalCount,omitempty" name:"BindRealServerTotalCount"` + BindRealServerTotalCount *uint64 `json:"BindRealServerTotalCount,omitnil" name:"BindRealServerTotalCount"` // 已绑定源站信息列表 - BindRealServerSet []*BindRealServer `json:"BindRealServerSet,omitempty" name:"BindRealServerSet"` + BindRealServerSet []*BindRealServer `json:"BindRealServerSet,omitnil" name:"BindRealServerSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeListenerRealServersResponse struct { @@ -4539,44 +4593,44 @@ func (r *DescribeListenerRealServersResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeListenerStatisticsRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 起始时间 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间 - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets。 - MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + MetricNames []*string `json:"MetricNames,omitnil" name:"MetricNames"` // 监控粒度,目前支持300,3600,86400,单位:秒。 // 查询时间范围不超过1天,支持最小粒度300秒; // 查询间范围不超过7天,支持最小粒度3600秒; // 查询间范围超过7天,支持最小粒度86400秒。 - Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + Granularity *uint64 `json:"Granularity,omitnil" name:"Granularity"` } type DescribeListenerStatisticsRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 起始时间 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间 - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets。 - MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + MetricNames []*string `json:"MetricNames,omitnil" name:"MetricNames"` // 监控粒度,目前支持300,3600,86400,单位:秒。 // 查询时间范围不超过1天,支持最小粒度300秒; // 查询间范围不超过7天,支持最小粒度3600秒; // 查询间范围超过7天,支持最小粒度86400秒。 - Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + Granularity *uint64 `json:"Granularity,omitnil" name:"Granularity"` } func (r *DescribeListenerStatisticsRequest) ToJsonString() string { @@ -4605,10 +4659,10 @@ func (r *DescribeListenerStatisticsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeListenerStatisticsResponseParams struct { // 通道组统计数据 - StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` + StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitnil" name:"StatisticsData"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeListenerStatisticsResponse struct { @@ -4630,13 +4684,13 @@ func (r *DescribeListenerStatisticsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeProxiesRequestParams struct { // (旧参数,请切换到ProxyIds)按照一个或者多个实例ID查询。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 偏移量,默认为0。 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 返回数量,默认为20,最大值为100。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件。 // 每次请求的Filters的上限为10,Filter.Values的上限为5。参数不支持同时指定InstanceIds和Filters。 @@ -4646,25 +4700,25 @@ type DescribeProxiesRequestParams struct { // GroupId - String - 是否必填:否 - (过滤条件)按照通道组ID过滤。 // IPAddressVersion - String - 是否必填:否 - (过滤条件)按照IP版本过滤。 // PackageType - String - 是否必填:否 - (过滤条件)按照通道套餐类型过滤。 - Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + Filters []*Filter `json:"Filters,omitnil" name:"Filters"` // (新参数,替代InstanceIds)按照一个或者多个实例ID查询。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,通道会被拉取出来。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 当该字段为1时,仅拉取非通道组的通道, // 当该字段为0时,仅拉取通道组的通道, // 不存在该字段时,拉取所有通道,包括独立通道和通道组通道。 - Independent *int64 `json:"Independent,omitempty" name:"Independent"` + Independent *int64 `json:"Independent,omitnil" name:"Independent"` // 输出通道列表的排列顺序。取值范围: // asc:升序排列; // desc:降序排列。 // 默认为降序。 - Order *string `json:"Order,omitempty" name:"Order"` + Order *string `json:"Order,omitnil" name:"Order"` // 通道列表排序的依据字段。取值范围: // create_time:依据通道的创建时间排序; @@ -4672,20 +4726,20 @@ type DescribeProxiesRequestParams struct { // bandwidth:依据通道带宽上限排序; // concurrent_connections:依据通道并发排序; // 默认按通道创建时间排序。 - OrderField *string `json:"OrderField,omitempty" name:"OrderField"` + OrderField *string `json:"OrderField,omitnil" name:"OrderField"` } type DescribeProxiesRequest struct { *tchttp.BaseRequest // (旧参数,请切换到ProxyIds)按照一个或者多个实例ID查询。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 偏移量,默认为0。 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 返回数量,默认为20,最大值为100。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件。 // 每次请求的Filters的上限为10,Filter.Values的上限为5。参数不支持同时指定InstanceIds和Filters。 @@ -4695,25 +4749,25 @@ type DescribeProxiesRequest struct { // GroupId - String - 是否必填:否 - (过滤条件)按照通道组ID过滤。 // IPAddressVersion - String - 是否必填:否 - (过滤条件)按照IP版本过滤。 // PackageType - String - 是否必填:否 - (过滤条件)按照通道套餐类型过滤。 - Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + Filters []*Filter `json:"Filters,omitnil" name:"Filters"` // (新参数,替代InstanceIds)按照一个或者多个实例ID查询。每次请求的实例的上限为100。参数不支持同时指定InstanceIds和Filters。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,通道会被拉取出来。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 当该字段为1时,仅拉取非通道组的通道, // 当该字段为0时,仅拉取通道组的通道, // 不存在该字段时,拉取所有通道,包括独立通道和通道组通道。 - Independent *int64 `json:"Independent,omitempty" name:"Independent"` + Independent *int64 `json:"Independent,omitnil" name:"Independent"` // 输出通道列表的排列顺序。取值范围: // asc:升序排列; // desc:降序排列。 // 默认为降序。 - Order *string `json:"Order,omitempty" name:"Order"` + Order *string `json:"Order,omitnil" name:"Order"` // 通道列表排序的依据字段。取值范围: // create_time:依据通道的创建时间排序; @@ -4721,7 +4775,7 @@ type DescribeProxiesRequest struct { // bandwidth:依据通道带宽上限排序; // concurrent_connections:依据通道并发排序; // 默认按通道创建时间排序。 - OrderField *string `json:"OrderField,omitempty" name:"OrderField"` + OrderField *string `json:"OrderField,omitnil" name:"OrderField"` } func (r *DescribeProxiesRequest) ToJsonString() string { @@ -4754,16 +4808,16 @@ func (r *DescribeProxiesRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeProxiesResponseParams struct { // 通道个数。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // (旧参数,请切换到ProxySet)通道实例信息列表。 - InstanceSet []*ProxyInfo `json:"InstanceSet,omitempty" name:"InstanceSet"` + InstanceSet []*ProxyInfo `json:"InstanceSet,omitnil" name:"InstanceSet"` // (新参数)通道实例信息列表。 - ProxySet []*ProxyInfo `json:"ProxySet,omitempty" name:"ProxySet"` + ProxySet []*ProxyInfo `json:"ProxySet,omitnil" name:"ProxySet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeProxiesResponse struct { @@ -4785,20 +4839,20 @@ func (r *DescribeProxiesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeProxiesStatusRequestParams struct { // (旧参数,请切换到ProxyIds)通道ID列表。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // (新参数)通道ID列表。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } type DescribeProxiesStatusRequest struct { *tchttp.BaseRequest // (旧参数,请切换到ProxyIds)通道ID列表。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // (新参数)通道ID列表。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } func (r *DescribeProxiesStatusRequest) ToJsonString() string { @@ -4824,10 +4878,10 @@ func (r *DescribeProxiesStatusRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeProxiesStatusResponseParams struct { // 通道状态列表。 - InstanceStatusSet []*ProxyStatus `json:"InstanceStatusSet,omitempty" name:"InstanceStatusSet"` + InstanceStatusSet []*ProxyStatus `json:"InstanceStatusSet,omitnil" name:"InstanceStatusSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeProxiesStatusResponse struct { @@ -4849,14 +4903,14 @@ func (r *DescribeProxiesStatusResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyAndStatisticsListenersRequestParams struct { // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` } type DescribeProxyAndStatisticsListenersRequest struct { *tchttp.BaseRequest // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` } func (r *DescribeProxyAndStatisticsListenersRequest) ToJsonString() string { @@ -4881,13 +4935,13 @@ func (r *DescribeProxyAndStatisticsListenersRequest) FromJsonString(s string) er // Predefined struct for user type DescribeProxyAndStatisticsListenersResponseParams struct { // 可以统计的通道信息 - ProxySet []*ProxySimpleInfo `json:"ProxySet,omitempty" name:"ProxySet"` + ProxySet []*ProxySimpleInfo `json:"ProxySet,omitnil" name:"ProxySet"` // 通道数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeProxyAndStatisticsListenersResponse struct { @@ -4909,14 +4963,14 @@ func (r *DescribeProxyAndStatisticsListenersResponse) FromJsonString(s string) e // Predefined struct for user type DescribeProxyDetailRequestParams struct { // 需查询的通道ID。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` } type DescribeProxyDetailRequest struct { *tchttp.BaseRequest // 需查询的通道ID。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` } func (r *DescribeProxyDetailRequest) ToJsonString() string { @@ -4941,10 +4995,10 @@ func (r *DescribeProxyDetailRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyDetailResponseParams struct { // 通道详情信息。 - ProxyDetail *ProxyInfo `json:"ProxyDetail,omitempty" name:"ProxyDetail"` + ProxyDetail *ProxyInfo `json:"ProxyDetail,omitnil" name:"ProxyDetail"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeProxyDetailResponse struct { @@ -4966,14 +5020,14 @@ func (r *DescribeProxyDetailResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyGroupDetailsRequestParams struct { // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type DescribeProxyGroupDetailsRequest struct { *tchttp.BaseRequest // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } func (r *DescribeProxyGroupDetailsRequest) ToJsonString() string { @@ -4998,10 +5052,10 @@ func (r *DescribeProxyGroupDetailsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyGroupDetailsResponseParams struct { // 通道组详细信息。 - ProxyGroupDetail *ProxyGroupDetail `json:"ProxyGroupDetail,omitempty" name:"ProxyGroupDetail"` + ProxyGroupDetail *ProxyGroupDetail `json:"ProxyGroupDetail,omitnil" name:"ProxyGroupDetail"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeProxyGroupDetailsResponse struct { @@ -5023,52 +5077,52 @@ func (r *DescribeProxyGroupDetailsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyGroupListRequestParams struct { // 偏移量,默认值为0。 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` + Offset *int64 `json:"Offset,omitnil" name:"Offset"` // 返回数量,默认值为20,最大值为100。 - Limit *int64 `json:"Limit,omitempty" name:"Limit"` + Limit *int64 `json:"Limit,omitnil" name:"Limit"` // 项目ID。取值范围: // -1,该用户下所有项目 // 0,默认项目 // 其他值,指定的项目 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 过滤条件。 // 每次请求的Filter.Values的上限为5。 // RealServerRegion - String - 是否必填:否 -(过滤条件)按照源站地域过滤,可参考DescribeDestRegions接口返回结果中的RegionId。 // PackageType - String - 是否必填:否 - (过滤条件)通道组类型,Thunder表示标准通道组,Accelerator表示银牌加速通道组。 - Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + Filters []*Filter `json:"Filters,omitnil" name:"Filters"` // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,该通道组会被拉取出来。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } type DescribeProxyGroupListRequest struct { *tchttp.BaseRequest // 偏移量,默认值为0。 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` + Offset *int64 `json:"Offset,omitnil" name:"Offset"` // 返回数量,默认值为20,最大值为100。 - Limit *int64 `json:"Limit,omitempty" name:"Limit"` + Limit *int64 `json:"Limit,omitnil" name:"Limit"` // 项目ID。取值范围: // -1,该用户下所有项目 // 0,默认项目 // 其他值,指定的项目 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 过滤条件。 // 每次请求的Filter.Values的上限为5。 // RealServerRegion - String - 是否必填:否 -(过滤条件)按照源站地域过滤,可参考DescribeDestRegions接口返回结果中的RegionId。 // PackageType - String - 是否必填:否 - (过滤条件)通道组类型,Thunder表示标准通道组,Accelerator表示银牌加速通道组。 - Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + Filters []*Filter `json:"Filters,omitnil" name:"Filters"` // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,该通道组会被拉取出来。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` } func (r *DescribeProxyGroupListRequest) ToJsonString() string { @@ -5097,14 +5151,14 @@ func (r *DescribeProxyGroupListRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyGroupListResponseParams struct { // 通道组总数。 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // 通道组列表。 // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyGroupList []*ProxyGroupInfo `json:"ProxyGroupList,omitempty" name:"ProxyGroupList"` + ProxyGroupList []*ProxyGroupInfo `json:"ProxyGroupList,omitnil" name:"ProxyGroupList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeProxyGroupListResponse struct { @@ -5126,44 +5180,44 @@ func (r *DescribeProxyGroupListResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyGroupStatisticsRequestParams struct { // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 起始时间 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间 - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets - MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + MetricNames []*string `json:"MetricNames,omitnil" name:"MetricNames"` // 监控粒度,目前支持60,300,3600,86400,单位:秒。 // 当时间范围不超过1天,支持最小粒度60秒; // 当时间范围不超过7天,支持最小粒度3600秒; // 当时间范围不超过30天,支持最小粒度86400秒。 - Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + Granularity *uint64 `json:"Granularity,omitnil" name:"Granularity"` } type DescribeProxyGroupStatisticsRequest struct { *tchttp.BaseRequest // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 起始时间 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间 - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets - MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + MetricNames []*string `json:"MetricNames,omitnil" name:"MetricNames"` // 监控粒度,目前支持60,300,3600,86400,单位:秒。 // 当时间范围不超过1天,支持最小粒度60秒; // 当时间范围不超过7天,支持最小粒度3600秒; // 当时间范围不超过30天,支持最小粒度86400秒。 - Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + Granularity *uint64 `json:"Granularity,omitnil" name:"Granularity"` } func (r *DescribeProxyGroupStatisticsRequest) ToJsonString() string { @@ -5192,10 +5246,10 @@ func (r *DescribeProxyGroupStatisticsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyGroupStatisticsResponseParams struct { // 通道组统计数据 - StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` + StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitnil" name:"StatisticsData"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeProxyGroupStatisticsResponse struct { @@ -5217,50 +5271,50 @@ func (r *DescribeProxyGroupStatisticsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyStatisticsRequestParams struct { // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 起始时间(2019-03-25 12:00:00) - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间(2019-03-25 12:00:00) - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets, 丢包率:PacketLoss, 延迟:Latency,http请求量:HttpQPS, Https请求量:HttpsQPS - MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + MetricNames []*string `json:"MetricNames,omitnil" name:"MetricNames"` // 监控粒度,目前支持60,300,3600,86400,单位:秒。 // 当时间范围不超过3天,支持最小粒度60秒; // 当时间范围不超过7天,支持最小粒度300秒; // 当时间范围不超过30天,支持最小粒度3600秒。 - Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + Granularity *uint64 `json:"Granularity,omitnil" name:"Granularity"` // 运营商(通道为三网通道时有效),支持CMCC,CUCC,CTCC,传空值或不传则合并三个运营商数据 - Isp *string `json:"Isp,omitempty" name:"Isp"` + Isp *string `json:"Isp,omitnil" name:"Isp"` } type DescribeProxyStatisticsRequest struct { *tchttp.BaseRequest // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 起始时间(2019-03-25 12:00:00) - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间(2019-03-25 12:00:00) - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 统计指标名称列表,支持: 入带宽:InBandwidth, 出带宽:OutBandwidth, 并发:Concurrent, 入包量:InPackets, 出包量:OutPackets, 丢包率:PacketLoss, 延迟:Latency,http请求量:HttpQPS, Https请求量:HttpsQPS - MetricNames []*string `json:"MetricNames,omitempty" name:"MetricNames"` + MetricNames []*string `json:"MetricNames,omitnil" name:"MetricNames"` // 监控粒度,目前支持60,300,3600,86400,单位:秒。 // 当时间范围不超过3天,支持最小粒度60秒; // 当时间范围不超过7天,支持最小粒度300秒; // 当时间范围不超过30天,支持最小粒度3600秒。 - Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + Granularity *uint64 `json:"Granularity,omitnil" name:"Granularity"` // 运营商(通道为三网通道时有效),支持CMCC,CUCC,CTCC,传空值或不传则合并三个运营商数据 - Isp *string `json:"Isp,omitempty" name:"Isp"` + Isp *string `json:"Isp,omitnil" name:"Isp"` } func (r *DescribeProxyStatisticsRequest) ToJsonString() string { @@ -5290,10 +5344,10 @@ func (r *DescribeProxyStatisticsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeProxyStatisticsResponseParams struct { // 通道统计数据 - StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` + StatisticsData []*MetricStatisticsInfo `json:"StatisticsData,omitnil" name:"StatisticsData"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeProxyStatisticsResponse struct { @@ -5315,50 +5369,50 @@ func (r *DescribeProxyStatisticsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeRealServerStatisticsRequestParams struct { // 源站ID - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // L7层规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 统计时长,单位:小时。仅支持最近1,3,6,12,24小时的统计查询 - WithinTime *uint64 `json:"WithinTime,omitempty" name:"WithinTime"` + WithinTime *uint64 `json:"WithinTime,omitnil" name:"WithinTime"` // 统计开始时间(2020-08-19 00:00:00) - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 统计结束时间(2020-08-19 23:59:59) - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 统计的数据粒度,单位:秒,仅支持1分钟-60和5分钟-300粒度 - Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + Granularity *uint64 `json:"Granularity,omitnil" name:"Granularity"` } type DescribeRealServerStatisticsRequest struct { *tchttp.BaseRequest // 源站ID - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // L7层规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 统计时长,单位:小时。仅支持最近1,3,6,12,24小时的统计查询 - WithinTime *uint64 `json:"WithinTime,omitempty" name:"WithinTime"` + WithinTime *uint64 `json:"WithinTime,omitnil" name:"WithinTime"` // 统计开始时间(2020-08-19 00:00:00) - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 统计结束时间(2020-08-19 23:59:59) - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 统计的数据粒度,单位:秒,仅支持1分钟-60和5分钟-300粒度 - Granularity *uint64 `json:"Granularity,omitempty" name:"Granularity"` + Granularity *uint64 `json:"Granularity,omitnil" name:"Granularity"` } func (r *DescribeRealServerStatisticsRequest) ToJsonString() string { @@ -5389,13 +5443,13 @@ func (r *DescribeRealServerStatisticsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeRealServerStatisticsResponseParams struct { // 指定监听器的源站状态统计数据 - StatisticsData []*StatisticsDataInfo `json:"StatisticsData,omitempty" name:"StatisticsData"` + StatisticsData []*StatisticsDataInfo `json:"StatisticsData,omitnil" name:"StatisticsData"` // 多个源站状态统计数据 - RsStatisticsData []*MetricStatisticsInfo `json:"RsStatisticsData,omitempty" name:"RsStatisticsData"` + RsStatisticsData []*MetricStatisticsInfo `json:"RsStatisticsData,omitnil" name:"RsStatisticsData"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeRealServerStatisticsResponse struct { @@ -5417,46 +5471,46 @@ func (r *DescribeRealServerStatisticsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeRealServersRequestParams struct { // 查询源站的所属项目ID,-1表示所有项目 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 需要查询的源站IP或域名,支持模糊匹配 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` // 偏移量,默认值是0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 返回数量,默认为20个,最大值为50个 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,源站会被拉取出来。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 过滤条件。filter的name取值(RealServerName,RealServerIP) - Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + Filters []*Filter `json:"Filters,omitnil" name:"Filters"` } type DescribeRealServersRequest struct { *tchttp.BaseRequest // 查询源站的所属项目ID,-1表示所有项目 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 需要查询的源站IP或域名,支持模糊匹配 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` // 偏移量,默认值是0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 返回数量,默认为20个,最大值为50个 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 标签列表,当存在该字段时,拉取对应标签下的资源列表。 // 最多支持5个标签,当存在两个或两个以上的标签时,满足其中任意一个标签时,源站会被拉取出来。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 过滤条件。filter的name取值(RealServerName,RealServerIP) - Filters []*Filter `json:"Filters,omitempty" name:"Filters"` + Filters []*Filter `json:"Filters,omitnil" name:"Filters"` } func (r *DescribeRealServersRequest) ToJsonString() string { @@ -5486,13 +5540,13 @@ func (r *DescribeRealServersRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeRealServersResponseParams struct { // 源站信息列表 - RealServerSet []*BindRealServerInfo `json:"RealServerSet,omitempty" name:"RealServerSet"` + RealServerSet []*BindRealServerInfo `json:"RealServerSet,omitnil" name:"RealServerSet"` // 查询得到的源站数量 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeRealServersResponse struct { @@ -5514,14 +5568,14 @@ func (r *DescribeRealServersResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeRealServersStatusRequestParams struct { // 源站ID列表 - RealServerIds []*string `json:"RealServerIds,omitempty" name:"RealServerIds"` + RealServerIds []*string `json:"RealServerIds,omitnil" name:"RealServerIds"` } type DescribeRealServersStatusRequest struct { *tchttp.BaseRequest // 源站ID列表 - RealServerIds []*string `json:"RealServerIds,omitempty" name:"RealServerIds"` + RealServerIds []*string `json:"RealServerIds,omitnil" name:"RealServerIds"` } func (r *DescribeRealServersStatusRequest) ToJsonString() string { @@ -5546,13 +5600,13 @@ func (r *DescribeRealServersStatusRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeRealServersStatusResponseParams struct { // 返回源站查询结果的个数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // 源站被绑定状态列表 - RealServerStatusSet []*RealServerStatus `json:"RealServerStatusSet,omitempty" name:"RealServerStatusSet"` + RealServerStatusSet []*RealServerStatus `json:"RealServerStatusSet,omitnil" name:"RealServerStatusSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeRealServersStatusResponse struct { @@ -5574,20 +5628,20 @@ func (r *DescribeRealServersStatusResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeRegionAndPriceRequestParams struct { // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` } type DescribeRegionAndPriceRequest struct { *tchttp.BaseRequest // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` } func (r *DescribeRegionAndPriceRequest) ToJsonString() string { @@ -5613,21 +5667,21 @@ func (r *DescribeRegionAndPriceRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeRegionAndPriceResponseParams struct { // 源站区域总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 源站区域详情列表 - DestRegionSet []*RegionDetail `json:"DestRegionSet,omitempty" name:"DestRegionSet"` + DestRegionSet []*RegionDetail `json:"DestRegionSet,omitnil" name:"DestRegionSet"` // 通道带宽费用梯度价格 - BandwidthUnitPrice []*BandwidthPriceGradient `json:"BandwidthUnitPrice,omitempty" name:"BandwidthUnitPrice"` + BandwidthUnitPrice []*BandwidthPriceGradient `json:"BandwidthUnitPrice,omitnil" name:"BandwidthUnitPrice"` // 带宽价格货币类型: // CNY 人民币 // USD 美元 - Currency *string `json:"Currency,omitempty" name:"Currency"` + Currency *string `json:"Currency,omitnil" name:"Currency"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeRegionAndPriceResponse struct { @@ -5649,34 +5703,34 @@ func (r *DescribeRegionAndPriceResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeResourcesByTagRequestParams struct { // 标签键。 - TagKey *string `json:"TagKey,omitempty" name:"TagKey"` + TagKey *string `json:"TagKey,omitnil" name:"TagKey"` // 标签值。 - TagValue *string `json:"TagValue,omitempty" name:"TagValue"` + TagValue *string `json:"TagValue,omitnil" name:"TagValue"` // 资源类型,其中: // Proxy表示通道; // ProxyGroup表示通道组; // RealServer表示源站。 // 不指定该字段则查询该标签下所有资源。 - ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + ResourceType *string `json:"ResourceType,omitnil" name:"ResourceType"` } type DescribeResourcesByTagRequest struct { *tchttp.BaseRequest // 标签键。 - TagKey *string `json:"TagKey,omitempty" name:"TagKey"` + TagKey *string `json:"TagKey,omitnil" name:"TagKey"` // 标签值。 - TagValue *string `json:"TagValue,omitempty" name:"TagValue"` + TagValue *string `json:"TagValue,omitnil" name:"TagValue"` // 资源类型,其中: // Proxy表示通道; // ProxyGroup表示通道组; // RealServer表示源站。 // 不指定该字段则查询该标签下所有资源。 - ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + ResourceType *string `json:"ResourceType,omitnil" name:"ResourceType"` } func (r *DescribeResourcesByTagRequest) ToJsonString() string { @@ -5703,13 +5757,13 @@ func (r *DescribeResourcesByTagRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeResourcesByTagResponseParams struct { // 资源总数 - TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *int64 `json:"TotalCount,omitnil" name:"TotalCount"` // 标签对应的资源列表 - ResourceSet []*TagResourceInfo `json:"ResourceSet,omitempty" name:"ResourceSet"` + ResourceSet []*TagResourceInfo `json:"ResourceSet,omitnil" name:"ResourceSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeResourcesByTagResponse struct { @@ -5731,26 +5785,26 @@ func (r *DescribeResourcesByTagResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeRuleRealServersRequestParams struct { // 转发规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 偏移量,默认为0。 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 返回数量,默认为20,最大值为1000。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` } type DescribeRuleRealServersRequest struct { *tchttp.BaseRequest // 转发规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 偏移量,默认为0。 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 返回数量,默认为20,最大值为1000。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` } func (r *DescribeRuleRealServersRequest) ToJsonString() string { @@ -5777,19 +5831,19 @@ func (r *DescribeRuleRealServersRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeRuleRealServersResponseParams struct { // 可绑定的源站个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 可绑定的源站信息列表 - RealServerSet []*RealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + RealServerSet []*RealServer `json:"RealServerSet,omitnil" name:"RealServerSet"` // 已绑定的源站个数 - BindRealServerTotalCount *uint64 `json:"BindRealServerTotalCount,omitempty" name:"BindRealServerTotalCount"` + BindRealServerTotalCount *uint64 `json:"BindRealServerTotalCount,omitnil" name:"BindRealServerTotalCount"` // 已绑定的源站信息列表 - BindRealServerSet []*BindRealServer `json:"BindRealServerSet,omitempty" name:"BindRealServerSet"` + BindRealServerSet []*BindRealServer `json:"BindRealServerSet,omitnil" name:"BindRealServerSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeRuleRealServersResponse struct { @@ -5811,14 +5865,14 @@ func (r *DescribeRuleRealServersResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeRulesByRuleIdsRequestParams struct { // 规则ID列表。最多支持10个规则。 - RuleIds []*string `json:"RuleIds,omitempty" name:"RuleIds"` + RuleIds []*string `json:"RuleIds,omitnil" name:"RuleIds"` } type DescribeRulesByRuleIdsRequest struct { *tchttp.BaseRequest // 规则ID列表。最多支持10个规则。 - RuleIds []*string `json:"RuleIds,omitempty" name:"RuleIds"` + RuleIds []*string `json:"RuleIds,omitnil" name:"RuleIds"` } func (r *DescribeRulesByRuleIdsRequest) ToJsonString() string { @@ -5843,13 +5897,13 @@ func (r *DescribeRulesByRuleIdsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeRulesByRuleIdsResponseParams struct { // 返回的规则总个数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 返回的规则列表。 - RuleSet []*RuleInfo `json:"RuleSet,omitempty" name:"RuleSet"` + RuleSet []*RuleInfo `json:"RuleSet,omitnil" name:"RuleSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeRulesByRuleIdsResponse struct { @@ -5871,14 +5925,14 @@ func (r *DescribeRulesByRuleIdsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeRulesRequestParams struct { // 7层监听器Id。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` } type DescribeRulesRequest struct { *tchttp.BaseRequest // 7层监听器Id。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` } func (r *DescribeRulesRequest) ToJsonString() string { @@ -5903,13 +5957,13 @@ func (r *DescribeRulesRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeRulesResponseParams struct { // 按照域名分类的规则信息列表 - DomainRuleSet []*DomainRuleSet `json:"DomainRuleSet,omitempty" name:"DomainRuleSet"` + DomainRuleSet []*DomainRuleSet `json:"DomainRuleSet,omitnil" name:"DomainRuleSet"` // 该监听器下的域名总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeRulesResponse struct { @@ -5931,14 +5985,14 @@ func (r *DescribeRulesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeSecurityPolicyDetailRequestParams struct { // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } type DescribeSecurityPolicyDetailRequest struct { *tchttp.BaseRequest // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } func (r *DescribeSecurityPolicyDetailRequest) ToJsonString() string { @@ -5964,26 +6018,26 @@ func (r *DescribeSecurityPolicyDetailRequest) FromJsonString(s string) error { type DescribeSecurityPolicyDetailResponseParams struct { // 通道ID // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 安全策略状态: // BOUND,已开启安全策略 // UNBIND,已关闭安全策略 // BINDING,安全策略开启中 // UNBINDING,安全策略关闭中。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 默认策略:ACCEPT或DROP。 - DefaultAction *string `json:"DefaultAction,omitempty" name:"DefaultAction"` + DefaultAction *string `json:"DefaultAction,omitnil" name:"DefaultAction"` // 策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 规则列表 - RuleList []*SecurityPolicyRuleOut `json:"RuleList,omitempty" name:"RuleList"` + RuleList []*SecurityPolicyRuleOut `json:"RuleList,omitnil" name:"RuleList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeSecurityPolicyDetailResponse struct { @@ -6005,14 +6059,14 @@ func (r *DescribeSecurityPolicyDetailResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeSecurityRulesRequestParams struct { // 安全规则ID列表。总数不能超过20个。 - SecurityRuleIds []*string `json:"SecurityRuleIds,omitempty" name:"SecurityRuleIds"` + SecurityRuleIds []*string `json:"SecurityRuleIds,omitnil" name:"SecurityRuleIds"` } type DescribeSecurityRulesRequest struct { *tchttp.BaseRequest // 安全规则ID列表。总数不能超过20个。 - SecurityRuleIds []*string `json:"SecurityRuleIds,omitempty" name:"SecurityRuleIds"` + SecurityRuleIds []*string `json:"SecurityRuleIds,omitnil" name:"SecurityRuleIds"` } func (r *DescribeSecurityRulesRequest) ToJsonString() string { @@ -6037,13 +6091,13 @@ func (r *DescribeSecurityRulesRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeSecurityRulesResponseParams struct { // 返回的安全规则详情总数。 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 返回的安全规则详情列表。 - SecurityRuleSet []*SecurityPolicyRuleOut `json:"SecurityRuleSet,omitempty" name:"SecurityRuleSet"` + SecurityRuleSet []*SecurityPolicyRuleOut `json:"SecurityRuleSet,omitnil" name:"SecurityRuleSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeSecurityRulesResponse struct { @@ -6065,60 +6119,60 @@ func (r *DescribeSecurityRulesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeTCPListenersRequestParams struct { // 过滤条件,根据通道ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 过滤条件,根据监听器ID精确查询。 // 当设置了ProxyId时,会检查该监听器是否归属于该通道。 // 当设置了GroupId时,会检查该监听器是否归属于该通道组。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 过滤条件,根据监听器名称精确查询 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 过滤条件,根据监听器端口精确查询 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 偏移量,默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件,根据通道组ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` } type DescribeTCPListenersRequest struct { *tchttp.BaseRequest // 过滤条件,根据通道ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 过滤条件,根据监听器ID精确查询。 // 当设置了ProxyId时,会检查该监听器是否归属于该通道。 // 当设置了GroupId时,会检查该监听器是否归属于该通道组。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 过滤条件,根据监听器名称精确查询 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 过滤条件,根据监听器端口精确查询 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 偏移量,默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件,根据通道组ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` } func (r *DescribeTCPListenersRequest) ToJsonString() string { @@ -6150,13 +6204,13 @@ func (r *DescribeTCPListenersRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeTCPListenersResponseParams struct { // 满足条件的监听器总个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // TCP监听器列表 - ListenerSet []*TCPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` + ListenerSet []*TCPListener `json:"ListenerSet,omitnil" name:"ListenerSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeTCPListenersResponse struct { @@ -6178,60 +6232,60 @@ func (r *DescribeTCPListenersResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeUDPListenersRequestParams struct { // 过滤条件,根据通道ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 过滤条件,根据监听器ID精确查询。 // 当设置了ProxyId时,会检查该监听器是否归属于该通道。 // 当设置了GroupId时,会检查该监听器是否归属于该通道组。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 过滤条件,根据监听器名称精确查询 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 过滤条件,根据监听器端口精确查询 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 偏移量,默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件,根据通道组ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` } type DescribeUDPListenersRequest struct { *tchttp.BaseRequest // 过滤条件,根据通道ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 过滤条件,根据监听器ID精确查询。 // 当设置了ProxyId时,会检查该监听器是否归属于该通道。 // 当设置了GroupId时,会检查该监听器是否归属于该通道组。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 过滤条件,根据监听器名称精确查询 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 过滤条件,根据监听器端口精确查询 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 偏移量,默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 限制数量,默认为20 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 过滤条件,根据通道组ID进行拉取,ProxyId/GroupId/ListenerId必须设置一个,但ProxyId和GroupId不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 过滤条件,支持按照端口或监听器名称进行模糊查询,该参数不能与ListenerName和Port同时使用 - SearchValue *string `json:"SearchValue,omitempty" name:"SearchValue"` + SearchValue *string `json:"SearchValue,omitnil" name:"SearchValue"` } func (r *DescribeUDPListenersRequest) ToJsonString() string { @@ -6263,13 +6317,13 @@ func (r *DescribeUDPListenersRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeUDPListenersResponseParams struct { // 监听器个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // UDP监听器列表 - ListenerSet []*UDPListener `json:"ListenerSet,omitempty" name:"ListenerSet"` + ListenerSet []*UDPListener `json:"ListenerSet,omitnil" name:"ListenerSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeUDPListenersResponse struct { @@ -6290,7 +6344,7 @@ func (r *DescribeUDPListenersResponse) FromJsonString(s string) error { type DestAddressInfo struct { // 加速的目标IP,可多ip一起加速 - DestIp []*string `json:"DestIp,omitempty" name:"DestIp"` + DestIp []*string `json:"DestIp,omitnil" name:"DestIp"` } // Predefined struct for user @@ -6299,17 +6353,17 @@ type DestroyProxiesRequestParams struct { // 1,强制删除该通道列表,无论是否已经绑定了源站; // 0,如果已绑定了源站,则无法删除。 // 删除多通道时,如果该标识为0,只有所有的通道都没有绑定源站,才允许删除。 - Force *int64 `json:"Force,omitempty" name:"Force"` + Force *int64 `json:"Force,omitnil" name:"Force"` // (旧参数,请切换到ProxyIds)通道实例ID列表。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)通道实例ID列表。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } type DestroyProxiesRequest struct { @@ -6319,17 +6373,17 @@ type DestroyProxiesRequest struct { // 1,强制删除该通道列表,无论是否已经绑定了源站; // 0,如果已绑定了源站,则无法删除。 // 删除多通道时,如果该标识为0,只有所有的通道都没有绑定源站,才允许删除。 - Force *int64 `json:"Force,omitempty" name:"Force"` + Force *int64 `json:"Force,omitnil" name:"Force"` // (旧参数,请切换到ProxyIds)通道实例ID列表。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)通道实例ID列表。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } func (r *DestroyProxiesRequest) ToJsonString() string { @@ -6357,13 +6411,13 @@ func (r *DestroyProxiesRequest) FromJsonString(s string) error { // Predefined struct for user type DestroyProxiesResponseParams struct { // 处于不可销毁状态下的通道实例ID列表。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitnil" name:"InvalidStatusInstanceSet"` // 销毁操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitnil" name:"OperationFailedInstanceSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DestroyProxiesResponse struct { @@ -6389,41 +6443,41 @@ type DeviceInfo struct { // 3:联通 // 4:广电 // 99:其他 - Vendor *int64 `json:"Vendor,omitempty" name:"Vendor"` + Vendor *int64 `json:"Vendor,omitnil" name:"Vendor"` // 设备操作系统 // 1:Android // 2: IOS // 99:其他 - OS *int64 `json:"OS,omitempty" name:"OS"` + OS *int64 `json:"OS,omitnil" name:"OS"` // 设备唯一标识 // IOS 填写 IDFV // Android 填写 IMEI - DeviceId *string `json:"DeviceId,omitempty" name:"DeviceId"` + DeviceId *string `json:"DeviceId,omitnil" name:"DeviceId"` // 用户手机号码 - PhoneNum *string `json:"PhoneNum,omitempty" name:"PhoneNum"` + PhoneNum *string `json:"PhoneNum,omitnil" name:"PhoneNum"` // 无线信息 // 1:4G // 2:5G // 3:WIFI // 99:其他 - Wireless *int64 `json:"Wireless,omitempty" name:"Wireless"` + Wireless *int64 `json:"Wireless,omitnil" name:"Wireless"` } // Predefined struct for user type DisableGlobalDomainRequestParams struct { // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` } type DisableGlobalDomainRequest struct { *tchttp.BaseRequest // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` } func (r *DisableGlobalDomainRequest) ToJsonString() string { @@ -6448,7 +6502,7 @@ func (r *DisableGlobalDomainRequest) FromJsonString(s string) error { // Predefined struct for user type DisableGlobalDomainResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DisableGlobalDomainResponse struct { @@ -6469,206 +6523,206 @@ func (r *DisableGlobalDomainResponse) FromJsonString(s string) error { type Domain struct { // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` // 完整域名记录 - FullDomain *string `json:"FullDomain,omitempty" name:"FullDomain"` + FullDomain *string `json:"FullDomain,omitnil" name:"FullDomain"` // 别名 - Alias *string `json:"Alias,omitempty" name:"Alias"` + Alias *string `json:"Alias,omitnil" name:"Alias"` // 类型 - Type *string `json:"Type,omitempty" name:"Type"` + Type *string `json:"Type,omitnil" name:"Type"` // 状态,1表示关闭,0表示开启,2表示关闭中,3表示开启中 - Status *uint64 `json:"Status,omitempty" name:"Status"` + Status *uint64 `json:"Status,omitnil" name:"Status"` // 所属项目 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 默认入口 // 注意:此字段可能返回 null,表示取不到有效值。 - DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` + DefaultValue *string `json:"DefaultValue,omitnil" name:"DefaultValue"` // 通道数量 - ProxyCount *uint64 `json:"ProxyCount,omitempty" name:"ProxyCount"` + ProxyCount *uint64 `json:"ProxyCount,omitnil" name:"ProxyCount"` // 创建时间,使用UNIX时间戳 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 更新时间,使用UNIX时间戳 // 注意:此字段可能返回 null,表示取不到有效值。 - UpdateTime *uint64 `json:"UpdateTime,omitempty" name:"UpdateTime"` + UpdateTime *uint64 `json:"UpdateTime,omitnil" name:"UpdateTime"` // 标签列表 // 注意:此字段可能返回 null,表示取不到有效值。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 封禁解封状态:BANNED表示已封禁,RECOVER表示已解封或未封禁,BANNING表示封禁中,RECOVERING表示解封中,BAN_FAILED表示封禁失败,RECOVER_FAILED表示解封失败。 // 注意:此字段可能返回 null,表示取不到有效值。 - BanStatus *string `json:"BanStatus,omitempty" name:"BanStatus"` + BanStatus *string `json:"BanStatus,omitnil" name:"BanStatus"` } type DomainAccessRegionDict struct { // 就近接入区域 - NationCountryInnerList []*NationCountryInnerInfo `json:"NationCountryInnerList,omitempty" name:"NationCountryInnerList"` + NationCountryInnerList []*NationCountryInnerInfo `json:"NationCountryInnerList,omitnil" name:"NationCountryInnerList"` // 加速区域通道列表 - ProxyList []*ProxyIdDict `json:"ProxyList,omitempty" name:"ProxyList"` + ProxyList []*ProxyIdDict `json:"ProxyList,omitnil" name:"ProxyList"` // 加速区域ID - RegionId *string `json:"RegionId,omitempty" name:"RegionId"` + RegionId *string `json:"RegionId,omitnil" name:"RegionId"` // 加速区域内部编码 - GeographicalZoneInnerCode *string `json:"GeographicalZoneInnerCode,omitempty" name:"GeographicalZoneInnerCode"` + GeographicalZoneInnerCode *string `json:"GeographicalZoneInnerCode,omitnil" name:"GeographicalZoneInnerCode"` // 加速区域所属大洲内部编码 - ContinentInnerCode *string `json:"ContinentInnerCode,omitempty" name:"ContinentInnerCode"` + ContinentInnerCode *string `json:"ContinentInnerCode,omitnil" name:"ContinentInnerCode"` // 加速区域别名 - RegionName *string `json:"RegionName,omitempty" name:"RegionName"` + RegionName *string `json:"RegionName,omitnil" name:"RegionName"` } type DomainErrorPageInfo struct { // 错误定制响应的配置ID - ErrorPageId *string `json:"ErrorPageId,omitempty" name:"ErrorPageId"` + ErrorPageId *string `json:"ErrorPageId,omitnil" name:"ErrorPageId"` // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 原始错误码 - ErrorNos []*int64 `json:"ErrorNos,omitempty" name:"ErrorNos"` + ErrorNos []*int64 `json:"ErrorNos,omitnil" name:"ErrorNos"` // 新的错误码 // 注意:此字段可能返回 null,表示取不到有效值。 - NewErrorNo *int64 `json:"NewErrorNo,omitempty" name:"NewErrorNo"` + NewErrorNo *int64 `json:"NewErrorNo,omitnil" name:"NewErrorNo"` // 需要清理的响应头 // 注意:此字段可能返回 null,表示取不到有效值。 - ClearHeaders []*string `json:"ClearHeaders,omitempty" name:"ClearHeaders"` + ClearHeaders []*string `json:"ClearHeaders,omitnil" name:"ClearHeaders"` // 需要设置的响应头 // 注意:此字段可能返回 null,表示取不到有效值。 - SetHeaders []*HttpHeaderParam `json:"SetHeaders,omitempty" name:"SetHeaders"` + SetHeaders []*HttpHeaderParam `json:"SetHeaders,omitnil" name:"SetHeaders"` // 设置的响应体(不包括 HTTP头) // 注意:此字段可能返回 null,表示取不到有效值。 - Body *string `json:"Body,omitempty" name:"Body"` + Body *string `json:"Body,omitnil" name:"Body"` // 规则状态,0为成功 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` } type DomainRuleSet struct { // 转发规则域名。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 该域名对应的转发规则列表。 - RuleSet []*RuleInfo `json:"RuleSet,omitempty" name:"RuleSet"` + RuleSet []*RuleInfo `json:"RuleSet,omitnil" name:"RuleSet"` // 该域名对应的服务器证书ID,值为default时,表示使用默认证书(监听器配置的证书)。 // 注意:此字段可能返回 null,表示取不到有效值。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 该域名对应服务器证书名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` // 该域名对应的客户端证书ID,值为default时,表示使用默认证书(监听器配置的证书)。 // 注意:此字段可能返回 null,表示取不到有效值。 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 该域名对应客户端证书名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - ClientCertificateAlias *string `json:"ClientCertificateAlias,omitempty" name:"ClientCertificateAlias"` + ClientCertificateAlias *string `json:"ClientCertificateAlias,omitnil" name:"ClientCertificateAlias"` // 该域名对应基础认证配置ID。 // 注意:此字段可能返回 null,表示取不到有效值。 - BasicAuthConfId *string `json:"BasicAuthConfId,omitempty" name:"BasicAuthConfId"` + BasicAuthConfId *string `json:"BasicAuthConfId,omitnil" name:"BasicAuthConfId"` // 基础认证开关,其中: // 0,表示未开启; // 1,表示已开启。 // 注意:此字段可能返回 null,表示取不到有效值。 - BasicAuth *int64 `json:"BasicAuth,omitempty" name:"BasicAuth"` + BasicAuth *int64 `json:"BasicAuth,omitnil" name:"BasicAuth"` // 该域名对应基础认证配置名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - BasicAuthConfAlias *string `json:"BasicAuthConfAlias,omitempty" name:"BasicAuthConfAlias"` + BasicAuthConfAlias *string `json:"BasicAuthConfAlias,omitnil" name:"BasicAuthConfAlias"` // 该域名对应源站认证证书ID。 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerCertificateId *string `json:"RealServerCertificateId,omitempty" name:"RealServerCertificateId"` + RealServerCertificateId *string `json:"RealServerCertificateId,omitnil" name:"RealServerCertificateId"` // 源站认证开关,其中: // 0,表示未开启; // 1,表示已开启。 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerAuth *int64 `json:"RealServerAuth,omitempty" name:"RealServerAuth"` + RealServerAuth *int64 `json:"RealServerAuth,omitnil" name:"RealServerAuth"` // 该域名对应源站认证证书名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerCertificateAlias *string `json:"RealServerCertificateAlias,omitempty" name:"RealServerCertificateAlias"` + RealServerCertificateAlias *string `json:"RealServerCertificateAlias,omitnil" name:"RealServerCertificateAlias"` // 该域名对应通道认证证书ID。 // 注意:此字段可能返回 null,表示取不到有效值。 - GaapCertificateId *string `json:"GaapCertificateId,omitempty" name:"GaapCertificateId"` + GaapCertificateId *string `json:"GaapCertificateId,omitnil" name:"GaapCertificateId"` // 通道认证开关,其中: // 0,表示未开启; // 1,表示已开启。 // 注意:此字段可能返回 null,表示取不到有效值。 - GaapAuth *int64 `json:"GaapAuth,omitempty" name:"GaapAuth"` + GaapAuth *int64 `json:"GaapAuth,omitnil" name:"GaapAuth"` // 该域名对应通道认证证书名称。 // 注意:此字段可能返回 null,表示取不到有效值。 - GaapCertificateAlias *string `json:"GaapCertificateAlias,omitempty" name:"GaapCertificateAlias"` + GaapCertificateAlias *string `json:"GaapCertificateAlias,omitnil" name:"GaapCertificateAlias"` // 源站认证域名。 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerCertificateDomain *string `json:"RealServerCertificateDomain,omitempty" name:"RealServerCertificateDomain"` + RealServerCertificateDomain *string `json:"RealServerCertificateDomain,omitnil" name:"RealServerCertificateDomain"` // 多客户端证书时,返回多个证书的id和别名 // 注意:此字段可能返回 null,表示取不到有效值。 - PolyClientCertificateAliasInfo []*CertificateAliasInfo `json:"PolyClientCertificateAliasInfo,omitempty" name:"PolyClientCertificateAliasInfo"` + PolyClientCertificateAliasInfo []*CertificateAliasInfo `json:"PolyClientCertificateAliasInfo,omitnil" name:"PolyClientCertificateAliasInfo"` // 多源站证书时,返回多个证书的id和别名 // 注意:此字段可能返回 null,表示取不到有效值。 - PolyRealServerCertificateAliasInfo []*CertificateAliasInfo `json:"PolyRealServerCertificateAliasInfo,omitempty" name:"PolyRealServerCertificateAliasInfo"` + PolyRealServerCertificateAliasInfo []*CertificateAliasInfo `json:"PolyRealServerCertificateAliasInfo,omitnil" name:"PolyRealServerCertificateAliasInfo"` // 域名的状态。 // 0表示运行中, // 1表示变更中, // 2表示删除中。 // 注意:此字段可能返回 null,表示取不到有效值。 - DomainStatus *uint64 `json:"DomainStatus,omitempty" name:"DomainStatus"` + DomainStatus *uint64 `json:"DomainStatus,omitnil" name:"DomainStatus"` // 封禁解封状态:BANNED表示已封禁,RECOVER表示已解封或未封禁,BANNING表示封禁中,RECOVERING表示解封中,BAN_FAILED表示封禁失败,RECOVER_FAILED表示解封失败。 // 注意:此字段可能返回 null,表示取不到有效值。 - BanStatus *string `json:"BanStatus,omitempty" name:"BanStatus"` + BanStatus *string `json:"BanStatus,omitnil" name:"BanStatus"` // Http3特性标识,其中: // 0表示关闭; // 1表示启用。 // 注意:此字段可能返回 null,表示取不到有效值。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } // Predefined struct for user type EnableGlobalDomainRequestParams struct { // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` } type EnableGlobalDomainRequest struct { *tchttp.BaseRequest // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` } func (r *EnableGlobalDomainRequest) ToJsonString() string { @@ -6693,7 +6747,7 @@ func (r *EnableGlobalDomainRequest) FromJsonString(s string) error { // Predefined struct for user type EnableGlobalDomainResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type EnableGlobalDomainResponse struct { @@ -6714,52 +6768,52 @@ func (r *EnableGlobalDomainResponse) FromJsonString(s string) error { type Filter struct { // 过滤条件 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 过滤值 - Values []*string `json:"Values,omitempty" name:"Values"` + Values []*string `json:"Values,omitnil" name:"Values"` } type GlobalDns struct { // 解析记录ID - DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` + DnsRecordId *uint64 `json:"DnsRecordId,omitnil" name:"DnsRecordId"` // 域名就近接入地域信息列表 - CountryAreaList []*CountryAreaMap `json:"CountryAreaList,omitempty" name:"CountryAreaList"` + CountryAreaList []*CountryAreaMap `json:"CountryAreaList,omitnil" name:"CountryAreaList"` // 域名解析对应的通道接入点信息列表 - AccessList []*ProxyAccessInfo `json:"AccessList,omitempty" name:"AccessList"` + AccessList []*ProxyAccessInfo `json:"AccessList,omitnil" name:"AccessList"` // 解析状态:1表示运行中,2表示创建中,3表示修改中,4表示删除中 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` } type GroupStatisticsInfo struct { // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道组名称 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` // 通道组下通道列表 - ProxySet []*ProxySimpleInfo `json:"ProxySet,omitempty" name:"ProxySet"` + ProxySet []*ProxySimpleInfo `json:"ProxySet,omitnil" name:"ProxySet"` } type HTTPListener struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 监听器创建时间,Unix时间戳 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 监听器协议, HTTP表示HTTP,HTTPS表示HTTPS,此结构取值HTTP - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 监听器状态,其中: // 0表示运行中; @@ -6767,29 +6821,29 @@ type HTTPListener struct { // 2表示销毁中; // 3表示源站调整中; // 4表示配置变更中。 - ListenerStatus *uint64 `json:"ListenerStatus,omitempty" name:"ListenerStatus"` + ListenerStatus *uint64 `json:"ListenerStatus,omitnil" name:"ListenerStatus"` // 监听器的通道ID,如果监听器属于通道组,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 监听器的通道组ID,如果监听器属于通道,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type HTTPSListener struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 监听器协议, HTTP表示HTTP,HTTPS表示HTTPS,此结构取值HTTPS - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 监听器状态,其中: // 0表示运行中; @@ -6797,145 +6851,145 @@ type HTTPSListener struct { // 2表示销毁中; // 3表示源站调整中; // 4表示配置变更中。 - ListenerStatus *uint64 `json:"ListenerStatus,omitempty" name:"ListenerStatus"` + ListenerStatus *uint64 `json:"ListenerStatus,omitnil" name:"ListenerStatus"` // 监听器服务器SSL证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 监听器后端转发源站协议 - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 监听器创建时间,Unix时间戳 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 服务器SSL证书的别名 // 注意:此字段可能返回 null,表示取不到有效值。 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` // 监听器客户端CA证书ID // 注意:此字段可能返回 null,表示取不到有效值。 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 监听器认证方式。其中, // 0表示单向认证; // 1表示双向认证。 // 注意:此字段可能返回 null,表示取不到有效值。 - AuthType *int64 `json:"AuthType,omitempty" name:"AuthType"` + AuthType *int64 `json:"AuthType,omitnil" name:"AuthType"` // 客户端CA证书别名 // 注意:此字段可能返回 null,表示取不到有效值。 - ClientCertificateAlias *string `json:"ClientCertificateAlias,omitempty" name:"ClientCertificateAlias"` + ClientCertificateAlias *string `json:"ClientCertificateAlias,omitnil" name:"ClientCertificateAlias"` // 多客户端CA证书别名信息 // 注意:此字段可能返回 null,表示取不到有效值。 - PolyClientCertificateAliasInfo []*CertificateAliasInfo `json:"PolyClientCertificateAliasInfo,omitempty" name:"PolyClientCertificateAliasInfo"` + PolyClientCertificateAliasInfo []*CertificateAliasInfo `json:"PolyClientCertificateAliasInfo,omitnil" name:"PolyClientCertificateAliasInfo"` // 是否支持Http3,其中: // 0,不支持Http3接入; // 1,持Http3接入。 // 注意:如果支持了Http3的功能,那么该监听器会占用对应的UDP接入端口,不可再创建相同端口的UDP监听器。 // 注意:此字段可能返回 null,表示取不到有效值。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` // 监听器的通道ID,如果监听器属于通道组,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 监听器的通道组ID,如果监听器属于通道,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type HttpHeaderParam struct { // HTTP头名 - HeaderName *string `json:"HeaderName,omitempty" name:"HeaderName"` + HeaderName *string `json:"HeaderName,omitnil" name:"HeaderName"` // HTTP头值 - HeaderValue *string `json:"HeaderValue,omitempty" name:"HeaderValue"` + HeaderValue *string `json:"HeaderValue,omitnil" name:"HeaderValue"` } type IPDetail struct { // IP字符串 - IP *string `json:"IP,omitempty" name:"IP"` + IP *string `json:"IP,omitnil" name:"IP"` // 供应商,BGP表示默认,CMCC表示中国移动,CUCC表示中国联通,CTCC表示中国电信 - Provider *string `json:"Provider,omitempty" name:"Provider"` + Provider *string `json:"Provider,omitnil" name:"Provider"` // 带宽 - Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *int64 `json:"Bandwidth,omitnil" name:"Bandwidth"` } // Predefined struct for user type InquiryPriceCreateProxyRequestParams struct { // 加速区域名称。 - AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + AccessRegion *string `json:"AccessRegion,omitnil" name:"AccessRegion"` // 通道带宽上限,单位:Mbps。 - Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *int64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // (旧参数,请切换到RealServerRegion)源站区域名称。 - DestRegion *string `json:"DestRegion,omitempty" name:"DestRegion"` + DestRegion *string `json:"DestRegion,omitnil" name:"DestRegion"` // (旧参数,请切换到Concurrent)通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrency *int64 `json:"Concurrency,omitempty" name:"Concurrency"` + Concurrency *int64 `json:"Concurrency,omitnil" name:"Concurrency"` // (新参数)源站区域名称。 - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // (新参数)通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrent *int64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *int64 `json:"Concurrent,omitnil" name:"Concurrent"` // 计费方式,0表示按带宽计费,1表示按流量计费。默认按带宽计费 - BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + BillingType *int64 `json:"BillingType,omitnil" name:"BillingType"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 网络类型,可取值:normal、cn2,默认值normal - NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + NetworkType *string `json:"NetworkType,omitnil" name:"NetworkType"` // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } type InquiryPriceCreateProxyRequest struct { *tchttp.BaseRequest // 加速区域名称。 - AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + AccessRegion *string `json:"AccessRegion,omitnil" name:"AccessRegion"` // 通道带宽上限,单位:Mbps。 - Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *int64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // (旧参数,请切换到RealServerRegion)源站区域名称。 - DestRegion *string `json:"DestRegion,omitempty" name:"DestRegion"` + DestRegion *string `json:"DestRegion,omitnil" name:"DestRegion"` // (旧参数,请切换到Concurrent)通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrency *int64 `json:"Concurrency,omitempty" name:"Concurrency"` + Concurrency *int64 `json:"Concurrency,omitnil" name:"Concurrency"` // (新参数)源站区域名称。 - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // (新参数)通道并发量上限,表示同时在线的连接数,单位:万。 - Concurrent *int64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *int64 `json:"Concurrent,omitnil" name:"Concurrent"` // 计费方式,0表示按带宽计费,1表示按流量计费。默认按带宽计费 - BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + BillingType *int64 `json:"BillingType,omitnil" name:"BillingType"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 网络类型,可取值:normal、cn2,默认值normal - NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + NetworkType *string `json:"NetworkType,omitnil" name:"NetworkType"` // 通道套餐类型,Thunder表示标准通道组,Accelerator表示游戏加速器通道,CrossBorder表示跨境通道。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 该字段已废弃,当IPAddressVersion为IPv4时,所创建的通道默认支持Http3.0;当为IPv6,默认不支持Http3.0。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` } func (r *InquiryPriceCreateProxyRequest) ToJsonString() string { @@ -6970,36 +7024,36 @@ func (r *InquiryPriceCreateProxyRequest) FromJsonString(s string) error { // Predefined struct for user type InquiryPriceCreateProxyResponseParams struct { // 通道基础费用价格,单位:元/天。 - ProxyDailyPrice *float64 `json:"ProxyDailyPrice,omitempty" name:"ProxyDailyPrice"` + ProxyDailyPrice *float64 `json:"ProxyDailyPrice,omitnil" name:"ProxyDailyPrice"` // 通道带宽费用梯度价格。 // 注意:此字段可能返回 null,表示取不到有效值。 - BandwidthUnitPrice []*BandwidthPriceGradient `json:"BandwidthUnitPrice,omitempty" name:"BandwidthUnitPrice"` + BandwidthUnitPrice []*BandwidthPriceGradient `json:"BandwidthUnitPrice,omitnil" name:"BandwidthUnitPrice"` // 通道基础费用折扣价格,单位:元/天。 - DiscountProxyDailyPrice *float64 `json:"DiscountProxyDailyPrice,omitempty" name:"DiscountProxyDailyPrice"` + DiscountProxyDailyPrice *float64 `json:"DiscountProxyDailyPrice,omitnil" name:"DiscountProxyDailyPrice"` // 价格使用的货币,支持人民币,美元等。 - Currency *string `json:"Currency,omitempty" name:"Currency"` + Currency *string `json:"Currency,omitnil" name:"Currency"` // 通道的流量费用价格,单位: 元/GB // 注意:此字段可能返回 null,表示取不到有效值。 - FlowUnitPrice *float64 `json:"FlowUnitPrice,omitempty" name:"FlowUnitPrice"` + FlowUnitPrice *float64 `json:"FlowUnitPrice,omitnil" name:"FlowUnitPrice"` // 通道的流量费用折扣价格,单位:元/GB // 注意:此字段可能返回 null,表示取不到有效值。 - DiscountFlowUnitPrice *float64 `json:"DiscountFlowUnitPrice,omitempty" name:"DiscountFlowUnitPrice"` + DiscountFlowUnitPrice *float64 `json:"DiscountFlowUnitPrice,omitnil" name:"DiscountFlowUnitPrice"` // 精品BGP的带宽费用价格,单位: 元/Mbps/天 // 注意:此字段可能返回 null,表示取不到有效值。 - Cn2BandwidthPrice *float64 `json:"Cn2BandwidthPrice,omitempty" name:"Cn2BandwidthPrice"` + Cn2BandwidthPrice *float64 `json:"Cn2BandwidthPrice,omitnil" name:"Cn2BandwidthPrice"` // 精品BGP的折后带宽费用价格,单位: 元/Mbps/天 // 注意:此字段可能返回 null,表示取不到有效值。 - Cn2BandwidthPriceWithDiscount *float64 `json:"Cn2BandwidthPriceWithDiscount,omitempty" name:"Cn2BandwidthPriceWithDiscount"` + Cn2BandwidthPriceWithDiscount *float64 `json:"Cn2BandwidthPriceWithDiscount,omitnil" name:"Cn2BandwidthPriceWithDiscount"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type InquiryPriceCreateProxyResponse struct { @@ -7020,43 +7074,43 @@ func (r *InquiryPriceCreateProxyResponse) FromJsonString(s string) error { type ListenerInfo struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器监听端口 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 监听器协议类型 - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` } type MetricStatisticsInfo struct { // 指标名称 - MetricName *string `json:"MetricName,omitempty" name:"MetricName"` + MetricName *string `json:"MetricName,omitnil" name:"MetricName"` // 指标统计数据 - MetricData []*StatisticsDataInfo `json:"MetricData,omitempty" name:"MetricData"` + MetricData []*StatisticsDataInfo `json:"MetricData,omitnil" name:"MetricData"` } // Predefined struct for user type ModifyCertificateAttributesRequestParams struct { // 证书ID。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 证书名字。长度不超过50个字符。 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` } type ModifyCertificateAttributesRequest struct { *tchttp.BaseRequest // 证书ID。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 证书名字。长度不超过50个字符。 - CertificateAlias *string `json:"CertificateAlias,omitempty" name:"CertificateAlias"` + CertificateAlias *string `json:"CertificateAlias,omitnil" name:"CertificateAlias"` } func (r *ModifyCertificateAttributesRequest) ToJsonString() string { @@ -7082,7 +7136,7 @@ func (r *ModifyCertificateAttributesRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyCertificateAttributesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyCertificateAttributesResponse struct { @@ -7104,46 +7158,46 @@ func (r *ModifyCertificateAttributesResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyCertificateRequestParams struct { // 监听器实例ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 需要修改证书的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 新的服务器证书ID。其中: // 当CertificateId=default时,表示使用监听器的证书。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 新的客户端证书ID。其中: // 当ClientCertificateId=default时,表示使用监听器的证书。 // 仅当采用双向认证方式时,需要设置该参数或者PolyClientCertificateIds。 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 新的多客户端证书ID列表。其中: // 仅当采用双向认证方式时,需要设置该参数或ClientCertificateId参数。 - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` } type ModifyCertificateRequest struct { *tchttp.BaseRequest // 监听器实例ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 需要修改证书的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 新的服务器证书ID。其中: // 当CertificateId=default时,表示使用监听器的证书。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 新的客户端证书ID。其中: // 当ClientCertificateId=default时,表示使用监听器的证书。 // 仅当采用双向认证方式时,需要设置该参数或者PolyClientCertificateIds。 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 新的多客户端证书ID列表。其中: // 仅当采用双向认证方式时,需要设置该参数或ClientCertificateId参数。 - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` } func (r *ModifyCertificateRequest) ToJsonString() string { @@ -7172,7 +7226,7 @@ func (r *ModifyCertificateRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyCertificateResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyCertificateResponse struct { @@ -7194,62 +7248,62 @@ func (r *ModifyCertificateResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainRequestParams struct { // 7层监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 修改前的域名信息 - OldDomain *string `json:"OldDomain,omitempty" name:"OldDomain"` + OldDomain *string `json:"OldDomain,omitnil" name:"OldDomain"` // 修改后的域名信息 - NewDomain *string `json:"NewDomain,omitempty" name:"NewDomain"` + NewDomain *string `json:"NewDomain,omitnil" name:"NewDomain"` // 服务器SSL证书ID,仅适用于version3.0的通道。其中: // 不带该字段时,表示使用原证书; // 携带该字段时并且CertificateId=default,表示使用监听器证书; // 其他情况,使用该CertificateId指定的证书。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 客户端CA证书ID,仅适用于version3.0的通道。其中: // 不带该字段和PolyClientCertificateIds时,表示使用原证书; // 携带该字段时并且ClientCertificateId=default,表示使用监听器证书; // 其他情况,使用该ClientCertificateId或PolyClientCertificateIds指定的证书。 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 客户端CA证书ID,仅适用于version3.0的通道。其中: // 不带该字段和ClientCertificateId时,表示使用原证书; // 携带该字段时并且ClientCertificateId=default,表示使用监听器证书; // 其他情况,使用该ClientCertificateId或PolyClientCertificateIds指定的证书。 - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` } type ModifyDomainRequest struct { *tchttp.BaseRequest // 7层监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 修改前的域名信息 - OldDomain *string `json:"OldDomain,omitempty" name:"OldDomain"` + OldDomain *string `json:"OldDomain,omitnil" name:"OldDomain"` // 修改后的域名信息 - NewDomain *string `json:"NewDomain,omitempty" name:"NewDomain"` + NewDomain *string `json:"NewDomain,omitnil" name:"NewDomain"` // 服务器SSL证书ID,仅适用于version3.0的通道。其中: // 不带该字段时,表示使用原证书; // 携带该字段时并且CertificateId=default,表示使用监听器证书; // 其他情况,使用该CertificateId指定的证书。 - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 客户端CA证书ID,仅适用于version3.0的通道。其中: // 不带该字段和PolyClientCertificateIds时,表示使用原证书; // 携带该字段时并且ClientCertificateId=default,表示使用监听器证书; // 其他情况,使用该ClientCertificateId或PolyClientCertificateIds指定的证书。 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 客户端CA证书ID,仅适用于version3.0的通道。其中: // 不带该字段和ClientCertificateId时,表示使用原证书; // 携带该字段时并且ClientCertificateId=default,表示使用监听器证书; // 其他情况,使用该ClientCertificateId或PolyClientCertificateIds指定的证书。 - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` } func (r *ModifyDomainRequest) ToJsonString() string { @@ -7279,7 +7333,7 @@ func (r *ModifyDomainRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyDomainResponse struct { @@ -7301,32 +7355,32 @@ func (r *ModifyDomainResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyGlobalDomainAttributeRequestParams struct { // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // 别名 - Alias *string `json:"Alias,omitempty" name:"Alias"` + Alias *string `json:"Alias,omitnil" name:"Alias"` // 默认入口 - DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` + DefaultValue *string `json:"DefaultValue,omitnil" name:"DefaultValue"` } type ModifyGlobalDomainAttributeRequest struct { *tchttp.BaseRequest // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // 别名 - Alias *string `json:"Alias,omitempty" name:"Alias"` + Alias *string `json:"Alias,omitnil" name:"Alias"` // 默认入口 - DefaultValue *string `json:"DefaultValue,omitempty" name:"DefaultValue"` + DefaultValue *string `json:"DefaultValue,omitnil" name:"DefaultValue"` } func (r *ModifyGlobalDomainAttributeRequest) ToJsonString() string { @@ -7354,7 +7408,7 @@ func (r *ModifyGlobalDomainAttributeRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyGlobalDomainAttributeResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyGlobalDomainAttributeResponse struct { @@ -7376,32 +7430,32 @@ func (r *ModifyGlobalDomainAttributeResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyGlobalDomainDnsRequestParams struct { // 解析记录ID - DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` + DnsRecordId *uint64 `json:"DnsRecordId,omitnil" name:"DnsRecordId"` // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` // 国家ID列表 - NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitempty" name:"NationCountryInnerCodes"` + NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitnil" name:"NationCountryInnerCodes"` // 通道ID列表 - ProxyIdList []*string `json:"ProxyIdList,omitempty" name:"ProxyIdList"` + ProxyIdList []*string `json:"ProxyIdList,omitnil" name:"ProxyIdList"` } type ModifyGlobalDomainDnsRequest struct { *tchttp.BaseRequest // 解析记录ID - DnsRecordId *uint64 `json:"DnsRecordId,omitempty" name:"DnsRecordId"` + DnsRecordId *uint64 `json:"DnsRecordId,omitnil" name:"DnsRecordId"` // 域名ID - DomainId *string `json:"DomainId,omitempty" name:"DomainId"` + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` // 国家ID列表 - NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitempty" name:"NationCountryInnerCodes"` + NationCountryInnerCodes []*string `json:"NationCountryInnerCodes,omitnil" name:"NationCountryInnerCodes"` // 通道ID列表 - ProxyIdList []*string `json:"ProxyIdList,omitempty" name:"ProxyIdList"` + ProxyIdList []*string `json:"ProxyIdList,omitnil" name:"ProxyIdList"` } func (r *ModifyGlobalDomainDnsRequest) ToJsonString() string { @@ -7429,7 +7483,7 @@ func (r *ModifyGlobalDomainDnsRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyGlobalDomainDnsResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyGlobalDomainDnsResponse struct { @@ -7451,26 +7505,26 @@ func (r *ModifyGlobalDomainDnsResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyGroupDomainConfigRequestParams struct { // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 域名解析默认访问IP或域名。 - DefaultDnsIp *string `json:"DefaultDnsIp,omitempty" name:"DefaultDnsIp"` + DefaultDnsIp *string `json:"DefaultDnsIp,omitnil" name:"DefaultDnsIp"` // 就近接入区域配置。 - AccessRegionList []*AccessRegionDomainConf `json:"AccessRegionList,omitempty" name:"AccessRegionList"` + AccessRegionList []*AccessRegionDomainConf `json:"AccessRegionList,omitnil" name:"AccessRegionList"` } type ModifyGroupDomainConfigRequest struct { *tchttp.BaseRequest // 通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 域名解析默认访问IP或域名。 - DefaultDnsIp *string `json:"DefaultDnsIp,omitempty" name:"DefaultDnsIp"` + DefaultDnsIp *string `json:"DefaultDnsIp,omitnil" name:"DefaultDnsIp"` // 就近接入区域配置。 - AccessRegionList []*AccessRegionDomainConf `json:"AccessRegionList,omitempty" name:"AccessRegionList"` + AccessRegionList []*AccessRegionDomainConf `json:"AccessRegionList,omitnil" name:"AccessRegionList"` } func (r *ModifyGroupDomainConfigRequest) ToJsonString() string { @@ -7497,7 +7551,7 @@ func (r *ModifyGroupDomainConfigRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyGroupDomainConfigResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyGroupDomainConfigResponse struct { @@ -7519,26 +7573,26 @@ func (r *ModifyGroupDomainConfigResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyHTTPListenerAttributeRequestParams struct { // 需要修改的监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 新的监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` } type ModifyHTTPListenerAttributeRequest struct { *tchttp.BaseRequest // 需要修改的监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 新的监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` } func (r *ModifyHTTPListenerAttributeRequest) ToJsonString() string { @@ -7565,7 +7619,7 @@ func (r *ModifyHTTPListenerAttributeRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyHTTPListenerAttributeResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyHTTPListenerAttributeResponse struct { @@ -7587,50 +7641,50 @@ func (r *ModifyHTTPListenerAttributeResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyHTTPSListenerAttributeRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 通道ID, 若为单通道监听器,此项必须填写 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 修改后的监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器后端转发与源站之间的协议类型 - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 修改后的监听器服务器证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 修改后的监听器客户端证书ID,不支持多客户端证书,多客户端证书新采用PolyClientCertificateIds字段 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 新字段,修改后的监听器客户端证书ID - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` } type ModifyHTTPSListenerAttributeRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 通道ID, 若为单通道监听器,此项必须填写 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 修改后的监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器后端转发与源站之间的协议类型 - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 修改后的监听器服务器证书ID - CertificateId *string `json:"CertificateId,omitempty" name:"CertificateId"` + CertificateId *string `json:"CertificateId,omitnil" name:"CertificateId"` // 修改后的监听器客户端证书ID,不支持多客户端证书,多客户端证书新采用PolyClientCertificateIds字段 - ClientCertificateId *string `json:"ClientCertificateId,omitempty" name:"ClientCertificateId"` + ClientCertificateId *string `json:"ClientCertificateId,omitnil" name:"ClientCertificateId"` // 新字段,修改后的监听器客户端证书ID - PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitempty" name:"PolyClientCertificateIds"` + PolyClientCertificateIds []*string `json:"PolyClientCertificateIds,omitnil" name:"PolyClientCertificateIds"` } func (r *ModifyHTTPSListenerAttributeRequest) ToJsonString() string { @@ -7661,7 +7715,7 @@ func (r *ModifyHTTPSListenerAttributeRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyHTTPSListenerAttributeResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyHTTPSListenerAttributeResponse struct { @@ -7683,34 +7737,34 @@ func (r *ModifyHTTPSListenerAttributeResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyProxiesAttributeRequestParams struct { // (旧参数,请切换到ProxyIds)一个或多个待操作的通道ID。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 通道名称。可任意命名,但不得超过30个字符。 - ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"` + ProxyName *string `json:"ProxyName,omitnil" name:"ProxyName"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)一个或多个待操作的通道ID。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } type ModifyProxiesAttributeRequest struct { *tchttp.BaseRequest // (旧参数,请切换到ProxyIds)一个或多个待操作的通道ID。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 通道名称。可任意命名,但不得超过30个字符。 - ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"` + ProxyName *string `json:"ProxyName,omitnil" name:"ProxyName"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)一个或多个待操作的通道ID。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } func (r *ModifyProxiesAttributeRequest) ToJsonString() string { @@ -7738,7 +7792,7 @@ func (r *ModifyProxiesAttributeRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyProxiesAttributeResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyProxiesAttributeResponse struct { @@ -7760,34 +7814,34 @@ func (r *ModifyProxiesAttributeResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyProxiesProjectRequestParams struct { // 需要修改到的项目ID。 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // (旧参数,请切换到ProxyIds)一个或多个待操作的通道ID。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)一个或多个待操作的通道ID。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } type ModifyProxiesProjectRequest struct { *tchttp.BaseRequest // 需要修改到的项目ID。 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // (旧参数,请切换到ProxyIds)一个或多个待操作的通道ID。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)一个或多个待操作的通道ID。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } func (r *ModifyProxiesProjectRequest) ToJsonString() string { @@ -7815,7 +7869,7 @@ func (r *ModifyProxiesProjectRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyProxiesProjectResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyProxiesProjectResponse struct { @@ -7837,50 +7891,50 @@ func (r *ModifyProxiesProjectResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyProxyConfigurationRequestParams struct { // (旧参数,请切换到ProxyId)通道的实例ID。 - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 需要调整到的目标带宽,单位:Mbps。 // Bandwidth与Concurrent必须至少设置一个。取值范围根据DescribeAccessRegionsByDestRegion接口获取得到 - Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *uint64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // 需要调整到的目标并发值,单位:万。 // Bandwidth与Concurrent必须至少设置一个。取值范围根据DescribeAccessRegionsByDestRegion接口获取得到 - Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *uint64 `json:"Concurrent,omitnil" name:"Concurrent"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)通道的实例ID。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 计费方式 (0:按带宽计费,1:按流量计费 默认按带宽计费) - BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + BillingType *int64 `json:"BillingType,omitnil" name:"BillingType"` } type ModifyProxyConfigurationRequest struct { *tchttp.BaseRequest // (旧参数,请切换到ProxyId)通道的实例ID。 - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 需要调整到的目标带宽,单位:Mbps。 // Bandwidth与Concurrent必须至少设置一个。取值范围根据DescribeAccessRegionsByDestRegion接口获取得到 - Bandwidth *uint64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *uint64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // 需要调整到的目标并发值,单位:万。 // Bandwidth与Concurrent必须至少设置一个。取值范围根据DescribeAccessRegionsByDestRegion接口获取得到 - Concurrent *uint64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *uint64 `json:"Concurrent,omitnil" name:"Concurrent"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)通道的实例ID。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 计费方式 (0:按带宽计费,1:按流量计费 默认按带宽计费) - BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + BillingType *int64 `json:"BillingType,omitnil" name:"BillingType"` } func (r *ModifyProxyConfigurationRequest) ToJsonString() string { @@ -7910,7 +7964,7 @@ func (r *ModifyProxyConfigurationRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyProxyConfigurationResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyProxyConfigurationResponse struct { @@ -7932,26 +7986,26 @@ func (r *ModifyProxyConfigurationResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyProxyGroupAttributeRequestParams struct { // 需要修改的通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 修改后的通道组名称:不超过30个字符,超过部分会被截断。 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` } type ModifyProxyGroupAttributeRequest struct { *tchttp.BaseRequest // 需要修改的通道组ID。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 修改后的通道组名称:不超过30个字符,超过部分会被截断。 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` } func (r *ModifyProxyGroupAttributeRequest) ToJsonString() string { @@ -7978,7 +8032,7 @@ func (r *ModifyProxyGroupAttributeRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyProxyGroupAttributeResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyProxyGroupAttributeResponse struct { @@ -8000,20 +8054,20 @@ func (r *ModifyProxyGroupAttributeResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyRealServerNameRequestParams struct { // 源站名称 - RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` + RealServerName *string `json:"RealServerName,omitnil" name:"RealServerName"` // 源站ID - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` } type ModifyRealServerNameRequest struct { *tchttp.BaseRequest // 源站名称 - RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` + RealServerName *string `json:"RealServerName,omitnil" name:"RealServerName"` // 源站ID - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` } func (r *ModifyRealServerNameRequest) ToJsonString() string { @@ -8039,7 +8093,7 @@ func (r *ModifyRealServerNameRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyRealServerNameResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyRealServerNameResponse struct { @@ -8061,82 +8115,82 @@ func (r *ModifyRealServerNameResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyRuleAttributeRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 转发规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站健康检查开关,其中: // 1,开启; // 0,关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 健康检查配置参数 - CheckParams *RuleCheckParams `json:"CheckParams,omitempty" name:"CheckParams"` + CheckParams *RuleCheckParams `json:"CheckParams,omitnil" name:"CheckParams"` // 转发规则路径 - Path *string `json:"Path,omitempty" name:"Path"` + Path *string `json:"Path,omitnil" name:"Path"` // 加速通道转发到源站的协议类型,支持:default, HTTP和HTTPS。 // 当ForwardProtocol=default时,表示使用对应监听器的ForwardProtocol。 - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 回源Host。加速通道转发到源站的请求中携带的host。 // 当ForwardHost=default时,使用规则的域名,其他情况为该字段所设置的值。 - ForwardHost *string `json:"ForwardHost,omitempty" name:"ForwardHost"` + ForwardHost *string `json:"ForwardHost,omitnil" name:"ForwardHost"` // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。 - ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitempty" name:"ServerNameIndicationSwitch"` + ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitnil" name:"ServerNameIndicationSwitch"` // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 - ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + ServerNameIndication *string `json:"ServerNameIndication,omitnil" name:"ServerNameIndication"` // HTTP强制跳转HTTPS。输入当前规则对应的域名与地址。 - ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` + ForcedRedirect *string `json:"ForcedRedirect,omitnil" name:"ForcedRedirect"` } type ModifyRuleAttributeRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 转发规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站健康检查开关,其中: // 1,开启; // 0,关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 健康检查配置参数 - CheckParams *RuleCheckParams `json:"CheckParams,omitempty" name:"CheckParams"` + CheckParams *RuleCheckParams `json:"CheckParams,omitnil" name:"CheckParams"` // 转发规则路径 - Path *string `json:"Path,omitempty" name:"Path"` + Path *string `json:"Path,omitnil" name:"Path"` // 加速通道转发到源站的协议类型,支持:default, HTTP和HTTPS。 // 当ForwardProtocol=default时,表示使用对应监听器的ForwardProtocol。 - ForwardProtocol *string `json:"ForwardProtocol,omitempty" name:"ForwardProtocol"` + ForwardProtocol *string `json:"ForwardProtocol,omitnil" name:"ForwardProtocol"` // 回源Host。加速通道转发到源站的请求中携带的host。 // 当ForwardHost=default时,使用规则的域名,其他情况为该字段所设置的值。 - ForwardHost *string `json:"ForwardHost,omitempty" name:"ForwardHost"` + ForwardHost *string `json:"ForwardHost,omitnil" name:"ForwardHost"` // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。 - ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitempty" name:"ServerNameIndicationSwitch"` + ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitnil" name:"ServerNameIndicationSwitch"` // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 - ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + ServerNameIndication *string `json:"ServerNameIndication,omitnil" name:"ServerNameIndication"` // HTTP强制跳转HTTPS。输入当前规则对应的域名与地址。 - ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` + ForcedRedirect *string `json:"ForcedRedirect,omitnil" name:"ForcedRedirect"` } func (r *ModifyRuleAttributeRequest) ToJsonString() string { @@ -8171,7 +8225,7 @@ func (r *ModifyRuleAttributeRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyRuleAttributeResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyRuleAttributeResponse struct { @@ -8193,58 +8247,58 @@ func (r *ModifyRuleAttributeResponse) FromJsonString(s string) error { // Predefined struct for user type ModifySecurityRuleRequestParams struct { // 规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 规则名:不得超过30个字符,超过部分会被截断。 - AliasName *string `json:"AliasName,omitempty" name:"AliasName"` + AliasName *string `json:"AliasName,omitnil" name:"AliasName"` // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 安全规则动作 - RuleAction *string `json:"RuleAction,omitempty" name:"RuleAction"` + RuleAction *string `json:"RuleAction,omitnil" name:"RuleAction"` // 规则关联地址,格式需要满足CIDR网络地址规范 - SourceCidr *string `json:"SourceCidr,omitempty" name:"SourceCidr"` + SourceCidr *string `json:"SourceCidr,omitnil" name:"SourceCidr"` // 协议类型 - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 端口范围,支持以下格式 // 单个端口: 80 // 多个端口: 80,443 // 连续端口: 3306-20000 // 所有端口: ALL - DestPortRange *string `json:"DestPortRange,omitempty" name:"DestPortRange"` + DestPortRange *string `json:"DestPortRange,omitnil" name:"DestPortRange"` } type ModifySecurityRuleRequest struct { *tchttp.BaseRequest // 规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 规则名:不得超过30个字符,超过部分会被截断。 - AliasName *string `json:"AliasName,omitempty" name:"AliasName"` + AliasName *string `json:"AliasName,omitnil" name:"AliasName"` // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 安全规则动作 - RuleAction *string `json:"RuleAction,omitempty" name:"RuleAction"` + RuleAction *string `json:"RuleAction,omitnil" name:"RuleAction"` // 规则关联地址,格式需要满足CIDR网络地址规范 - SourceCidr *string `json:"SourceCidr,omitempty" name:"SourceCidr"` + SourceCidr *string `json:"SourceCidr,omitnil" name:"SourceCidr"` // 协议类型 - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 端口范围,支持以下格式 // 单个端口: 80 // 多个端口: 80,443 // 连续端口: 3306-20000 // 所有端口: ALL - DestPortRange *string `json:"DestPortRange,omitempty" name:"DestPortRange"` + DestPortRange *string `json:"DestPortRange,omitnil" name:"DestPortRange"` } func (r *ModifySecurityRuleRequest) ToJsonString() string { @@ -8275,7 +8329,7 @@ func (r *ModifySecurityRuleRequest) FromJsonString(s string) error { // Predefined struct for user type ModifySecurityRuleResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifySecurityRuleResponse struct { @@ -8297,74 +8351,74 @@ func (r *ModifySecurityRuleResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyTCPListenerAttributeRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 是否开启健康检查,1开启,0关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 - FailoverSwitch *uint64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *uint64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 健康阈值,表示连续检查成功多少次数后认定源站健康。范围为1到10 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败次数后认定源站不健康。范围为1到10 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` } type ModifyTCPListenerAttributeRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 是否开启健康检查,1开启,0关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 - FailoverSwitch *uint64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *uint64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 健康阈值,表示连续检查成功多少次数后认定源站健康。范围为1到10 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败次数后认定源站不健康。范围为1到10 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` } func (r *ModifyTCPListenerAttributeRequest) ToJsonString() string { @@ -8399,7 +8453,7 @@ func (r *ModifyTCPListenerAttributeRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyTCPListenerAttributeResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyTCPListenerAttributeResponse struct { @@ -8421,104 +8475,104 @@ func (r *ModifyTCPListenerAttributeResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyUDPListenerAttributeRequestParams struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 - FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *int64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 源站是否开启健康检查:1开启,0关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // UDP源站健康类型。PORT表示检查端口,PING表示PING。 - CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + CheckType *string `json:"CheckType,omitnil" name:"CheckType"` // UDP源站健康检查探测端口。 - CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + CheckPort *int64 `json:"CheckPort,omitnil" name:"CheckPort"` // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 - ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + ContextType *string `json:"ContextType,omitnil" name:"ContextType"` // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 - SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + SendContext *string `json:"SendContext,omitnil" name:"SendContext"` // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 - RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` + RecvContext *string `json:"RecvContext,omitnil" name:"RecvContext"` } type ModifyUDPListenerAttributeRequest struct { *tchttp.BaseRequest // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 通道组ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道ID,ProxyId和GroupId必须设置一个,但不能同时设置。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 - FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *int64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 源站是否开启健康检查:1开启,0关闭。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // UDP源站健康类型。PORT表示检查端口,PING表示PING。 - CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + CheckType *string `json:"CheckType,omitnil" name:"CheckType"` // UDP源站健康检查探测端口。 - CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + CheckPort *int64 `json:"CheckPort,omitnil" name:"CheckPort"` // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 - ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + ContextType *string `json:"ContextType,omitnil" name:"ContextType"` // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 - SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + SendContext *string `json:"SendContext,omitnil" name:"SendContext"` // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 - RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` + RecvContext *string `json:"RecvContext,omitnil" name:"RecvContext"` } func (r *ModifyUDPListenerAttributeRequest) ToJsonString() string { @@ -8558,7 +8612,7 @@ func (r *ModifyUDPListenerAttributeRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyUDPListenerAttributeResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyUDPListenerAttributeResponse struct { @@ -8579,45 +8633,45 @@ func (r *ModifyUDPListenerAttributeResponse) FromJsonString(s string) error { type NationCountryInnerInfo struct { // 国家名 - NationCountryName *string `json:"NationCountryName,omitempty" name:"NationCountryName"` + NationCountryName *string `json:"NationCountryName,omitnil" name:"NationCountryName"` // 国家内部编码 - NationCountryInnerCode *string `json:"NationCountryInnerCode,omitempty" name:"NationCountryInnerCode"` + NationCountryInnerCode *string `json:"NationCountryInnerCode,omitnil" name:"NationCountryInnerCode"` } type NewRealServer struct { // 源站ID - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` // 源站ip或域名 - RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"` + RealServerIP *string `json:"RealServerIP,omitnil" name:"RealServerIP"` } // Predefined struct for user type OpenProxiesRequestParams struct { // (旧参数,请切换到ProxyIds)通道的实例ID列表。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)通道的实例ID列表。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } type OpenProxiesRequest struct { *tchttp.BaseRequest // (旧参数,请切换到ProxyIds)通道的实例ID列表。 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。 // 更多详细信息请参阅:如何保证幂等性。 - ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` + ClientToken *string `json:"ClientToken,omitnil" name:"ClientToken"` // (新参数)通道的实例ID列表。 - ProxyIds []*string `json:"ProxyIds,omitempty" name:"ProxyIds"` + ProxyIds []*string `json:"ProxyIds,omitnil" name:"ProxyIds"` } func (r *OpenProxiesRequest) ToJsonString() string { @@ -8644,13 +8698,13 @@ func (r *OpenProxiesRequest) FromJsonString(s string) error { // Predefined struct for user type OpenProxiesResponseParams struct { // 非关闭状态下的通道实例ID列表,不可开启。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitnil" name:"InvalidStatusInstanceSet"` // 开启操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitnil" name:"OperationFailedInstanceSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type OpenProxiesResponse struct { @@ -8672,14 +8726,14 @@ func (r *OpenProxiesResponse) FromJsonString(s string) error { // Predefined struct for user type OpenProxyGroupRequestParams struct { // 通道组实例 ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type OpenProxyGroupRequest struct { *tchttp.BaseRequest // 通道组实例 ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } func (r *OpenProxyGroupRequest) ToJsonString() string { @@ -8704,13 +8758,13 @@ func (r *OpenProxyGroupRequest) FromJsonString(s string) error { // Predefined struct for user type OpenProxyGroupResponseParams struct { // 非关闭状态下的通道实例ID列表,不可开启。 - InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitempty" name:"InvalidStatusInstanceSet"` + InvalidStatusInstanceSet []*string `json:"InvalidStatusInstanceSet,omitnil" name:"InvalidStatusInstanceSet"` // 开启操作失败的通道实例ID列表。 - OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitempty" name:"OperationFailedInstanceSet"` + OperationFailedInstanceSet []*string `json:"OperationFailedInstanceSet,omitnil" name:"OperationFailedInstanceSet"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type OpenProxyGroupResponse struct { @@ -8732,20 +8786,20 @@ func (r *OpenProxyGroupResponse) FromJsonString(s string) error { // Predefined struct for user type OpenSecurityPolicyRequestParams struct { // 需开启安全策略的通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } type OpenSecurityPolicyRequest struct { *tchttp.BaseRequest // 需开启安全策略的通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 安全策略ID - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } func (r *OpenSecurityPolicyRequest) ToJsonString() string { @@ -8771,10 +8825,10 @@ func (r *OpenSecurityPolicyRequest) FromJsonString(s string) error { // Predefined struct for user type OpenSecurityPolicyResponseParams struct { // 异步流程ID,可以通过DescribeAsyncTaskStatus接口查询流程运行状态 - TaskId *string `json:"TaskId,omitempty" name:"TaskId"` + TaskId *string `json:"TaskId,omitnil" name:"TaskId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type OpenSecurityPolicyResponse struct { @@ -8796,38 +8850,38 @@ func (r *OpenSecurityPolicyResponse) FromJsonString(s string) error { type ProxyAccessInfo struct { // 地域ID // 注意:此字段可能返回 null,表示取不到有效值。 - RegionId *string `json:"RegionId,omitempty" name:"RegionId"` + RegionId *string `json:"RegionId,omitnil" name:"RegionId"` // 地域名称 // 注意:此字段可能返回 null,表示取不到有效值。 - RegionName *string `json:"RegionName,omitempty" name:"RegionName"` + RegionName *string `json:"RegionName,omitnil" name:"RegionName"` // 通道ID // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道接入ip // 注意:此字段可能返回 null,表示取不到有效值。 - Vip *string `json:"Vip,omitempty" name:"Vip"` + Vip *string `json:"Vip,omitnil" name:"Vip"` // 三网通道VIP列表 // 注意:此字段可能返回 null,表示取不到有效值。 - VipList []*IPDetail `json:"VipList,omitempty" name:"VipList"` + VipList []*IPDetail `json:"VipList,omitnil" name:"VipList"` // 接入点IDC类型。ec或dc // 注意:此字段可能返回 null,表示取不到有效值。 - SourceRegionIdcType *string `json:"SourceRegionIdcType,omitempty" name:"SourceRegionIdcType"` + SourceRegionIdcType *string `json:"SourceRegionIdcType,omitnil" name:"SourceRegionIdcType"` } type ProxyGroupDetail struct { // 创建时间 - CreateTime *int64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *int64 `json:"CreateTime,omitnil" name:"CreateTime"` // 项目ID - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 通道组中通道数量 - ProxyNum *int64 `json:"ProxyNum,omitempty" name:"ProxyNum"` + ProxyNum *int64 `json:"ProxyNum,omitnil" name:"ProxyNum"` // 通道组状态: // 0表示正常运行; @@ -8835,62 +8889,62 @@ type ProxyGroupDetail struct { // 4表示销毁中; // 11表示迁移中; // 12表示部分部署中。 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` // 归属Uin - OwnerUin *string `json:"OwnerUin,omitempty" name:"OwnerUin"` + OwnerUin *string `json:"OwnerUin,omitnil" name:"OwnerUin"` // 创建Uin - CreateUin *string `json:"CreateUin,omitempty" name:"CreateUin"` + CreateUin *string `json:"CreateUin,omitnil" name:"CreateUin"` // 通道名称 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` // 通道组域名解析默认IP - DnsDefaultIp *string `json:"DnsDefaultIp,omitempty" name:"DnsDefaultIp"` + DnsDefaultIp *string `json:"DnsDefaultIp,omitnil" name:"DnsDefaultIp"` // 通道组域名 // 注意:此字段可能返回 null,表示取不到有效值。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 目标地域 - RealServerRegionInfo *RegionDetail `json:"RealServerRegionInfo,omitempty" name:"RealServerRegionInfo"` + RealServerRegionInfo *RegionDetail `json:"RealServerRegionInfo,omitnil" name:"RealServerRegionInfo"` // 是否老通道组,2018-08-03之前创建的通道组为老通道组 - IsOldGroup *bool `json:"IsOldGroup,omitempty" name:"IsOldGroup"` + IsOldGroup *bool `json:"IsOldGroup,omitnil" name:"IsOldGroup"` // 通道组ID - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 标签列表 // 注意:此字段可能返回 null,表示取不到有效值。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 安全策略ID,当设置了安全策略时,存在该字段。 // 注意:此字段可能返回 null,表示取不到有效值。 - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 通道组版本 // 注意:此字段可能返回 null,表示取不到有效值。 - Version *string `json:"Version,omitempty" name:"Version"` + Version *string `json:"Version,omitnil" name:"Version"` // 通道获取客户端IP的方式,0表示TOA,1表示Proxy Protocol // 注意:此字段可能返回 null,表示取不到有效值。 - ClientIPMethod []*int64 `json:"ClientIPMethod,omitempty" name:"ClientIPMethod"` + ClientIPMethod []*int64 `json:"ClientIPMethod,omitnil" name:"ClientIPMethod"` // IP版本,可取值:IPv4、IPv6,默认值IPv4 // 注意:此字段可能返回 null,表示取不到有效值。 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 通道组套餐类型:Thunder表示标准通道组,Accelerator表示银牌加速通道组,CrossBorder表示跨境通道组。 // 注意:此字段可能返回 null,表示取不到有效值。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 支持Http3特性的标识,其中: // 0表示关闭; // 1表示启用。 // 注意:此字段可能返回 null,表示取不到有效值。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` // 特性位图,每个bit位代表一种特性,其中: // 0,表示不支持该特性; @@ -8905,26 +8959,26 @@ type ProxyGroupDetail struct { // 第7个bit,支持接入段Qos加速。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 - FeatureBitmap *int64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` + FeatureBitmap *int64 `json:"FeatureBitmap,omitnil" name:"FeatureBitmap"` } type ProxyGroupInfo struct { // 通道组id - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 通道组域名 // 注意:此字段可能返回 null,表示取不到有效值。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 通道组名称 // 注意:此字段可能返回 null,表示取不到有效值。 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` // 项目ID - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 目标地域 - RealServerRegionInfo *RegionDetail `json:"RealServerRegionInfo,omitempty" name:"RealServerRegionInfo"` + RealServerRegionInfo *RegionDetail `json:"RealServerRegionInfo,omitnil" name:"RealServerRegionInfo"` // 通道组状态。 // 其中, @@ -8933,28 +8987,28 @@ type ProxyGroupInfo struct { // DESTROYING表示销毁中; // MOVING表示通道迁移中; // CHANGING表示部分部署中。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 标签列表。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 通道组版本 // 注意:此字段可能返回 null,表示取不到有效值。 - Version *string `json:"Version,omitempty" name:"Version"` + Version *string `json:"Version,omitnil" name:"Version"` // 创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 通道组是否包含微软通道 // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyType *uint64 `json:"ProxyType,omitempty" name:"ProxyType"` + ProxyType *uint64 `json:"ProxyType,omitnil" name:"ProxyType"` // 支持Http3特性的标识,其中: // 0表示关闭; // 1表示启用。 // 注意:此字段可能返回 null,表示取不到有效值。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` // 特性位图,每个bit位代表一种特性,其中: // 0,表示不支持该特性; @@ -8969,39 +9023,39 @@ type ProxyGroupInfo struct { // 第7个bit,支持接入段Qos加速。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 - FeatureBitmap *int64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` + FeatureBitmap *int64 `json:"FeatureBitmap,omitnil" name:"FeatureBitmap"` } type ProxyIdDict struct { // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` } type ProxyInfo struct { // (旧参数,请使用ProxyId)通道实例ID。 // 注意:此字段可能返回 null,表示取不到有效值。 - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 创建时间,采用Unix时间戳的方式,表示从1970年1月1日(UTC/GMT的午夜)开始所经过的秒数。 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 项目ID。 - ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` // 通道名称。 - ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"` + ProxyName *string `json:"ProxyName,omitnil" name:"ProxyName"` // 接入地域。 - AccessRegion *string `json:"AccessRegion,omitempty" name:"AccessRegion"` + AccessRegion *string `json:"AccessRegion,omitnil" name:"AccessRegion"` // 源站地域。 - RealServerRegion *string `json:"RealServerRegion,omitempty" name:"RealServerRegion"` + RealServerRegion *string `json:"RealServerRegion,omitnil" name:"RealServerRegion"` // 带宽,单位:Mbps。 - Bandwidth *int64 `json:"Bandwidth,omitempty" name:"Bandwidth"` + Bandwidth *int64 `json:"Bandwidth,omitnil" name:"Bandwidth"` // 并发,单位:万个/秒。 - Concurrent *int64 `json:"Concurrent,omitempty" name:"Concurrent"` + Concurrent *int64 `json:"Concurrent,omitnil" name:"Concurrent"` // 通道状态。其中: // RUNNING表示运行中; @@ -9016,104 +9070,104 @@ type ProxyInfo struct { // CLONING表示复制中; // RECOVERING表示通道维护中; // MOVING表示迁移中。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 接入域名。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 接入IP。 - IP *string `json:"IP,omitempty" name:"IP"` + IP *string `json:"IP,omitnil" name:"IP"` // 通道版本号:1.0,2.0,3.0。 - Version *string `json:"Version,omitempty" name:"Version"` + Version *string `json:"Version,omitnil" name:"Version"` // (新参数)通道实例ID。 // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 1,该通道可缩扩容;0,该通道无法缩扩容。 - Scalarable *int64 `json:"Scalarable,omitempty" name:"Scalarable"` + Scalarable *int64 `json:"Scalarable,omitnil" name:"Scalarable"` // 支持的协议类型。 - SupportProtocols []*string `json:"SupportProtocols,omitempty" name:"SupportProtocols"` + SupportProtocols []*string `json:"SupportProtocols,omitnil" name:"SupportProtocols"` // 通道组ID,当通道归属于某一通道组时,存在该字段。 // 注意:此字段可能返回 null,表示取不到有效值。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` // 安全策略ID,当设置了安全策略时,存在该字段。 // 注意:此字段可能返回 null,表示取不到有效值。 - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` // 接入地域详细信息,包括地域ID和地域名。 // 注意:此字段可能返回 null,表示取不到有效值。 - AccessRegionInfo *RegionDetail `json:"AccessRegionInfo,omitempty" name:"AccessRegionInfo"` + AccessRegionInfo *RegionDetail `json:"AccessRegionInfo,omitnil" name:"AccessRegionInfo"` // 源站地域详细信息,包括地域ID和地域名。 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerRegionInfo *RegionDetail `json:"RealServerRegionInfo,omitempty" name:"RealServerRegionInfo"` + RealServerRegionInfo *RegionDetail `json:"RealServerRegionInfo,omitnil" name:"RealServerRegionInfo"` // 通道转发IP - ForwardIP *string `json:"ForwardIP,omitempty" name:"ForwardIP"` + ForwardIP *string `json:"ForwardIP,omitnil" name:"ForwardIP"` // 标签列表,不存在标签时,该字段为空列表。 // 注意:此字段可能返回 null,表示取不到有效值。 - TagSet []*TagPair `json:"TagSet,omitempty" name:"TagSet"` + TagSet []*TagPair `json:"TagSet,omitnil" name:"TagSet"` // 是否支持安全组配置 // 注意:此字段可能返回 null,表示取不到有效值。 - SupportSecurity *int64 `json:"SupportSecurity,omitempty" name:"SupportSecurity"` + SupportSecurity *int64 `json:"SupportSecurity,omitnil" name:"SupportSecurity"` // 计费类型: 0表示按带宽计费 1表示按流量计费。 // 注意:此字段可能返回 null,表示取不到有效值。 - BillingType *int64 `json:"BillingType,omitempty" name:"BillingType"` + BillingType *int64 `json:"BillingType,omitnil" name:"BillingType"` // 关联了解析的域名列表 // 注意:此字段可能返回 null,表示取不到有效值。 - RelatedGlobalDomains []*string `json:"RelatedGlobalDomains,omitempty" name:"RelatedGlobalDomains"` + RelatedGlobalDomains []*string `json:"RelatedGlobalDomains,omitnil" name:"RelatedGlobalDomains"` // 配置变更时间 // 注意:此字段可能返回 null,表示取不到有效值。 - ModifyConfigTime *uint64 `json:"ModifyConfigTime,omitempty" name:"ModifyConfigTime"` + ModifyConfigTime *uint64 `json:"ModifyConfigTime,omitnil" name:"ModifyConfigTime"` // 通道类型,100表示THUNDER通道,103表示微软合作通道 // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyType *uint64 `json:"ProxyType,omitempty" name:"ProxyType"` + ProxyType *uint64 `json:"ProxyType,omitnil" name:"ProxyType"` // 通道获取客户端IP的方式,0表示TOA,1表示Proxy Protocol // 注意:此字段可能返回 null,表示取不到有效值。 - ClientIPMethod []*int64 `json:"ClientIPMethod,omitempty" name:"ClientIPMethod"` + ClientIPMethod []*int64 `json:"ClientIPMethod,omitnil" name:"ClientIPMethod"` // IP版本:IPv4、IPv6 // 注意:此字段可能返回 null,表示取不到有效值。 - IPAddressVersion *string `json:"IPAddressVersion,omitempty" name:"IPAddressVersion"` + IPAddressVersion *string `json:"IPAddressVersion,omitnil" name:"IPAddressVersion"` // 网络类型:normal表示常规BGP,cn2表示精品BGP,triple表示三网,secure_eip表示定制安全EIP // 注意:此字段可能返回 null,表示取不到有效值。 - NetworkType *string `json:"NetworkType,omitempty" name:"NetworkType"` + NetworkType *string `json:"NetworkType,omitnil" name:"NetworkType"` // 通道套餐类型:Thunder表示标准通道,Accelerator表示银牌加速通道, // CrossBorder表示跨境通道。 // 注意:此字段可能返回 null,表示取不到有效值。 - PackageType *string `json:"PackageType,omitempty" name:"PackageType"` + PackageType *string `json:"PackageType,omitnil" name:"PackageType"` // 封禁解封状态:BANNED表示已封禁,RECOVER表示已解封或未封禁,BANNING表示封禁中,RECOVERING表示解封中,BAN_FAILED表示封禁失败,RECOVER_FAILED表示解封失败。 // 注意:此字段可能返回 null,表示取不到有效值。 - BanStatus *string `json:"BanStatus,omitempty" name:"BanStatus"` + BanStatus *string `json:"BanStatus,omitnil" name:"BanStatus"` // IP列表 // 注意:此字段可能返回 null,表示取不到有效值。 - IPList []*IPDetail `json:"IPList,omitempty" name:"IPList"` + IPList []*IPDetail `json:"IPList,omitnil" name:"IPList"` // 支持Http3协议的标识,其中: // 0表示关闭; // 1表示启用。 // 注意:此字段可能返回 null,表示取不到有效值。 - Http3Supported *int64 `json:"Http3Supported,omitempty" name:"Http3Supported"` + Http3Supported *int64 `json:"Http3Supported,omitnil" name:"Http3Supported"` // 是否在封禁黑名单中,其中:0表示不在黑名单中,1表示在黑名单中。 // 注意:此字段可能返回 null,表示取不到有效值。 - InBanBlacklist *int64 `json:"InBanBlacklist,omitempty" name:"InBanBlacklist"` + InBanBlacklist *int64 `json:"InBanBlacklist,omitnil" name:"InBanBlacklist"` // 特性位图,每个bit位代表一种特性,其中: // 0,表示不支持该特性; @@ -9128,23 +9182,23 @@ type ProxyInfo struct { // 第7个bit,支持接入段Qos加速。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 - FeatureBitmap *int64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` + FeatureBitmap *int64 `json:"FeatureBitmap,omitnil" name:"FeatureBitmap"` } type ProxySimpleInfo struct { // 通道ID - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 通道名称 - ProxyName *string `json:"ProxyName,omitempty" name:"ProxyName"` + ProxyName *string `json:"ProxyName,omitnil" name:"ProxyName"` // 监听器列表 - ListenerList []*ListenerInfo `json:"ListenerList,omitempty" name:"ListenerList"` + ListenerList []*ListenerInfo `json:"ListenerList,omitnil" name:"ListenerList"` } type ProxyStatus struct { // 通道实例ID。 - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 通道状态。 // 其中: @@ -9158,73 +9212,73 @@ type ProxyStatus struct { // ISOLATING表示隔离中; // ISOLATED表示已隔离; // MOVING表示迁移中。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` } type RealServer struct { // 源站的IP或域名 - RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"` + RealServerIP *string `json:"RealServerIP,omitnil" name:"RealServerIP"` // 源站ID - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` // 源站名称 - RealServerName *string `json:"RealServerName,omitempty" name:"RealServerName"` + RealServerName *string `json:"RealServerName,omitnil" name:"RealServerName"` // 项目ID - ProjectId *uint64 `json:"ProjectId,omitempty" name:"ProjectId"` + ProjectId *uint64 `json:"ProjectId,omitnil" name:"ProjectId"` // 是否在封禁黑名单中,其中:0表示不在黑名单中,1表示在黑名单中。 - InBanBlacklist *int64 `json:"InBanBlacklist,omitempty" name:"InBanBlacklist"` + InBanBlacklist *int64 `json:"InBanBlacklist,omitnil" name:"InBanBlacklist"` } type RealServerBindSetReq struct { // 源站id - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` // 源站端口 - RealServerPort *uint64 `json:"RealServerPort,omitempty" name:"RealServerPort"` + RealServerPort *uint64 `json:"RealServerPort,omitnil" name:"RealServerPort"` // 源站IP - RealServerIP *string `json:"RealServerIP,omitempty" name:"RealServerIP"` + RealServerIP *string `json:"RealServerIP,omitnil" name:"RealServerIP"` // 源站权重 - RealServerWeight *uint64 `json:"RealServerWeight,omitempty" name:"RealServerWeight"` + RealServerWeight *uint64 `json:"RealServerWeight,omitnil" name:"RealServerWeight"` // 源站主备角色:master表示主,slave表示备,该参数必须在监听器打开了源站主备模式。 - RealServerFailoverRole *string `json:"RealServerFailoverRole,omitempty" name:"RealServerFailoverRole"` + RealServerFailoverRole *string `json:"RealServerFailoverRole,omitnil" name:"RealServerFailoverRole"` } type RealServerStatus struct { // 源站ID。 - RealServerId *string `json:"RealServerId,omitempty" name:"RealServerId"` + RealServerId *string `json:"RealServerId,omitnil" name:"RealServerId"` // 0表示未被绑定 1表示被规则或者监听器绑定。 - BindStatus *int64 `json:"BindStatus,omitempty" name:"BindStatus"` + BindStatus *int64 `json:"BindStatus,omitnil" name:"BindStatus"` // 绑定此源站的通道ID,没有绑定时为空字符串。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 绑定此源站的通道组ID,没有绑定时为空字符串。 // 注意:此字段可能返回 null,表示取不到有效值。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type RegionDetail struct { // 区域ID - RegionId *string `json:"RegionId,omitempty" name:"RegionId"` + RegionId *string `json:"RegionId,omitnil" name:"RegionId"` // 区域英文名或中文名 - RegionName *string `json:"RegionName,omitempty" name:"RegionName"` + RegionName *string `json:"RegionName,omitnil" name:"RegionName"` // 机房所属大区 - RegionArea *string `json:"RegionArea,omitempty" name:"RegionArea"` + RegionArea *string `json:"RegionArea,omitnil" name:"RegionArea"` // 机房所属大区名 - RegionAreaName *string `json:"RegionAreaName,omitempty" name:"RegionAreaName"` + RegionAreaName *string `json:"RegionAreaName,omitnil" name:"RegionAreaName"` // 机房类型, dc表示DataCenter数据中心, ec表示EdgeComputing边缘节点 - IDCType *string `json:"IDCType,omitempty" name:"IDCType"` + IDCType *string `json:"IDCType,omitnil" name:"IDCType"` // 特性位图,每个bit位代表一种特性,其中: // 0,表示不支持该特性; @@ -9238,20 +9292,24 @@ type RegionDetail struct { // 第6个bit,支持三网接入; // 第7个bit,支持接入段Qos加速。 // 注意:此字段可能返回 null,表示取不到有效值。 - FeatureBitmap *uint64 `json:"FeatureBitmap,omitempty" name:"FeatureBitmap"` + FeatureBitmap *uint64 `json:"FeatureBitmap,omitnil" name:"FeatureBitmap"` + + // 接入区域支持的能力 + // 注意:此字段可能返回 null,表示取不到有效值。 + SupportFeature *SupportFeature `json:"SupportFeature,omitnil" name:"SupportFeature"` } // Predefined struct for user type RemoveRealServersRequestParams struct { // 源站Id列表 - RealServerIds []*string `json:"RealServerIds,omitempty" name:"RealServerIds"` + RealServerIds []*string `json:"RealServerIds,omitnil" name:"RealServerIds"` } type RemoveRealServersRequest struct { *tchttp.BaseRequest // 源站Id列表 - RealServerIds []*string `json:"RealServerIds,omitempty" name:"RealServerIds"` + RealServerIds []*string `json:"RealServerIds,omitnil" name:"RealServerIds"` } func (r *RemoveRealServersRequest) ToJsonString() string { @@ -9276,7 +9334,7 @@ func (r *RemoveRealServersRequest) FromJsonString(s string) error { // Predefined struct for user type RemoveRealServersResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type RemoveRealServersResponse struct { @@ -9297,222 +9355,222 @@ func (r *RemoveRealServersResponse) FromJsonString(s string) error { type RuleCheckParams struct { // 健康检查的时间间隔 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 健康检查的响应超时时间 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 健康检查的检查路径 - Path *string `json:"Path,omitempty" name:"Path"` + Path *string `json:"Path,omitnil" name:"Path"` // 健康检查的方法,GET/HEAD - Method *string `json:"Method,omitempty" name:"Method"` + Method *string `json:"Method,omitnil" name:"Method"` // 确认源站正常的返回码,可选范围[100, 200, 300, 400, 500] - StatusCode []*uint64 `json:"StatusCode,omitempty" name:"StatusCode"` + StatusCode []*uint64 `json:"StatusCode,omitnil" name:"StatusCode"` // 健康检查的检查域名。 // 当调用ModifyRuleAttribute时,不支持修改该参数。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 源站服务失败统计频率 // 注意:此字段可能返回 null,表示取不到有效值。 - FailedCountInter *uint64 `json:"FailedCountInter,omitempty" name:"FailedCountInter"` + FailedCountInter *uint64 `json:"FailedCountInter,omitnil" name:"FailedCountInter"` // 源站健康性检查阀值,超过该阀值会屏蔽服务 // 注意:此字段可能返回 null,表示取不到有效值。 - FailedThreshold *uint64 `json:"FailedThreshold,omitempty" name:"FailedThreshold"` + FailedThreshold *uint64 `json:"FailedThreshold,omitnil" name:"FailedThreshold"` // 源站健康性检测超出阀值后,屏蔽的时间 // 注意:此字段可能返回 null,表示取不到有效值。 - BlockInter *uint64 `json:"BlockInter,omitempty" name:"BlockInter"` + BlockInter *uint64 `json:"BlockInter,omitnil" name:"BlockInter"` } type RuleInfo struct { // 规则信息 - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 监听器信息 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 规则域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 规则路径 - Path *string `json:"Path,omitempty" name:"Path"` + Path *string `json:"Path,omitnil" name:"Path"` // 源站类型 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 是否开启健康检查标志,1表示开启,0表示关闭 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 规则状态,0表示运行中,1表示创建中,2表示销毁中,3表示绑定解绑源站中,4表示配置更新中 - RuleStatus *uint64 `json:"RuleStatus,omitempty" name:"RuleStatus"` + RuleStatus *uint64 `json:"RuleStatus,omitnil" name:"RuleStatus"` // 健康检查相关参数 - CheckParams *RuleCheckParams `json:"CheckParams,omitempty" name:"CheckParams"` + CheckParams *RuleCheckParams `json:"CheckParams,omitnil" name:"CheckParams"` // 已绑定的源站相关信息 - RealServerSet []*BindRealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + RealServerSet []*BindRealServer `json:"RealServerSet,omitnil" name:"RealServerSet"` // 源站的服务状态,0表示异常,1表示正常。 // 未开启健康检查时,该状态始终未正常。 // 只要有一个源站健康状态为异常时,该状态为异常,具体源站的状态请查看RealServerSet。 - BindStatus *uint64 `json:"BindStatus,omitempty" name:"BindStatus"` + BindStatus *uint64 `json:"BindStatus,omitnil" name:"BindStatus"` // 通道转发到源站的请求所携带的host,其中default表示直接转发接收到的host。 // 注意:此字段可能返回 null,表示取不到有效值。 - ForwardHost *string `json:"ForwardHost,omitempty" name:"ForwardHost"` + ForwardHost *string `json:"ForwardHost,omitnil" name:"ForwardHost"` // 服务器名称指示(ServerNameIndication,简称SNI)开关。ON表示开启,OFF表示关闭。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 - ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitempty" name:"ServerNameIndicationSwitch"` + ServerNameIndicationSwitch *string `json:"ServerNameIndicationSwitch,omitnil" name:"ServerNameIndicationSwitch"` // 服务器名称指示(ServerNameIndication,简称SNI),当SNI开关打开时,该字段必填。 // 注意:此字段可能返回 null,表示取不到有效值。 // 注意:此字段可能返回 null,表示取不到有效值。 - ServerNameIndication *string `json:"ServerNameIndication,omitempty" name:"ServerNameIndication"` + ServerNameIndication *string `json:"ServerNameIndication,omitnil" name:"ServerNameIndication"` // 强转HTTPS指示,当传递值为https:时表示强转为https // 注意:此字段可能返回 null,表示取不到有效值。 - ForcedRedirect *string `json:"ForcedRedirect,omitempty" name:"ForcedRedirect"` + ForcedRedirect *string `json:"ForcedRedirect,omitnil" name:"ForcedRedirect"` } type SecurityPolicyRuleIn struct { // 请求来源IP或IP段。 - SourceCidr *string `json:"SourceCidr,omitempty" name:"SourceCidr"` + SourceCidr *string `json:"SourceCidr,omitnil" name:"SourceCidr"` // 策略:允许(ACCEPT)或拒绝(DROP) - Action *string `json:"Action,omitempty" name:"Action"` + Action *string `json:"Action,omitnil" name:"Action"` // 规则别名 - AliasName *string `json:"AliasName,omitempty" name:"AliasName"` + AliasName *string `json:"AliasName,omitnil" name:"AliasName"` // 协议:TCP或UDP,ALL表示所有协议 - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 目标端口,填写格式举例: // 单个端口: 80 // 多个端口: 80,443 // 连续端口: 3306-20000 // 所有端口: ALL - DestPortRange *string `json:"DestPortRange,omitempty" name:"DestPortRange"` + DestPortRange *string `json:"DestPortRange,omitnil" name:"DestPortRange"` } type SecurityPolicyRuleOut struct { // 策略:允许(ACCEPT)或拒绝(DROP) - Action *string `json:"Action,omitempty" name:"Action"` + Action *string `json:"Action,omitnil" name:"Action"` // 请求来源Ip或Ip段 - SourceCidr *string `json:"SourceCidr,omitempty" name:"SourceCidr"` + SourceCidr *string `json:"SourceCidr,omitnil" name:"SourceCidr"` // 规则别名 - AliasName *string `json:"AliasName,omitempty" name:"AliasName"` + AliasName *string `json:"AliasName,omitnil" name:"AliasName"` // 目标端口范围 // 注意:此字段可能返回 null,表示取不到有效值。 - DestPortRange *string `json:"DestPortRange,omitempty" name:"DestPortRange"` + DestPortRange *string `json:"DestPortRange,omitnil" name:"DestPortRange"` // 规则ID - RuleId *string `json:"RuleId,omitempty" name:"RuleId"` + RuleId *string `json:"RuleId,omitnil" name:"RuleId"` // 要匹配的协议类型(TCP/UDP) // 注意:此字段可能返回 null,表示取不到有效值。 - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 安全策略ID // 注意:此字段可能返回 null,表示取不到有效值。 - PolicyId *string `json:"PolicyId,omitempty" name:"PolicyId"` + PolicyId *string `json:"PolicyId,omitnil" name:"PolicyId"` } // Predefined struct for user type SetAuthenticationRequestParams struct { // 监听器ID。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 需要进行高级配置的域名,该域名为监听器下的转发规则的域名。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 基础认证开关,其中: // 0,关闭基础认证; // 1,开启基础认证。 // 默认为0。 - BasicAuth *int64 `json:"BasicAuth,omitempty" name:"BasicAuth"` + BasicAuth *int64 `json:"BasicAuth,omitnil" name:"BasicAuth"` // 通道认证开关,用于源站对Gaap的认证,其中: // 0,关闭通道认证; // 1,开启通道认证。 // 默认为0。 - GaapAuth *int64 `json:"GaapAuth,omitempty" name:"GaapAuth"` + GaapAuth *int64 `json:"GaapAuth,omitnil" name:"GaapAuth"` // 源站认证开关,用于Gaap对服务器的认证,其中: // 0,关闭源站认证; // 1,开启源站认证。 // 默认为0。 - RealServerAuth *int64 `json:"RealServerAuth,omitempty" name:"RealServerAuth"` + RealServerAuth *int64 `json:"RealServerAuth,omitnil" name:"RealServerAuth"` // 基础认证配置ID,从证书管理页获取。 - BasicAuthConfId *string `json:"BasicAuthConfId,omitempty" name:"BasicAuthConfId"` + BasicAuthConfId *string `json:"BasicAuthConfId,omitnil" name:"BasicAuthConfId"` // 通道SSL证书ID,从证书管理页获取。 - GaapCertificateId *string `json:"GaapCertificateId,omitempty" name:"GaapCertificateId"` + GaapCertificateId *string `json:"GaapCertificateId,omitnil" name:"GaapCertificateId"` // 源站CA证书ID,从证书管理页获取。源站认证时,填写该参数或RealServerCertificateId参数 - RealServerCertificateId *string `json:"RealServerCertificateId,omitempty" name:"RealServerCertificateId"` + RealServerCertificateId *string `json:"RealServerCertificateId,omitnil" name:"RealServerCertificateId"` // 该字段已废弃,请使用创建规则和修改规则中的SNI功能。 - RealServerCertificateDomain *string `json:"RealServerCertificateDomain,omitempty" name:"RealServerCertificateDomain"` + RealServerCertificateDomain *string `json:"RealServerCertificateDomain,omitnil" name:"RealServerCertificateDomain"` // 多源站CA证书ID,从证书管理页获取。源站认证时,填写该参数或RealServerCertificateId参数 - PolyRealServerCertificateIds []*string `json:"PolyRealServerCertificateIds,omitempty" name:"PolyRealServerCertificateIds"` + PolyRealServerCertificateIds []*string `json:"PolyRealServerCertificateIds,omitnil" name:"PolyRealServerCertificateIds"` } type SetAuthenticationRequest struct { *tchttp.BaseRequest // 监听器ID。 - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 需要进行高级配置的域名,该域名为监听器下的转发规则的域名。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 基础认证开关,其中: // 0,关闭基础认证; // 1,开启基础认证。 // 默认为0。 - BasicAuth *int64 `json:"BasicAuth,omitempty" name:"BasicAuth"` + BasicAuth *int64 `json:"BasicAuth,omitnil" name:"BasicAuth"` // 通道认证开关,用于源站对Gaap的认证,其中: // 0,关闭通道认证; // 1,开启通道认证。 // 默认为0。 - GaapAuth *int64 `json:"GaapAuth,omitempty" name:"GaapAuth"` + GaapAuth *int64 `json:"GaapAuth,omitnil" name:"GaapAuth"` // 源站认证开关,用于Gaap对服务器的认证,其中: // 0,关闭源站认证; // 1,开启源站认证。 // 默认为0。 - RealServerAuth *int64 `json:"RealServerAuth,omitempty" name:"RealServerAuth"` + RealServerAuth *int64 `json:"RealServerAuth,omitnil" name:"RealServerAuth"` // 基础认证配置ID,从证书管理页获取。 - BasicAuthConfId *string `json:"BasicAuthConfId,omitempty" name:"BasicAuthConfId"` + BasicAuthConfId *string `json:"BasicAuthConfId,omitnil" name:"BasicAuthConfId"` // 通道SSL证书ID,从证书管理页获取。 - GaapCertificateId *string `json:"GaapCertificateId,omitempty" name:"GaapCertificateId"` + GaapCertificateId *string `json:"GaapCertificateId,omitnil" name:"GaapCertificateId"` // 源站CA证书ID,从证书管理页获取。源站认证时,填写该参数或RealServerCertificateId参数 - RealServerCertificateId *string `json:"RealServerCertificateId,omitempty" name:"RealServerCertificateId"` + RealServerCertificateId *string `json:"RealServerCertificateId,omitnil" name:"RealServerCertificateId"` // 该字段已废弃,请使用创建规则和修改规则中的SNI功能。 - RealServerCertificateDomain *string `json:"RealServerCertificateDomain,omitempty" name:"RealServerCertificateDomain"` + RealServerCertificateDomain *string `json:"RealServerCertificateDomain,omitnil" name:"RealServerCertificateDomain"` // 多源站CA证书ID,从证书管理页获取。源站认证时,填写该参数或RealServerCertificateId参数 - PolyRealServerCertificateIds []*string `json:"PolyRealServerCertificateIds,omitempty" name:"PolyRealServerCertificateIds"` + PolyRealServerCertificateIds []*string `json:"PolyRealServerCertificateIds,omitnil" name:"PolyRealServerCertificateIds"` } func (r *SetAuthenticationRequest) ToJsonString() string { @@ -9546,7 +9604,7 @@ func (r *SetAuthenticationRequest) FromJsonString(s string) error { // Predefined struct for user type SetAuthenticationResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type SetAuthenticationResponse struct { @@ -9567,40 +9625,45 @@ func (r *SetAuthenticationResponse) FromJsonString(s string) error { type SrcAddressInfo struct { // 内网Ip4地址 - SrcIpv4 *string `json:"SrcIpv4,omitempty" name:"SrcIpv4"` + SrcIpv4 *string `json:"SrcIpv4,omitnil" name:"SrcIpv4"` // 公网Ip4地址 - SrcPublicIpv4 *string `json:"SrcPublicIpv4,omitempty" name:"SrcPublicIpv4"` + SrcPublicIpv4 *string `json:"SrcPublicIpv4,omitnil" name:"SrcPublicIpv4"` } type StatisticsDataInfo struct { // 对应的时间点 - Time *uint64 `json:"Time,omitempty" name:"Time"` + Time *uint64 `json:"Time,omitnil" name:"Time"` // 统计数据值 // 注意:此字段可能返回 null,表示取不到有效值。 - Data *float64 `json:"Data,omitempty" name:"Data"` + Data *float64 `json:"Data,omitnil" name:"Data"` +} + +type SupportFeature struct { + // 接入区域支持的网络类型列表,normal表示支持常规BGP,cn2表示精品BGP,triple表示三网,secure_eip表示定制安全eip。 + NetworkType []*string `json:"NetworkType,omitnil" name:"NetworkType"` } type TCPListener struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 监听器转发源站端口,仅对版本为1.0的通道有效 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerPort *uint64 `json:"RealServerPort,omitempty" name:"RealServerPort"` + RealServerPort *uint64 `json:"RealServerPort,omitnil" name:"RealServerPort"` // 监听器绑定源站类型 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` // 监听器协议, TCP - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 监听器状态,其中: // 0表示运行中; @@ -9608,69 +9671,69 @@ type TCPListener struct { // 2表示销毁中; // 3表示源站调整中; // 4表示配置变更中。 - ListenerStatus *uint64 `json:"ListenerStatus,omitempty" name:"ListenerStatus"` + ListenerStatus *uint64 `json:"ListenerStatus,omitnil" name:"ListenerStatus"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 源站健康检查响应超时时间,单位:秒 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 源站健康检查时间间隔,单位:秒 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 监听器是否开启健康检查,其中: // 0表示关闭; // 1表示开启 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // 监听器绑定的源站状态, 其中: // 0表示异常; // 1表示正常。 - BindStatus *uint64 `json:"BindStatus,omitempty" name:"BindStatus"` + BindStatus *uint64 `json:"BindStatus,omitnil" name:"BindStatus"` // 监听器绑定的源站信息 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerSet []*BindRealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + RealServerSet []*BindRealServer `json:"RealServerSet,omitnil" name:"RealServerSet"` // 监听器创建时间,Unix时间戳 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 监听器获取客户端 IP 的方式,0表示TOA, 1表示Proxy Protocol // 注意:此字段可能返回 null,表示取不到有效值。 - ClientIPMethod *uint64 `json:"ClientIPMethod,omitempty" name:"ClientIPMethod"` + ClientIPMethod *uint64 `json:"ClientIPMethod,omitnil" name:"ClientIPMethod"` // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 // 注意:此字段可能返回 null,表示取不到有效值。 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 // 注意:此字段可能返回 null,表示取不到有效值。 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 // 注意:此字段可能返回 null,表示取不到有效值。 - FailoverSwitch *uint64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *uint64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 是否开启会话保持选项:0关闭, 非0开启,非0值为会话保持时间 // 注意:此字段可能返回 null,表示取不到有效值。 - SessionPersist *uint64 `json:"SessionPersist,omitempty" name:"SessionPersist"` + SessionPersist *uint64 `json:"SessionPersist,omitnil" name:"SessionPersist"` // 监听器的通道ID,如果监听器属于通道组,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 监听器的通道组ID,如果监听器属于通道,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } type TagPair struct { // 标签键 - TagKey *string `json:"TagKey,omitempty" name:"TagKey"` + TagKey *string `json:"TagKey,omitnil" name:"TagKey"` // 标签值 - TagValue *string `json:"TagValue,omitempty" name:"TagValue"` + TagValue *string `json:"TagValue,omitnil" name:"TagValue"` } type TagResourceInfo struct { @@ -9678,31 +9741,31 @@ type TagResourceInfo struct { // Proxy表示通道, // ProxyGroup表示通道组, // RealServer表示源站 - ResourceType *string `json:"ResourceType,omitempty" name:"ResourceType"` + ResourceType *string `json:"ResourceType,omitnil" name:"ResourceType"` // 资源ID - ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` } type UDPListener struct { // 监听器ID - ListenerId *string `json:"ListenerId,omitempty" name:"ListenerId"` + ListenerId *string `json:"ListenerId,omitnil" name:"ListenerId"` // 监听器名称 - ListenerName *string `json:"ListenerName,omitempty" name:"ListenerName"` + ListenerName *string `json:"ListenerName,omitnil" name:"ListenerName"` // 监听器端口 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` // 监听器转发源站端口,仅V1版本通道或通道组监听器有效 // 注意:此字段可能返回 null,表示取不到有效值。 - RealServerPort *uint64 `json:"RealServerPort,omitempty" name:"RealServerPort"` + RealServerPort *uint64 `json:"RealServerPort,omitnil" name:"RealServerPort"` // 监听器绑定源站类型 - RealServerType *string `json:"RealServerType,omitempty" name:"RealServerType"` + RealServerType *string `json:"RealServerType,omitnil" name:"RealServerType"` // 监听器协议, UDP - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 监听器状态,其中: // 0表示运行中; @@ -9710,73 +9773,73 @@ type UDPListener struct { // 2表示销毁中; // 3表示源站调整中; // 4表示配置变更中。 - ListenerStatus *uint64 `json:"ListenerStatus,omitempty" name:"ListenerStatus"` + ListenerStatus *uint64 `json:"ListenerStatus,omitnil" name:"ListenerStatus"` // 监听器源站访问策略,其中:rr表示轮询;wrr表示加权轮询;lc表示最小连接数;lrtt表示最小时延。 - Scheduler *string `json:"Scheduler,omitempty" name:"Scheduler"` + Scheduler *string `json:"Scheduler,omitnil" name:"Scheduler"` // 监听器绑定源站状态, 0表示正常,1表示IP异常,2表示域名解析异常 - BindStatus *uint64 `json:"BindStatus,omitempty" name:"BindStatus"` + BindStatus *uint64 `json:"BindStatus,omitnil" name:"BindStatus"` // 监听器绑定的源站信息 - RealServerSet []*BindRealServer `json:"RealServerSet,omitempty" name:"RealServerSet"` + RealServerSet []*BindRealServer `json:"RealServerSet,omitnil" name:"RealServerSet"` // 监听器创建时间,Unix时间戳 - CreateTime *uint64 `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *uint64 `json:"CreateTime,omitnil" name:"CreateTime"` // 是否开启会话保持选项:0关闭, 非0开启,非0值为会话保持时间 // 注意:此字段可能返回 null,表示取不到有效值。 - SessionPersist *uint64 `json:"SessionPersist,omitempty" name:"SessionPersist"` + SessionPersist *uint64 `json:"SessionPersist,omitnil" name:"SessionPersist"` // 源站健康检查时间间隔,单位:秒。时间间隔取值在[5,300]之间。 // 注意:此字段可能返回 null,表示取不到有效值。 - DelayLoop *uint64 `json:"DelayLoop,omitempty" name:"DelayLoop"` + DelayLoop *uint64 `json:"DelayLoop,omitnil" name:"DelayLoop"` // 源站健康检查响应超时时间,单位:秒。超时时间取值在[2,60]之间。超时时间应小于健康检查时间间隔DelayLoop。 // 注意:此字段可能返回 null,表示取不到有效值。 - ConnectTimeout *uint64 `json:"ConnectTimeout,omitempty" name:"ConnectTimeout"` + ConnectTimeout *uint64 `json:"ConnectTimeout,omitnil" name:"ConnectTimeout"` // 健康阈值,表示连续检查成功多少次后认定源站健康。范围为1到10 // 注意:此字段可能返回 null,表示取不到有效值。 - HealthyThreshold *uint64 `json:"HealthyThreshold,omitempty" name:"HealthyThreshold"` + HealthyThreshold *uint64 `json:"HealthyThreshold,omitnil" name:"HealthyThreshold"` // 不健康阈值,表示连续检查失败多少次数后认为源站不健康。范围为1到10 // 注意:此字段可能返回 null,表示取不到有效值。 - UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitempty" name:"UnhealthyThreshold"` + UnhealthyThreshold *uint64 `json:"UnhealthyThreshold,omitnil" name:"UnhealthyThreshold"` // 源站是否开启主备模式:1开启,0关闭,DOMAIN类型源站不支持开启 // 注意:此字段可能返回 null,表示取不到有效值。 - FailoverSwitch *int64 `json:"FailoverSwitch,omitempty" name:"FailoverSwitch"` + FailoverSwitch *int64 `json:"FailoverSwitch,omitnil" name:"FailoverSwitch"` // 源站是否开启健康检查:1开启,0关闭。 // 注意:此字段可能返回 null,表示取不到有效值。 - HealthCheck *uint64 `json:"HealthCheck,omitempty" name:"HealthCheck"` + HealthCheck *uint64 `json:"HealthCheck,omitnil" name:"HealthCheck"` // UDP源站健康类型。PORT表示检查端口,PING表示PING。 // 注意:此字段可能返回 null,表示取不到有效值。 - CheckType *string `json:"CheckType,omitempty" name:"CheckType"` + CheckType *string `json:"CheckType,omitnil" name:"CheckType"` // UDP源站健康检查探测端口。 // 注意:此字段可能返回 null,表示取不到有效值。 - CheckPort *int64 `json:"CheckPort,omitempty" name:"CheckPort"` + CheckPort *int64 `json:"CheckPort,omitnil" name:"CheckPort"` // UDP源站健康检查端口探测报文类型:TEXT表示文本。仅在健康检查类型为PORT时使用。 // 注意:此字段可能返回 null,表示取不到有效值。 - ContextType *string `json:"ContextType,omitempty" name:"ContextType"` + ContextType *string `json:"ContextType,omitnil" name:"ContextType"` // UDP源站健康检查端口探测发送报文。仅在健康检查类型为PORT时使用。 // 注意:此字段可能返回 null,表示取不到有效值。 - SendContext *string `json:"SendContext,omitempty" name:"SendContext"` + SendContext *string `json:"SendContext,omitnil" name:"SendContext"` // UDP源站健康检查端口探测接收报文。仅在健康检查类型为PORT时使用。 // 注意:此字段可能返回 null,表示取不到有效值。 - RecvContext *string `json:"RecvContext,omitempty" name:"RecvContext"` + RecvContext *string `json:"RecvContext,omitnil" name:"RecvContext"` // 监听器的通道ID,如果监听器属于通道组,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - ProxyId *string `json:"ProxyId,omitempty" name:"ProxyId"` + ProxyId *string `json:"ProxyId,omitnil" name:"ProxyId"` // 监听器的通道组ID,如果监听器属于通道,则为null // 注意:此字段可能返回 null,表示取不到有效值。 - GroupId *string `json:"GroupId,omitempty" name:"GroupId"` + GroupId *string `json:"GroupId,omitnil" name:"GroupId"` } \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index 96908e40ce..0cb0ffb501 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1147,7 +1147,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr/v20190103 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.699 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.514 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.760 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap/v20180529 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms v1.0.563 diff --git a/website/docs/d/gaap_access_regions.html.markdown b/website/docs/d/gaap_access_regions.html.markdown new file mode 100644 index 0000000000..45ed93ce77 --- /dev/null +++ b/website/docs/d/gaap_access_regions.html.markdown @@ -0,0 +1,41 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_access_regions" +sidebar_current: "docs-tencentcloud-datasource-gaap_access_regions" +description: |- + Use this data source to query detailed information of gaap access regions +--- + +# tencentcloud_gaap_access_regions + +Use this data source to query detailed information of gaap access regions + +## Example Usage + +```hcl +data "tencentcloud_gaap_access_regions" "access_regions" { +} +``` + +## Argument Reference + +The following arguments are supported: + +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `access_region_set` - Acceleration Zone Details List. + * `feature_bitmap` - Property bitmap, where each bit represents a property, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained. + * `idc_type` - The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node. + * `region_area_name` - Name of the region to which the computer room belongs. + * `region_area` - Region of the computer room. + * `region_id` - Region id. + * `region_name` - English or Chinese name of the region. + * `support_feature` - Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained. + * `network_type` - A list of network types supported by the access area, with normal indicating support for regular BGP, cn2 indicating premium BGP, triple indicating three networks, and secure_ EIP represents a custom secure EIP. + + diff --git a/website/docs/d/gaap_access_regions_by_dest_region.html.markdown b/website/docs/d/gaap_access_regions_by_dest_region.html.markdown new file mode 100644 index 0000000000..4d1d293cb3 --- /dev/null +++ b/website/docs/d/gaap_access_regions_by_dest_region.html.markdown @@ -0,0 +1,45 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_access_regions_by_dest_region" +sidebar_current: "docs-tencentcloud-datasource-gaap_access_regions_by_dest_region" +description: |- + Use this data source to query detailed information of gaap access regions by dest region +--- + +# tencentcloud_gaap_access_regions_by_dest_region + +Use this data source to query detailed information of gaap access regions by dest region + +## Example Usage + +```hcl +data "tencentcloud_gaap_access_regions_by_dest_region" "access_regions_by_dest_region" { + dest_region = "SouthChina" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `dest_region` - (Required, String) Origin region. +* `ip_address_version` - (Optional, String) IP version, can be taken as IPv4 or IPv6, with a default value of IPv4. +* `package_type` - (Optional, String) Channel package type, where Thunder represents a standard proxy group, Accelerator represents a game accelerator proxy, and CrossBorder represents a cross-border proxy. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `access_region_set` - List of available acceleration zone information. + * `bandwidth_list` - Optional bandwidth value array. + * `concurrent_list` - Optional concurrency value array. + * `feature_bitmap` - The type of computer room, where dc represents the DataCenter data center, ec represents the feature bitmap, and each bit represents a feature, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained. Edge nodes. + * `idc_type` - The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node. + * `region_area_name` - Region name of the computer room. + * `region_area` - Region of the computer room. + * `region_id` - Region id. + * `region_name` - Chinese or English name of the region. + + diff --git a/website/docs/d/gaap_black_header.html.markdown b/website/docs/d/gaap_black_header.html.markdown new file mode 100644 index 0000000000..7b90bfd133 --- /dev/null +++ b/website/docs/d/gaap_black_header.html.markdown @@ -0,0 +1,33 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_black_header" +sidebar_current: "docs-tencentcloud-datasource-gaap_black_header" +description: |- + Use this data source to query detailed information of gaap black header +--- + +# tencentcloud_gaap_black_header + +Use this data source to query detailed information of gaap black header + +## Example Usage + +```hcl +data "tencentcloud_gaap_black_header" "black_header" { +} +``` + +## Argument Reference + +The following arguments are supported: + +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `black_headers` - Disabled custom header listNote: This field may return null, indicating that a valid value cannot be obtained. + + diff --git a/website/docs/d/gaap_country_area_mapping.html.markdown b/website/docs/d/gaap_country_area_mapping.html.markdown new file mode 100644 index 0000000000..26bf4b3215 --- /dev/null +++ b/website/docs/d/gaap_country_area_mapping.html.markdown @@ -0,0 +1,40 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_country_area_mapping" +sidebar_current: "docs-tencentcloud-datasource-gaap_country_area_mapping" +description: |- + Use this data source to query detailed information of gaap country area mapping +--- + +# tencentcloud_gaap_country_area_mapping + +Use this data source to query detailed information of gaap country area mapping + +## Example Usage + +```hcl +data "tencentcloud_gaap_country_area_mapping" "country_area_mapping" { +} +``` + +## Argument Reference + +The following arguments are supported: + +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `country_area_mapping_list` - Country/region code mapping table. + * `continent_inner_code` - Continental Code. + * `continent_name` - The name of the continent. + * `geographical_zone_inner_code` - Region code. + * `geographical_zone_name` - Region name. + * `nation_country_inner_code` - Country code. + * `nation_country_name` - Country name. + * `remark` - Annotation InformationNote: This field may return null, indicating that a valid value cannot be obtained. + + diff --git a/website/docs/d/gaap_custom_header.html.markdown b/website/docs/d/gaap_custom_header.html.markdown new file mode 100644 index 0000000000..cf80b66f8d --- /dev/null +++ b/website/docs/d/gaap_custom_header.html.markdown @@ -0,0 +1,37 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_custom_header" +sidebar_current: "docs-tencentcloud-datasource-gaap_custom_header" +description: |- + Use this data source to query detailed information of gaap custom header +--- + +# tencentcloud_gaap_custom_header + +Use this data source to query detailed information of gaap custom header + +## Example Usage + +```hcl +data "tencentcloud_gaap_custom_header" "custom_header" { + rule_id = "rule-9sdhv655" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `rule_id` - (Required, String) Rule IdNote: This field may return null, indicating that a valid value cannot be obtained. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `headers` - HeadersNote: This field may return null, indicating that a valid value cannot be obtained. + * `header_name` - Header Name. + * `header_value` - Header Value. + + diff --git a/website/docs/d/gaap_dest_regions.html.markdown b/website/docs/d/gaap_dest_regions.html.markdown new file mode 100644 index 0000000000..f03b8cfba3 --- /dev/null +++ b/website/docs/d/gaap_dest_regions.html.markdown @@ -0,0 +1,41 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_dest_regions" +sidebar_current: "docs-tencentcloud-datasource-gaap_dest_regions" +description: |- + Use this data source to query detailed information of gaap dest regions +--- + +# tencentcloud_gaap_dest_regions + +Use this data source to query detailed information of gaap dest regions + +## Example Usage + +```hcl +data "tencentcloud_gaap_dest_regions" "dest_regions" { +} +``` + +## Argument Reference + +The following arguments are supported: + +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `dest_region_set` - Source Site Area Details List. + * `feature_bitmap` - Property bitmap, where each bit represents a property, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained. + * `idc_type` - The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node. + * `region_area_name` - Region name of the computer room. + * `region_area` - Region of the computer room. + * `region_id` - region ID. + * `region_name` - region name. + * `support_feature` - Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained. + * `network_type` - A list of network types supported by the access area, with normal indicating support for regular BGP, cn2 indicating premium BGP, triple indicating three networks, and secure_EIP represents a custom secure EIP. + + diff --git a/website/docs/d/gaap_proxy_detail.html.markdown b/website/docs/d/gaap_proxy_detail.html.markdown new file mode 100644 index 0000000000..c7e6e3ce68 --- /dev/null +++ b/website/docs/d/gaap_proxy_detail.html.markdown @@ -0,0 +1,91 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_proxy_detail" +sidebar_current: "docs-tencentcloud-datasource-gaap_proxy_detail" +description: |- + Use this data source to query detailed information of gaap proxy detail +--- + +# tencentcloud_gaap_proxy_detail + +Use this data source to query detailed information of gaap proxy detail + +## Example Usage + +```hcl +data "tencentcloud_gaap_proxy_detail" "proxy_detail" { + proxy_id = "link-8lpyo88p" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `proxy_id` - (Required, String) Proxy Id. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `proxy_detail` - Proxy Detail. + * `access_region_info` - Detailed information about the access region, including the region ID and domain name.Note: This field may return null, indicating that a valid value cannot be obtained. + * `feature_bitmap` - Property bitmap, where each bit represents a property, where:0 indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained. + * `idc_type` - The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node. + * `region_area_name` - Region name of the computer room. + * `region_area` - Region of the computer room. + * `region_id` - Region Id. + * `region_name` - Region Name. + * `support_feature` - Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained. + * `network_type` - A list of network types supported by the access area, with normal indicating support for regular BGP, cn2 indicating premium BGP, triple indicating three networks, and secure_EIP represents a custom secure EIP. + * `access_region` - Access Region. + * `ban_status` - Blocking and Unblocking Status: BANNED indicates that the ban has been lifted, RECOVER indicates that the ban has been lifted or not, BANNING indicates that the ban is in progress, RECOVERING indicates that the ban is being lifted, BAN_FAILED indicates that the ban has failed, RECOVER_FAILED indicates that the unblocking has failed.Note: This field may return null, indicating that a valid value cannot be obtained. + * `bandwidth` - Band width, in Mbps. + * `billing_type` - Billing type: 0 represents bandwidth based billing, and 1 represents traffic based billing.Note: This field may return null, indicating that a valid value cannot be obtained. + * `client_ip_method` - The method of obtaining client IP through proxys, where 0 represents TOA and 1 represents Proxy ProtocolNote: This field may return null, indicating that a valid value cannot be obtained. + * `concurrent` - Concurrent, in 10000 pieces/second. + * `create_time` - The creation time, using a Unix timestamp, represents the number of seconds that have passed since January 1, 1970 (midnight UTC/GMT). + * `domain` - Domain. + * `feature_bitmap` - Property bitmap, where each bit represents a property, where:0 indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained.Note: This field may return null, indicating that a valid value cannot be obtained. + * `forward_ip` - proxy forwarding IP. + * `group_id` - proxy group ID, which exists when a proxy belongs to a certain proxy group.Note: This field may return null, indicating that a valid value cannot be obtained. + * `http3_supported` - Identification that supports the Http3 protocol, where:0 indicates shutdown;1 indicates enabled.Note: This field may return null, indicating that a valid value cannot be obtained. + * `in_ban_blacklist` - Is it on the banned blacklist? 0 indicates not on the blacklist, and 1 indicates on the blacklist.Note: This field may return null, indicating that a valid value cannot be obtained. + * `instance_id` - (Old parameter, please use ProxyId) Proxy instance ID.Note: This field may return null, indicating that a valid value cannot be obtained. + * `ip_address_version` - IP version: IPv4, IPv6Note: This field may return null, indicating that a valid value cannot be obtained. + * `ip_list` - IP ListNote: This field may return null, indicating that a valid value cannot be obtained. + * `bandwidth` - Band width. + * `ip` - IP. + * `provider` - Supplier, BGP represents default, CMCC represents China Mobile, CUCC represents China Unicom, and CTCC represents China Telecom. + * `ip` - IP. + * `modify_config_time` - Configuration change timeNote: This field may return null, indicating that a valid value cannot be obtained. + * `network_type` - Network type: normal represents regular BGP, cn2 represents premium BGP, triple represents triple network, secure_EIP represents customized security EIPNote: This field may return null, indicating that a valid value cannot be obtained. + * `package_type` - proxy package type: Thunder represents standard proxy, Accelerator represents silver acceleration proxy,CrossBorder represents a cross-border proxy.Note: This field may return null, indicating that a valid value cannot be obtained. + * `policy_id` - Security policy ID, which exists when a security policy is set.Note: This field may return null, indicating that a valid value cannot be obtained. + * `project_id` - Project Id. + * `proxy_id` - (New parameter) proxy instance ID.Note: This field may return null, indicating that a valid value cannot be obtained. + * `proxy_name` - Proxy Name. + * `proxy_type` - proxy type, 100 represents THUNDER proxy, 103 represents Microsoft cooperation proxyNote: This field may return null, indicating that a valid value cannot be obtained. + * `real_server_region_info` - Detailed information of the real server region, including the region ID and domain name.Note: This field may return null, indicating that a valid value cannot be obtained. + * `feature_bitmap` - Property bitmap, where each bit represents a property, where:0 indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained. + * `idc_type` - The type of computer room, where dc represents the DataCenter data center and ec represents the EdgeComputing edge node. + * `region_area_name` - Region name of the computer room. + * `region_area` - Region of the computer room. + * `region_id` - Region Id. + * `region_name` - Region Name. + * `support_feature` - Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained. + * `network_type` - A list of network types supported by the access area, with normal indicating support for regular BGP, cn2 indicating premium BGP, triple indicating three networks, and secure_EIP represents a custom secure EIP. + * `real_server_region` - Real Server Region. + * `related_global_domains` - List of domain names associated with resolutionNote: This field may return null, indicating that a valid value cannot be obtained. + * `scalarable` - 1. This proxy can be scaled and expanded; 0, this proxy cannot be scaled or expanded. + * `status` - proxy status. Among them:RUNNING indicates running;CREATING indicates being created;DESTROYING indicates being destroyed;OPENING indicates being opened;CLOSING indicates being closed;Closed indicates that it has been closed;ADJUSTING represents a configuration change in progress;ISOLATING indicates being isolated;ISOLATED indicates that it has been isolated;CLONING indicates copying;RECOVERING indicates that the proxy is being maintained;MOVING indicates that migration is in progress. + * `support_protocols` - Supported protocol types. + * `support_security` - Does it support security group configurationNote: This field may return null, indicating that a valid value cannot be obtained. + * `tag_set` - tag list, when there are no labels, this field is an empty list.Note: This field may return null, indicating that a valid value cannot be obtained. + * `tag_key` - Tag Key. + * `tag_value` - Tag Value. + * `version` - Version 1.0, 2.0, 3.0. + + diff --git a/website/docs/d/gaap_proxy_group_statistics.html.markdown b/website/docs/d/gaap_proxy_group_statistics.html.markdown new file mode 100644 index 0000000000..e25000dc46 --- /dev/null +++ b/website/docs/d/gaap_proxy_group_statistics.html.markdown @@ -0,0 +1,47 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_proxy_group_statistics" +sidebar_current: "docs-tencentcloud-datasource-gaap_proxy_group_statistics" +description: |- + Use this data source to query detailed information of gaap proxy group statistics +--- + +# tencentcloud_gaap_proxy_group_statistics + +Use this data source to query detailed information of gaap proxy group statistics + +## Example Usage + +```hcl +data "tencentcloud_gaap_proxy_group_statistics" "proxy_group_statistics" { + group_id = "link-8lpyo88p" + start_time = "2023-10-09 00:00:00" + end_time = "2023-10-09 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow"] + granularity = 300 +} +``` + +## Argument Reference + +The following arguments are supported: + +* `end_time` - (Required, String) End Time. +* `granularity` - (Required, Int) Monitoring granularity, currently supporting 60 300 3600 86400, in seconds.When the time range does not exceed 1 day, support a minimum granularity of 60 seconds;When the time range does not exceed 7 days, support a minimum granularity of 3600 seconds;When the time range does not exceed 30 days, the minimum granularity supported is 86400 seconds. +* `group_id` - (Required, String) Group Id. +* `metric_names` - (Required, Set: [`String`]) Metric Names. support, InBandwidth, OutBandwidth, Concurrent, InPackets, OutPackets. +* `start_time` - (Required, String) Start Time. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `statistics_data` - proxy Group Statistics. + * `metric_data` - Metric Data. + * `data` - DataNote: This field may return null, indicating that a valid value cannot be obtained. + * `time` - Time. + * `metric_name` - Metric Name. + + diff --git a/website/docs/d/gaap_proxy_groups.html.markdown b/website/docs/d/gaap_proxy_groups.html.markdown new file mode 100644 index 0000000000..2cc9eb0534 --- /dev/null +++ b/website/docs/d/gaap_proxy_groups.html.markdown @@ -0,0 +1,73 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_proxy_groups" +sidebar_current: "docs-tencentcloud-datasource-gaap_proxy_groups" +description: |- + Use this data source to query detailed information of gaap proxy groups +--- + +# tencentcloud_gaap_proxy_groups + +Use this data source to query detailed information of gaap proxy groups + +## Example Usage + +```hcl +data "tencentcloud_gaap_proxy_groups" "proxy_groups" { + project_id = 0 + filters { + name = "GroupId" + values = ["lg-5anbbou5"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `project_id` - (Required, Int) Project ID. Value range:-1, All projects under this user0, default projectOther values, specified items. +* `filters` - (Optional, List) Filter conditions,The upper limit of Filter.Values per request is 5.RealServerRegion - String - Required: No - (filtering criteria) Filter by real server region, refer to the RegionId in the returned results of the DescribeDestRegions interface.PackageType - String - Required: No - (Filter condition) proxy group type, where &#39;Thunder&#39; represents the standard proxy group and &#39;Accelerator&#39; represents the silver acceleration proxy group. +* `result_output_file` - (Optional, String) Used to save results. +* `tag_set` - (Optional, List) Tag list, when this field exists, pulls the resource list under the corresponding tag.Supports a maximum of 5 labels. When there are two or more labels and any one of them is met, the proxy group will be pulled out. + +The `filters` object supports the following: + +* `name` - (Required, String) Filter conditions. +* `values` - (Required, Set) filtering value. + +The `tag_set` object supports the following: + +* `tag_key` - (Required, String) Tag Key. +* `tag_value` - (Required, String) Tag Value. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `proxy_group_list` - List of proxy groups.Note: This field may return null, indicating that a valid value cannot be obtained. + * `create_time` - Create TimeNote: This field may return null, indicating that a valid value cannot be obtained. + * `domain` - proxy group domain nameNote: This field may return null, indicating that a valid value cannot be obtained. + * `feature_bitmap` - Property bitmap, where each bit represents a property, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained. + * `group_id` - proxy group Id. + * `group_name` - proxy Group NameNote: This field may return null, indicating that a valid value cannot be obtained. + * `http3_supported` - Supports the identification of Http3 features, where:0 indicates shutdown;1 indicates enabled.Note: This field may return null, indicating that a valid value cannot be obtained. + * `project_id` - Project Id. + * `proxy_type` - Does the proxy group include Microsoft proxysNote: This field may return null, indicating that a valid value cannot be obtained. + * `real_server_region_info` - Real Server Region Info. + * `feature_bitmap` - Property bitmap, where each bit represents a property, where:0, indicates that the feature is not supported;1, indicates support for this feature.The meaning of the feature bitmap is as follows (from right to left):The first bit supports 4-layer acceleration;The second bit supports 7-layer acceleration;The third bit supports Http3 access;The fourth bit supports IPv6;The fifth bit supports high-quality BGP access;The 6th bit supports three network access;The 7th bit supports QoS acceleration in the access segment.Note: This field may return null, indicating that a valid value cannot be obtained. + * `idc_type` - The type of computer room, where 'dc' represents the DataCenter data center and 'ec' represents the EdgeComputing edge node. + * `region_area_name` - Region name of the computer room. + * `region_area` - Region of the computer room. + * `region_id` - Region Id. + * `region_name` - Region Name. + * `support_feature` - Ability to access regional supportNote: This field may return null, indicating that a valid value cannot be obtained. + * `network_type` - A list of network types supported by the access area, with 'normal' indicating support for regular BGP, 'cn2' indicating premium BGP, 'triple' indicating three networks, and 'secure_EIP' represents a custom secure EIP. + * `status` - proxy group status.Among them,'RUNNING' indicates running;'CREATING' indicates being created;'DESTROYING' indicates being destroyed;'MOVING' indicates that the proxy is being migrated;'CHANGING' indicates partial deployment. + * `tag_set` - Tag Set. + * `tag_key` - Tag Key. + * `tag_value` - Tag Value. + * `version` - proxy Group VersionNote: This field may return null, indicating that a valid value cannot be obtained. + + diff --git a/website/docs/d/gaap_proxy_statistics.html.markdown b/website/docs/d/gaap_proxy_statistics.html.markdown new file mode 100644 index 0000000000..626e1a0f05 --- /dev/null +++ b/website/docs/d/gaap_proxy_statistics.html.markdown @@ -0,0 +1,48 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_proxy_statistics" +sidebar_current: "docs-tencentcloud-datasource-gaap_proxy_statistics" +description: |- + Use this data source to query detailed information of gaap proxy statistics +--- + +# tencentcloud_gaap_proxy_statistics + +Use this data source to query detailed information of gaap proxy statistics + +## Example Usage + +```hcl +data "tencentcloud_gaap_proxy_statistics" "proxy_statistics" { + proxy_id = "link-8lpyo88p" + start_time = "2023-10-09 00:00:00" + end_time = "2023-10-09 23:59:59" + metric_names = ["InBandwidth", "OutBandwidth", "InFlow", "OutFlow", "InPackets", "OutPackets", "Concurrent", "HttpQPS", "HttpsQPS", "Latency", "PacketLoss"] + granularity = 300 +} +``` + +## Argument Reference + +The following arguments are supported: + +* `end_time` - (Required, String) End Time(2019-03-25 12:00:00). +* `granularity` - (Required, Int) Monitoring granularity, currently supporting 60 300 3600 86400, in seconds.When the time range does not exceed 3 days, support a minimum granularity of 60 seconds;When the time range does not exceed 7 days, support a minimum granularity of 300 seconds;When the time range does not exceed 30 days, the minimum granularity supported is 3600 seconds. +* `metric_names` - (Required, Set: [`String`]) Metric Names. Valid values: InBandwidth,OutBandwidth, Concurrent, InPackets, OutPackets, PacketLoss, Latency, HttpQPS, HttpsQPS. +* `proxy_id` - (Required, String) Proxy Id. +* `start_time` - (Required, String) Start Time(2019-03-25 12:00:00). +* `isp` - (Optional, String) Operator (valid when the proxy is a three network proxy), supports CMCC, CUCC, CTCC, and merges data from the three operators if null values are passed or not passed. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `statistics_data` - proxy Statistics. + * `metric_data` - Metric Data. + * `data` - DataNote: This field may return null, indicating that a valid value cannot be obtained. + * `time` - Time. + * `metric_name` - Metric Name. + + diff --git a/website/docs/d/gaap_real_servers_status.html.markdown b/website/docs/d/gaap_real_servers_status.html.markdown new file mode 100644 index 0000000000..77055e1c47 --- /dev/null +++ b/website/docs/d/gaap_real_servers_status.html.markdown @@ -0,0 +1,39 @@ +--- +subcategory: "Global Application Acceleration(GAAP)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_gaap_real_servers_status" +sidebar_current: "docs-tencentcloud-datasource-gaap_real_servers_status" +description: |- + Use this data source to query detailed information of gaap real servers status +--- + +# tencentcloud_gaap_real_servers_status + +Use this data source to query detailed information of gaap real servers status + +## Example Usage + +```hcl +data "tencentcloud_gaap_real_servers_status" "real_servers_status" { + real_server_ids = ["rs-qcygnwpd"] +} +``` + +## Argument Reference + +The following arguments are supported: + +* `real_server_ids` - (Required, Set: [`String`]) Real Server Ids. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `real_server_status_set` - Real Server Status Set. + * `bind_status` - Bind Status, 0 indicates unbound, 1 indicates bound by rules or listeners. + * `group_id` - Bind the group ID of this real server, which is an empty string when not bound.Note: This field may return null, indicating that a valid value cannot be obtained. + * `proxy_id` - Bind the proxy ID of this real server, which is an empty string when not bound. + * `real_server_id` - Real Server Id. + + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index 5f373ff2c7..3932817f7e 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -1918,9 +1918,27 @@
  • Data Sources