diff --git a/.changelog/2218.txt b/.changelog/2218.txt new file mode 100644 index 0000000000..c14cb98de8 --- /dev/null +++ b/.changelog/2218.txt @@ -0,0 +1,3 @@ +```release-note:new-data-source +tencentcloud_dnspod_domain_list +``` diff --git a/.changelog/2220.txt b/.changelog/2220.txt new file mode 100644 index 0000000000..24f23fe5ce --- /dev/null +++ b/.changelog/2220.txt @@ -0,0 +1,11 @@ +```release-note:new-resource +tencentcloud_cam_tag_role_attachment +``` + +```release-note:new-data-source +tencentcloud_cam_list_attached_user_policy +``` + +```release-note:enhancement +tencentcloud_ckafka_instance: Support api `UpdateRoleConsoleLogin` +``` \ No newline at end of file diff --git a/.changelog/2221.txt b/.changelog/2221.txt new file mode 100644 index 0000000000..abcde77566 --- /dev/null +++ b/.changelog/2221.txt @@ -0,0 +1,3 @@ +```release-note:new-data-source +tencentcloud_dnspod_domain_analytics +``` diff --git a/.changelog/2222.txt b/.changelog/2222.txt new file mode 100644 index 0000000000..b4ba6bbb20 --- /dev/null +++ b/.changelog/2222.txt @@ -0,0 +1,19 @@ +```release-note:new-data-source +tencentcloud_kms_white_box_decrypt_key +``` + +```release-note:new-data-source +tencentcloud_kms_white_box_device_fingerprints +``` + +```release-note:new-data-source +tencentcloud_kms_list_algorithms +``` + +```release-note:new-resource +tencentcloud_kms_cloud_resource_attachment +``` + +```release-note:new-resource +tencentcloud_kms_overwrite_white_box_device_fingerprints +``` \ No newline at end of file diff --git a/.changelog/2225.txt b/.changelog/2225.txt new file mode 100644 index 0000000000..496d59d685 --- /dev/null +++ b/.changelog/2225.txt @@ -0,0 +1,15 @@ +```release-note:new-resource +tencentcloud_cam_set_policy_version_config +``` + +```release-note:new-data-source +tencentcloud_cam_account_summary +``` + +```release-note:new-data-source +tencentcloud_cam_policy_granting_service_access +``` + +```release-note:new-data-source +tencentcloud_cam_secret_last_used_time +``` \ No newline at end of file diff --git a/.changelog/2226.txt b/.changelog/2226.txt new file mode 100644 index 0000000000..7165c701d7 --- /dev/null +++ b/.changelog/2226.txt @@ -0,0 +1,3 @@ +```release-note:new-resource +tencentcloud_cam_role_permission_boundary_attachment +``` \ No newline at end of file diff --git a/.changelog/2227.txt b/.changelog/2227.txt new file mode 100644 index 0000000000..15bd03f0fd --- /dev/null +++ b/.changelog/2227.txt @@ -0,0 +1,7 @@ +```release-note:enhancement +resource/tencentcloud_kubernetes_auth_attachment: Support OIDC config. +``` + +```release-note:new-data-source +tencentcloud_cam_oidc_config +``` \ No newline at end of file diff --git a/.changelog/2228.txt b/.changelog/2228.txt new file mode 100644 index 0000000000..3b8c43903d --- /dev/null +++ b/.changelog/2228.txt @@ -0,0 +1,19 @@ +```release-note:new-resource +tencentcloud_elasticsearch_logstash +``` + +```release-note:new-resource +tencentcloud_elasticsearch_logstash_pipeline +``` + +```release-note:new-resource +tencentcloud_elasticsearch_restart_logstash_instance_operation +``` + +```release-note:new-resource +tencentcloud_elasticsearch_start_logstash_pipeline_operation +``` + +```release-note:new-resource +tencentcloud_elasticsearch_stop_logstash_pipeline_operation +``` diff --git a/.changelog/2229.txt b/.changelog/2229.txt new file mode 100644 index 0000000000..6193422a0e --- /dev/null +++ b/.changelog/2229.txt @@ -0,0 +1,3 @@ +```release-note:new-resource +tencentcloud_organization_quit_organization_operation +``` \ No newline at end of file diff --git a/go.mod b/go.mod index 76d9ce8fd9..07b45e27d9 100644 --- a/go.mod +++ b/go.mod @@ -45,7 +45,7 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.693 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.544 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.711 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.763 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.765 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.692 @@ -54,12 +54,12 @@ require ( github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dc v1.0.633 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb v1.0.673 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.0.726 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.539 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.765 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dts v1.0.628 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/eb v1.0.760 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.762 - github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.699 + github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.762 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 diff --git a/go.sum b/go.sum index 60f5f36eae..5fe93e7d95 100644 --- a/go.sum +++ b/go.sum @@ -860,9 +860,14 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.756/go.mod github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.758/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.759/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.760/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.761 h1:b1f43YFT8Hp9XUgQ2jc89O3vQBP76bQtHfHqaYCQfxk= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.761/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.762 h1:ixDQofTbSDKpIwNI+yUgEUrUBH18m2Jb+ZQjFnTnAcU= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.762/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.763 h1:N+/GDFRlTSgufNGIotPcPRe1+tF0H94K0z11cleqhDg= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.763/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.765 h1:Du0gzA7g0eBDbw8bxBqecm8eSuJacWSkjBCI2Lc3ry8= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.765/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624 h1:nEZqsoqt1pEoaP9JjkHQy3/H00suCfzlHW1qOm2nYD8= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.624/go.mod h1:+TXSVyeKwt1IhZRqKPbTREteBcP+K07Q846/ilNzLWA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762 h1:2egy69SP/wPsmnfozcQVZ6tUY6F6N/TpEe/7xtXrc/8= @@ -881,6 +886,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.0.726 h1:oedM2Jw github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.0.726/go.mod h1:zwU0EY443AsQt95XFgnzT1GbldP/CahRchSM0oo1xX8= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.539 h1:V+oo20w9aLxAoSSEGVplke2kq72MdUA4OuagCv4gsiY= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.539/go.mod h1:gtPd3Hy8DA/4EErHNJliWeJB1sxZ9DhqenWiYZ3PF6g= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.765 h1:46VxMLFcM3mWr+GdOHmMCXsQM8Mle7pOip1z2RWmubU= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.765/go.mod h1:EYfCXcZvLWidtpSNYsR2pvrBCUmOza39kox80Ud6PZg= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 h1:egwjvOEUKBaxsoRVn/YSEhp2E8qdh77Ous9A/wftDo0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414/go.mod h1:LRWnBUNRxs/Ee8MzJJd3eHzydlqyB5qmia975Ca/Ox0= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dts v1.0.628 h1:cnhe9uh8tSyBfiPUckfqNI6t51YNZG9POupTrqWG9lM= @@ -891,6 +898,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.762 h1:P5F8iay github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.762/go.mod h1:8RFnUUZiVWlGt55IF+Bkw0bNoPxmvgMS7uxuGBNrsYA= github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.699 h1:7lFObucmWErYOh+5/AzpgerUAFoO72XqhXrAzFltTIo= 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/es v1.0.762 h1:wMEstAZSsYiJt8VhqTYI4ruHlsR/kGM7of/k1hvMc+E= +github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.762/go.mod h1:sLciuxT00FNMrcosjHG/iV6ApXnsY1kx+9B+oicr3qY= 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= diff --git a/tencentcloud/basic_test.go b/tencentcloud/basic_test.go index c204d4f93d..d8340578c9 100644 --- a/tencentcloud/basic_test.go +++ b/tencentcloud/basic_test.go @@ -1097,6 +1097,7 @@ variable "cert_id" { const ( defaultEsInstanceId = "es-5wn36he6" defaultEsSecurityGroup = "sg-edmur627" + defaultEsLogstash = "ls-kru90fkz" ) const DefaultEsVariables = ` @@ -1107,6 +1108,10 @@ variable "instance_id" { variable "security_group_id" { default = "` + defaultEsSecurityGroup + `" } + +variable "logstash_id" { + default = "` + defaultEsLogstash + `" +} ` // End of TSE diff --git a/tencentcloud/data_source_tc_cam_account_summary.go b/tencentcloud/data_source_tc_cam_account_summary.go new file mode 100644 index 0000000000..64dd3d8427 --- /dev/null +++ b/tencentcloud/data_source_tc_cam_account_summary.go @@ -0,0 +1,131 @@ +/* +Use this data source to query detailed information of cam account_summary + +Example Usage + +```hcl +data "tencentcloud_cam_account_summary" "account_summary" { + } +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cam "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam/v20190116" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudCamAccountSummary() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudCamAccountSummaryRead, + Schema: map[string]*schema.Schema{ + "policies": { + Computed: true, + Type: schema.TypeInt, + Description: "The number of policy.", + }, + + "roles": { + Computed: true, + Type: schema.TypeInt, + Description: "The number of role.", + }, + + "user": { + Computed: true, + Type: schema.TypeInt, + Description: "The number of Sub-user.", + }, + + "group": { + Computed: true, + Type: schema.TypeInt, + Description: "The number of Group.", + }, + + "member": { + Computed: true, + Type: schema.TypeInt, + Description: "The number of grouped users.", + }, + + "identity_providers": { + Computed: true, + Type: schema.TypeInt, + Description: "The number of identity provider.", + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudCamAccountSummaryRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_cam_account_summary.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + AccountData := &cam.GetAccountSummaryResponseParams{} + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeCamAccountSummaryByFilter(ctx) + if e != nil { + return retryError(e) + } + AccountData = result + return nil + }) + if err != nil { + return err + } + template := make(map[string]interface{}, 0) + + if AccountData.Policies != nil { + _ = d.Set("policies", AccountData.Policies) + template["policies"] = AccountData.Policies + } + + if AccountData.Roles != nil { + _ = d.Set("roles", AccountData.Roles) + template["roles"] = AccountData.Roles + } + + if AccountData.User != nil { + _ = d.Set("user", AccountData.User) + template["user"] = AccountData.User + } + + if AccountData.Group != nil { + _ = d.Set("group", AccountData.Group) + template["group"] = AccountData.Group + } + + if AccountData.Member != nil { + _ = d.Set("member", AccountData.Member) + template["member"] = AccountData.Member + } + + if AccountData.IdentityProviders != nil { + _ = d.Set("identity_providers", AccountData.IdentityProviders) + template["identity_providers"] = AccountData.IdentityProviders + } + d.SetId(helper.BuildToken()) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), template); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_cam_account_summary_test.go b/tencentcloud/data_source_tc_cam_account_summary_test.go new file mode 100644 index 0000000000..3fd7873ef7 --- /dev/null +++ b/tencentcloud/data_source_tc_cam_account_summary_test.go @@ -0,0 +1,30 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudCamAccountSummaryDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCamAccountSummaryDataSource, + Check: resource.ComposeTestCheckFunc(testAccCheckTencentCloudDataSourceID("data.tencentcloud_cam_account_summary.account_summary")), + }, + }, + }) +} + +const testAccCamAccountSummaryDataSource = ` + +data "tencentcloud_cam_account_summary" "account_summary" { + } + +` diff --git a/tencentcloud/data_source_tc_cam_list_attached_user_policy.go b/tencentcloud/data_source_tc_cam_list_attached_user_policy.go new file mode 100644 index 0000000000..01dabbc4f9 --- /dev/null +++ b/tencentcloud/data_source_tc_cam_list_attached_user_policy.go @@ -0,0 +1,247 @@ +/* +Use this data source to query detailed information of cam list_attached_user_policy + +Example Usage + +```hcl +data "tencentcloud_cam_list_attached_user_policy" "list_attached_user_policy" { + target_uin = 100032767426 + attach_type = 0 + } +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cam "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam/v20190116" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudCamListAttachedUserPolicy() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudCamListAttachedUserPolicyRead, + Schema: map[string]*schema.Schema{ + "target_uin": { + Required: true, + Type: schema.TypeInt, + Description: "Target User ID.", + }, + + "attach_type": { + Required: true, + Type: schema.TypeInt, + Description: "0: Return direct association and group association policies, 1: Only return direct association policies, 2: Only return group association policies.", + }, + + "strategy_type": { + Optional: true, + Type: schema.TypeInt, + Description: "Policy type.", + }, + + "keyword": { + Optional: true, + Type: schema.TypeString, + Description: "Search Keywords.", + }, + + "policy_list": { + Computed: true, + Type: schema.TypeList, + Description: "Policy List Data.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "policy_id": { + Type: schema.TypeString, + Computed: true, + Description: "Policy ID.", + }, + "policy_name": { + Type: schema.TypeString, + Computed: true, + Description: "Policy Name.", + }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "Policy Description.", + }, + "add_time": { + Type: schema.TypeString, + Computed: true, + Description: "Creation time.", + }, + "strategy_type": { + Type: schema.TypeString, + Computed: true, + Description: "Policy type (1 represents custom policy, 2 represents preset policy).", + }, + "create_mode": { + Type: schema.TypeString, + Computed: true, + Description: "Creation mode (1 represents policies created by product or project permissions, others represent policies created by policy syntax).", + }, + "groups": { + Type: schema.TypeList, + Computed: true, + Description: "Associated information with groupNote: 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.TypeInt, + Computed: true, + Description: "Group ID.", + }, + "group_name": { + Type: schema.TypeString, + Computed: true, + Description: "Group Name.", + }, + }, + }, + }, + "deactived": { + Type: schema.TypeInt, + Computed: true, + Description: "Has it been taken offline (0: No 1: Yes)Note: This field may return null, indicating that a valid value cannot be obtained.", + }, + "deactived_detail": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "List of offline productsNote: 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 dataSourceTencentCloudCamListAttachedUserPolicyRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_cam_list_attached_user_policy.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + paramMap := make(map[string]interface{}) + if v, _ := d.GetOkExists("target_uin"); v != nil { + paramMap["TargetUin"] = helper.IntUint64(v.(int)) + } + + if v, _ := d.GetOkExists("attach_type"); v != nil { + paramMap["AttachType"] = helper.IntUint64(v.(int)) + } + + if v, _ := d.GetOkExists("strategy_type"); v != nil { + paramMap["StrategyType"] = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOk("keyword"); ok { + paramMap["Keyword"] = helper.String(v.(string)) + } + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + + var policyList []*cam.AttachedUserPolicy + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeCamListAttachedUserPolicyByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + policyList = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(policyList)) + tmpList := make([]map[string]interface{}, 0, len(policyList)) + + if policyList != nil { + for _, attachedUserPolicy := range policyList { + attachedUserPolicyMap := map[string]interface{}{} + + if attachedUserPolicy.PolicyId != nil { + attachedUserPolicyMap["policy_id"] = attachedUserPolicy.PolicyId + } + + if attachedUserPolicy.PolicyName != nil { + attachedUserPolicyMap["policy_name"] = attachedUserPolicy.PolicyName + } + + if attachedUserPolicy.Description != nil { + attachedUserPolicyMap["description"] = attachedUserPolicy.Description + } + + if attachedUserPolicy.AddTime != nil { + attachedUserPolicyMap["add_time"] = attachedUserPolicy.AddTime + } + + if attachedUserPolicy.StrategyType != nil { + attachedUserPolicyMap["strategy_type"] = attachedUserPolicy.StrategyType + } + + if attachedUserPolicy.CreateMode != nil { + attachedUserPolicyMap["create_mode"] = attachedUserPolicy.CreateMode + } + + if attachedUserPolicy.Groups != nil { + groupsList := []interface{}{} + for _, groups := range attachedUserPolicy.Groups { + groupsMap := map[string]interface{}{} + + if groups.GroupId != nil { + groupsMap["group_id"] = groups.GroupId + } + + if groups.GroupName != nil { + groupsMap["group_name"] = groups.GroupName + } + + groupsList = append(groupsList, groupsMap) + } + + attachedUserPolicyMap["groups"] = groupsList + } + + if attachedUserPolicy.Deactived != nil { + attachedUserPolicyMap["deactived"] = attachedUserPolicy.Deactived + } + + if attachedUserPolicy.DeactivedDetail != nil { + attachedUserPolicyMap["deactived_detail"] = attachedUserPolicy.DeactivedDetail + } + + ids = append(ids, *attachedUserPolicy.PolicyId) + tmpList = append(tmpList, attachedUserPolicyMap) + } + + _ = d.Set("policy_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_cam_list_attached_user_policy_test.go b/tencentcloud/data_source_tc_cam_list_attached_user_policy_test.go new file mode 100644 index 0000000000..ae03b3d18b --- /dev/null +++ b/tencentcloud/data_source_tc_cam_list_attached_user_policy_test.go @@ -0,0 +1,36 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudCamListAttachedUserPolicyDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCamListAttachedUserPolicyDataSource, + Check: resource.ComposeTestCheckFunc(testAccCheckTencentCloudDataSourceID("data.tencentcloud_cam_list_attached_user_policy.list_attached_user_policy"), + resource.TestCheckResourceAttrSet("data.tencentcloud_cam_list_attached_user_policy.list_attached_user_policy", "policy_list.#"), + resource.TestCheckResourceAttr("data.tencentcloud_cam_list_attached_user_policy.list_attached_user_policy", "target_uin", "100032767426"), + resource.TestCheckResourceAttr("data.tencentcloud_cam_list_attached_user_policy.list_attached_user_policy", "attach_type", "0"), + ), + }, + }, + }) +} + +const testAccCamListAttachedUserPolicyDataSource = ` + +data "tencentcloud_cam_list_attached_user_policy" "list_attached_user_policy" { + target_uin = 100032767426 + attach_type = 0 + } + +` diff --git a/tencentcloud/data_source_tc_cam_list_entities_for_policy.go b/tencentcloud/data_source_tc_cam_list_entities_for_policy.go index 53786f874a..e761411b53 100644 --- a/tencentcloud/data_source_tc_cam_list_entities_for_policy.go +++ b/tencentcloud/data_source_tc_cam_list_entities_for_policy.go @@ -96,11 +96,11 @@ func dataSourceTencentCloudCamListEntitiesForPolicyRead(d *schema.ResourceData, ctx := context.WithValue(context.TODO(), logIdKey, logId) paramMap := make(map[string]interface{}) - if v, _ := d.GetOk("policy_id"); v != nil { + if v, _ := d.GetOkExists("policy_id"); v != nil { paramMap["PolicyId"] = helper.IntUint64(v.(int)) } - if v, _ := d.GetOk("rp"); v != nil { + if v, _ := d.GetOkExists("rp"); v != nil { paramMap["Rp"] = helper.IntUint64(v.(int)) } diff --git a/tencentcloud/data_source_tc_cam_oidc_config.go b/tencentcloud/data_source_tc_cam_oidc_config.go new file mode 100644 index 0000000000..7cae3177a1 --- /dev/null +++ b/tencentcloud/data_source_tc_cam_oidc_config.go @@ -0,0 +1,157 @@ +/* +Use this data source to query detailed information of cam oidc_config + +Example Usage + +```hcl +data "tencentcloud_cam_oidc_config" "oidc_config" { + name = "cls-kzilgv5m" +} + +output "identity_key" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_key +} + +output "identity_url" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_url +} + +``` +*/ +package tencentcloud + +import ( + "log" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cam "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam/v20190116" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudCamOidcConfig() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudCamOidcConfigRead, + Schema: map[string]*schema.Schema{ + "name": { + Required: true, + Type: schema.TypeString, + Description: "Name.", + }, + + "provider_type": { + Computed: true, + Type: schema.TypeInt, + Description: "IdP type. 11: Role IdP.", + }, + + "identity_url": { + Computed: true, + Type: schema.TypeString, + Description: "IdP URL.", + }, + + "identity_key": { + Computed: true, + Type: schema.TypeString, + Description: "Public key for signature.", + }, + + "client_id": { + Computed: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Client ID.", + }, + + "status": { + Computed: true, + Type: schema.TypeInt, + Description: "Status. 0: Not set; 2: Disabled; 11: Enabled.", + }, + + "description": { + Computed: true, + Type: schema.TypeString, + Description: "Description.", + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudCamOidcConfigRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_cam_oidc_config.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + var name string + result := make(map[string]interface{}) + + request := cam.NewDescribeOIDCConfigRequest() + + if v, ok := d.GetOk("name"); ok { + name = v.(string) + request.Name = helper.String(v.(string)) + } + + var response *cam.DescribeOIDCConfigResponse + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := meta.(*TencentCloudClient).apiV3Conn.UseCamClient().DescribeOIDCConfig(request) + if e != nil { + return retryError(e) + } + response = result + return nil + }) + if err != nil { + log.Printf("[CRITAL]%s read CAM role SSO failed, reason:%s\n", logId, err.Error()) + return err + } + + if response.Response.ProviderType != nil { + _ = d.Set("provider_type", response.Response.ProviderType) + result["provider_type"] = response.Response.ProviderType + } + + if response.Response.IdentityUrl != nil { + _ = d.Set("identity_url", response.Response.IdentityUrl) + result["identity_url"] = response.Response.IdentityUrl + } + + if response.Response.IdentityKey != nil { + _ = d.Set("identity_key", response.Response.IdentityKey) + result["identity_key"] = response.Response.IdentityKey + } + + if response.Response.ClientId != nil { + _ = d.Set("client_id", response.Response.ClientId) + result["client_id"] = response.Response.ClientId + } + + if response.Response.Status != nil { + _ = d.Set("status", response.Response.Status) + result["status"] = response.Response.Status + } + + if response.Response.Description != nil { + _ = d.Set("description", response.Response.Description) + result["description"] = response.Response.Description + } + + d.SetId(name) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), result); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_cam_oidc_config_test.go b/tencentcloud/data_source_tc_cam_oidc_config_test.go new file mode 100644 index 0000000000..ea356eb90e --- /dev/null +++ b/tencentcloud/data_source_tc_cam_oidc_config_test.go @@ -0,0 +1,38 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudCamOidcConfigDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCamOidcConfigDataSource, + Check: resource.ComposeTestCheckFunc(testAccCheckTencentCloudDataSourceID("data.tencentcloud_cam_oidc_config.oidc_config")), + }, + }, + }) +} + +const testAccCamOidcConfigDataSource = ` + +data "tencentcloud_cam_oidc_config" "oidc_config" { + name = "cls-kzilgv5m" +} + +output "identity_key" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_key +} + +output "identity_url" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_url +} +` diff --git a/tencentcloud/data_source_tc_cam_policy_granting_service_access.go b/tencentcloud/data_source_tc_cam_policy_granting_service_access.go new file mode 100644 index 0000000000..7c73fd066e --- /dev/null +++ b/tencentcloud/data_source_tc_cam_policy_granting_service_access.go @@ -0,0 +1,263 @@ +/* +Use this data source to query detailed information of cam policy_granting_service_access + +Example Usage + +```hcl +data "tencentcloud_cam_policy_granting_service_access" "policy_granting_service_access" { + role_id = 4611686018436805021 + service_type = "cam" + } +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cam "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam/v20190116" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudCamPolicyGrantingServiceAccess() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudCamPolicyGrantingServiceAccessRead, + Schema: map[string]*schema.Schema{ + "target_uin": { + Optional: true, + Type: schema.TypeInt, + Description: "Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed.", + }, + + "role_id": { + Optional: true, + Type: schema.TypeInt, + Description: "Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed.", + }, + + "group_id": { + Optional: true, + Type: schema.TypeInt, + Description: "Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed.", + }, + + "service_type": { + Optional: true, + Type: schema.TypeString, + Description: "Service type, this field needs to be passed when viewing the details of the service authorization interface.", + }, + + "list": { + Computed: true, + Type: schema.TypeList, + Description: "List.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "service": { + Type: schema.TypeList, + Computed: true, + Description: "Service info.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "service_type": { + Type: schema.TypeString, + Computed: true, + Description: "Service type.", + }, + "service_name": { + Type: schema.TypeString, + Computed: true, + Description: "Service name.", + }, + }, + }, + }, + "action": { + Type: schema.TypeList, + Computed: true, + Description: "Action list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "name": { + Type: schema.TypeString, + Computed: true, + Description: "Action name.", + }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "Action description.", + }, + }, + }, + }, + "policy": { + Type: schema.TypeList, + Computed: true, + Description: "Policy list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "policy_id": { + Type: schema.TypeString, + Computed: true, + Description: "Policy Id.", + }, + "policy_name": { + Type: schema.TypeString, + Computed: true, + Description: "Policy name.", + }, + "policy_type": { + Type: schema.TypeString, + Computed: true, + Description: "Polic type.", + }, + "policy_description": { + Type: schema.TypeString, + Computed: true, + Description: "Policy description.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudCamPolicyGrantingServiceAccessRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_cam_policy_granting_service_access.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + var ( + targetUin string + roleId string + groupId string + ) + paramMap := make(map[string]interface{}) + if v, _ := d.GetOkExists("target_uin"); v != nil { + paramMap["TargetUin"] = helper.IntUint64(v.(int)) + } + + if v, _ := d.GetOkExists("role_id"); v != nil { + paramMap["RoleId"] = helper.IntUint64(v.(int)) + } + + if v, _ := d.GetOkExists("group_id"); v != nil { + paramMap["GroupId"] = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOk("service_type"); ok { + paramMap["ServiceType"] = helper.String(v.(string)) + } + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + + var list []*cam.ListGrantServiceAccessNode + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeCamPolicyGrantingServiceAccessByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + list = result + return nil + }) + if err != nil { + return err + } + + tmpList := make([]map[string]interface{}, 0, len(list)) + + if list != nil { + for _, listGrantServiceAccessNode := range list { + listGrantServiceAccessNodeMap := map[string]interface{}{} + + if listGrantServiceAccessNode.Service != nil { + serviceMap := map[string]interface{}{} + + if listGrantServiceAccessNode.Service.ServiceType != nil { + serviceMap["service_type"] = listGrantServiceAccessNode.Service.ServiceType + } + + if listGrantServiceAccessNode.Service.ServiceName != nil { + serviceMap["service_name"] = listGrantServiceAccessNode.Service.ServiceName + } + + listGrantServiceAccessNodeMap["service"] = []interface{}{serviceMap} + } + + if listGrantServiceAccessNode.Action != nil { + var actionList []interface{} + for _, action := range listGrantServiceAccessNode.Action { + actionMap := map[string]interface{}{} + + if action.Name != nil { + actionMap["name"] = action.Name + } + + if action.Description != nil { + actionMap["description"] = action.Description + } + + actionList = append(actionList, actionMap) + } + + listGrantServiceAccessNodeMap["action"] = actionList + } + + if listGrantServiceAccessNode.Policy != nil { + var policyList []interface{} + for _, policy := range listGrantServiceAccessNode.Policy { + policyMap := map[string]interface{}{} + + if policy.PolicyId != nil { + policyMap["policy_id"] = policy.PolicyId + } + + if policy.PolicyName != nil { + policyMap["policy_name"] = policy.PolicyName + } + + if policy.PolicyType != nil { + policyMap["policy_type"] = policy.PolicyType + } + + if policy.PolicyDescription != nil { + policyMap["policy_description"] = policy.PolicyDescription + } + + policyList = append(policyList, policyMap) + } + + listGrantServiceAccessNodeMap["policy"] = policyList + } + + tmpList = append(tmpList, listGrantServiceAccessNodeMap) + } + + _ = d.Set("list", tmpList) + } + + d.SetId(targetUin + FILED_SP + roleId + 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_cam_policy_granting_service_access_test.go b/tencentcloud/data_source_tc_cam_policy_granting_service_access_test.go new file mode 100644 index 0000000000..5816d75720 --- /dev/null +++ b/tencentcloud/data_source_tc_cam_policy_granting_service_access_test.go @@ -0,0 +1,32 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudCamPolicyGrantingServiceAccessDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCamPolicyGrantingServiceAccessDataSource, + Check: resource.ComposeTestCheckFunc(testAccCheckTencentCloudDataSourceID("data.tencentcloud_cam_policy_granting_service_access.policy_granting_service_access")), + }, + }, + }) +} + +const testAccCamPolicyGrantingServiceAccessDataSource = ` + +data "tencentcloud_cam_policy_granting_service_access" "policy_granting_service_access" { + role_id = 4611686018436805021 + service_type = "cam" + } + +` diff --git a/tencentcloud/data_source_tc_cam_secret_last_used_time.go b/tencentcloud/data_source_tc_cam_secret_last_used_time.go new file mode 100644 index 0000000000..9f2e5eb545 --- /dev/null +++ b/tencentcloud/data_source_tc_cam_secret_last_used_time.go @@ -0,0 +1,136 @@ +/* +Use this data source to query detailed information of cam secret_last_used_time + +Example Usage + +```hcl +data "tencentcloud_cam_secret_last_used_time" "secret_last_used_time" { + secret_id_list = ["xxxx"] + } +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cam "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam/v20190116" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudCamSecretLastUsedTime() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudCamSecretLastUsedTimeRead, + Schema: map[string]*schema.Schema{ + "secret_id_list": { + Required: true, + Sensitive: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Query the key ID list. Supports up to 10.", + }, + + "secret_id_last_used_rows": { + Computed: true, + Sensitive: true, + Type: schema.TypeList, + Description: "Last used time list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "secret_id": { + Type: schema.TypeString, + Computed: true, + Description: "Secret Id.", + }, + "last_used_date": { + Type: schema.TypeString, + Computed: true, + Description: "Last used date (with 1 day delay).", + }, + "last_secret_used_date": { + Type: schema.TypeInt, + Computed: true, + Description: "Last used timestamp.", + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudCamSecretLastUsedTimeRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_cam_secret_last_used_time.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("secret_id_list"); ok { + secretIdListSet := v.(*schema.Set).List() + paramMap["SecretIdList"] = helper.InterfacesStringsPoint(secretIdListSet) + } + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + + var secretIdLastUsedRows []*cam.SecretIdLastUsed + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeCamSecretLastUsedTimeByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + secretIdLastUsedRows = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(secretIdLastUsedRows)) + tmpList := make([]map[string]interface{}, 0, len(secretIdLastUsedRows)) + + if secretIdLastUsedRows != nil { + for _, secretIdLastUsed := range secretIdLastUsedRows { + secretIdLastUsedMap := map[string]interface{}{} + + if secretIdLastUsed.SecretId != nil { + secretIdLastUsedMap["secret_id"] = secretIdLastUsed.SecretId + } + + if secretIdLastUsed.LastUsedDate != nil { + secretIdLastUsedMap["last_used_date"] = secretIdLastUsed.LastUsedDate + } + + if secretIdLastUsed.LastSecretUsedDate != nil { + secretIdLastUsedMap["last_secret_used_date"] = secretIdLastUsed.LastSecretUsedDate + } + + ids = append(ids, *secretIdLastUsed.SecretId) + tmpList = append(tmpList, secretIdLastUsedMap) + } + + _ = d.Set("secret_id_last_used_rows", 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_cam_secret_last_used_time_test.go b/tencentcloud/data_source_tc_cam_secret_last_used_time_test.go new file mode 100644 index 0000000000..ce81798825 --- /dev/null +++ b/tencentcloud/data_source_tc_cam_secret_last_used_time_test.go @@ -0,0 +1,31 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudCamSecretLastUsedTimeDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCamSecretLastUsedTimeDataSource, + Check: resource.ComposeTestCheckFunc(testAccCheckTencentCloudDataSourceID("data.tencentcloud_cam_secret_last_used_time.secret_last_used_time")), + }, + }, + }) +} + +const testAccCamSecretLastUsedTimeDataSource = ` + +data "tencentcloud_cam_secret_last_used_time" "secret_last_used_time" { + secret_id_list = ["AKID9KZRGC1d8VjtqdIkEcnproZFzmW8oUDz"] + } + +` diff --git a/tencentcloud/data_source_tc_dnspod_domain_analytics.go b/tencentcloud/data_source_tc_dnspod_domain_analytics.go new file mode 100644 index 0000000000..0910fea43d --- /dev/null +++ b/tencentcloud/data_source_tc_dnspod_domain_analytics.go @@ -0,0 +1,380 @@ +/* +Use this data source to query detailed information of dnspod domain_analytics + +Example Usage + +```hcl + + data "tencentcloud_dnspod_domain_analytics" "domain_analytics" { + domain = "dnspod.cn" + start_date = "2023-10-07" + end_date = "2023-10-12" + dns_format = "HOUR" + # domain_id = 123 + } + +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dnspod "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudDnspodDomainAnalytics() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudDnspodDomainAnalyticsRead, + Schema: map[string]*schema.Schema{ + "domain": { + Required: true, + Type: schema.TypeString, + Description: "The domain name to query for resolution volume.", + }, + + "start_date": { + Required: true, + Type: schema.TypeString, + Description: "The start date of the query, format: YYYY-MM-DD.", + }, + + "end_date": { + Required: true, + Type: schema.TypeString, + Description: "The end date of the query, format: YYYY-MM-DD.", + }, + + "dns_format": { + Optional: true, + Type: schema.TypeString, + Description: "DATE: Statistics by day dimension HOUR: Statistics by hour dimension.", + }, + + "domain_id": { + Optional: true, + Type: schema.TypeInt, + Description: "Domain ID. The parameter DomainId has a higher priority than the parameter Domain. If the parameter DomainId is passed, the parameter Domain will be ignored. You can find all Domains and DomainIds through the DescribeDomainList interface.", + }, + + "data": { + Computed: true, + Type: schema.TypeList, + Description: "Subtotal of resolution volume for the current statistical dimension.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "num": { + Type: schema.TypeInt, + Computed: true, + Description: "Subtotal of resolution volume for the current statistical dimension.", + }, + "date_key": { + Type: schema.TypeString, + Computed: true, + Description: "For daily statistics, it is the statistical date.", + }, + "hour_key": { + Type: schema.TypeInt, + Computed: true, + Description: "For hourly statistics, it is the hour of the current time (0-23), for example, when HourKey is 23, the statistical period is the resolution volume from 22:00 to 23:00. Note: This field may return null, indicating that no valid value can be obtained.", + }, + }, + }, + }, + + "info": { + Computed: true, + Type: schema.TypeList, + Description: "Domain resolution volume statistics query information.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "dns_format": { + Type: schema.TypeString, + Computed: true, + Description: "DATE: Statistics by day dimension HOUR: Statistics by hour dimension.", + }, + "dns_total": { + Type: schema.TypeInt, + Computed: true, + Description: "Total resolution volume for the current statistical period.", + }, + "domain": { + Type: schema.TypeString, + Computed: true, + Description: "The domain name currently being queried.", + }, + "start_date": { + Type: schema.TypeString, + Computed: true, + Description: "Start time of the current statistical period.", + }, + "end_date": { + Type: schema.TypeString, + Computed: true, + Description: "End time of the current statistical period.", + }, + }, + }, + }, + + "alias_data": { + Computed: true, + Type: schema.TypeList, + Description: "Domain alias resolution volume statistics information.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "info": { + Type: schema.TypeList, + Computed: true, + Description: "Domain resolution volume statistics query information.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "dns_format": { + Type: schema.TypeString, + Computed: true, + Description: "DATE: Statistics by day dimension HOUR: Statistics by hour dimension.", + }, + "dns_total": { + Type: schema.TypeInt, + Computed: true, + Description: "Total resolution volume for the current statistical period.", + }, + "domain": { + Type: schema.TypeString, + Computed: true, + Description: "The domain name currently being queried.", + }, + "start_date": { + Type: schema.TypeString, + Computed: true, + Description: "Start time of the current statistical period.", + }, + "end_date": { + Type: schema.TypeString, + Computed: true, + Description: "End time of the current statistical period.", + }, + }, + }, + }, + "data": { + Type: schema.TypeList, + Computed: true, + Description: "Subtotal of resolution volume for the current statistical dimension.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "num": { + Type: schema.TypeInt, + Computed: true, + Description: "Subtotal of resolution volume for the current statistical dimension.", + }, + "date_key": { + Type: schema.TypeString, + Computed: true, + Description: "For daily statistics, it is the statistical date.", + }, + "hour_key": { + Type: schema.TypeInt, + Computed: true, + Description: "For hourly statistics, it is the hour of the current time (0-23), for example, when HourKey is 23, the statistical period is the resolution volume from 22:00 to 23:00. Note: This field may return null, indicating that no valid value can be obtained.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudDnspodDomainAnalyticsRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_dnspod_domain_analytics.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + var ( + domain string + aliasData []*dnspod.DomainAliasAnalyticsItem + data []*dnspod.DomainAnalyticsDetail + info *dnspod.DomainAnalyticsInfo + err error + ) + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("domain"); ok { + domain = v.(string) + paramMap["Domain"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("start_date"); ok { + paramMap["StartDate"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("end_date"); ok { + paramMap["EndDate"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("dns_format"); ok { + paramMap["DnsFormat"] = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("domain_id"); ok { + paramMap["DomainId"] = helper.IntUint64(v.(int)) + } + + service := DnspodService{client: meta.(*TencentCloudClient).apiV3Conn} + e := resource.Retry(readRetryTimeout, func() *resource.RetryError { + aliasData, data, info, err = service.DescribeDnspodDomainAnalyticsByFilter(ctx, paramMap) + if err != nil { + return retryError(err) + } + return nil + }) + if e != nil { + return e + } + + // ids := make([]string, 0, len(data)) + tmpDataList := make([]map[string]interface{}, 0, len(data)) + tmpAliasDataList := make([]map[string]interface{}, 0, len(aliasData)) + + if data != nil { + for _, domainAnalyticsDetail := range data { + domainAnalyticsDetailMap := map[string]interface{}{} + + if domainAnalyticsDetail.Num != nil { + domainAnalyticsDetailMap["num"] = domainAnalyticsDetail.Num + } + + if domainAnalyticsDetail.DateKey != nil { + domainAnalyticsDetailMap["date_key"] = domainAnalyticsDetail.DateKey + } + + if domainAnalyticsDetail.HourKey != nil { + domainAnalyticsDetailMap["hour_key"] = domainAnalyticsDetail.HourKey + } + + // ids = append(ids, *domainAnalyticsDetail.Domain) + tmpDataList = append(tmpDataList, domainAnalyticsDetailMap) + } + + _ = d.Set("data", tmpDataList) + } + + if info != nil { + domainAnalyticsInfoMap := map[string]interface{}{} + + if info.DnsFormat != nil { + domainAnalyticsInfoMap["dns_format"] = info.DnsFormat + } + + if info.DnsTotal != nil { + domainAnalyticsInfoMap["dns_total"] = info.DnsTotal + } + + if info.Domain != nil { + domainAnalyticsInfoMap["domain"] = info.Domain + } + + if info.StartDate != nil { + domainAnalyticsInfoMap["start_date"] = info.StartDate + } + + if info.EndDate != nil { + domainAnalyticsInfoMap["end_date"] = info.EndDate + } + + // ids = append(ids, *info.Domain) + // _ = d.Set("info", domainAnalyticsInfoMap) + e = helper.SetMapInterfaces(d, "info", domainAnalyticsInfoMap) + if e != nil { + return e + } + } + + if aliasData != nil { + for _, domainAliasAnalyticsItem := range aliasData { + domainAliasAnalyticsItemMap := map[string]interface{}{} + + if domainAliasAnalyticsItem.Info != nil { + infoMap := map[string]interface{}{} + + if domainAliasAnalyticsItem.Info.DnsFormat != nil { + infoMap["dns_format"] = domainAliasAnalyticsItem.Info.DnsFormat + } + + if domainAliasAnalyticsItem.Info.DnsTotal != nil { + infoMap["dns_total"] = domainAliasAnalyticsItem.Info.DnsTotal + } + + if domainAliasAnalyticsItem.Info.Domain != nil { + infoMap["domain"] = domainAliasAnalyticsItem.Info.Domain + } + + if domainAliasAnalyticsItem.Info.StartDate != nil { + infoMap["start_date"] = domainAliasAnalyticsItem.Info.StartDate + } + + if domainAliasAnalyticsItem.Info.EndDate != nil { + infoMap["end_date"] = domainAliasAnalyticsItem.Info.EndDate + } + + domainAliasAnalyticsItemMap["info"] = []interface{}{infoMap} + } + + if domainAliasAnalyticsItem.Data != nil { + dataList := []interface{}{} + for _, data := range domainAliasAnalyticsItem.Data { + dataMap := map[string]interface{}{} + + if data.Num != nil { + dataMap["num"] = data.Num + } + + if data.DateKey != nil { + dataMap["date_key"] = data.DateKey + } + + if data.HourKey != nil { + dataMap["hour_key"] = data.HourKey + } + + dataList = append(dataList, dataMap) + } + + domainAliasAnalyticsItemMap["data"] = []interface{}{dataList} + } + + // ids = append(ids, *domainAliasAnalyticsItem.Domain) + tmpAliasDataList = append(tmpAliasDataList, domainAliasAnalyticsItemMap) + } + + _ = d.Set("alias_data", tmpAliasDataList) + } + + d.SetId(helper.DataResourceIdHash(domain)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + e = writeToFile(output.(string), map[string]interface{}{ + "info": info, + "data": data, + "alias_data": aliasData, + }) + if e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_dnspod_domain_analytics_test.go b/tencentcloud/data_source_tc_dnspod_domain_analytics_test.go new file mode 100644 index 0000000000..651cc2e074 --- /dev/null +++ b/tencentcloud/data_source_tc_dnspod_domain_analytics_test.go @@ -0,0 +1,35 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudDnspodDomainAnalyticsDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDnspodDomainAnalyticsDataSource, + Check: resource.ComposeTestCheckFunc(testAccCheckTencentCloudDataSourceID("data.tencentcloud_dnspod_domain_analytics.domain_analytics")), + }, + }, + }) +} + +const testAccDnspodDomainAnalyticsDataSource = ` + +data "tencentcloud_dnspod_domain_analytics" "domain_analytics" { + domain = "iac-tf.cloud" + start_date = "2023-10-07" + end_date = "2023-10-12" + dns_format = "HOUR" + # domain_id = 123 +} + +` diff --git a/tencentcloud/data_source_tc_dnspod_domain_list.go b/tencentcloud/data_source_tc_dnspod_domain_list.go new file mode 100644 index 0000000000..02acbb53a8 --- /dev/null +++ b/tencentcloud/data_source_tc_dnspod_domain_list.go @@ -0,0 +1,540 @@ +/* +Use this data source to query detailed information of dnspod domain_list + +Example Usage + +```hcl + +data "tencentcloud_dnspod_domain_list" "domain_list" { + type = "ALL" + group_id = [1] + keyword = "" + sort_field = "UPDATED_ON" + sort_type = "DESC" + status = ["PAUSE"] + package = [""] + remark = "" + updated_at_begin = "2021-05-01 03:00:00" + updated_at_end = "2024-05-10 20:00:00" + record_count_begin = 0 + record_count_end = 100 + project_id = -1 + tags { + tag_key = "created_by" + tag_value = ["terraform"] + } +} + +``` +*/ +package tencentcloud + +import ( + "context" + "strconv" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + dnspod "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudDnspodDomainList() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudDnspodDomainListRead, + Schema: map[string]*schema.Schema{ + "type": { + Required: true, + Type: schema.TypeString, + Description: "Get domain names based on domain group type. Available values are ALL, MINE, SHARE, RECENT. ALL: All MINE: My domain names SHARE: Domain names shared with me RECENT: Recently operated domain names.", + }, + + "group_id": { + Optional: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeInt, + }, + Description: "Get domain names based on domain group id, which can be obtained through the GroupId field in DescribeDomain or DescribeDomainList interface.", + }, + + "keyword": { + Optional: true, + Type: schema.TypeString, + Description: "Get domain names based on keywords.", + }, + + "sort_field": { + Optional: true, + Type: schema.TypeString, + Description: "Sorting field. Available values are NAME, STATUS, RECORDS, GRADE, UPDATED_ON. NAME: Domain name STATUS: Domain status RECORDS: Number of records GRADE: Package level UPDATED_ON: Update time.", + }, + + "sort_type": { + Optional: true, + Type: schema.TypeString, + Description: "Sorting type, ascending: ASC, descending: DESC.", + }, + + "status": { + Optional: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Get domain names based on domain status. Available values are ENABLE, LOCK, PAUSE, SPAM. ENABLE: Normal LOCK: Locked PAUSE: Paused SPAM: Banned.", + }, + + "package": { + Optional: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Get domain names based on the package, which can be obtained through the Grade field in DescribeDomain or DescribeDomainList interface.", + }, + + "remark": { + Optional: true, + Type: schema.TypeString, + Description: "Get domain names based on remark information.", + }, + + "updated_at_begin": { + Optional: true, + Type: schema.TypeString, + Description: "The start time of the domain name&#39;s update time to be obtained, such as &#39;2021-05-01 03:00:00&#39;.", + }, + + "updated_at_end": { + Optional: true, + Type: schema.TypeString, + Description: "The end time of the domain name&#39;s update time to be obtained, such as &#39;2021-05-10 20:00:00&#39;.", + }, + + "record_count_begin": { + Optional: true, + Type: schema.TypeInt, + Description: "The start point of the domain name&#39;s record count query range.", + }, + + "record_count_end": { + Optional: true, + Type: schema.TypeInt, + Description: "The end point of the domain name&#39;s record count query range.", + }, + + "project_id": { + Optional: true, + Type: schema.TypeInt, + Description: "Project ID.", + }, + + "tags": { + Optional: true, + Type: schema.TypeList, + Description: "Tag description list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "tag_key": { + Type: schema.TypeString, + Required: true, + Description: "Field to be filtered.", + }, + "tag_value": { + Type: schema.TypeSet, + Elem: &schema.Schema{Type: schema.TypeString}, + Required: true, + Description: "Filter value of the field.", + }, + }, + }, + }, + + "domain_list": { + Computed: true, + Type: schema.TypeList, + Description: "Domain list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "domain_id": { + Type: schema.TypeInt, + Computed: true, + Description: "Unique identifier assigned to the domain by the system.", + }, + "name": { + Type: schema.TypeString, + Computed: true, + Description: "Original format of the domain.", + }, + "status": { + Type: schema.TypeString, + Computed: true, + Description: "Domain status, normal: ENABLE, paused: PAUSE, banned: SPAM.", + }, + "ttl": { + Type: schema.TypeInt, + Computed: true, + Description: "Default TTL value for domain resolution records.", + }, + "cname_speedup": { + Type: schema.TypeString, + Computed: true, + Description: "Whether to enable CNAME acceleration, enabled: ENABLE, disabled: DISABLE.", + }, + "dns_status": { + Type: schema.TypeString, + Computed: true, + Description: "DNS settings status, error: DNSERROR, normal: empty string.", + }, + "grade": { + Type: schema.TypeString, + Computed: true, + Description: "Domain package level code.", + }, + "group_id": { + Type: schema.TypeInt, + Computed: true, + Description: "Group Id the domain belongs to.", + }, + "search_engine_push": { + Type: schema.TypeString, + Computed: true, + Description: "Whether to enable search engine push optimization, YES: YES, NO: NO.", + }, + "remark": { + Type: schema.TypeString, + Computed: true, + Description: "Domain remark description.", + }, + "punycode": { + Type: schema.TypeString, + Computed: true, + Description: "Punycode encoded domain format.", + }, + "effective_dns": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "Valid DNS assigned to the domain by the system.", + }, + "grade_level": { + Type: schema.TypeInt, + Computed: true, + Description: "Sequence number corresponding to the domain package level.", + }, + "grade_title": { + Type: schema.TypeString, + Computed: true, + Description: "Package name.", + }, + "is_vip": { + Type: schema.TypeString, + Computed: true, + Description: "Whether it is a paid package.", + }, + "vip_start_at": { + Type: schema.TypeString, + Computed: true, + Description: "Paid package activation time.", + }, + "vip_end_at": { + Type: schema.TypeString, + Computed: true, + Description: "Paid package expiration time.", + }, + "vip_auto_renew": { + Type: schema.TypeString, + Computed: true, + Description: "Whether the domain has VIP auto-renewal enabled, YES: YES, NO: NO, DEFAULT: DEFAULT.", + }, + "record_count": { + Type: schema.TypeInt, + Computed: true, + Description: "Number of records under the domain.", + }, + "created_on": { + Type: schema.TypeString, + Computed: true, + Description: "Domain addition time.", + }, + "updated_on": { + Type: schema.TypeString, + Computed: true, + Description: "Domain update time.", + }, + "owner": { + Type: schema.TypeString, + Computed: true, + Description: "Domain owner account.", + }, + "tag_list": { + Type: schema.TypeList, + Computed: true, + Description: "Domain-related tag list Note: This field may return null, indicating that no valid value can 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. Note: This field may return null, indicating that no valid value can be obtained.", + }, + }, + }, + }, + }, + }, + }, + + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudDnspodDomainListRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_dnspod_domain_list.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("type"); ok { + paramMap["Type"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("group_id"); ok { + groupIds := make([]*int64, 0) + for _, item := range v.(*schema.Set).List() { + groupIds = append(groupIds, helper.IntInt64(item.(int))) + } + paramMap["GroupId"] = groupIds + } + + if v, ok := d.GetOk("keyword"); ok { + paramMap["Keyword"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("sort_field"); ok { + paramMap["SortField"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("sort_type"); ok { + paramMap["SortType"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("status"); ok { + statusSet := v.(*schema.Set).List() + paramMap["Status"] = helper.InterfacesStringsPoint(statusSet) + } + + if v, ok := d.GetOk("package"); ok { + packageSet := v.(*schema.Set).List() + paramMap["Package"] = helper.InterfacesStringsPoint(packageSet) + } + + if v, ok := d.GetOk("remark"); ok { + paramMap["Remark"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("updated_at_begin"); ok { + paramMap["UpdatedAtBegin"] = helper.String(v.(string)) + } + + if v, ok := d.GetOk("updated_at_end"); ok { + paramMap["UpdatedAtEnd"] = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("record_count_begin"); ok { + paramMap["RecordCountBegin"] = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOkExists("record_count_end"); ok { + paramMap["RecordCountEnd"] = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOkExists("project_id"); ok { + paramMap["ProjectId"] = helper.IntInt64(v.(int)) + } + + // tags := helper.GetTagsFilter(d, "tags") + if v, ok := d.GetOk("tags"); ok { + tagsSet := v.([]interface{}) + tmpSet := make([]*dnspod.TagItemFilter, 0, len(tagsSet)) + + for _, item := range tagsSet { + filter := dnspod.TagItemFilter{} + filterMap := item.(map[string]interface{}) + + if v, ok := filterMap["tag_key"]; ok { + filter.TagKey = helper.String(v.(string)) + } + + if v, ok := filterMap["tag_value"]; ok { + valuesSet := v.(*schema.Set).List() + filter.TagValue = helper.InterfacesStringsPoint(valuesSet) + } + + tmpSet = append(tmpSet, &filter) + } + + paramMap["Tags"] = tmpSet + } + + service := DnspodService{client: meta.(*TencentCloudClient).apiV3Conn} + + var domainList []*dnspod.DomainListItem + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeDnspodDomainListByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + domainList = result + return nil + }) + if err != nil { + return err + } + + ids := make([]string, 0, len(domainList)) + tmpList := make([]map[string]interface{}, 0, len(domainList)) + if domainList != nil { + for _, domainListItem := range domainList { + domainListItemMap := map[string]interface{}{} + + if domainListItem.DomainId != nil { + domainListItemMap["domain_id"] = domainListItem.DomainId + } + + if domainListItem.Name != nil { + domainListItemMap["name"] = domainListItem.Name + } + + if domainListItem.Status != nil { + domainListItemMap["status"] = domainListItem.Status + } + + if domainListItem.TTL != nil { + domainListItemMap["ttl"] = domainListItem.TTL + } + + if domainListItem.CNAMESpeedup != nil { + domainListItemMap["cname_speedup"] = domainListItem.CNAMESpeedup + } + + if domainListItem.DNSStatus != nil { + domainListItemMap["dns_status"] = domainListItem.DNSStatus + } + + if domainListItem.Grade != nil { + domainListItemMap["grade"] = domainListItem.Grade + } + + if domainListItem.GroupId != nil { + domainListItemMap["group_id"] = domainListItem.GroupId + } + + if domainListItem.SearchEnginePush != nil { + domainListItemMap["search_engine_push"] = domainListItem.SearchEnginePush + } + + if domainListItem.Remark != nil { + domainListItemMap["remark"] = domainListItem.Remark + } + + if domainListItem.Punycode != nil { + domainListItemMap["punycode"] = domainListItem.Punycode + } + + if domainListItem.EffectiveDNS != nil { + domainListItemMap["effective_dns"] = domainListItem.EffectiveDNS + } + + if domainListItem.GradeLevel != nil { + domainListItemMap["grade_level"] = domainListItem.GradeLevel + } + + if domainListItem.GradeTitle != nil { + domainListItemMap["grade_title"] = domainListItem.GradeTitle + } + + if domainListItem.IsVip != nil { + domainListItemMap["is_vip"] = domainListItem.IsVip + } + + if domainListItem.VipStartAt != nil { + domainListItemMap["vip_start_at"] = domainListItem.VipStartAt + } + + if domainListItem.VipEndAt != nil { + domainListItemMap["vip_end_at"] = domainListItem.VipEndAt + } + + if domainListItem.VipAutoRenew != nil { + domainListItemMap["vip_auto_renew"] = domainListItem.VipAutoRenew + } + + if domainListItem.RecordCount != nil { + domainListItemMap["record_count"] = domainListItem.RecordCount + } + + if domainListItem.CreatedOn != nil { + domainListItemMap["created_on"] = domainListItem.CreatedOn + } + + if domainListItem.UpdatedOn != nil { + domainListItemMap["updated_on"] = domainListItem.UpdatedOn + } + + if domainListItem.Owner != nil { + domainListItemMap["owner"] = domainListItem.Owner + } + + if domainListItem.TagList != nil { + tagListList := []interface{}{} + for _, tagList := range domainListItem.TagList { + tagListMap := map[string]interface{}{} + + if tagList.TagKey != nil { + tagListMap["tag_key"] = tagList.TagKey + } + + if tagList.TagValue != nil { + tagListMap["tag_value"] = tagList.TagValue + } + + tagListList = append(tagListList, tagListMap) + } + + domainListItemMap["tag_list"] = []interface{}{tagListList} + } + + ids = append(ids, strconv.FormatUint(*domainListItem.DomainId, 10)) + tmpList = append(tmpList, domainListItemMap) + } + + _ = d.Set("domain_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_dnspod_domain_list_test.go b/tencentcloud/data_source_tc_dnspod_domain_list_test.go new file mode 100644 index 0000000000..07f730b0ea --- /dev/null +++ b/tencentcloud/data_source_tc_dnspod_domain_list_test.go @@ -0,0 +1,47 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudDnspodDomainListDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccDnspodDomainListDataSource, + Check: resource.ComposeTestCheckFunc(testAccCheckTencentCloudDataSourceID("data.tencentcloud_dnspod_domain_list.domain_list")), + }, + }, + }) +} + +const testAccDnspodDomainListDataSource = ` + +data "tencentcloud_dnspod_domain_list" "domain_list" { + type = "ALL" + group_id = [1] + keyword = "" + sort_field = "UPDATED_ON" + sort_type = "DESC" + status = ["PAUSE"] + package = [""] + remark = "" + updated_at_begin = "2021-05-01 03:00:00" + updated_at_end = "2024-05-10 20:00:00" + record_count_begin = 0 + record_count_end = 100 + project_id = -1 + tags { + tag_key = "created_by" + tag_value = ["terraform"] + } +} + +` diff --git a/tencentcloud/data_source_tc_kms_list_algorithms.go b/tencentcloud/data_source_tc_kms_list_algorithms.go new file mode 100644 index 0000000000..69e0087c07 --- /dev/null +++ b/tencentcloud/data_source_tc_kms_list_algorithms.go @@ -0,0 +1,180 @@ +/* +Use this data source to query detailed information of kms list_algorithms + +Example Usage + +```hcl +data "tencentcloud_kms_list_algorithms" "example" {} +``` +*/ +package tencentcloud + +import ( + "context" + "strconv" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + kms "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms/v20190118" +) + +func dataSourceTencentCloudKmsListAlgorithms() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudKmsListAlgorithmsRead, + Schema: map[string]*schema.Schema{ + "symmetric_algorithms": { + Computed: true, + Type: schema.TypeList, + Description: "Symmetric encryption algorithms supported in this region.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key_usage": { + Type: schema.TypeString, + Computed: true, + Description: "Key usage.", + }, + "algorithm": { + Type: schema.TypeString, + Computed: true, + Description: "Algorithm.", + }, + }, + }, + }, + "asymmetric_algorithms": { + Computed: true, + Type: schema.TypeList, + Description: "Asymmetric encryption algorithms supported in this region.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key_usage": { + Type: schema.TypeString, + Computed: true, + Description: "Key usage.", + }, + "algorithm": { + Type: schema.TypeString, + Computed: true, + Description: "Algorithm.", + }, + }, + }, + }, + "asymmetric_sign_verify_algorithms": { + Computed: true, + Type: schema.TypeList, + Description: "Asymmetric signature verification algorithms supported in this region.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key_usage": { + Type: schema.TypeString, + Computed: true, + Description: "Key usage.", + }, + "algorithm": { + Type: schema.TypeString, + Computed: true, + Description: "Algorithm.", + }, + }, + }, + }, + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudKmsListAlgorithmsRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_kms_list_algorithms.read")() + defer inconsistentCheck(d, meta)() + + var ( + logId = getLogId(contextNil) + ctx = context.WithValue(context.TODO(), logIdKey, logId) + service = KmsService{client: meta.(*TencentCloudClient).apiV3Conn} + listAlgorithms *kms.ListAlgorithmsResponseParams + ) + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeKmsListAlgorithmsByFilter(ctx) + if e != nil { + return retryError(e) + } + + listAlgorithms = result + return nil + }) + + if err != nil { + return err + } + + if listAlgorithms.SymmetricAlgorithms != nil { + tmpList := make([]map[string]interface{}, 0, len(listAlgorithms.SymmetricAlgorithms)) + for _, item := range listAlgorithms.SymmetricAlgorithms { + itemMap := map[string]interface{}{} + if item.KeyUsage != nil { + itemMap["key_usage"] = item.KeyUsage + } + + if item.Algorithm != nil { + itemMap["algorithm"] = item.Algorithm + } + + tmpList = append(tmpList, itemMap) + } + + _ = d.Set("symmetric_algorithms", tmpList) + } + + if listAlgorithms.AsymmetricAlgorithms != nil { + tmpList := make([]map[string]interface{}, 0, len(listAlgorithms.AsymmetricAlgorithms)) + for _, item := range listAlgorithms.AsymmetricAlgorithms { + itemMap := map[string]interface{}{} + if item.KeyUsage != nil { + itemMap["key_usage"] = item.KeyUsage + } + + if item.Algorithm != nil { + itemMap["algorithm"] = item.Algorithm + } + + tmpList = append(tmpList, itemMap) + } + + _ = d.Set("asymmetric_algorithms", tmpList) + } + + if listAlgorithms.AsymmetricSignVerifyAlgorithms != nil { + tmpList := make([]map[string]interface{}, 0, len(listAlgorithms.AsymmetricSignVerifyAlgorithms)) + for _, item := range listAlgorithms.AsymmetricSignVerifyAlgorithms { + itemMap := map[string]interface{}{} + if item.KeyUsage != nil { + itemMap["key_usage"] = item.KeyUsage + } + + if item.Algorithm != nil { + itemMap["algorithm"] = item.Algorithm + } + + tmpList = append(tmpList, itemMap) + } + + _ = d.Set("asymmetric_sign_verify_algorithms", tmpList) + } + + d.SetId(strconv.FormatInt(time.Now().Unix(), 10)) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), d); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/data_source_tc_kms_list_algorithms_test.go b/tencentcloud/data_source_tc_kms_list_algorithms_test.go new file mode 100644 index 0000000000..3ac8aaf2fe --- /dev/null +++ b/tencentcloud/data_source_tc_kms_list_algorithms_test.go @@ -0,0 +1,30 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +// go test -i; go test -test.run TestAccTencentCloudKmsListAlgorithmsDataSource_basic -v +func TestAccTencentCloudKmsListAlgorithmsDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccKmsListAlgorithmsDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_kms_list_algorithms.example"), + ), + }, + }, + }) +} + +const testAccKmsListAlgorithmsDataSource = ` +data "tencentcloud_kms_list_algorithms" "example" {} +` diff --git a/tencentcloud/data_source_tc_kms_white_box_decrypt_key.go b/tencentcloud/data_source_tc_kms_white_box_decrypt_key.go new file mode 100644 index 0000000000..2709d1e020 --- /dev/null +++ b/tencentcloud/data_source_tc_kms_white_box_decrypt_key.go @@ -0,0 +1,91 @@ +/* +Use this data source to query detailed information of kms white_box_decrypt_key + +Example Usage + +```hcl +data "tencentcloud_kms_white_box_decrypt_key" "example" { + key_id = "244dab8c-6dad-11ea-80c6-5254006d0810" +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + kms "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms/v20190118" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudKmsWhiteBoxDecryptKey() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudKmsWhiteBoxDecryptKeyRead, + Schema: map[string]*schema.Schema{ + "key_id": { + Required: true, + Type: schema.TypeString, + Description: "Globally unique identifier for the white box key.", + }, + "decrypt_key": { + Computed: true, + Type: schema.TypeString, + Description: "White box decryption key, base64 encoded.", + }, + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudKmsWhiteBoxDecryptKeyRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_kms_white_box_decrypt_key.read")() + defer inconsistentCheck(d, meta)() + + var ( + logId = getLogId(contextNil) + ctx = context.WithValue(context.TODO(), logIdKey, logId) + service = KmsService{client: meta.(*TencentCloudClient).apiV3Conn} + whiteBoxDecryptKey *kms.DescribeWhiteBoxDecryptKeyResponseParams + keyId string + ) + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("key_id"); ok { + paramMap["KeyId"] = helper.String(v.(string)) + keyId = v.(string) + } + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeKmsWhiteBoxDecryptKeyByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + + whiteBoxDecryptKey = result + return nil + }) + + if err != nil { + return err + } + + if whiteBoxDecryptKey.DecryptKey != nil { + _ = d.Set("decrypt_key", whiteBoxDecryptKey.DecryptKey) + } + + d.SetId(keyId) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), d); e != nil { + return e + } + } + + return nil +} diff --git a/tencentcloud/data_source_tc_kms_white_box_decrypt_key_test.go b/tencentcloud/data_source_tc_kms_white_box_decrypt_key_test.go new file mode 100644 index 0000000000..9b91832639 --- /dev/null +++ b/tencentcloud/data_source_tc_kms_white_box_decrypt_key_test.go @@ -0,0 +1,33 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +// go test -i; go test -test.run TestAccTencentCloudKmsWhiteBoxDecryptKeyDataSource_basic -v +func TestAccTencentCloudKmsWhiteBoxDecryptKeyDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccKmsWhiteBoxDecryptKeyDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_kms_white_box_decrypt_key.example"), + resource.TestCheckResourceAttrSet("data.tencentcloud_kms_white_box_decrypt_key.example", "key_id"), + ), + }, + }, + }) +} + +const testAccKmsWhiteBoxDecryptKeyDataSource = ` +data "tencentcloud_kms_white_box_decrypt_key" "example" { + key_id = "8731f440-66c1-11ee-beb0-52540036aed2" +} +` diff --git a/tencentcloud/data_source_tc_kms_white_box_device_fingerprints.go b/tencentcloud/data_source_tc_kms_white_box_device_fingerprints.go new file mode 100644 index 0000000000..4d04e8caf7 --- /dev/null +++ b/tencentcloud/data_source_tc_kms_white_box_device_fingerprints.go @@ -0,0 +1,119 @@ +/* +Use this data source to query detailed information of kms white_box_device_fingerprints + +Example Usage + +```hcl +data "tencentcloud_kms_white_box_device_fingerprints" "example" { + key_id = "244dab8c-6dad-11ea-80c6-5254006d0810" +} +``` +*/ +package tencentcloud + +import ( + "context" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + kms "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/kms/v20190118" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func dataSourceTencentCloudKmsWhiteBoxDeviceFingerprints() *schema.Resource { + return &schema.Resource{ + Read: dataSourceTencentCloudKmsWhiteBoxDeviceFingerprintsRead, + Schema: map[string]*schema.Schema{ + "key_id": { + Required: true, + Type: schema.TypeString, + Description: "Globally unique identifier for the white box key.", + }, + "list": { + Computed: true, + Type: schema.TypeList, + Description: "Device fingerprint list.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "identity": { + Type: schema.TypeString, + Computed: true, + Description: "identity.", + }, + "description": { + Type: schema.TypeString, + Computed: true, + Description: "Description.", + }, + }, + }, + }, + "result_output_file": { + Type: schema.TypeString, + Optional: true, + Description: "Used to save results.", + }, + }, + } +} + +func dataSourceTencentCloudKmsWhiteBoxDeviceFingerprintsRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("data_source.tencentcloud_kms_white_box_device_fingerprints.read")() + defer inconsistentCheck(d, meta)() + + var ( + logId = getLogId(contextNil) + ctx = context.WithValue(context.TODO(), logIdKey, logId) + service = KmsService{client: meta.(*TencentCloudClient).apiV3Conn} + deviceFingerprints []*kms.DeviceFingerprint + keyId string + ) + + paramMap := make(map[string]interface{}) + if v, ok := d.GetOk("key_id"); ok { + paramMap["KeyId"] = helper.String(v.(string)) + keyId = v.(string) + } + + err := resource.Retry(readRetryTimeout, func() *resource.RetryError { + result, e := service.DescribeKmsWhiteBoxDeviceFingerprintsByFilter(ctx, paramMap) + if e != nil { + return retryError(e) + } + + deviceFingerprints = result + return nil + }) + + if err != nil { + return err + } + + tmpList := make([]map[string]interface{}, 0, len(deviceFingerprints)) + if deviceFingerprints != nil { + for _, item := range deviceFingerprints { + itemMap := map[string]interface{}{} + + if item.Identity != nil { + itemMap["identity"] = item.Identity + } + + if item.Description != nil { + itemMap["description"] = item.Description + } + + tmpList = append(tmpList, itemMap) + } + + _ = d.Set("list", tmpList) + } + + d.SetId(keyId) + output, ok := d.GetOk("result_output_file") + if ok && output.(string) != "" { + if e := writeToFile(output.(string), d); e != nil { + return e + } + } + return nil +} diff --git a/tencentcloud/data_source_tc_kms_white_box_device_fingerprints_test.go b/tencentcloud/data_source_tc_kms_white_box_device_fingerprints_test.go new file mode 100644 index 0000000000..ecfc4ff68f --- /dev/null +++ b/tencentcloud/data_source_tc_kms_white_box_device_fingerprints_test.go @@ -0,0 +1,33 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +// go test -i; go test -test.run TestAccTencentCloudKmsWhiteBoxDeviceFingerprintsDataSource_basic -v +func TestAccTencentCloudKmsWhiteBoxDeviceFingerprintsDataSource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccKmsWhiteBoxDeviceFingerprintsDataSource, + Check: resource.ComposeTestCheckFunc( + testAccCheckTencentCloudDataSourceID("data.tencentcloud_kms_white_box_device_fingerprints.example"), + resource.TestCheckResourceAttrSet("data.tencentcloud_kms_white_box_device_fingerprints.example", "key_id"), + ), + }, + }, + }) +} + +const testAccKmsWhiteBoxDeviceFingerprintsDataSource = ` +data "tencentcloud_kms_white_box_device_fingerprints" "example" { + key_id = "8731f440-66c1-11ee-beb0-52540036aed2" +} +` diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index 12feab6953..cbce870dd8 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -224,6 +224,10 @@ Cloud Access Management(CAM) tencentcloud_cam_users tencentcloud_user_info tencentcloud_cam_list_entities_for_policy + tencentcloud_cam_secret_last_used_time + tencentcloud_cam_account_summary + tencentcloud_cam_policy_granting_service_access + tencentcloud_cam_oidc_config Resource tencentcloud_cam_role @@ -244,8 +248,12 @@ Cloud Access Management(CAM) tencentcloud_cam_mfa_flag tencentcloud_cam_access_key tencentcloud_cam_user_saml_config + tencentcloud_cam_tag_role_attachment tencentcloud_cam_policy_version + tencentcloud_cam_set_policy_version_config tencentcloud_cam_user_permission_boundary_attachment + tencentcloud_cam_role_permission_boundary_attachment + tencentcloud_organization_quit_organization_operation Customer Identity and Access Management(CIAM) Resource @@ -525,6 +533,11 @@ Elasticsearch Service(ES) Resource tencentcloud_elasticsearch_instance tencentcloud_elasticsearch_security_group + tencentcloud_elasticsearch_logstash + tencentcloud_elasticsearch_logstash_pipeline + tencentcloud_elasticsearch_restart_logstash_instance_operation + tencentcloud_elasticsearch_start_logstash_pipeline_operation + tencentcloud_elasticsearch_stop_logstash_pipeline_operation Global Application Acceleration(GAAP) Data Source @@ -570,11 +583,16 @@ Key Management Service(KMS) tencentcloud_kms_describe_keys tencentcloud_kms_white_box_key_details tencentcloud_kms_list_keys + tencentcloud_kms_white_box_decrypt_key + tencentcloud_kms_white_box_device_fingerprints + tencentcloud_kms_list_algorithms Resource tencentcloud_kms_key tencentcloud_kms_external_key tencentcloud_kms_white_box_key + tencentcloud_kms_cloud_resource_attachment + tencentcloud_kms_overwrite_white_box_device_fingerprints Tencent Kubernetes Engine(TKE) Data Source @@ -1155,6 +1173,8 @@ DNSPOD tencentcloud_dnspod_record Data Source tencentcloud_dnspod_records + tencentcloud_dnspod_domain_list + tencentcloud_dnspod_domain_analytics PrivateDNS Resource @@ -2182,6 +2202,8 @@ func Provider() *schema.Provider { "tencentcloud_cam_group_policy_attachments": dataSourceTencentCloudCamGroupPolicyAttachments(), "tencentcloud_cam_saml_providers": dataSourceTencentCloudCamSAMLProviders(), "tencentcloud_cam_list_entities_for_policy": dataSourceTencentCloudCamListEntitiesForPolicy(), + "tencentcloud_cam_account_summary": dataSourceTencentCloudCamAccountSummary(), + "tencentcloud_cam_oidc_config": dataSourceTencentCloudCamOidcConfig(), "tencentcloud_user_info": datasourceTencentCloudUserInfo(), "tencentcloud_cdn_domains": dataSourceTencentCloudCdnDomains(), "tencentcloud_cdn_domain_verifier": dataSourceTencentCloudCdnDomainVerifyRecord(), @@ -2317,6 +2339,9 @@ func Provider() *schema.Provider { "tencentcloud_kms_describe_keys": dataSourceTencentCloudKmsDescribeKeys(), "tencentcloud_kms_white_box_key_details": dataSourceTencentCloudKmsWhiteBoxKeyDetails(), "tencentcloud_kms_list_keys": dataSourceTencentCloudKmsListKeys(), + "tencentcloud_kms_white_box_decrypt_key": dataSourceTencentCloudKmsWhiteBoxDecryptKey(), + "tencentcloud_kms_white_box_device_fingerprints": dataSourceTencentCloudKmsWhiteBoxDeviceFingerprints(), + "tencentcloud_kms_list_algorithms": dataSourceTencentCloudKmsListAlgorithms(), "tencentcloud_ssm_products": dataSourceTencentCloudSsmProducts(), "tencentcloud_ssm_secrets": dataSourceTencentCloudSsmSecrets(), "tencentcloud_ssm_secret_versions": dataSourceTencentCloudSsmSecretVersions(), @@ -2402,6 +2427,8 @@ func Provider() *schema.Provider { "tencentcloud_rum_log_export": dataSourceTencentCloudRumLogExport(), "tencentcloud_rum_log_export_list": dataSourceTencentCloudRumLogExportList(), "tencentcloud_dnspod_records": dataSourceTencentCloudDnspodRecords(), + "tencentcloud_dnspod_domain_list": dataSourceTencentCloudDnspodDomainList(), + "tencentcloud_dnspod_domain_analytics": dataSourceTencentCloudDnspodDomainAnalytics(), "tencentcloud_tat_command": dataSourceTencentCloudTatCommand(), "tencentcloud_tat_invoker": dataSourceTencentCloudTatInvoker(), "tencentcloud_tat_invoker_records": dataSourceTencentCloudTatInvokerRecords(), @@ -2585,6 +2612,9 @@ func Provider() *schema.Provider { "tencentcloud_organization_org_financial_by_product": dataSourceTencentCloudOrganizationOrgFinancialByProduct(), "tencentcloud_organization_org_auth_node": dataSourceTencentCloudOrganizationOrgAuthNode(), "tencentcloud_pts_scenario_with_jobs": dataSourceTencentCloudPtsScenarioWithJobs(), + "tencentcloud_cam_list_attached_user_policy": dataSourceTencentCloudCamListAttachedUserPolicy(), + "tencentcloud_cam_secret_last_used_time": dataSourceTencentCloudCamSecretLastUsedTime(), + "tencentcloud_cam_policy_granting_service_access": dataSourceTencentCloudCamPolicyGrantingServiceAccess(), }, ResourcesMap: map[string]*schema.Resource{ @@ -2843,8 +2873,12 @@ func Provider() *schema.Provider { "tencentcloud_cam_mfa_flag": resourceTencentCloudCamMfaFlag(), "tencentcloud_cam_access_key": resourceTencentCloudCamAccessKey(), "tencentcloud_cam_user_saml_config": resourceTencentCloudCamUserSamlConfig(), + "tencentcloud_cam_tag_role_attachment": resourceTencentCloudCamTagRoleAttachment(), "tencentcloud_cam_policy_version": resourceTencentCloudCamPolicyVersion(), + "tencentcloud_cam_set_policy_version_config": resourceTencentCloudCamSetPolicyVersionConfig(), "tencentcloud_cam_user_permission_boundary_attachment": resourceTencentCloudCamUserPermissionBoundaryAttachment(), + "tencentcloud_cam_role_permission_boundary_attachment": resourceTencentCloudCamRolePermissionBoundaryAttachment(), + "tencentcloud_organization_quit_organization_operation": resourceTencentCloudOrganizationQuitOrganizationOperation(), "tencentcloud_ciam_user_group": resourceTencentCloudCiamUserGroup(), "tencentcloud_ciam_user_store": resourceTencentCloudCiamUserStore(), "tencentcloud_scf_function": resourceTencentCloudScfFunction(), @@ -2896,6 +2930,11 @@ func Provider() *schema.Provider { "tencentcloud_mongodb_standby_instance": resourceTencentCloudMongodbStandbyInstance(), "tencentcloud_elasticsearch_instance": resourceTencentCloudElasticsearchInstance(), "tencentcloud_elasticsearch_security_group": resourceTencentCloudElasticsearchSecurityGroup(), + "tencentcloud_elasticsearch_logstash": resourceTencentCloudElasticsearchLogstash(), + "tencentcloud_elasticsearch_logstash_pipeline": resourceTencentCloudElasticsearchLogstashPipeline(), + "tencentcloud_elasticsearch_restart_logstash_instance_operation": resourceTencentCloudElasticsearchRestartLogstashInstanceOperation(), + "tencentcloud_elasticsearch_start_logstash_pipeline_operation": resourceTencentCloudElasticsearchStartLogstashPipelineOperation(), + "tencentcloud_elasticsearch_stop_logstash_pipeline_operation": resourceTencentCloudElasticsearchStopLogstashPipelineOperation(), "tencentcloud_postgresql_instance": resourceTencentCloudPostgresqlInstance(), "tencentcloud_postgresql_readonly_instance": resourceTencentCloudPostgresqlReadonlyInstance(), "tencentcloud_postgresql_readonly_group": resourceTencentCloudPostgresqlReadonlyGroup(), @@ -3047,6 +3086,8 @@ func Provider() *schema.Provider { "tencentcloud_kms_key": resourceTencentCloudKmsKey(), "tencentcloud_kms_external_key": resourceTencentCloudKmsExternalKey(), "tencentcloud_kms_white_box_key": resourceTencentCloudKmsWhiteBoxKey(), + "tencentcloud_kms_cloud_resource_attachment": resourceTencentCloudKmsCloudResourceAttachment(), + "tencentcloud_kms_overwrite_white_box_device_fingerprints": resourceTencentCloudKmsOverwriteWhiteBoxDeviceFingerprints(), "tencentcloud_ssm_secret": resourceTencentCloudSsmSecret(), "tencentcloud_ssm_ssh_key_pair_secret": resourceTencentCloudSsmSshKeyPairSecret(), "tencentcloud_ssm_product_secret": resourceTencentCloudSsmProductSecret(), diff --git a/tencentcloud/resource_tc_cam_role.go b/tencentcloud/resource_tc_cam_role.go index 14cfd4cc46..eff6b24210 100644 --- a/tencentcloud/resource_tc_cam_role.go +++ b/tencentcloud/resource_tc_cam_role.go @@ -149,7 +149,6 @@ func resourceTencentCloudCamRole() *schema.Resource { "console_login": { Type: schema.TypeBool, Optional: true, - ForceNew: true, Description: "Indicates whether the CAM role can login or not.", }, "create_time": { @@ -409,6 +408,39 @@ func resourceTencentCloudCamRoleUpdate(d *schema.ResourceData, meta interface{}) } + if d.HasChange("console_login") { + consoleLoginRequest := cam.NewUpdateRoleConsoleLoginRequest() + + if v, ok := d.GetOkExists("console_login"); ok { + loginBool := v.(bool) + loginInt := int64(1) + if !loginBool { + loginInt = int64(0) + } + consoleLoginRequest.ConsoleLogin = &loginInt + } + + consoleLoginRequest.RoleId = helper.StrToInt64Point(roleId) + + err := resource.Retry(writeRetryTimeout, func() *resource.RetryError { + response, e := meta.(*TencentCloudClient).apiV3Conn.UseCamClient().UpdateRoleConsoleLogin(consoleLoginRequest) + + if e != nil { + log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n", + logId, consoleLoginRequest.GetAction(), consoleLoginRequest.ToJsonString(), e.Error()) + return retryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", + logId, consoleLoginRequest.GetAction(), consoleLoginRequest.ToJsonString(), response.ToJsonString()) + } + return nil + }) + + if err != nil { + log.Printf("[CRITAL]%s update CAM role console login failed, reason:%s\n", logId, err.Error()) + return err + } + } return resourceTencentCloudCamRoleRead(d, meta) } diff --git a/tencentcloud/resource_tc_cam_role_permission_boundary_attachment.go b/tencentcloud/resource_tc_cam_role_permission_boundary_attachment.go new file mode 100644 index 0000000000..72594af2df --- /dev/null +++ b/tencentcloud/resource_tc_cam_role_permission_boundary_attachment.go @@ -0,0 +1,185 @@ +/* +Provides a resource to create a cam role_permission_boundary_attachment + +Example Usage + +```hcl +resource "tencentcloud_cam_role_permission_boundary_attachment" "role_permission_boundary_attachment" { + policy_id = 1 + role_name = "test-cam-tag" +} +``` + +Import + +cam role_permission_boundary_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment role_permission_boundary_attachment_id +``` +*/ +package tencentcloud + +import ( + "context" + "fmt" + "log" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cam "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam/v20190116" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func resourceTencentCloudCamRolePermissionBoundaryAttachment() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudCamRolePermissionBoundaryAttachmentCreate, + Read: resourceTencentCloudCamRolePermissionBoundaryAttachmentRead, + Delete: resourceTencentCloudCamRolePermissionBoundaryAttachmentDelete, + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Schema: map[string]*schema.Schema{ + "policy_id": { + Required: true, + ForceNew: true, + Type: schema.TypeInt, + Description: "Role ID.", + }, + + "role_id": { + Optional: true, + Computed: true, + ForceNew: true, + Type: schema.TypeString, + Description: "Role ID (at least one should be filled in with the role name).", + }, + + "role_name": { + Optional: true, + ForceNew: true, + Type: schema.TypeString, + Description: "Role name (at least one should be filled in with the role ID).", + }, + }, + } +} + +func resourceTencentCloudCamRolePermissionBoundaryAttachmentCreate(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_role_permission_boundary_attachment.create")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + var ( + request = cam.NewPutRolePermissionsBoundaryRequest() + policyId string + roleId string + roleName string + ) + if v, ok := d.GetOkExists("policy_id"); ok { + policyId = helper.IntToStr(v.(int)) + request.PolicyId = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("role_id"); ok { + roleId = v.(string) + request.RoleId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("role_name"); ok { + roleName = v.(string) + request.RoleName = helper.String(v.(string)) + } + + err := resource.Retry(writeRetryTimeout, func() *resource.RetryError { + result, e := meta.(*TencentCloudClient).apiV3Conn.UseCamClient().PutRolePermissionsBoundary(request) + if e != nil { + return retryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + return nil + }) + if err != nil { + log.Printf("[CRITAL]%s create cam RolePermissionBoundaryAttachment failed, reason:%+v", logId, err) + return err + } + + d.SetId(policyId + FILED_SP + roleId + FILED_SP + roleName) + + return resourceTencentCloudCamRolePermissionBoundaryAttachmentRead(d, meta) +} + +func resourceTencentCloudCamRolePermissionBoundaryAttachmentRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_role_permission_boundary_attachment.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + + idSplit := strings.Split(d.Id(), FILED_SP) + if len(idSplit) != 3 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + policyId := idSplit[0] + roleId := idSplit[1] + roleName := idSplit[2] + + if roleId == "" { + roleInfo, err := service.DescribeCamTagRoleById(ctx, roleName, roleId) + if err != nil { + return err + } + if roleInfo == nil { + return fmt.Errorf("role info is null") + } + roleId = *roleInfo.RoleId + } + + RolePermissionBoundaryAttachment, err := service.DescribeCamRolePermissionBoundaryAttachmentById(ctx, roleId, policyId) + if err != nil { + return err + } + + if RolePermissionBoundaryAttachment == nil { + d.SetId("") + log.Printf("[WARN]%s resource `CamRolePermissionBoundaryAttachment` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + return nil + } + + if RolePermissionBoundaryAttachment.PolicyId != nil { + _ = d.Set("policy_id", RolePermissionBoundaryAttachment.PolicyId) + } + + _ = d.Set("role_id", roleId) + _ = d.Set("role_name", roleName) + + return nil +} + +func resourceTencentCloudCamRolePermissionBoundaryAttachmentDelete(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_role_permission_boundary_attachment.delete")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + idSplit := strings.Split(d.Id(), FILED_SP) + if len(idSplit) != 3 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + roleId := idSplit[1] + roleName := idSplit[2] + + if err := service.DeleteCamRolePermissionBoundaryAttachmentById(ctx, roleId, roleName); err != nil { + return err + } + + return nil +} diff --git a/tencentcloud/resource_tc_cam_role_permission_boundary_attachment_test.go b/tencentcloud/resource_tc_cam_role_permission_boundary_attachment_test.go new file mode 100644 index 0000000000..9fb378ec0d --- /dev/null +++ b/tencentcloud/resource_tc_cam_role_permission_boundary_attachment_test.go @@ -0,0 +1,39 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudCamRolePermissionBoundaryAttachmentResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCamRolePermissionBoundaryAttachment, + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment", "id"), + resource.TestCheckResourceAttr("tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment", "policy_id", "1"), + resource.TestCheckResourceAttr("tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment", "role_name", "test-cam-tag")), + }, + { + ResourceName: "tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +const testAccCamRolePermissionBoundaryAttachment = ` + +resource "tencentcloud_cam_role_permission_boundary_attachment" "role_permission_boundary_attachment" { + policy_id = 1 + role_name = "test-cam-tag" +} + +` diff --git a/tencentcloud/resource_tc_cam_set_policy_version_config.go b/tencentcloud/resource_tc_cam_set_policy_version_config.go new file mode 100644 index 0000000000..5f5cffb928 --- /dev/null +++ b/tencentcloud/resource_tc_cam_set_policy_version_config.go @@ -0,0 +1,143 @@ +/* +Provides a resource to create a cam set_policy_version_config + +Example Usage + +```hcl +resource "tencentcloud_cam_set_policy_version_config" "set_policy_version_config" { + policy_id = 171162811 + version_id = 2 +} +``` + +Import + +cam set_policy_version_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_set_policy_version_config.set_policy_version_config set_policy_version_config_id +``` +*/ +package tencentcloud + +import ( + "context" + "fmt" + "log" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cam "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam/v20190116" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func resourceTencentCloudCamSetPolicyVersionConfig() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudCamSetPolicyVersionConfigCreate, + Read: resourceTencentCloudCamSetPolicyVersionConfigRead, + Update: resourceTencentCloudCamSetPolicyVersionConfigUpdate, + Delete: resourceTencentCloudCamSetPolicyVersionConfigDelete, + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Schema: map[string]*schema.Schema{ + "policy_id": { + Required: true, + Type: schema.TypeInt, + Description: "Policy ID.", + }, + + "version_id": { + Required: true, + Type: schema.TypeInt, + Description: "The policy version number, which can be obtained from ListPolicyVersions.", + }, + }, + } +} + +func resourceTencentCloudCamSetPolicyVersionConfigCreate(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_set_policy_version_config.create")() + defer inconsistentCheck(d, meta)() + + return resourceTencentCloudCamSetPolicyVersionConfigUpdate(d, meta) +} + +func resourceTencentCloudCamSetPolicyVersionConfigRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_set_policy_version_config.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + + idSplit := strings.Split(d.Id(), FILED_SP) + if len(idSplit) != 2 { + return fmt.Errorf("id is broken,%s", d.Id()) + } + policyId := idSplit[0] + versionId := idSplit[1] + + SetPolicyVersionConfig, err := service.DescribeCamSetPolicyVersionById(ctx, policyId, versionId) + if err != nil { + return err + } + + if SetPolicyVersionConfig == nil { + d.SetId("") + log.Printf("[WARN]%s resource `CamSetPolicyVersionConfig` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + return nil + } + + _ = d.Set("policy_id", helper.StrToInt(policyId)) + + if SetPolicyVersionConfig.VersionId != nil { + _ = d.Set("version_id", SetPolicyVersionConfig.VersionId) + } + + return nil +} + +func resourceTencentCloudCamSetPolicyVersionConfigUpdate(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_set_policy_version_config.update")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + request := cam.NewSetDefaultPolicyVersionRequest() + + var policyId string + var versionId string + + policyId = helper.IntToStr(d.Get("policy_id").(int)) + versionId = helper.IntToStr(d.Get("version_id").(int)) + request.PolicyId = helper.StrToUint64Point(policyId) + request.VersionId = helper.StrToUint64Point(versionId) + + err := resource.Retry(writeRetryTimeout, func() *resource.RetryError { + result, e := meta.(*TencentCloudClient).apiV3Conn.UseCamClient().SetDefaultPolicyVersion(request) + if e != nil { + return retryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + return nil + }) + if err != nil { + log.Printf("[CRITAL]%s update cam SetPolicyVersionConfig failed, reason:%+v", logId, err) + return err + } + d.SetId(policyId + FILED_SP + versionId) + + return resourceTencentCloudCamSetPolicyVersionConfigRead(d, meta) +} + +func resourceTencentCloudCamSetPolicyVersionConfigDelete(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_set_policy_version_config.delete")() + defer inconsistentCheck(d, meta)() + + return nil +} diff --git a/tencentcloud/resource_tc_cam_set_policy_version_config_test.go b/tencentcloud/resource_tc_cam_set_policy_version_config_test.go new file mode 100644 index 0000000000..b4437fe4a8 --- /dev/null +++ b/tencentcloud/resource_tc_cam_set_policy_version_config_test.go @@ -0,0 +1,55 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudCamSetPolicyVersionConfigResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCamSetPolicyVersionConfig, + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_cam_set_policy_version_config.set_policy_version_config", "id"), + resource.TestCheckResourceAttr("tencentcloud_cam_set_policy_version_config.set_policy_version_config", "policy_id", "171162811"), + resource.TestCheckResourceAttr("tencentcloud_cam_set_policy_version_config.set_policy_version_config", "version_id", "2"), + ), + }, + { + Config: testAccCamSetPolicyVersionConfigUpdate, + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_cam_set_policy_version_config.set_policy_version_config", "id"), + resource.TestCheckResourceAttr("tencentcloud_cam_set_policy_version_config.set_policy_version_config", "policy_id", "171162811"), + resource.TestCheckResourceAttr("tencentcloud_cam_set_policy_version_config.set_policy_version_config", "version_id", "1"), + ), + }, + { + ResourceName: "tencentcloud_cam_set_policy_version_config.set_policy_version_config", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +const testAccCamSetPolicyVersionConfig = ` + +resource "tencentcloud_cam_set_policy_version_config" "set_policy_version_config" { + policy_id = 171162811 + version_id = 2 +} + +` +const testAccCamSetPolicyVersionConfigUpdate = ` + +resource "tencentcloud_cam_set_policy_version_config" "set_policy_version_config" { + policy_id = 171162811 + version_id = 1 +} + +` diff --git a/tencentcloud/resource_tc_cam_tag_role_attachment.go b/tencentcloud/resource_tc_cam_tag_role_attachment.go new file mode 100644 index 0000000000..acf6e646aa --- /dev/null +++ b/tencentcloud/resource_tc_cam_tag_role_attachment.go @@ -0,0 +1,231 @@ +/* +Provides a resource to create a cam tag_role + +Example Usage + +```hcl +resource "tencentcloud_cam_tag_role_attachment" "tag_role" { + tags { + key = "test1" + value = "test1" + } + role_id = "test-cam-tag" +} +``` + +Import + +cam tag_role can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_tag_role_attachment.tag_role tag_role_id +``` +*/ +package tencentcloud + +import ( + "context" + "fmt" + "log" + "strings" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + cam "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam/v20190116" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func resourceTencentCloudCamTagRoleAttachment() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudCamTagRoleCreateAttachment, + Read: resourceTencentCloudCamTagRoleReadAttachment, + Delete: resourceTencentCloudCamTagRoleDeleteAttachment, + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Schema: map[string]*schema.Schema{ + "tags": { + Required: true, + ForceNew: true, + Type: schema.TypeList, + Description: "Label.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "key": { + Type: schema.TypeString, + Required: true, + Description: "Label.", + }, + "value": { + Type: schema.TypeString, + Required: true, + Description: "Label.", + }, + }, + }, + }, + + "role_name": { + Optional: true, + Computed: true, + ForceNew: true, + Type: schema.TypeString, + Description: "Character name, at least one input with the character ID.", + }, + + "role_id": { + Optional: true, + Computed: true, + ForceNew: true, + Type: schema.TypeString, + Description: "Character ID, at least one input with the character name.", + }, + }, + } +} + +func resourceTencentCloudCamTagRoleCreateAttachment(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_tag_role_attachment.create")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + var ( + request = cam.NewTagRoleRequest() + roleName string + roleId string + ) + if v, ok := d.GetOk("tags"); ok { + for _, item := range v.([]interface{}) { + dMap := item.(map[string]interface{}) + roleTags := cam.RoleTags{} + if v, ok := dMap["key"]; ok { + roleTags.Key = helper.String(v.(string)) + } + if v, ok := dMap["value"]; ok { + roleTags.Value = helper.String(v.(string)) + } + request.Tags = append(request.Tags, &roleTags) + } + } + + if v, ok := d.GetOk("role_name"); ok { + roleName = v.(string) + request.RoleName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("role_id"); ok { + roleId = v.(string) + request.RoleId = helper.String(v.(string)) + } + + err := resource.Retry(writeRetryTimeout, func() *resource.RetryError { + result, e := meta.(*TencentCloudClient).apiV3Conn.UseCamClient().TagRole(request) + if e != nil { + return retryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + return nil + }) + if err != nil { + log.Printf("[CRITAL]%s create cam TagRole failed, reason:%+v", logId, err) + return err + } + + d.SetId(roleName + FILED_SP + roleId) + + return resourceTencentCloudCamTagRoleReadAttachment(d, meta) +} + +func resourceTencentCloudCamTagRoleReadAttachment(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_tag_role_attachment.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + + idSplit := strings.Split(d.Id(), FILED_SP) + if len(idSplit) != 2 { + return fmt.Errorf("id is broken,%s", idSplit) + } + roleName := idSplit[0] + roleId := idSplit[1] + TagRole, err := service.DescribeCamTagRoleById(ctx, roleName, roleId) + if err != nil { + return err + } + + if TagRole == nil { + d.SetId("") + log.Printf("[WARN]%s resource `CamTagRole` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + return nil + } + + if TagRole.Tags != nil { + tagsList := []interface{}{} + for _, tags := range TagRole.Tags { + tagsMap := map[string]interface{}{} + + if tags.Key != nil { + tagsMap["key"] = tags.Key + } + + if tags.Value != nil { + tagsMap["value"] = tags.Value + } + + tagsList = append(tagsList, tagsMap) + } + + _ = d.Set("tags", tagsList) + + } + + if TagRole.RoleName != nil { + _ = d.Set("role_name", TagRole.RoleName) + } + + if TagRole.RoleId != nil { + _ = d.Set("role_id", TagRole.RoleId) + } + + return nil +} + +func resourceTencentCloudCamTagRoleDeleteAttachment(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_cam_tag_role_attachment.delete")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := CamService{client: meta.(*TencentCloudClient).apiV3Conn} + + idSplit := strings.Split(d.Id(), FILED_SP) + if len(idSplit) != 2 { + return fmt.Errorf("id is broken,%s", idSplit) + } + roleName := idSplit[0] + roleId := idSplit[1] + + keys := make([]*string, 0) + if v, ok := d.GetOk("tags"); ok { + for _, item := range v.([]interface{}) { + dMap := item.(map[string]interface{}) + var key string + if v, ok := dMap["key"]; ok { + key = v.(string) + } + keys = append(keys, &key) + } + } + if err := service.DeleteCamTagRoleById(ctx, roleName, roleId, keys); err != nil { + return err + } + + return nil +} diff --git a/tencentcloud/resource_tc_cam_tag_role_attachment_test.go b/tencentcloud/resource_tc_cam_tag_role_attachment_test.go new file mode 100644 index 0000000000..4b652f4a20 --- /dev/null +++ b/tencentcloud/resource_tc_cam_tag_role_attachment_test.go @@ -0,0 +1,41 @@ +package tencentcloud + +import ( + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" +) + +func TestAccTencentCloudCamTagRoleResource_basic(t *testing.T) { + t.Parallel() + resource.Test(t, resource.TestCase{ + PreCheck: func() { + testAccPreCheck(t) + }, + Providers: testAccProviders, + Steps: []resource.TestStep{ + { + Config: testAccCamTagRole, + Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_cam_tag_role_attachment.tag_role", "id"), + resource.TestCheckResourceAttrSet("tencentcloud_cam_tag_role_attachment.tag_role", "tags.#"), + resource.TestCheckResourceAttr("tencentcloud_cam_tag_role_attachment.tag_role", "role_name", "test-cam-tag")), + }, + { + ResourceName: "tencentcloud_cam_tag_role_attachment.tag_role", + ImportState: true, + ImportStateVerify: true, + }, + }, + }) +} + +const testAccCamTagRole = ` + +resource "tencentcloud_cam_tag_role_attachment" "tag_role" { + tags { + key = "test1" + value = "test1" + } + role_name = "test-cam-tag" +} +` diff --git a/tencentcloud/resource_tc_elasticsearch_logstash.go b/tencentcloud/resource_tc_elasticsearch_logstash.go new file mode 100644 index 0000000000..8fa29098ae --- /dev/null +++ b/tencentcloud/resource_tc_elasticsearch_logstash.go @@ -0,0 +1,578 @@ +/* +Provides a resource to create a elasticsearch logstash + +Example Usage + +```hcl +resource "tencentcloud_elasticsearch_logstash" "logstash" { + instance_name = "logstash-test" + zone = "ap-guangzhou-6" + logstash_version = "7.14.2" + vpc_id = "vpc-4owdpnwr" + subnet_id = "subnet-4o0zd840" + node_num = 1 + charge_type = "POSTPAID_BY_HOUR" + node_type = "LOGSTASH.SA2.MEDIUM4" + disk_type = "CLOUD_SSD" + disk_size = 20 + license_type = "xpack" + operation_duration { + periods = [1, 2, 3, 4, 5, 6, 0] + time_start = "02:00" + time_end = "06:00" + time_zone = "UTC+8" + } + tags = { + tagKey = "tagValue" + } +} +``` + +Import + +elasticsearch logstash can be imported using the id, e.g. + +``` +terraform import tencentcloud_elasticsearch_logstash.logstash logstash_id +``` +*/ +package tencentcloud + +import ( + "context" + "fmt" + "log" + "time" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + elasticsearch "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416" + "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper" +) + +func resourceTencentCloudElasticsearchLogstash() *schema.Resource { + return &schema.Resource{ + Create: resourceTencentCloudElasticsearchLogstashCreate, + Read: resourceTencentCloudElasticsearchLogstashRead, + Update: resourceTencentCloudElasticsearchLogstashUpdate, + Delete: resourceTencentCloudElasticsearchLogstashDelete, + Importer: &schema.ResourceImporter{ + State: schema.ImportStatePassthrough, + }, + Schema: map[string]*schema.Schema{ + "instance_name": { + Required: true, + Type: schema.TypeString, + Description: "Instance name (compose of 1-50 letter, number, - or _).", + }, + + "zone": { + Required: true, + Type: schema.TypeString, + Description: "Available zone.", + }, + + "logstash_version": { + Required: true, + Type: schema.TypeString, + Description: "Instance version(6.8.13, 7.10.1).", + }, + + "vpc_id": { + Required: true, + Type: schema.TypeString, + Description: "VPC id.", + }, + + "subnet_id": { + Required: true, + Type: schema.TypeString, + Description: "Subnet id.", + }, + + "node_num": { + Optional: true, + Type: schema.TypeInt, + Description: "Node num(range 2-50).", + }, + + "charge_type": { + Optional: true, + Type: schema.TypeString, + Description: "Charge type. PREPAID: charged by months or years; POSTPAID_BY_HOUR: charged by hours; default vaule: POSTPAID_BY_HOUR.", + }, + + "charge_period": { + Optional: true, + Type: schema.TypeInt, + Description: "Period when charged by months or years(unit depends on TimeUnit).", + }, + + "time_unit": { + Optional: true, + Type: schema.TypeString, + Description: "charge time unit(set when ChargeType is PREPAID, default value: ms).", + }, + + "auto_voucher": { + Optional: true, + Type: schema.TypeInt, + Description: "whether to use voucher auto, 1 when use, else 0.", + }, + + "voucher_ids": { + Optional: true, + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Description: "Voucher list(only can use one voucher by now).", + }, + + "renew_flag": { + Optional: true, + Type: schema.TypeString, + Description: "Automatic renewal flag. RENEW_FLAG_AUTO: auto renewal; RENEW_FLAG_MANUAL: do not renew automatically, users renew manually. It needs to be set when ChargeType is PREPAID. If this parameter is not passed, ordinary users will not renew automatically by default, and SVIP users will renew automatically.", + }, + + "node_type": { + Optional: true, + Type: schema.TypeString, + Description: "Node type. Valid values:\n" + + "- LOGSTASH.S1.SMALL2: 1 core 2G;\n" + + "- LOGSTASH.S1.MEDIUM4:2 core 4G;\n" + + "- LOGSTASH.S1.MEDIUM8:2 core 8G;\n" + + "- LOGSTASH.S1.LARGE16:4 core 16G;\n" + + "- LOGSTASH.S1.2XLARGE32:8 core 32G;\n" + + "- LOGSTASH.S1.4XLARGE32:16 core 32G;\n" + + "- LOGSTASH.S1.4XLARGE64:16 core 64G.", + }, + + "disk_type": { + Optional: true, + Type: schema.TypeString, + Description: "Disk type. CLOUD_SSD: SSD cloud disk; CLOUD_PREMIUM: high hard energy cloud disk; default: CLOUD_SSD.", + }, + + "disk_size": { + Optional: true, + Type: schema.TypeInt, + Description: "node disk size (unit GB).", + }, + + "license_type": { + Optional: true, + Type: schema.TypeString, + Description: "License type. oss: open source version; xpack:xpack version; default: xpack.", + }, + + "tags": { + Type: schema.TypeMap, + Optional: true, + Computed: true, + Description: "Tag description list.", + }, + + "operation_duration": { + Optional: true, + Type: schema.TypeList, + MaxItems: 1, + Description: "operation time by tencent clound.", + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "periods": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeInt, + }, + Required: true, + Description: "day of week, from Monday to Sunday, value range: [0, 6]notes: may return null when missing.", + }, + "time_start": { + Type: schema.TypeString, + Required: true, + Description: "operation start time.", + }, + "time_end": { + Type: schema.TypeString, + Required: true, + Description: "operation end time.", + }, + "time_zone": { + Type: schema.TypeString, + Required: true, + Description: "time zone, for example: UTC+8.", + }, + }, + }, + }, + }, + } +} + +func resourceTencentCloudElasticsearchLogstashCreate(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_elasticsearch_logstash.create")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + var ( + request = elasticsearch.NewCreateLogstashInstanceRequest() + response = elasticsearch.NewCreateLogstashInstanceResponse() + instanceId string + ) + if v, ok := d.GetOk("instance_name"); ok { + request.InstanceName = helper.String(v.(string)) + } + + if v, ok := d.GetOk("zone"); ok { + request.Zone = helper.String(v.(string)) + } + + if v, ok := d.GetOk("logstash_version"); ok { + request.LogstashVersion = helper.String(v.(string)) + } + + if v, ok := d.GetOk("vpc_id"); ok { + request.VpcId = helper.String(v.(string)) + } + + if v, ok := d.GetOk("subnet_id"); ok { + request.SubnetId = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("node_num"); ok { + request.NodeNum = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOk("charge_type"); ok { + request.ChargeType = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("charge_period"); ok { + request.ChargePeriod = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOk("time_unit"); ok { + request.TimeUnit = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("auto_voucher"); ok { + request.AutoVoucher = helper.IntInt64(v.(int)) + } + + if v, ok := d.GetOk("voucher_ids"); ok { + voucherIdsSet := v.(*schema.Set).List() + for i := range voucherIdsSet { + voucherIds := voucherIdsSet[i].(string) + request.VoucherIds = append(request.VoucherIds, &voucherIds) + } + } + + if v, ok := d.GetOk("renew_flag"); ok { + request.RenewFlag = helper.String(v.(string)) + } + + if v, ok := d.GetOk("node_type"); ok { + request.NodeType = helper.String(v.(string)) + } + + if v, ok := d.GetOk("disk_type"); ok { + request.DiskType = helper.String(v.(string)) + } + + if v, ok := d.GetOkExists("disk_size"); ok { + request.DiskSize = helper.IntUint64(v.(int)) + } + + if v, ok := d.GetOk("license_type"); ok { + request.LicenseType = helper.String(v.(string)) + } + + if dMap, ok := helper.InterfacesHeadMap(d, "operation_duration"); ok { + operationDuration := elasticsearch.OperationDuration{} + if v, ok := dMap["periods"]; ok { + periodsSet := v.(*schema.Set).List() + for i := range periodsSet { + periods := periodsSet[i].(int) + operationDuration.Periods = append(operationDuration.Periods, helper.IntUint64(periods)) + } + } + if v, ok := dMap["time_start"]; ok { + operationDuration.TimeStart = helper.String(v.(string)) + } + if v, ok := dMap["time_end"]; ok { + operationDuration.TimeEnd = helper.String(v.(string)) + } + if v, ok := dMap["time_zone"]; ok { + operationDuration.TimeZone = helper.String(v.(string)) + } + request.OperationDuration = &operationDuration + } + + err := resource.Retry(writeRetryTimeout, func() *resource.RetryError { + result, e := meta.(*TencentCloudClient).apiV3Conn.UseEsClient().CreateLogstashInstance(request) + if e != nil { + return retryError(e) + } else { + log.Printf("[DEBUG]%s api[%s] success, request body [%s], response body [%s]\n", logId, request.GetAction(), request.ToJsonString(), result.ToJsonString()) + } + response = result + return nil + }) + if err != nil { + log.Printf("[CRITAL]%s create elasticsearch logstash failed, reason:%+v", logId, err) + return err + } + instanceId = *response.Response.InstanceId + + service := ElasticsearchService{client: meta.(*TencentCloudClient).apiV3Conn} + + conf := BuildStateChangeConf([]string{}, []string{"1"}, 3*readRetryTimeout, time.Second, service.ElasticsearchLogstashStateRefreshFunc(instanceId, []string{})) + + if _, e := conf.WaitForState(); e != nil { + return e + } + d.SetId(instanceId) + + if tags := helper.GetTags(d, "tags"); len(tags) > 0 { + tagService := TagService{client: meta.(*TencentCloudClient).apiV3Conn} + region := meta.(*TencentCloudClient).apiV3Conn.Region + resourceName := fmt.Sprintf("qcs::es:%s:uin/:logstash/%s", region, instanceId) + if err := tagService.ModifyTags(ctx, resourceName, tags, nil); err != nil { + return err + } + } + + return resourceTencentCloudElasticsearchLogstashRead(d, meta) +} + +func resourceTencentCloudElasticsearchLogstashRead(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_elasticsearch_logstash.read")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := ElasticsearchService{client: meta.(*TencentCloudClient).apiV3Conn} + + instanceId := d.Id() + + logstash, err := service.DescribeElasticsearchLogstashById(ctx, instanceId) + if err != nil { + return err + } + + if logstash == nil { + d.SetId("") + log.Printf("[WARN]%s resource `ElasticsearchLogstash` [%s] not found, please check if it has been deleted.\n", logId, d.Id()) + return nil + } + + if logstash.InstanceName != nil { + _ = d.Set("instance_name", logstash.InstanceName) + } + + if logstash.Zone != nil { + _ = d.Set("zone", logstash.Zone) + } + + if logstash.LogstashVersion != nil { + _ = d.Set("logstash_version", logstash.LogstashVersion) + } + + if logstash.VpcId != nil { + _ = d.Set("vpc_id", logstash.VpcId) + } + + if logstash.SubnetId != nil { + _ = d.Set("subnet_id", logstash.SubnetId) + } + + if logstash.NodeNum != nil { + _ = d.Set("node_num", logstash.NodeNum) + } + + if logstash.ChargeType != nil { + _ = d.Set("charge_type", logstash.ChargeType) + } + + if logstash.ChargePeriod != nil { + _ = d.Set("charge_period", logstash.ChargePeriod) + } + + if logstash.RenewFlag != nil { + _ = d.Set("renew_flag", logstash.RenewFlag) + } + + if logstash.NodeType != nil { + _ = d.Set("node_type", logstash.NodeType) + } + + if logstash.DiskType != nil { + _ = d.Set("disk_type", logstash.DiskType) + } + + if logstash.DiskSize != nil { + _ = d.Set("disk_size", logstash.DiskSize) + } + + if logstash.LicenseType != nil { + _ = d.Set("license_type", logstash.LicenseType) + } + + tcClient := meta.(*TencentCloudClient).apiV3Conn + tagService := &TagService{client: tcClient} + tags, err := tagService.DescribeResourceTags(ctx, "es", "logstash", tcClient.Region, d.Id()) + if err != nil { + return err + } + _ = d.Set("tags", tags) + + if logstash.OperationDuration != nil { + operationDurationMap := map[string]interface{}{} + + if logstash.OperationDuration.Periods != nil { + operationDurationMap["periods"] = logstash.OperationDuration.Periods + } + + if logstash.OperationDuration.TimeStart != nil { + operationDurationMap["time_start"] = logstash.OperationDuration.TimeStart + } + + if logstash.OperationDuration.TimeEnd != nil { + operationDurationMap["time_end"] = logstash.OperationDuration.TimeEnd + } + + if logstash.OperationDuration.TimeZone != nil { + operationDurationMap["time_zone"] = logstash.OperationDuration.TimeZone + } + + _ = d.Set("operation_duration", []interface{}{operationDurationMap}) + } + + return nil +} + +func resourceTencentCloudElasticsearchLogstashUpdate(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_elasticsearch_logstash.update")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + if d.HasChange("tags") { + tcClient := meta.(*TencentCloudClient).apiV3Conn + tagService := &TagService{client: tcClient} + oldTags, newTags := d.GetChange("tags") + replaceTags, deleteTags := diffTags(oldTags.(map[string]interface{}), newTags.(map[string]interface{})) + resourceName := BuildTagResourceName("es", "logstash", tcClient.Region, d.Id()) + if err := tagService.ModifyTags(ctx, resourceName, replaceTags, deleteTags); err != nil { + return err + } + } + + request := elasticsearch.NewUpdateLogstashInstanceRequest() + + instanceId := d.Id() + + request.InstanceId = &instanceId + + immutableArgs := []string{"zone", "logstash_version", "vpc_id", "subnet_id", "charge_type", "charge_period", "time_unit", "auto_voucher", "voucher_ids", "renew_flag", "disk_type", "license_type"} + + for _, v := range immutableArgs { + if d.HasChange(v) { + return fmt.Errorf("argument `%s` cannot be changed", v) + } + } + + service := ElasticsearchService{client: meta.(*TencentCloudClient).apiV3Conn} + + if d.HasChange("instance_name") { + if v, ok := d.GetOk("instance_name"); ok { + err := service.UpdateLogstashInstance(ctx, instanceId, map[string]interface{}{"instance_name": v.(string)}) + if err != nil { + return err + } + } + } + + if d.HasChange("node_num") { + if v, ok := d.GetOkExists("node_num"); ok { + err := service.UpdateLogstashInstance(ctx, instanceId, map[string]interface{}{"node_num": v.(int)}) + if err != nil { + return err + } + } + } + + if d.HasChange("node_type") { + if v, ok := d.GetOk("node_type"); ok { + request.NodeType = helper.String(v.(string)) + err := service.UpdateLogstashInstance(ctx, instanceId, map[string]interface{}{"node_type": v.(string)}) + if err != nil { + return err + } + } + } + + if d.HasChange("disk_size") { + if v, ok := d.GetOkExists("disk_size"); ok { + err := service.UpdateLogstashInstance(ctx, instanceId, map[string]interface{}{"disk_size": v.(int)}) + if err != nil { + return err + } + } + } + + if d.HasChange("operation_duration") { + if dMap, ok := helper.InterfacesHeadMap(d, "operation_duration"); ok { + operationDuration := elasticsearch.OperationDurationUpdated{} + if v, ok := dMap["periods"]; ok { + periodsSet := v.(*schema.Set).List() + for i := range periodsSet { + periods := periodsSet[i].(int) + operationDuration.Periods = append(operationDuration.Periods, helper.IntUint64(periods)) + } + } + if v, ok := dMap["time_start"]; ok { + operationDuration.TimeStart = helper.String(v.(string)) + } + if v, ok := dMap["time_end"]; ok { + operationDuration.TimeEnd = helper.String(v.(string)) + } + if v, ok := dMap["time_zone"]; ok { + operationDuration.TimeZone = helper.String(v.(string)) + } + err := service.UpdateLogstashInstance(ctx, instanceId, map[string]interface{}{"operation_duration": operationDuration}) + if err != nil { + return err + } + } + } + + return resourceTencentCloudElasticsearchLogstashRead(d, meta) +} + +func resourceTencentCloudElasticsearchLogstashDelete(d *schema.ResourceData, meta interface{}) error { + defer logElapsed("resource.tencentcloud_elasticsearch_logstash.delete")() + defer inconsistentCheck(d, meta)() + + logId := getLogId(contextNil) + ctx := context.WithValue(context.TODO(), logIdKey, logId) + + service := ElasticsearchService{client: meta.(*TencentCloudClient).apiV3Conn} + instanceId := d.Id() + + if err := service.DeleteElasticsearchLogstashById(ctx, instanceId); err != nil { + return err + } + conf := BuildStateChangeConf([]string{}, []string{"-99"}, 3*readRetryTimeout, time.Second, service.ElasticsearchLogstashStateRefreshFunc(d.Id(), []string{})) + + if _, e := conf.WaitForState(); e != nil { + return e + } + return nil +} diff --git a/tencentcloud/resource_tc_elasticsearch_logstash_pipeline.go b/tencentcloud/resource_tc_elasticsearch_logstash_pipeline.go new file mode 100644 index 0000000000..5a5aed7d9b --- /dev/null +++ b/tencentcloud/resource_tc_elasticsearch_logstash_pipeline.go @@ -0,0 +1,400 @@ +/* +Provides a resource to create a elasticsearch logstash pipeline + +Example Usage + +```hcl +resource "tencentcloud_elasticsearch_logstash_pipeline" "logstash_pipeline" { + instance_id = "ls-xxxxxx" + pipeline { + pipeline_id = "logstash-pipeline-test" + pipeline_desc = "" + config =< 0 || c.profile.RateLimitExceededMaxRetries > 0 { + safeInjectClientToken(request) + } + + if request.GetSkipSign() { + // Some APIs can skip signature. + return c.sendWithoutSignature(request, response) + } else if c.profile.DisableRegionBreaker == true || c.rb == nil { + return c.sendWithSignature(request, response) + } else { + return c.sendWithRegionBreaker(request, response) + } +} + +func (c *Client) completeRequest(request tchttp.Request) { if request.GetScheme() == "" { request.SetScheme(c.httpProfile.Scheme) } @@ -59,22 +79,6 @@ func (c *Client) Send(request tchttp.Request, response tchttp.Response) (err err if request.GetHttpMethod() == "" { request.SetHttpMethod(c.httpProfile.ReqMethod) } - - tchttp.CompleteCommonParams(request, c.GetRegion(), c.requestClient) - - // reflect to inject client if field ClientToken exists and retry feature is enabled - if c.profile.NetworkFailureMaxRetries > 0 || c.profile.RateLimitExceededMaxRetries > 0 { - safeInjectClientToken(request) - } - - if request.GetSkipSign() { - // Some APIs can skip signature. - return c.sendWithoutSignature(request, response) - } else if c.profile.DisableRegionBreaker == true || c.rb == nil { - return c.sendWithSignature(request, response) - } else { - return c.sendWithRegionBreaker(request, response) - } } func (c *Client) sendWithRegionBreaker(request tchttp.Request, response tchttp.Response) (err error) { @@ -440,7 +444,13 @@ func (c *Client) sendHttp(request *http.Request) (response *http.Response, err e response, err = c.httpClient.Do(request) if c.debug && response != nil { - out, err := httputil.DumpResponse(response, true) + dumpBody := true + switch response.Header.Get("Content-Type") { + case "text/event-stream", "application/octet-stream": + dumpBody = false + } + + out, err := httputil.DumpResponse(response, dumpBody) if err != nil { c.logger.Printf("[ERROR] dump response failed: %s", err) } else { diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go index 34b558cf14..3c0f1443ab 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/request.go @@ -265,7 +265,7 @@ func CompleteCommonParams(request Request, region string, requestClient string) params["Action"] = request.GetAction() params["Timestamp"] = strconv.FormatInt(time.Now().Unix(), 10) params["Nonce"] = strconv.Itoa(rand.Int()) - params["RequestClient"] = "SDK_GO_1.0.763" + params["RequestClient"] = "SDK_GO_1.0.765" if requestClient != "" { params["RequestClient"] += ": " + requestClient } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/response.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/response.go index 75b29b83ea..33970334d9 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/response.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http/response.go @@ -1,9 +1,15 @@ package common import ( + "bufio" + "bytes" "fmt" "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json" + "io" "io/ioutil" + "log" + "strconv" + //"log" "net/http" @@ -17,6 +23,28 @@ type Response interface { type BaseResponse struct { } +type SSEResponse interface { + Response + setEventsChannel(ch chan SSEvent) +} + +type SSEvent struct { + Event string + Data []byte + Id string + Retry int64 + Err error +} + +type BaseSSEResponse struct { + BaseResponse + Events chan SSEvent +} + +func (r *BaseSSEResponse) setEventsChannel(ch chan SSEvent) { + r.Events = ch +} + type ErrorResponse struct { Response struct { Error struct { @@ -79,7 +107,52 @@ func ParseErrorFromHTTPResponse(body []byte) (err error) { return nil } -func ParseFromHttpResponse(hr *http.Response, response Response) (err error) { +func TryReadErr(resp *http.Response) (err error) { + switch resp.Header.Get("Content-Type") { + case "text/event-stream", "application/octet-stream": + return nil + } + + body, err := ioutil.ReadAll(resp.Body) + if err != nil { + msg := fmt.Sprintf("Fail to read http body, because: %s", err) + return errors.NewTencentCloudSDKError("ClientError.ParseJsonError", msg, "") + } + resp.Body.Close() + + errResp := &ErrorResponse{} + err = json.Unmarshal(body, &errResp) + if err != nil { + msg := fmt.Sprintf("Fail to parse json content: %s, because: %s", string(body), err) + return errors.NewTencentCloudSDKError("ClientError.ParseJsonError", msg, "") + } + if errResp.Response.Error.Code != "" { + return errors.NewTencentCloudSDKError(errResp.Response.Error.Code, errResp.Response.Error.Message, errResp.Response.RequestId) + } + + depResp := &DeprecatedAPIErrorResponse{} + err = json.Unmarshal(body, &depResp) + if err != nil { + msg := fmt.Sprintf("Fail to parse json content: %s, because: %s", string(body), err) + return errors.NewTencentCloudSDKError("ClientError.ParseJsonError", msg, "") + } + if depResp.Code != 0 { + return errors.NewTencentCloudSDKError(depResp.CodeDesc, depResp.Message, "") + } + resp.Body = io.NopCloser(bytes.NewReader(body)) + return nil +} + +func ParseFromHttpResponse(hr *http.Response, resp Response) error { + switch hr.Header.Get("Content-Type") { + case "text/event-stream": + return parseFromSSE(hr, resp) + default: + return parseFromJson(hr, resp) + } +} + +func parseFromJson(hr *http.Response, resp Response) error { defer hr.Body.Close() body, err := ioutil.ReadAll(hr.Body) if err != nil { @@ -90,15 +163,105 @@ func ParseFromHttpResponse(hr *http.Response, response Response) (err error) { msg := fmt.Sprintf("Request fail with http status code: %s, with body: %s", hr.Status, body) return errors.NewTencentCloudSDKError("ClientError.HttpStatusCodeError", msg, "") } - //log.Printf("[DEBUG] Response Body=%s", body) - err = response.ParseErrorFromHTTPResponse(body) + err = resp.ParseErrorFromHTTPResponse(body) if err != nil { - return + return err } - err = json.Unmarshal(body, &response) + err = json.Unmarshal(body, &resp) if err != nil { msg := fmt.Sprintf("Fail to parse json content: %s, because: %s", body, err) return errors.NewTencentCloudSDKError("ClientError.ParseJsonError", msg, "") } - return + return nil +} + +func parseFromSSE(hr *http.Response, resp Response) error { + reqId := hr.Header.Get("X-TC-RequestId") + r, ok := resp.(SSEResponse) + if !ok { + return errors.NewTencentCloudSDKError("ClientError.TypeError", + "Response type does not implement SSEResponse", reqId) + } + + ch := make(chan SSEvent) + r.setEventsChannel(ch) + + // parser + go func() { + defer hr.Body.Close() + defer close(ch) + + scanner := bufio.NewScanner(hr.Body) + scanner.Split(bufio.ScanLines) + + event := SSEvent{} + for scanner.Scan() { + line := scanner.Bytes() + + // SSE use empty line to indicate message end + if len(line) == 0 { + select { + case ch <- event: + event = SSEvent{} + continue + case <-hr.Request.Context().Done(): + select { + case ch <- SSEvent{Err: hr.Request.Context().Err()}: + default: + log.Println(hr.Request.Context().Err()) + } + return + } + } + + // comment + if line[0] == ':' { + continue + } + + idx := bytes.IndexByte(line, ':') + if idx == -1 { + select { + case ch <- SSEvent{Err: fmt.Errorf("SSE.InvalidLine:%s", line)}: + default: + } + return + } + + key := string(line[:idx]) + val := line[idx+1:] + switch key { + case "event": + event.Event = string(val) + case "data": + // The spec allows for multiple data fields per event, concat them with "\n". + if len(event.Data) > 0 { + event.Data = append(event.Data, '\n') + } + event.Data = append(event.Data, val...) + case "id": + event.Id = string(val) + case "retry": + retry, err := strconv.ParseInt(string(val), 10, 64) + if err != nil { + select { + case ch <- SSEvent{Err: fmt.Errorf("SSE.InvalidRetry:%s", line)}: + default: + } + return + } + event.Retry = retry + } + } + + if err := scanner.Err(); err != nil { + select { + case ch <- SSEvent{Err: err}: + default: + log.Println(err) + } + } + }() + + return nil } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/ratelimitretry.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/ratelimitretry.go index 76eb6404de..7d8030efcb 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/ratelimitretry.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/ratelimitretry.go @@ -1,12 +1,10 @@ package common import ( - "bytes" "compress/flate" "compress/gzip" "fmt" "io" - "io/ioutil" "net/http" "time" @@ -24,19 +22,18 @@ func (c *Client) sendWithRateLimitRetry(req *http.Request, retryable bool) (resp maxRetries := maxInt(c.profile.RateLimitExceededMaxRetries, 0) durationFunc := safeDurationFunc(c.profile.RateLimitExceededRetryDuration) - var shadow []byte for idx := 0; idx <= maxRetries; idx++ { resp, err = c.sendWithNetworkFailureRetry(req, retryable) if err != nil { return } - shadow, err = shadowRead(resp) + err = decompressBodyReader(resp) if err != nil { return resp, err } - err = tchttp.ParseErrorFromHTTPResponse(shadow) + err = tchttp.TryReadErr(resp) // should not sleep on last request if err, ok := err.(*errors.TencentCloudSDKError); ok && err.Code == codeLimitExceeded && idx < maxRetries { duration := durationFunc(idx) @@ -54,40 +51,27 @@ func (c *Client) sendWithRateLimitRetry(req *http.Request, retryable bool) (resp return resp, err } -func shadowRead(resp *http.Response) ([]byte, error) { - var reader io.ReadCloser +func decompressBodyReader(resp *http.Response) error { + var readCloser io.ReadCloser var err error - var val []byte enc := resp.Header.Get("Content-Encoding") switch enc { case "": - reader = resp.Body + readCloser = resp.Body case "deflate": - reader = flate.NewReader(resp.Body) + readCloser = flate.NewReader(resp.Body) case "gzip": - reader, err = gzip.NewReader(resp.Body) + readCloser, err = gzip.NewReader(resp.Body) if err != nil { - return nil, err + return err } default: - return nil, fmt.Errorf("Content-Encoding not support: %s", enc) + return fmt.Errorf("Content-Encoding not support: %s", enc) } - val, err = ioutil.ReadAll(reader) - if err != nil { - return nil, err - } - - err = resp.Body.Close() - if err != nil { - return nil, err - } - - resp.Body = ioutil.NopCloser(bytes.NewReader(val)) - + resp.Body = readCloser // delete the header in case the caller mistake the body being encoded delete(resp.Header, "Content-Encoding") - - return val, nil + return nil } diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/client.go index 0680c5709d..e4e15a3bee 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/client.go @@ -45,6 +45,128 @@ func NewClient(credential common.CredentialIface, region string, clientProfile * } +func NewCheckRecordSnapshotRollbackRequest() (request *CheckRecordSnapshotRollbackRequest) { + request = &CheckRecordSnapshotRollbackRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "CheckRecordSnapshotRollback") + + + return +} + +func NewCheckRecordSnapshotRollbackResponse() (response *CheckRecordSnapshotRollbackResponse) { + response = &CheckRecordSnapshotRollbackResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CheckRecordSnapshotRollback +// 回滚前检查单条记录 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) CheckRecordSnapshotRollback(request *CheckRecordSnapshotRollbackRequest) (response *CheckRecordSnapshotRollbackResponse, err error) { + return c.CheckRecordSnapshotRollbackWithContext(context.Background(), request) +} + +// CheckRecordSnapshotRollback +// 回滚前检查单条记录 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) CheckRecordSnapshotRollbackWithContext(ctx context.Context, request *CheckRecordSnapshotRollbackRequest) (response *CheckRecordSnapshotRollbackResponse, err error) { + if request == nil { + request = NewCheckRecordSnapshotRollbackRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CheckRecordSnapshotRollback require credential") + } + + request.SetContext(ctx) + + response = NewCheckRecordSnapshotRollbackResponse() + err = c.Send(request, response) + return +} + +func NewCheckSnapshotRollbackRequest() (request *CheckSnapshotRollbackRequest) { + request = &CheckSnapshotRollbackRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "CheckSnapshotRollback") + + + return +} + +func NewCheckSnapshotRollbackResponse() (response *CheckSnapshotRollbackResponse) { + response = &CheckSnapshotRollbackResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CheckSnapshotRollback +// 快照回滚前检查 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) CheckSnapshotRollback(request *CheckSnapshotRollbackRequest) (response *CheckSnapshotRollbackResponse, err error) { + return c.CheckSnapshotRollbackWithContext(context.Background(), request) +} + +// CheckSnapshotRollback +// 快照回滚前检查 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) CheckSnapshotRollbackWithContext(ctx context.Context, request *CheckSnapshotRollbackRequest) (response *CheckSnapshotRollbackResponse, err error) { + if request == nil { + request = NewCheckSnapshotRollbackRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CheckSnapshotRollback require credential") + } + + request.SetContext(ctx) + + response = NewCheckSnapshotRollbackResponse() + err = c.Send(request, response) + return +} + func NewCreateDealRequest() (request *CreateDealRequest) { request = &CreateDealRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -305,13 +427,19 @@ func NewCreateDomainResponse() (response *CreateDomainResponse) { // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINEXISTS = "FailedOperation.DomainExists" +// FAILEDOPERATION_DOMAININENTERPRISEMAILACCOUNT = "FailedOperation.DomainInEnterpriseMailAccount" // FAILEDOPERATION_DOMAINOWNEDBYOTHERUSER = "FailedOperation.DomainOwnedByOtherUser" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned" +// INVALIDPARAMETER_DOMAININBLACKLIST = "InvalidParameter.DomainInBlackList" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINISMYALIAS = "InvalidParameter.DomainIsMyAlias" // INVALIDPARAMETER_DOMAINNOTREGED = "InvalidParameter.DomainNotReged" // INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_QUHUITXTNOTMATCH = "InvalidParameter.QuhuiTxtNotMatch" +// INVALIDPARAMETER_QUHUITXTRECORDWAIT = "InvalidParameter.QuhuiTxtRecordWait" // INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid" // INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" func (c *Client) CreateDomain(request *CreateDomainRequest) (response *CreateDomainResponse, err error) { @@ -324,13 +452,19 @@ func (c *Client) CreateDomain(request *CreateDomainRequest) (response *CreateDom // 可能返回的错误码: // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINEXISTS = "FailedOperation.DomainExists" +// FAILEDOPERATION_DOMAININENTERPRISEMAILACCOUNT = "FailedOperation.DomainInEnterpriseMailAccount" // FAILEDOPERATION_DOMAINOWNEDBYOTHERUSER = "FailedOperation.DomainOwnedByOtherUser" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned" +// INVALIDPARAMETER_DOMAININBLACKLIST = "InvalidParameter.DomainInBlackList" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINISMYALIAS = "InvalidParameter.DomainIsMyAlias" // INVALIDPARAMETER_DOMAINNOTREGED = "InvalidParameter.DomainNotReged" // INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_QUHUITXTNOTMATCH = "InvalidParameter.QuhuiTxtNotMatch" +// INVALIDPARAMETER_QUHUITXTRECORDWAIT = "InvalidParameter.QuhuiTxtRecordWait" // INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid" // INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" func (c *Client) CreateDomainWithContext(ctx context.Context, request *CreateDomainRequest) (response *CreateDomainResponse, err error) { @@ -459,6 +593,7 @@ func NewCreateDomainBatchResponse() (response *CreateDomainBatchResponse) { // 批量添加域名 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // INVALIDPARAMETER_BATCHDOMAINCREATEACTIONERROR = "InvalidParameter.BatchDomainCreateActionError" @@ -484,6 +619,7 @@ func (c *Client) CreateDomainBatch(request *CreateDomainBatchRequest) (response // 批量添加域名 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // INVALIDPARAMETER_BATCHDOMAINCREATEACTIONERROR = "InvalidParameter.BatchDomainCreateActionError" @@ -605,6 +741,7 @@ func NewCreateRecordResponse() (response *CreateRecordResponse) { // 添加记录 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" @@ -663,6 +800,7 @@ func (c *Client) CreateRecord(request *CreateRecordRequest) (response *CreateRec // 添加记录 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" @@ -811,6 +949,134 @@ func (c *Client) CreateRecordBatchWithContext(ctx context.Context, request *Crea return } +func NewCreateRecordGroupRequest() (request *CreateRecordGroupRequest) { + request = &CreateRecordGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "CreateRecordGroup") + + + return +} + +func NewCreateRecordGroupResponse() (response *CreateRecordGroupResponse) { + response = &CreateRecordGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateRecordGroup +// 添加记录分组 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) CreateRecordGroup(request *CreateRecordGroupRequest) (response *CreateRecordGroupResponse, err error) { + return c.CreateRecordGroupWithContext(context.Background(), request) +} + +// CreateRecordGroup +// 添加记录分组 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) CreateRecordGroupWithContext(ctx context.Context, request *CreateRecordGroupRequest) (response *CreateRecordGroupResponse, err error) { + if request == nil { + request = NewCreateRecordGroupRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateRecordGroup require credential") + } + + request.SetContext(ctx) + + response = NewCreateRecordGroupResponse() + err = c.Send(request, response) + return +} + +func NewCreateSnapshotRequest() (request *CreateSnapshotRequest) { + request = &CreateSnapshotRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "CreateSnapshot") + + + return +} + +func NewCreateSnapshotResponse() (response *CreateSnapshotResponse) { + response = &CreateSnapshotResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// CreateSnapshot +// 创建快照 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error) { + return c.CreateSnapshotWithContext(context.Background(), request) +} + +// CreateSnapshot +// 创建快照 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) CreateSnapshotWithContext(ctx context.Context, request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error) { + if request == nil { + request = NewCreateSnapshotRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("CreateSnapshot require credential") + } + + request.SetContext(ctx) + + response = NewCreateSnapshotResponse() + err = c.Send(request, response) + return +} + func NewDeleteDomainRequest() (request *DeleteDomainRequest) { request = &DeleteDomainRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -961,6 +1227,74 @@ func (c *Client) DeleteDomainAliasWithContext(ctx context.Context, request *Dele return } +func NewDeleteDomainBatchRequest() (request *DeleteDomainBatchRequest) { + request = &DeleteDomainBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DeleteDomainBatch") + + + return +} + +func NewDeleteDomainBatchResponse() (response *DeleteDomainBatchResponse) { + response = &DeleteDomainBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteDomainBatch +// 批量删除域名 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_BATCHRECORDREMOVEACTIONERROR = "InvalidParameter.BatchRecordRemoveActionError" +// INVALIDPARAMETER_BATCHTASKCOUNTLIMIT = "InvalidParameter.BatchTaskCountLimit" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINSEMPTY = "InvalidParameter.DomainsEmpty" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" +func (c *Client) DeleteDomainBatch(request *DeleteDomainBatchRequest) (response *DeleteDomainBatchResponse, err error) { + return c.DeleteDomainBatchWithContext(context.Background(), request) +} + +// DeleteDomainBatch +// 批量删除域名 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_BATCHRECORDREMOVEACTIONERROR = "InvalidParameter.BatchRecordRemoveActionError" +// INVALIDPARAMETER_BATCHTASKCOUNTLIMIT = "InvalidParameter.BatchTaskCountLimit" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINSEMPTY = "InvalidParameter.DomainsEmpty" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" +func (c *Client) DeleteDomainBatchWithContext(ctx context.Context, request *DeleteDomainBatchRequest) (response *DeleteDomainBatchResponse, err error) { + if request == nil { + request = NewDeleteDomainBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteDomainBatch require credential") + } + + request.SetContext(ctx) + + response = NewDeleteDomainBatchResponse() + err = c.Send(request, response) + return +} + func NewDeleteRecordRequest() (request *DeleteRecordRequest) { request = &DeleteRecordRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -986,6 +1320,7 @@ func NewDeleteRecordResponse() (response *DeleteRecordResponse) { // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" @@ -996,6 +1331,7 @@ func NewDeleteRecordResponse() (response *DeleteRecordResponse) { // INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" // INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" // INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" // INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" // INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" @@ -1020,6 +1356,7 @@ func (c *Client) DeleteRecord(request *DeleteRecordRequest) (response *DeleteRec // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" @@ -1030,6 +1367,7 @@ func (c *Client) DeleteRecord(request *DeleteRecordRequest) (response *DeleteRec // INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" // INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" // INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" // INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" // INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" @@ -1059,26 +1397,158 @@ func (c *Client) DeleteRecordWithContext(ctx context.Context, request *DeleteRec return } -func NewDeleteShareDomainRequest() (request *DeleteShareDomainRequest) { - request = &DeleteShareDomainRequest{ +func NewDeleteRecordBatchRequest() (request *DeleteRecordBatchRequest) { + request = &DeleteRecordBatchRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("dnspod", APIVersion, "DeleteShareDomain") + request.Init().WithApiInfo("dnspod", APIVersion, "DeleteRecordBatch") return } -func NewDeleteShareDomainResponse() (response *DeleteShareDomainResponse) { - response = &DeleteShareDomainResponse{ +func NewDeleteRecordBatchResponse() (response *DeleteRecordBatchResponse) { + response = &DeleteRecordBatchResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DeleteShareDomain -// 删除域名共享 +// DeleteRecordBatch +// 批量删除解析记录 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_BATCHRECORDREMOVEACTIONERROR = "InvalidParameter.BatchRecordRemoveActionError" +// INVALIDPARAMETER_BATCHTASKCOUNTLIMIT = "InvalidParameter.BatchTaskCountLimit" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" +// INVALIDPARAMETER_RECORDSEMPTY = "InvalidParameter.RecordsEmpty" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" +func (c *Client) DeleteRecordBatch(request *DeleteRecordBatchRequest) (response *DeleteRecordBatchResponse, err error) { + return c.DeleteRecordBatchWithContext(context.Background(), request) +} + +// DeleteRecordBatch +// 批量删除解析记录 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_BATCHRECORDREMOVEACTIONERROR = "InvalidParameter.BatchRecordRemoveActionError" +// INVALIDPARAMETER_BATCHTASKCOUNTLIMIT = "InvalidParameter.BatchTaskCountLimit" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" +// INVALIDPARAMETER_RECORDSEMPTY = "InvalidParameter.RecordsEmpty" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" +func (c *Client) DeleteRecordBatchWithContext(ctx context.Context, request *DeleteRecordBatchRequest) (response *DeleteRecordBatchResponse, err error) { + if request == nil { + request = NewDeleteRecordBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteRecordBatch require credential") + } + + request.SetContext(ctx) + + response = NewDeleteRecordBatchResponse() + err = c.Send(request, response) + return +} + +func NewDeleteRecordGroupRequest() (request *DeleteRecordGroupRequest) { + request = &DeleteRecordGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DeleteRecordGroup") + + + return +} + +func NewDeleteRecordGroupResponse() (response *DeleteRecordGroupResponse) { + response = &DeleteRecordGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteRecordGroup +// 删除记录分组 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DeleteRecordGroup(request *DeleteRecordGroupRequest) (response *DeleteRecordGroupResponse, err error) { + return c.DeleteRecordGroupWithContext(context.Background(), request) +} + +// DeleteRecordGroup +// 删除记录分组 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DeleteRecordGroupWithContext(ctx context.Context, request *DeleteRecordGroupRequest) (response *DeleteRecordGroupResponse, err error) { + if request == nil { + request = NewDeleteRecordGroupRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteRecordGroup require credential") + } + + request.SetContext(ctx) + + response = NewDeleteRecordGroupResponse() + err = c.Send(request, response) + return +} + +func NewDeleteShareDomainRequest() (request *DeleteShareDomainRequest) { + request = &DeleteShareDomainRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DeleteShareDomain") + + + return +} + +func NewDeleteShareDomainResponse() (response *DeleteShareDomainResponse) { + response = &DeleteShareDomainResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteShareDomain +// 删除域名共享 // // 可能返回的错误码: // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" @@ -1125,6 +1595,68 @@ func (c *Client) DeleteShareDomainWithContext(ctx context.Context, request *Dele return } +func NewDeleteSnapshotRequest() (request *DeleteSnapshotRequest) { + request = &DeleteSnapshotRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DeleteSnapshot") + + + return +} + +func NewDeleteSnapshotResponse() (response *DeleteSnapshotResponse) { + response = &DeleteSnapshotResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DeleteSnapshot +// 删除快照 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DeleteSnapshot(request *DeleteSnapshotRequest) (response *DeleteSnapshotResponse, err error) { + return c.DeleteSnapshotWithContext(context.Background(), request) +} + +// DeleteSnapshot +// 删除快照 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DeleteSnapshotWithContext(ctx context.Context, request *DeleteSnapshotRequest) (response *DeleteSnapshotResponse, err error) { + if request == nil { + request = NewDeleteSnapshotRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DeleteSnapshot require credential") + } + + request.SetContext(ctx) + + response = NewDeleteSnapshotResponse() + err = c.Send(request, response) + return +} + func NewDescribeBatchTaskRequest() (request *DescribeBatchTaskRequest) { request = &DescribeBatchTaskRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -1147,7 +1679,9 @@ func NewDescribeBatchTaskResponse() (response *DescribeBatchTaskResponse) { // 获取任务详情 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NOTBATCHTASKOWNER = "FailedOperation.NotBatchTaskOwner" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_BATCHTASKNOTEXIST = "InvalidParameter.BatchTaskNotExist" // INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" func (c *Client) DescribeBatchTask(request *DescribeBatchTaskRequest) (response *DescribeBatchTaskResponse, err error) { @@ -1158,7 +1692,9 @@ func (c *Client) DescribeBatchTask(request *DescribeBatchTaskRequest) (response // 获取任务详情 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_NOTBATCHTASKOWNER = "FailedOperation.NotBatchTaskOwner" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_BATCHTASKNOTEXIST = "InvalidParameter.BatchTaskNotExist" // INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" func (c *Client) DescribeBatchTaskWithContext(ctx context.Context, request *DescribeBatchTaskRequest) (response *DescribeBatchTaskResponse, err error) { @@ -1199,6 +1735,7 @@ func NewDescribeDomainResponse() (response *DescribeDomainResponse) { // 获取域名信息 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" @@ -1214,6 +1751,7 @@ func (c *Client) DescribeDomain(request *DescribeDomainRequest) (response *Descr // 获取域名信息 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" @@ -1338,6 +1876,7 @@ func NewDescribeDomainAnalyticsResponse() (response *DescribeDomainAnalyticsResp // FAILEDOPERATION_TEMPORARYERROR = "FailedOperation.TemporaryError" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" func (c *Client) DescribeDomainAnalytics(request *DescribeDomainAnalyticsRequest) (response *DescribeDomainAnalyticsResponse, err error) { @@ -1353,6 +1892,7 @@ func (c *Client) DescribeDomainAnalytics(request *DescribeDomainAnalyticsRequest // FAILEDOPERATION_TEMPORARYERROR = "FailedOperation.TemporaryError" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" func (c *Client) DescribeDomainAnalyticsWithContext(ctx context.Context, request *DescribeDomainAnalyticsRequest) (response *DescribeDomainAnalyticsResponse, err error) { @@ -1371,6 +1911,82 @@ func (c *Client) DescribeDomainAnalyticsWithContext(ctx context.Context, request return } +func NewDescribeDomainFilterListRequest() (request *DescribeDomainFilterListRequest) { + request = &DescribeDomainFilterListRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeDomainFilterList") + + + return +} + +func NewDescribeDomainFilterListResponse() (response *DescribeDomainFilterListResponse) { + response = &DescribeDomainFilterListResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeDomainFilterList +// 获取域名筛选列表 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_GROUPIDINVALID = "InvalidParameter.GroupIdInvalid" +// INVALIDPARAMETER_OFFSETINVALID = "InvalidParameter.OffsetInvalid" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500" +// INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid" +// OPERATIONDENIED_ACCESSDENIED = "OperationDenied.AccessDenied" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) DescribeDomainFilterList(request *DescribeDomainFilterListRequest) (response *DescribeDomainFilterListResponse, err error) { + return c.DescribeDomainFilterListWithContext(context.Background(), request) +} + +// DescribeDomainFilterList +// 获取域名筛选列表 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_GROUPIDINVALID = "InvalidParameter.GroupIdInvalid" +// INVALIDPARAMETER_OFFSETINVALID = "InvalidParameter.OffsetInvalid" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500" +// INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid" +// OPERATIONDENIED_ACCESSDENIED = "OperationDenied.AccessDenied" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) DescribeDomainFilterListWithContext(ctx context.Context, request *DescribeDomainFilterListRequest) (response *DescribeDomainFilterListResponse, err error) { + if request == nil { + request = NewDescribeDomainFilterListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainFilterList require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainFilterListResponse() + err = c.Send(request, response) + return +} + func NewDescribeDomainGroupListRequest() (request *DescribeDomainGroupListRequest) { request = &DescribeDomainGroupListRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -1530,6 +2146,7 @@ func NewDescribeDomainLogListResponse() (response *DescribeDomainLogListResponse // // 可能返回的错误码: // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" @@ -1545,6 +2162,7 @@ func (c *Client) DescribeDomainLogList(request *DescribeDomainLogListRequest) (r // // 可能返回的错误码: // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" @@ -1567,65 +2185,127 @@ func (c *Client) DescribeDomainLogListWithContext(ctx context.Context, request * return } -func NewDescribeDomainPurviewRequest() (request *DescribeDomainPurviewRequest) { - request = &DescribeDomainPurviewRequest{ +func NewDescribeDomainPreviewRequest() (request *DescribeDomainPreviewRequest) { + request = &DescribeDomainPreviewRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("dnspod", APIVersion, "DescribeDomainPurview") + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeDomainPreview") return } -func NewDescribeDomainPurviewResponse() (response *DescribeDomainPurviewResponse) { - response = &DescribeDomainPurviewResponse{ +func NewDescribeDomainPreviewResponse() (response *DescribeDomainPreviewResponse) { + response = &DescribeDomainPreviewResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DescribeDomainPurview -// 获取域名权限 +// DescribeDomainPreview +// 获取域名概览信息 // // 可能返回的错误码: -// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" -// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" -// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" -// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" -// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" -// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" -// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" -// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" -// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" -// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" // OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" // OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" -// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" -// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" -// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" -func (c *Client) DescribeDomainPurview(request *DescribeDomainPurviewRequest) (response *DescribeDomainPurviewResponse, err error) { - return c.DescribeDomainPurviewWithContext(context.Background(), request) +func (c *Client) DescribeDomainPreview(request *DescribeDomainPreviewRequest) (response *DescribeDomainPreviewResponse, err error) { + return c.DescribeDomainPreviewWithContext(context.Background(), request) } -// DescribeDomainPurview -// 获取域名权限 +// DescribeDomainPreview +// 获取域名概览信息 // // 可能返回的错误码: -// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" -// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" -// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" -// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" -// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeDomainPreviewWithContext(ctx context.Context, request *DescribeDomainPreviewRequest) (response *DescribeDomainPreviewResponse, err error) { + if request == nil { + request = NewDescribeDomainPreviewRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainPreview require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainPreviewResponse() + err = c.Send(request, response) + return +} + +func NewDescribeDomainPurviewRequest() (request *DescribeDomainPurviewRequest) { + request = &DescribeDomainPurviewRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeDomainPurview") + + + return +} + +func NewDescribeDomainPurviewResponse() (response *DescribeDomainPurviewResponse) { + response = &DescribeDomainPurviewResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeDomainPurview +// 获取域名权限 +// +// 可能返回的错误码: +// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" +// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" +// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" +// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" +// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" +// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +func (c *Client) DescribeDomainPurview(request *DescribeDomainPurviewRequest) (response *DescribeDomainPurviewResponse, err error) { + return c.DescribeDomainPurviewWithContext(context.Background(), request) +} + +// DescribeDomainPurview +// 获取域名权限 +// +// 可能返回的错误码: +// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" +// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" +// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" +// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" // INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" // INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" // INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" @@ -1711,6 +2391,164 @@ func (c *Client) DescribeDomainShareInfoWithContext(ctx context.Context, request return } +func NewDescribeDomainWhoisRequest() (request *DescribeDomainWhoisRequest) { + request = &DescribeDomainWhoisRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeDomainWhois") + + + return +} + +func NewDescribeDomainWhoisResponse() (response *DescribeDomainWhoisResponse) { + response = &DescribeDomainWhoisResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeDomainWhois +// 获取域名Whois信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeDomainWhois(request *DescribeDomainWhoisRequest) (response *DescribeDomainWhoisResponse, err error) { + return c.DescribeDomainWhoisWithContext(context.Background(), request) +} + +// DescribeDomainWhois +// 获取域名Whois信息 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeDomainWhoisWithContext(ctx context.Context, request *DescribeDomainWhoisRequest) (response *DescribeDomainWhoisResponse, err error) { + if request == nil { + request = NewDescribeDomainWhoisRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeDomainWhois require credential") + } + + request.SetContext(ctx) + + response = NewDescribeDomainWhoisResponse() + err = c.Send(request, response) + return +} + +func NewDescribePackageDetailRequest() (request *DescribePackageDetailRequest) { + request = &DescribePackageDetailRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribePackageDetail") + + + return +} + +func NewDescribePackageDetailResponse() (response *DescribePackageDetailResponse) { + response = &DescribePackageDetailResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribePackageDetail +// 获取各套餐配置详情 +// +// 可能返回的错误码: +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner" +// FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser" +// FAILEDOPERATION_NOTRESOURCEOWNER = "FailedOperation.NotResourceOwner" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid" +// INVALIDPARAMETER_PARAMSMISSING = "InvalidParameter.ParamsMissing" +// INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin" +// OPERATIONDENIED_NOTRESOURCEOWNER = "OperationDenied.NotResourceOwner" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// UNKNOWNPARAMETER = "UnknownParameter" +func (c *Client) DescribePackageDetail(request *DescribePackageDetailRequest) (response *DescribePackageDetailResponse, err error) { + return c.DescribePackageDetailWithContext(context.Background(), request) +} + +// DescribePackageDetail +// 获取各套餐配置详情 +// +// 可能返回的错误码: +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner" +// FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser" +// FAILEDOPERATION_NOTRESOURCEOWNER = "FailedOperation.NotResourceOwner" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid" +// INVALIDPARAMETER_PARAMSMISSING = "InvalidParameter.ParamsMissing" +// INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin" +// OPERATIONDENIED_NOTRESOURCEOWNER = "OperationDenied.NotResourceOwner" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// UNKNOWNPARAMETER = "UnknownParameter" +func (c *Client) DescribePackageDetailWithContext(ctx context.Context, request *DescribePackageDetailRequest) (response *DescribePackageDetailResponse, err error) { + if request == nil { + request = NewDescribePackageDetailRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribePackageDetail require credential") + } + + request.SetContext(ctx) + + response = NewDescribePackageDetailResponse() + err = c.Send(request, response) + return +} + func NewDescribeRecordRequest() (request *DescribeRecordRequest) { request = &DescribeRecordRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -1733,6 +2571,7 @@ func NewDescribeRecordResponse() (response *DescribeRecordResponse) { // 获取记录信息 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" @@ -1763,6 +2602,7 @@ func (c *Client) DescribeRecord(request *DescribeRecordRequest) (response *Descr // 获取记录信息 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" @@ -1801,112 +2641,124 @@ func (c *Client) DescribeRecordWithContext(ctx context.Context, request *Describ return } -func NewDescribeRecordLineListRequest() (request *DescribeRecordLineListRequest) { - request = &DescribeRecordLineListRequest{ +func NewDescribeRecordExistExceptDefaultNSRequest() (request *DescribeRecordExistExceptDefaultNSRequest) { + request = &DescribeRecordExistExceptDefaultNSRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordLineList") + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordExistExceptDefaultNS") return } -func NewDescribeRecordLineListResponse() (response *DescribeRecordLineListResponse) { - response = &DescribeRecordLineListResponse{ +func NewDescribeRecordExistExceptDefaultNSResponse() (response *DescribeRecordExistExceptDefaultNSResponse) { + response = &DescribeRecordExistExceptDefaultNSResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DescribeRecordLineList -// 获取等级允许的线路 +// DescribeRecordExistExceptDefaultNS +// 判断是否有除系统默认的@-NS记录之外的记录存在 // // 可能返回的错误码: +// FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords" // INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" // INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" // INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" +// INVALIDPARAMETER_REMARKLENGTHEXCEEDED = "InvalidParameter.RemarkLengthExceeded" // INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" // INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" // INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" -// INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" // LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" // OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin" // OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" // OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" // REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" -func (c *Client) DescribeRecordLineList(request *DescribeRecordLineListRequest) (response *DescribeRecordLineListResponse, err error) { - return c.DescribeRecordLineListWithContext(context.Background(), request) +func (c *Client) DescribeRecordExistExceptDefaultNS(request *DescribeRecordExistExceptDefaultNSRequest) (response *DescribeRecordExistExceptDefaultNSResponse, err error) { + return c.DescribeRecordExistExceptDefaultNSWithContext(context.Background(), request) } -// DescribeRecordLineList -// 获取等级允许的线路 +// DescribeRecordExistExceptDefaultNS +// 判断是否有除系统默认的@-NS记录之外的记录存在 // // 可能返回的错误码: +// FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords" // INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" // INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" // INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" +// INVALIDPARAMETER_REMARKLENGTHEXCEEDED = "InvalidParameter.RemarkLengthExceeded" // INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" // INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" // INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" -// INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" // LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" // OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin" // OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" // OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" // REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" -func (c *Client) DescribeRecordLineListWithContext(ctx context.Context, request *DescribeRecordLineListRequest) (response *DescribeRecordLineListResponse, err error) { +func (c *Client) DescribeRecordExistExceptDefaultNSWithContext(ctx context.Context, request *DescribeRecordExistExceptDefaultNSRequest) (response *DescribeRecordExistExceptDefaultNSResponse, err error) { if request == nil { - request = NewDescribeRecordLineListRequest() + request = NewDescribeRecordExistExceptDefaultNSRequest() } if c.GetCredential() == nil { - return nil, errors.New("DescribeRecordLineList require credential") + return nil, errors.New("DescribeRecordExistExceptDefaultNS require credential") } request.SetContext(ctx) - response = NewDescribeRecordLineListResponse() + response = NewDescribeRecordExistExceptDefaultNSResponse() err = c.Send(request, response) return } -func NewDescribeRecordListRequest() (request *DescribeRecordListRequest) { - request = &DescribeRecordListRequest{ +func NewDescribeRecordFilterListRequest() (request *DescribeRecordFilterListRequest) { + request = &DescribeRecordFilterListRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordList") + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordFilterList") return } -func NewDescribeRecordListResponse() (response *DescribeRecordListResponse) { - response = &DescribeRecordListResponse{ +func NewDescribeRecordFilterListResponse() (response *DescribeRecordFilterListResponse) { + response = &DescribeRecordFilterListResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DescribeRecordList -// 获取某个域名下的解析记录 +// DescribeRecordFilterList +// 获取某个域名下的解析记录列表 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" @@ -1919,6 +2771,7 @@ func NewDescribeRecordListResponse() (response *DescribeRecordListResponse) { // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OFFSETINVALID = "InvalidParameter.OffsetInvalid" // INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid" // INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid" @@ -1926,17 +2779,18 @@ func NewDescribeRecordListResponse() (response *DescribeRecordListResponse) { // INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid" +// LIMITEXCEEDED_OFFSETEXCEEDED = "LimitExceeded.OffsetExceeded" // OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" // REQUESTLIMITEXCEEDED = "RequestLimitExceeded" // REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" // RESOURCENOTFOUND_NODATAOFRECORD = "ResourceNotFound.NoDataOfRecord" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -func (c *Client) DescribeRecordList(request *DescribeRecordListRequest) (response *DescribeRecordListResponse, err error) { - return c.DescribeRecordListWithContext(context.Background(), request) +func (c *Client) DescribeRecordFilterList(request *DescribeRecordFilterListRequest) (response *DescribeRecordFilterListResponse, err error) { + return c.DescribeRecordFilterListWithContext(context.Background(), request) } -// DescribeRecordList -// 获取某个域名下的解析记录 +// DescribeRecordFilterList +// 获取某个域名下的解析记录列表 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" @@ -1949,6 +2803,7 @@ func (c *Client) DescribeRecordList(request *DescribeRecordListRequest) (respons // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OFFSETINVALID = "InvalidParameter.OffsetInvalid" // INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid" // INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid" @@ -1956,107 +2811,656 @@ func (c *Client) DescribeRecordList(request *DescribeRecordListRequest) (respons // INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid" +// LIMITEXCEEDED_OFFSETEXCEEDED = "LimitExceeded.OffsetExceeded" // OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" // REQUESTLIMITEXCEEDED = "RequestLimitExceeded" // REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" // RESOURCENOTFOUND_NODATAOFRECORD = "ResourceNotFound.NoDataOfRecord" // UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -func (c *Client) DescribeRecordListWithContext(ctx context.Context, request *DescribeRecordListRequest) (response *DescribeRecordListResponse, err error) { +func (c *Client) DescribeRecordFilterListWithContext(ctx context.Context, request *DescribeRecordFilterListRequest) (response *DescribeRecordFilterListResponse, err error) { if request == nil { - request = NewDescribeRecordListRequest() + request = NewDescribeRecordFilterListRequest() } if c.GetCredential() == nil { - return nil, errors.New("DescribeRecordList require credential") + return nil, errors.New("DescribeRecordFilterList require credential") } request.SetContext(ctx) - response = NewDescribeRecordListResponse() + response = NewDescribeRecordFilterListResponse() err = c.Send(request, response) return } -func NewDescribeRecordTypeRequest() (request *DescribeRecordTypeRequest) { - request = &DescribeRecordTypeRequest{ +func NewDescribeRecordGroupListRequest() (request *DescribeRecordGroupListRequest) { + request = &DescribeRecordGroupListRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordType") + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordGroupList") return } -func NewDescribeRecordTypeResponse() (response *DescribeRecordTypeResponse) { - response = &DescribeRecordTypeResponse{ +func NewDescribeRecordGroupListResponse() (response *DescribeRecordGroupListResponse) { + response = &DescribeRecordGroupListResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// DescribeRecordType +// DescribeRecordGroupList +// 查询解析记录分组列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeRecordGroupList(request *DescribeRecordGroupListRequest) (response *DescribeRecordGroupListResponse, err error) { + return c.DescribeRecordGroupListWithContext(context.Background(), request) +} + +// DescribeRecordGroupList +// 查询解析记录分组列表 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeRecordGroupListWithContext(ctx context.Context, request *DescribeRecordGroupListRequest) (response *DescribeRecordGroupListResponse, err error) { + if request == nil { + request = NewDescribeRecordGroupListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRecordGroupList require credential") + } + + request.SetContext(ctx) + + response = NewDescribeRecordGroupListResponse() + err = c.Send(request, response) + return +} + +func NewDescribeRecordLineListRequest() (request *DescribeRecordLineListRequest) { + request = &DescribeRecordLineListRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordLineList") + + + return +} + +func NewDescribeRecordLineListResponse() (response *DescribeRecordLineListResponse) { + response = &DescribeRecordLineListResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeRecordLineList +// 获取等级允许的线路 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" +// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" +// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" +// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" +// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" +// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +func (c *Client) DescribeRecordLineList(request *DescribeRecordLineListRequest) (response *DescribeRecordLineListResponse, err error) { + return c.DescribeRecordLineListWithContext(context.Background(), request) +} + +// DescribeRecordLineList +// 获取等级允许的线路 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" +// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" +// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" +// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" +// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" +// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +func (c *Client) DescribeRecordLineListWithContext(ctx context.Context, request *DescribeRecordLineListRequest) (response *DescribeRecordLineListResponse, err error) { + if request == nil { + request = NewDescribeRecordLineListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRecordLineList require credential") + } + + request.SetContext(ctx) + + response = NewDescribeRecordLineListResponse() + err = c.Send(request, response) + return +} + +func NewDescribeRecordListRequest() (request *DescribeRecordListRequest) { + request = &DescribeRecordListRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordList") + + + return +} + +func NewDescribeRecordListResponse() (response *DescribeRecordListResponse) { + response = &DescribeRecordListResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeRecordList +// 获取某个域名下的解析记录列表 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner" +// FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid" +// INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid" +// INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" +// INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// RESOURCENOTFOUND_NODATAOFRECORD = "ResourceNotFound.NoDataOfRecord" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) DescribeRecordList(request *DescribeRecordListRequest) (response *DescribeRecordListResponse, err error) { + return c.DescribeRecordListWithContext(context.Background(), request) +} + +// DescribeRecordList +// 获取某个域名下的解析记录列表 +// +// 可能返回的错误码: +// AUTHFAILURE = "AuthFailure" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner" +// FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid" +// INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid" +// INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" +// INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// RESOURCENOTFOUND_NODATAOFRECORD = "ResourceNotFound.NoDataOfRecord" +// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" +func (c *Client) DescribeRecordListWithContext(ctx context.Context, request *DescribeRecordListRequest) (response *DescribeRecordListResponse, err error) { + if request == nil { + request = NewDescribeRecordListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRecordList require credential") + } + + request.SetContext(ctx) + + response = NewDescribeRecordListResponse() + err = c.Send(request, response) + return +} + +func NewDescribeRecordSnapshotRollbackResultRequest() (request *DescribeRecordSnapshotRollbackResultRequest) { + request = &DescribeRecordSnapshotRollbackResultRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordSnapshotRollbackResult") + + + return +} + +func NewDescribeRecordSnapshotRollbackResultResponse() (response *DescribeRecordSnapshotRollbackResultResponse) { + response = &DescribeRecordSnapshotRollbackResultResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeRecordSnapshotRollbackResult +// 查询解析记录重新回滚的结果 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_BATCHTASKNOTEXIST = "InvalidParameter.BatchTaskNotExist" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeRecordSnapshotRollbackResult(request *DescribeRecordSnapshotRollbackResultRequest) (response *DescribeRecordSnapshotRollbackResultResponse, err error) { + return c.DescribeRecordSnapshotRollbackResultWithContext(context.Background(), request) +} + +// DescribeRecordSnapshotRollbackResult +// 查询解析记录重新回滚的结果 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_BATCHTASKNOTEXIST = "InvalidParameter.BatchTaskNotExist" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeRecordSnapshotRollbackResultWithContext(ctx context.Context, request *DescribeRecordSnapshotRollbackResultRequest) (response *DescribeRecordSnapshotRollbackResultResponse, err error) { + if request == nil { + request = NewDescribeRecordSnapshotRollbackResultRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRecordSnapshotRollbackResult require credential") + } + + request.SetContext(ctx) + + response = NewDescribeRecordSnapshotRollbackResultResponse() + err = c.Send(request, response) + return +} + +func NewDescribeRecordTypeRequest() (request *DescribeRecordTypeRequest) { + request = &DescribeRecordTypeRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeRecordType") + + + return +} + +func NewDescribeRecordTypeResponse() (response *DescribeRecordTypeResponse) { + response = &DescribeRecordTypeResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeRecordType // 获取等级允许的记录类型 // // 可能返回的错误码: -// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" -// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" +// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" +// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" +// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" +// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" +// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" +// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DescribeRecordType(request *DescribeRecordTypeRequest) (response *DescribeRecordTypeResponse, err error) { + return c.DescribeRecordTypeWithContext(context.Background(), request) +} + +// DescribeRecordType +// 获取等级允许的记录类型 +// +// 可能返回的错误码: +// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" +// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" +// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" +// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" +// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" +// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" +// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// RESOURCENOTFOUND = "ResourceNotFound" +func (c *Client) DescribeRecordTypeWithContext(ctx context.Context, request *DescribeRecordTypeRequest) (response *DescribeRecordTypeResponse, err error) { + if request == nil { + request = NewDescribeRecordTypeRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeRecordType require credential") + } + + request.SetContext(ctx) + + response = NewDescribeRecordTypeResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSnapshotConfigRequest() (request *DescribeSnapshotConfigRequest) { + request = &DescribeSnapshotConfigRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeSnapshotConfig") + + + return +} + +func NewDescribeSnapshotConfigResponse() (response *DescribeSnapshotConfigResponse) { + response = &DescribeSnapshotConfigResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeSnapshotConfig +// 查询解析快照配置 +// +// 可能返回的错误码: +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeSnapshotConfig(request *DescribeSnapshotConfigRequest) (response *DescribeSnapshotConfigResponse, err error) { + return c.DescribeSnapshotConfigWithContext(context.Background(), request) +} + +// DescribeSnapshotConfig +// 查询解析快照配置 +// +// 可能返回的错误码: +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeSnapshotConfigWithContext(ctx context.Context, request *DescribeSnapshotConfigRequest) (response *DescribeSnapshotConfigResponse, err error) { + if request == nil { + request = NewDescribeSnapshotConfigRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeSnapshotConfig require credential") + } + + request.SetContext(ctx) + + response = NewDescribeSnapshotConfigResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSnapshotListRequest() (request *DescribeSnapshotListRequest) { + request = &DescribeSnapshotListRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeSnapshotList") + + + return +} + +func NewDescribeSnapshotListResponse() (response *DescribeSnapshotListResponse) { + response = &DescribeSnapshotListResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeSnapshotList +// 查询快照列表 +// +// 可能返回的错误码: +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeSnapshotList(request *DescribeSnapshotListRequest) (response *DescribeSnapshotListResponse, err error) { + return c.DescribeSnapshotListWithContext(context.Background(), request) +} + +// DescribeSnapshotList +// 查询快照列表 +// +// 可能返回的错误码: +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeSnapshotListWithContext(ctx context.Context, request *DescribeSnapshotListRequest) (response *DescribeSnapshotListResponse, err error) { + if request == nil { + request = NewDescribeSnapshotListRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeSnapshotList require credential") + } + + request.SetContext(ctx) + + response = NewDescribeSnapshotListResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSnapshotRollbackResultRequest() (request *DescribeSnapshotRollbackResultRequest) { + request = &DescribeSnapshotRollbackResultRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeSnapshotRollbackResult") + + + return +} + +func NewDescribeSnapshotRollbackResultResponse() (response *DescribeSnapshotRollbackResultResponse) { + response = &DescribeSnapshotRollbackResultResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeSnapshotRollbackResult +// 查询快照回滚结果 +// +// 可能返回的错误码: // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" -// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" -// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" -// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" -// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" -// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" -// INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" -// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" -// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" -// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" -// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DescribeRecordType(request *DescribeRecordTypeRequest) (response *DescribeRecordTypeResponse, err error) { - return c.DescribeRecordTypeWithContext(context.Background(), request) +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeSnapshotRollbackResult(request *DescribeSnapshotRollbackResultRequest) (response *DescribeSnapshotRollbackResultResponse, err error) { + return c.DescribeSnapshotRollbackResultWithContext(context.Background(), request) } -// DescribeRecordType -// 获取等级允许的记录类型 +// DescribeSnapshotRollbackResult +// 查询快照回滚结果 // // 可能返回的错误码: -// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" -// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" -// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" -// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" -// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" -// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" -// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" -// INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" -// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" -// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" -// MISSINGPARAMETER = "MissingParameter" -// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" -// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" -// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" -// RESOURCENOTFOUND = "ResourceNotFound" -func (c *Client) DescribeRecordTypeWithContext(ctx context.Context, request *DescribeRecordTypeRequest) (response *DescribeRecordTypeResponse, err error) { +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeSnapshotRollbackResultWithContext(ctx context.Context, request *DescribeSnapshotRollbackResultRequest) (response *DescribeSnapshotRollbackResultResponse, err error) { if request == nil { - request = NewDescribeRecordTypeRequest() + request = NewDescribeSnapshotRollbackResultRequest() } if c.GetCredential() == nil { - return nil, errors.New("DescribeRecordType require credential") + return nil, errors.New("DescribeSnapshotRollbackResult require credential") } request.SetContext(ctx) - response = NewDescribeRecordTypeResponse() + response = NewDescribeSnapshotRollbackResultResponse() + err = c.Send(request, response) + return +} + +func NewDescribeSnapshotRollbackTaskRequest() (request *DescribeSnapshotRollbackTaskRequest) { + request = &DescribeSnapshotRollbackTaskRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeSnapshotRollbackTask") + + + return +} + +func NewDescribeSnapshotRollbackTaskResponse() (response *DescribeSnapshotRollbackTaskResponse) { + response = &DescribeSnapshotRollbackTaskResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeSnapshotRollbackTask +// 查询最近一次回滚 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_INNERTASKNOTEXIST = "InvalidParameter.InnerTaskNotExist" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeSnapshotRollbackTask(request *DescribeSnapshotRollbackTaskRequest) (response *DescribeSnapshotRollbackTaskResponse, err error) { + return c.DescribeSnapshotRollbackTaskWithContext(context.Background(), request) +} + +// DescribeSnapshotRollbackTask +// 查询最近一次回滚 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_INNERTASKNOTEXIST = "InvalidParameter.InnerTaskNotExist" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DescribeSnapshotRollbackTaskWithContext(ctx context.Context, request *DescribeSnapshotRollbackTaskRequest) (response *DescribeSnapshotRollbackTaskResponse, err error) { + if request == nil { + request = NewDescribeSnapshotRollbackTaskRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeSnapshotRollbackTask require credential") + } + + request.SetContext(ctx) + + response = NewDescribeSnapshotRollbackTaskResponse() err = c.Send(request, response) return } @@ -2087,8 +3491,11 @@ func NewDescribeSubdomainAnalyticsResponse() (response *DescribeSubdomainAnalyti // FAILEDOPERATION_DOMAINNOTINSERVICE = "FailedOperation.DomainNotInService" // FAILEDOPERATION_TEMPORARYERROR = "FailedOperation.TemporaryError" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" // INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" func (c *Client) DescribeSubdomainAnalytics(request *DescribeSubdomainAnalyticsRequest) (response *DescribeSubdomainAnalyticsResponse, err error) { return c.DescribeSubdomainAnalyticsWithContext(context.Background(), request) @@ -2102,8 +3509,11 @@ func (c *Client) DescribeSubdomainAnalytics(request *DescribeSubdomainAnalyticsR // FAILEDOPERATION_DOMAINNOTINSERVICE = "FailedOperation.DomainNotInService" // FAILEDOPERATION_TEMPORARYERROR = "FailedOperation.TemporaryError" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" // INVALIDPARAMETERVALUE_DOMAINGRADEINVALID = "InvalidParameterValue.DomainGradeInvalid" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" func (c *Client) DescribeSubdomainAnalyticsWithContext(ctx context.Context, request *DescribeSubdomainAnalyticsRequest) (response *DescribeSubdomainAnalyticsResponse, err error) { if request == nil { @@ -2167,16 +3577,176 @@ func (c *Client) DescribeUserDetail(request *DescribeUserDetailRequest) (respons // RESOURCENOTFOUND = "ResourceNotFound" func (c *Client) DescribeUserDetailWithContext(ctx context.Context, request *DescribeUserDetailRequest) (response *DescribeUserDetailResponse, err error) { if request == nil { - request = NewDescribeUserDetailRequest() + request = NewDescribeUserDetailRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeUserDetail require credential") + } + + request.SetContext(ctx) + + response = NewDescribeUserDetailResponse() + err = c.Send(request, response) + return +} + +func NewDescribeVASStatisticRequest() (request *DescribeVASStatisticRequest) { + request = &DescribeVASStatisticRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DescribeVASStatistic") + + + return +} + +func NewDescribeVASStatisticResponse() (response *DescribeVASStatisticResponse) { + response = &DescribeVASStatisticResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DescribeVASStatistic +// 获取域名增值服务用量 +// +// 可能返回的错误码: +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner" +// FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser" +// FAILEDOPERATION_NOTRESOURCEOWNER = "FailedOperation.NotResourceOwner" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid" +// INVALIDPARAMETER_PARAMSMISSING = "InvalidParameter.ParamsMissing" +// INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin" +// OPERATIONDENIED_NOTRESOURCEOWNER = "OperationDenied.NotResourceOwner" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// UNKNOWNPARAMETER = "UnknownParameter" +func (c *Client) DescribeVASStatistic(request *DescribeVASStatisticRequest) (response *DescribeVASStatisticResponse, err error) { + return c.DescribeVASStatisticWithContext(context.Background(), request) +} + +// DescribeVASStatistic +// 获取域名增值服务用量 +// +// 可能返回的错误码: +// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnauthorizedOperation" +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner" +// FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser" +// FAILEDOPERATION_NOTRESOURCEOWNER = "FailedOperation.NotResourceOwner" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid" +// INVALIDPARAMETER_PARAMSMISSING = "InvalidParameter.ParamsMissing" +// INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// MISSINGPARAMETER = "MissingParameter" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin" +// OPERATIONDENIED_NOTRESOURCEOWNER = "OperationDenied.NotResourceOwner" +// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +// UNKNOWNPARAMETER = "UnknownParameter" +func (c *Client) DescribeVASStatisticWithContext(ctx context.Context, request *DescribeVASStatisticRequest) (response *DescribeVASStatisticResponse, err error) { + if request == nil { + request = NewDescribeVASStatisticRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("DescribeVASStatistic require credential") + } + + request.SetContext(ctx) + + response = NewDescribeVASStatisticResponse() + err = c.Send(request, response) + return +} + +func NewDownloadSnapshotRequest() (request *DownloadSnapshotRequest) { + request = &DownloadSnapshotRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "DownloadSnapshot") + + + return +} + +func NewDownloadSnapshotResponse() (response *DownloadSnapshotResponse) { + response = &DownloadSnapshotResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// DownloadSnapshot +// 下载快照 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DownloadSnapshot(request *DownloadSnapshotRequest) (response *DownloadSnapshotResponse, err error) { + return c.DownloadSnapshotWithContext(context.Background(), request) +} + +// DownloadSnapshot +// 下载快照 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) DownloadSnapshotWithContext(ctx context.Context, request *DownloadSnapshotRequest) (response *DownloadSnapshotResponse, err error) { + if request == nil { + request = NewDownloadSnapshotRequest() } if c.GetCredential() == nil { - return nil, errors.New("DescribeUserDetail require credential") + return nil, errors.New("DownloadSnapshot require credential") } request.SetContext(ctx) - response = NewDescribeUserDetailResponse() + response = NewDownloadSnapshotResponse() err = c.Send(request, response) return } @@ -2303,6 +3873,7 @@ func NewModifyDomainOwnerResponse() (response *ModifyDomainOwnerResponse) { // FAILEDOPERATION_DOMAINISVIP = "FailedOperation.DomainIsVip" // FAILEDOPERATION_TRANSFERTOENTERPRISEDENIED = "FailedOperation.TransferToEnterpriseDenied" // FAILEDOPERATION_TRANSFERTOPERSONDENIED = "FailedOperation.TransferToPersonDenied" +// INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" @@ -2329,6 +3900,7 @@ func (c *Client) ModifyDomainOwner(request *ModifyDomainOwnerRequest) (response // FAILEDOPERATION_DOMAINISVIP = "FailedOperation.DomainIsVip" // FAILEDOPERATION_TRANSFERTOENTERPRISEDENIED = "FailedOperation.TransferToEnterpriseDenied" // FAILEDOPERATION_TRANSFERTOPERSONDENIED = "FailedOperation.TransferToPersonDenied" +// INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" @@ -2471,12 +4043,14 @@ func NewModifyDomainStatusResponse() (response *ModifyDomainStatusResponse) { // 修改域名状态 // // 可能返回的错误码: +// FAILEDOPERATION_DOMAINISKEYDOMAIN = "FailedOperation.DomainIsKeyDomain" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" // INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" // OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" @@ -2488,12 +4062,14 @@ func (c *Client) ModifyDomainStatus(request *ModifyDomainStatusRequest) (respons // 修改域名状态 // // 可能返回的错误码: +// FAILEDOPERATION_DOMAINISKEYDOMAIN = "FailedOperation.DomainIsKeyDomain" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" // INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" // OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" // OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" @@ -2629,6 +4205,7 @@ func NewModifyDynamicDNSResponse() (response *ModifyDynamicDNSResponse) { // 更新动态 DNS 记录 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" @@ -2681,6 +4258,7 @@ func (c *Client) ModifyDynamicDNS(request *ModifyDynamicDNSRequest) (response *M // 更新动态 DNS 记录 // // 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" @@ -2760,7 +4338,7 @@ func NewModifyPackageAutoRenewResponse() (response *ModifyPackageAutoRenewRespon } // ModifyPackageAutoRenew -// DNS 解析套餐自动续费设置 +// DNS 解析套餐自动续费设置 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" @@ -2865,7 +4443,7 @@ func (c *Client) ModifyPackageAutoRenew(request *ModifyPackageAutoRenewRequest) } // ModifyPackageAutoRenew -// DNS 解析套餐自动续费设置 +// DNS 解析套餐自动续费设置 // // 可能返回的错误码: // AUTHFAILURE = "AuthFailure" @@ -3006,11 +4584,13 @@ func NewModifyRecordResponse() (response *ModifyRecordResponse) { // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned" // INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage" +// INVALIDPARAMETER_DNSSECADDCNAMEERROR = "InvalidParameter.DnssecAddCnameError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" @@ -3024,6 +4604,7 @@ func NewModifyRecordResponse() (response *ModifyRecordResponse) { // INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" // INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified" // INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" // INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid" // INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" @@ -3065,11 +4646,13 @@ func (c *Client) ModifyRecord(request *ModifyRecordRequest) (response *ModifyRec // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" // INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned" // INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage" +// INVALIDPARAMETER_DNSSECADDCNAMEERROR = "InvalidParameter.DnssecAddCnameError" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" @@ -3083,6 +4666,7 @@ func (c *Client) ModifyRecord(request *ModifyRecordRequest) (response *ModifyRec // INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" // INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified" // INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" // INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid" // INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" @@ -3124,101 +4708,319 @@ func (c *Client) ModifyRecordWithContext(ctx context.Context, request *ModifyRec request.SetContext(ctx) - response = NewModifyRecordResponse() + response = NewModifyRecordResponse() + err = c.Send(request, response) + return +} + +func NewModifyRecordBatchRequest() (request *ModifyRecordBatchRequest) { + request = &ModifyRecordBatchRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "ModifyRecordBatch") + + + return +} + +func NewModifyRecordBatchResponse() (response *ModifyRecordBatchResponse) { + response = &ModifyRecordBatchResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifyRecordBatch +// 批量修改记录 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_BATCHRECORDMODIFYACTIONERROR = "InvalidParameter.BatchRecordModifyActionError" +// INVALIDPARAMETER_BATCHRECORDMODIFYACTIONINVALIDVALUE = "InvalidParameter.BatchRecordModifyActionInvalidValue" +// INVALIDPARAMETER_BATCHRECORDREPLACEACTIONERROR = "InvalidParameter.BatchRecordReplaceActionError" +// INVALIDPARAMETER_BATCHTASKCOUNTLIMIT = "InvalidParameter.BatchTaskCountLimit" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINSEMPTY = "InvalidParameter.DomainsEmpty" +// INVALIDPARAMETER_JOBGREATERTHANLIMIT = "InvalidParameter.JobGreaterThanLimit" +// INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid" +// INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" +// INVALIDPARAMETER_PARAMSMISSING = "InvalidParameter.ParamsMissing" +// INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" +// INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid" +// INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid" +// INVALIDPARAMETER_RECORDSEMPTY = "InvalidParameter.RecordsEmpty" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed" +// REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" +// REQUESTLIMITEXCEEDED_CREATEDOMAINLIMIT = "RequestLimitExceeded.CreateDomainLimit" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +func (c *Client) ModifyRecordBatch(request *ModifyRecordBatchRequest) (response *ModifyRecordBatchResponse, err error) { + return c.ModifyRecordBatchWithContext(context.Background(), request) +} + +// ModifyRecordBatch +// 批量修改记录 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_BATCHRECORDMODIFYACTIONERROR = "InvalidParameter.BatchRecordModifyActionError" +// INVALIDPARAMETER_BATCHRECORDMODIFYACTIONINVALIDVALUE = "InvalidParameter.BatchRecordModifyActionInvalidValue" +// INVALIDPARAMETER_BATCHRECORDREPLACEACTIONERROR = "InvalidParameter.BatchRecordReplaceActionError" +// INVALIDPARAMETER_BATCHTASKCOUNTLIMIT = "InvalidParameter.BatchTaskCountLimit" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINSEMPTY = "InvalidParameter.DomainsEmpty" +// INVALIDPARAMETER_JOBGREATERTHANLIMIT = "InvalidParameter.JobGreaterThanLimit" +// INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid" +// INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" +// INVALIDPARAMETER_PARAMSMISSING = "InvalidParameter.ParamsMissing" +// INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" +// INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid" +// INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid" +// INVALIDPARAMETER_RECORDSEMPTY = "InvalidParameter.RecordsEmpty" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed" +// REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" +// REQUESTLIMITEXCEEDED_CREATEDOMAINLIMIT = "RequestLimitExceeded.CreateDomainLimit" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +func (c *Client) ModifyRecordBatchWithContext(ctx context.Context, request *ModifyRecordBatchRequest) (response *ModifyRecordBatchResponse, err error) { + if request == nil { + request = NewModifyRecordBatchRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyRecordBatch require credential") + } + + request.SetContext(ctx) + + response = NewModifyRecordBatchResponse() + err = c.Send(request, response) + return +} + +func NewModifyRecordFieldsRequest() (request *ModifyRecordFieldsRequest) { + request = &ModifyRecordFieldsRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "ModifyRecordFields") + + + return +} + +func NewModifyRecordFieldsResponse() (response *ModifyRecordFieldsResponse) { + response = &ModifyRecordFieldsResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifyRecordFields +// 修改记录可选字段 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" +// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" +// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned" +// INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords" +// INVALIDPARAMETER_DOMAINNOTBEIAN = "InvalidParameter.DomainNotBeian" +// INVALIDPARAMETER_DOMAINRECORDEXIST = "InvalidParameter.DomainRecordExist" +// INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified" +// INVALIDPARAMETER_INVALIDWEIGHT = "InvalidParameter.InvalidWeight" +// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" +// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" +// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified" +// INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid" +// INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" +// INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" +// INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid" +// INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" +// INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid" +// INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid" +// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" +// INVALIDPARAMETER_SUBDOMAININVALID = "InvalidParameter.SubdomainInvalid" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_URLVALUEILLEGAL = "InvalidParameter.UrlValueIllegal" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" +// LIMITEXCEEDED_AAAACOUNTLIMIT = "LimitExceeded.AAAACountLimit" +// LIMITEXCEEDED_ATNSRECORDLIMIT = "LimitExceeded.AtNsRecordLimit" +// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// LIMITEXCEEDED_HIDDENURLEXCEEDED = "LimitExceeded.HiddenUrlExceeded" +// LIMITEXCEEDED_NSCOUNTLIMIT = "LimitExceeded.NsCountLimit" +// LIMITEXCEEDED_RECORDTTLLIMIT = "LimitExceeded.RecordTtlLimit" +// LIMITEXCEEDED_SRVCOUNTLIMIT = "LimitExceeded.SrvCountLimit" +// LIMITEXCEEDED_SUBDOMAINLEVELLIMIT = "LimitExceeded.SubdomainLevelLimit" +// LIMITEXCEEDED_SUBDOMAINROLLLIMIT = "LimitExceeded.SubdomainRollLimit" +// LIMITEXCEEDED_SUBDOMAINWCARDLIMIT = "LimitExceeded.SubdomainWcardLimit" +// LIMITEXCEEDED_URLCOUNTLIMIT = "LimitExceeded.UrlCountLimit" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin" +// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" +// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +func (c *Client) ModifyRecordFields(request *ModifyRecordFieldsRequest) (response *ModifyRecordFieldsResponse, err error) { + return c.ModifyRecordFieldsWithContext(context.Background(), request) +} + +// ModifyRecordFields +// 修改记录可选字段 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" +// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" +// FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" +// FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned" +// INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords" +// INVALIDPARAMETER_DOMAINNOTBEIAN = "InvalidParameter.DomainNotBeian" +// INVALIDPARAMETER_DOMAINRECORDEXIST = "InvalidParameter.DomainRecordExist" +// INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified" +// INVALIDPARAMETER_INVALIDWEIGHT = "InvalidParameter.InvalidWeight" +// INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError" +// INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" +// INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" +// INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified" +// INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid" +// INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" +// INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" +// INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid" +// INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" +// INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid" +// INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid" +// INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" +// INVALIDPARAMETER_SUBDOMAININVALID = "InvalidParameter.SubdomainInvalid" +// INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser" +// INVALIDPARAMETER_URLVALUEILLEGAL = "InvalidParameter.UrlValueIllegal" +// INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid" +// LIMITEXCEEDED_AAAACOUNTLIMIT = "LimitExceeded.AAAACountLimit" +// LIMITEXCEEDED_ATNSRECORDLIMIT = "LimitExceeded.AtNsRecordLimit" +// LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded" +// LIMITEXCEEDED_HIDDENURLEXCEEDED = "LimitExceeded.HiddenUrlExceeded" +// LIMITEXCEEDED_NSCOUNTLIMIT = "LimitExceeded.NsCountLimit" +// LIMITEXCEEDED_RECORDTTLLIMIT = "LimitExceeded.RecordTtlLimit" +// LIMITEXCEEDED_SRVCOUNTLIMIT = "LimitExceeded.SrvCountLimit" +// LIMITEXCEEDED_SUBDOMAINLEVELLIMIT = "LimitExceeded.SubdomainLevelLimit" +// LIMITEXCEEDED_SUBDOMAINROLLLIMIT = "LimitExceeded.SubdomainRollLimit" +// LIMITEXCEEDED_SUBDOMAINWCARDLIMIT = "LimitExceeded.SubdomainWcardLimit" +// LIMITEXCEEDED_URLCOUNTLIMIT = "LimitExceeded.UrlCountLimit" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +// OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin" +// OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent" +// OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser" +// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" +func (c *Client) ModifyRecordFieldsWithContext(ctx context.Context, request *ModifyRecordFieldsRequest) (response *ModifyRecordFieldsResponse, err error) { + if request == nil { + request = NewModifyRecordFieldsRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyRecordFields require credential") + } + + request.SetContext(ctx) + + response = NewModifyRecordFieldsResponse() err = c.Send(request, response) return } -func NewModifyRecordBatchRequest() (request *ModifyRecordBatchRequest) { - request = &ModifyRecordBatchRequest{ +func NewModifyRecordGroupRequest() (request *ModifyRecordGroupRequest) { + request = &ModifyRecordGroupRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("dnspod", APIVersion, "ModifyRecordBatch") + request.Init().WithApiInfo("dnspod", APIVersion, "ModifyRecordGroup") return } -func NewModifyRecordBatchResponse() (response *ModifyRecordBatchResponse) { - response = &ModifyRecordBatchResponse{ +func NewModifyRecordGroupResponse() (response *ModifyRecordGroupResponse) { + response = &ModifyRecordGroupResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// ModifyRecordBatch -// 批量修改记录 +// ModifyRecordGroup +// 修改记录分组 // // 可能返回的错误码: -// FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" -// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" -// INVALIDPARAMETER_BATCHRECORDMODIFYACTIONERROR = "InvalidParameter.BatchRecordModifyActionError" -// INVALIDPARAMETER_BATCHRECORDMODIFYACTIONINVALIDVALUE = "InvalidParameter.BatchRecordModifyActionInvalidValue" -// INVALIDPARAMETER_BATCHRECORDREPLACEACTIONERROR = "InvalidParameter.BatchRecordReplaceActionError" -// INVALIDPARAMETER_BATCHTASKCOUNTLIMIT = "InvalidParameter.BatchTaskCountLimit" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" -// INVALIDPARAMETER_DOMAINSEMPTY = "InvalidParameter.DomainsEmpty" -// INVALIDPARAMETER_JOBGREATERTHANLIMIT = "InvalidParameter.JobGreaterThanLimit" -// INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid" -// INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" -// INVALIDPARAMETER_PARAMSMISSING = "InvalidParameter.ParamsMissing" -// INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" -// INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid" -// INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid" -// INVALIDPARAMETER_RECORDSEMPTY = "InvalidParameter.RecordsEmpty" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" -// OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed" -// REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" -// REQUESTLIMITEXCEEDED_CREATEDOMAINLIMIT = "RequestLimitExceeded.CreateDomainLimit" -// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" -func (c *Client) ModifyRecordBatch(request *ModifyRecordBatchRequest) (response *ModifyRecordBatchResponse, err error) { - return c.ModifyRecordBatchWithContext(context.Background(), request) +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) ModifyRecordGroup(request *ModifyRecordGroupRequest) (response *ModifyRecordGroupResponse, err error) { + return c.ModifyRecordGroupWithContext(context.Background(), request) } -// ModifyRecordBatch -// 批量修改记录 +// ModifyRecordGroup +// 修改记录分组 // // 可能返回的错误码: -// FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" -// FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" -// INVALIDPARAMETER_BATCHRECORDMODIFYACTIONERROR = "InvalidParameter.BatchRecordModifyActionError" -// INVALIDPARAMETER_BATCHRECORDMODIFYACTIONINVALIDVALUE = "InvalidParameter.BatchRecordModifyActionInvalidValue" -// INVALIDPARAMETER_BATCHRECORDREPLACEACTIONERROR = "InvalidParameter.BatchRecordReplaceActionError" -// INVALIDPARAMETER_BATCHTASKCOUNTLIMIT = "InvalidParameter.BatchTaskCountLimit" // INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" // INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" // INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" -// INVALIDPARAMETER_DOMAINSEMPTY = "InvalidParameter.DomainsEmpty" -// INVALIDPARAMETER_JOBGREATERTHANLIMIT = "InvalidParameter.JobGreaterThanLimit" -// INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid" -// INVALIDPARAMETER_PARAMSILLEGAL = "InvalidParameter.ParamsIllegal" -// INVALIDPARAMETER_PARAMSMISSING = "InvalidParameter.ParamsMissing" -// INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid" -// INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid" -// INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid" -// INVALIDPARAMETER_RECORDSEMPTY = "InvalidParameter.RecordsEmpty" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" -// OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed" -// REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" -// REQUESTLIMITEXCEEDED_CREATEDOMAINLIMIT = "RequestLimitExceeded.CreateDomainLimit" -// REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded" -func (c *Client) ModifyRecordBatchWithContext(ctx context.Context, request *ModifyRecordBatchRequest) (response *ModifyRecordBatchResponse, err error) { +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) ModifyRecordGroupWithContext(ctx context.Context, request *ModifyRecordGroupRequest) (response *ModifyRecordGroupResponse, err error) { if request == nil { - request = NewModifyRecordBatchRequest() + request = NewModifyRecordGroupRequest() } if c.GetCredential() == nil { - return nil, errors.New("ModifyRecordBatch require credential") + return nil, errors.New("ModifyRecordGroup require credential") } request.SetContext(ctx) - response = NewModifyRecordBatchResponse() + response = NewModifyRecordGroupResponse() err = c.Send(request, response) return } @@ -3346,6 +5148,7 @@ func NewModifyRecordStatusResponse() (response *ModifyRecordStatusResponse) { // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" @@ -3362,6 +5165,7 @@ func NewModifyRecordStatusResponse() (response *ModifyRecordStatusResponse) { // INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" // INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" // INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" // INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid" // INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" @@ -3398,6 +5202,7 @@ func (c *Client) ModifyRecordStatus(request *ModifyRecordStatusRequest) (respons // FAILEDOPERATION = "FailedOperation" // FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked" // FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam" +// FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" // FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed" // FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" @@ -3414,6 +5219,7 @@ func (c *Client) ModifyRecordStatus(request *ModifyRecordStatusRequest) (respons // INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists" // INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed" // INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid" // INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid" // INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited" @@ -3455,6 +5261,136 @@ func (c *Client) ModifyRecordStatusWithContext(ctx context.Context, request *Mod return } +func NewModifyRecordToGroupRequest() (request *ModifyRecordToGroupRequest) { + request = &ModifyRecordToGroupRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "ModifyRecordToGroup") + + + return +} + +func NewModifyRecordToGroupResponse() (response *ModifyRecordToGroupResponse) { + response = &ModifyRecordToGroupResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifyRecordToGroup +// 将记录添加到分组 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) ModifyRecordToGroup(request *ModifyRecordToGroupRequest) (response *ModifyRecordToGroupResponse, err error) { + return c.ModifyRecordToGroupWithContext(context.Background(), request) +} + +// ModifyRecordToGroup +// 将记录添加到分组 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) ModifyRecordToGroupWithContext(ctx context.Context, request *ModifyRecordToGroupRequest) (response *ModifyRecordToGroupResponse, err error) { + if request == nil { + request = NewModifyRecordToGroupRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifyRecordToGroup require credential") + } + + request.SetContext(ctx) + + response = NewModifyRecordToGroupResponse() + err = c.Send(request, response) + return +} + +func NewModifySnapshotConfigRequest() (request *ModifySnapshotConfigRequest) { + request = &ModifySnapshotConfigRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "ModifySnapshotConfig") + + + return +} + +func NewModifySnapshotConfigResponse() (response *ModifySnapshotConfigResponse) { + response = &ModifySnapshotConfigResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// ModifySnapshotConfig +// 修改快照配置 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_ACTIONINVALID = "InvalidParameter.ActionInvalid" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) ModifySnapshotConfig(request *ModifySnapshotConfigRequest) (response *ModifySnapshotConfigResponse, err error) { + return c.ModifySnapshotConfigWithContext(context.Background(), request) +} + +// ModifySnapshotConfig +// 修改快照配置 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_ACTIONINVALID = "InvalidParameter.ActionInvalid" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) ModifySnapshotConfigWithContext(ctx context.Context, request *ModifySnapshotConfigRequest) (response *ModifySnapshotConfigResponse, err error) { + if request == nil { + request = NewModifySnapshotConfigRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("ModifySnapshotConfig require credential") + } + + request.SetContext(ctx) + + response = NewModifySnapshotConfigResponse() + err = c.Send(request, response) + return +} + func NewModifySubdomainStatusRequest() (request *ModifySubdomainStatusRequest) { request = &ModifySubdomainStatusRequest{ BaseRequest: &tchttp.BaseRequest{}, @@ -4068,3 +6004,125 @@ func (c *Client) PayOrderWithBalanceWithContext(ctx context.Context, request *Pa err = c.Send(request, response) return } + +func NewRollbackRecordSnapshotRequest() (request *RollbackRecordSnapshotRequest) { + request = &RollbackRecordSnapshotRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "RollbackRecordSnapshot") + + + return +} + +func NewRollbackRecordSnapshotResponse() (response *RollbackRecordSnapshotResponse) { + response = &RollbackRecordSnapshotResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// RollbackRecordSnapshot +// 重新回滚指定解析记录快照 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) RollbackRecordSnapshot(request *RollbackRecordSnapshotRequest) (response *RollbackRecordSnapshotResponse, err error) { + return c.RollbackRecordSnapshotWithContext(context.Background(), request) +} + +// RollbackRecordSnapshot +// 重新回滚指定解析记录快照 +// +// 可能返回的错误码: +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) RollbackRecordSnapshotWithContext(ctx context.Context, request *RollbackRecordSnapshotRequest) (response *RollbackRecordSnapshotResponse, err error) { + if request == nil { + request = NewRollbackRecordSnapshotRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("RollbackRecordSnapshot require credential") + } + + request.SetContext(ctx) + + response = NewRollbackRecordSnapshotResponse() + err = c.Send(request, response) + return +} + +func NewRollbackSnapshotRequest() (request *RollbackSnapshotRequest) { + request = &RollbackSnapshotRequest{ + BaseRequest: &tchttp.BaseRequest{}, + } + + request.Init().WithApiInfo("dnspod", APIVersion, "RollbackSnapshot") + + + return +} + +func NewRollbackSnapshotResponse() (response *RollbackSnapshotResponse) { + response = &RollbackSnapshotResponse{ + BaseResponse: &tchttp.BaseResponse{}, + } + return +} + +// RollbackSnapshot +// 回滚快照 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) RollbackSnapshot(request *RollbackSnapshotRequest) (response *RollbackSnapshotResponse, err error) { + return c.RollbackSnapshotWithContext(context.Background(), request) +} + +// RollbackSnapshot +// 回滚快照 +// +// 可能返回的错误码: +// FAILEDOPERATION = "FailedOperation" +// FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError" +// INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" +// INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid" +// INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser" +// INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists" +// OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly" +// OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain" +func (c *Client) RollbackSnapshotWithContext(ctx context.Context, request *RollbackSnapshotRequest) (response *RollbackSnapshotResponse, err error) { + if request == nil { + request = NewRollbackSnapshotRequest() + } + + if c.GetCredential() == nil { + return nil, errors.New("RollbackSnapshot require credential") + } + + request.SetContext(ctx) + + response = NewRollbackSnapshotResponse() + err = c.Send(request, response) + return +} diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/errors.go index c9f1a74c7f..7ec1b03644 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/errors.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/errors.go @@ -26,16 +26,16 @@ const ( // 操作失败。 FAILEDOPERATION = "FailedOperation" - // 抱歉,该帐户已经被锁定。 + // 抱歉,该账户已经被锁定。 FAILEDOPERATION_ACCOUNTISLOCKED = "FailedOperation.AccountIsLocked" - // 您的帐号下包含个人豪华域名,不能直接升级,请联系销售。 + // 您的账户下包含个人豪华域名,不能直接升级,请联系销售。 FAILEDOPERATION_CONTAINSPERSONALVIP = "FailedOperation.ContainsPersonalVip" // 此优惠券只能被免费域名使用。 FAILEDOPERATION_COUPONFORFREEDOMAIN = "FailedOperation.CouponForFreeDomain" - // 您的帐户不满足使用此优惠券的条件。 + // 您的账户不满足使用此优惠券的条件。 FAILEDOPERATION_COUPONNOTSUPPORTED = "FailedOperation.CouponNotSupported" // 域名已经使用过该类型的礼券了,不能重复使用。 @@ -44,6 +44,9 @@ const ( // 该域名已在您的列表中,无需重复添加。 FAILEDOPERATION_DOMAINEXISTS = "FailedOperation.DomainExists" + // 该域名属于企业邮用户 + FAILEDOPERATION_DOMAININENTERPRISEMAILACCOUNT = "FailedOperation.DomainInEnterpriseMailAccount" + // 该域名为腾讯云 DNSPod 重点保护资源,为了避免误操作造成的业务影响,域名禁止自行操作删除。如果您确认需要删除域名,请先联系您的客户经理,我们将竭诚为您提供技术支持。 FAILEDOPERATION_DOMAINISKEYDOMAIN = "FailedOperation.DomainIsKeyDomain" @@ -68,6 +71,9 @@ const ( // 校验公网 IP 发生异常。 FAILEDOPERATION_EIPCHECKFAILED = "FailedOperation.EipCheckFailed" + // 您操作过于频繁,请稍后重试 + FAILEDOPERATION_FREQUENCYLIMIT = "FailedOperation.FrequencyLimit" + // 此功能暂停申请,请稍候重试。 FAILEDOPERATION_FUNCTIONNOTALLOWEDAPPLY = "FailedOperation.FunctionNotAllowedApply" @@ -77,7 +83,7 @@ const ( // 账户余额不足。 FAILEDOPERATION_INSUFFICIENTBALANCE = "FailedOperation.InsufficientBalance" - // 帐号异地登录,请求被拒绝。 + // 账号异地登录,请求被拒绝。 FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed" // 登录失败,请检查账号和密码是否正确。 @@ -155,6 +161,9 @@ const ( // 记录值无效。 INVALIDPARAMETER_BATCHRECORDMODIFYACTIONINVALIDVALUE = "InvalidParameter.BatchRecordModifyActionInvalidValue" + // 批量删除记录任务失败,原因:内部错误。 + INVALIDPARAMETER_BATCHRECORDREMOVEACTIONERROR = "InvalidParameter.BatchRecordRemoveActionError" + // 批量替换记录任务失败,原因:内部错误。 INVALIDPARAMETER_BATCHRECORDREPLACEACTIONERROR = "InvalidParameter.BatchRecordReplaceActionError" @@ -206,6 +215,9 @@ const ( // 域名编号不正确。 INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid" + // 该域名涉及违法违规黑名单,无法进行该操作 + INVALIDPARAMETER_DOMAININBLACKLIST = "InvalidParameter.DomainInBlackList" + // 不允许操作生效中或失效中的域名。 INVALIDPARAMETER_DOMAININEFFECTORINVALIDATED = "InvalidParameter.DomainInEffectOrInvalidated" @@ -218,6 +230,9 @@ const ( // 该域名已有同类型操作未完成,无法执行该操作。 INVALIDPARAMETER_DOMAINISMODIFYINGDNS = "InvalidParameter.DomainIsModifyingDns" + // 此域名是自己域名的别名 + INVALIDPARAMETER_DOMAINISMYALIAS = "InvalidParameter.DomainIsMyAlias" + // 域名没有锁定。 INVALIDPARAMETER_DOMAINISNOTLOCKED = "InvalidParameter.DomainIsNotlocked" @@ -290,6 +305,9 @@ const ( // 该订单存在冲突或参数有误,无法完成支付,请重新购买。 INVALIDPARAMETER_ILLEGALNEWDEAL = "InvalidParameter.IllegalNewDeal" + // 任务不存在。 + INVALIDPARAMETER_INNERTASKNOTEXIST = "InvalidParameter.InnerTaskNotExist" + // 礼券代码无效。 INVALIDPARAMETER_INVALIDCOUPON = "InvalidParameter.InvalidCoupon" @@ -341,7 +359,7 @@ const ( // 无效的openid。 INVALIDPARAMETER_OPENIDINVALID = "InvalidParameter.OpenidInvalid" - // 操作失败,请稍候再试。 + // 操作失败,请稍后再试。 INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed" // 当前操作过于频繁,请 1 分钟后重试。 @@ -368,6 +386,12 @@ const ( // 用户UIN无效。 INVALIDPARAMETER_QCLOUDUININVALID = "InvalidParameter.QcloudUinInvalid" + // TXT 记录无法匹配,请确认记录值是否准确,并再次验证。 + INVALIDPARAMETER_QUHUITXTNOTMATCH = "InvalidParameter.QuhuiTxtNotMatch" + + // TXT 记录未设置或暂未生效,请稍后重试。 + INVALIDPARAMETER_QUHUITXTRECORDWAIT = "InvalidParameter.QuhuiTxtRecordWait" + // 已实名用户。 INVALIDPARAMETER_REALNAMEUSER = "InvalidParameter.RealNameUser" @@ -419,7 +443,7 @@ const ( // 时间戳已过期。 INVALIDPARAMETER_TIMESTAMPEXPIRED = "InvalidParameter.TimestampExpired" - // 当前帐号下的无效域名过多,暂时无法使用该功能。请将已有域名的 DNS 服务器正确指向 DNSPod 之后,再尝试添加。 + // 当前账号下的无效域名过多,暂时无法使用该功能。请将已有域名的 DNS 服务器正确指向 DNSPod 之后,再尝试添加。 INVALIDPARAMETER_TOOMANYINVALIDDOMAINS = "InvalidParameter.TooManyInvalidDomains" // 域名无效。 @@ -494,6 +518,9 @@ const ( // NS记录数量超出限制。 LIMITEXCEEDED_NSCOUNTLIMIT = "LimitExceeded.NsCountLimit" + // 分页起始数量过大。 + LIMITEXCEEDED_OFFSETEXCEEDED = "LimitExceeded.OffsetExceeded" + // 记录的TTL值超出了限制。 LIMITEXCEEDED_RECORDTTLLIMIT = "LimitExceeded.RecordTtlLimit" @@ -581,7 +608,7 @@ const ( // 您的IP添加了过多任务,请稍后重试。 REQUESTLIMITEXCEEDED_BATCHTASKLIMIT = "RequestLimitExceeded.BatchTaskLimit" - // 您的帐号在短时间内添加了大量的域名,请控制添加频率。 + // 您的账号在短时间内添加了大量的域名,请控制添加频率。 REQUESTLIMITEXCEEDED_CREATEDOMAINLIMIT = "RequestLimitExceeded.CreateDomainLimit" // API请求次数超出限制。 diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/models.go index f6b545a8c4..cea279aadb 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/models.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323/models.go @@ -15,100 +15,278 @@ package v20210323 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 AddRecordBatch struct { // 记录类型, 详见 DescribeRecordType 接口。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 记录值。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // 子域名(主机记录),默认为@。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 解析记录的线路,详见 DescribeRecordLineList 接口,RecordLine和RecordLineId都未填时,默认为「默认」线路。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 解析记录的线路 ID,RecordLine和RecordLineId都有时,系统优先取 RecordLineId。 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` // 记录权重值(暂未支持)。 - // 注意:此字段可能返回 null,表示取不到有效值。 - Weight *uint64 `json:"Weight,omitempty" name:"Weight"` + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` // 记录的 MX 记录值,非 MX 记录类型,默认为 0,MX记录则必选。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` // 记录的 TTL 值,默认600。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 记录状态(暂未支持)。0表示禁用,1表示启用。默认启用。 - Enabled *uint64 `json:"Enabled,omitempty" name:"Enabled"` + Enabled *uint64 `json:"Enabled,omitnil" name:"Enabled"` // 记录备注(暂未支持)。 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` } type BatchRecordInfo struct { // 记录 ID // 注意:此字段可能返回 null,表示取不到有效值。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` // 子域名(主机记录)。 // 注意:此字段可能返回 null,表示取不到有效值。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 记录类型, 详见 DescribeRecordType 接口 // 注意:此字段可能返回 null,表示取不到有效值。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 解析记录的线路,详见 DescribeRecordLineList 接口 // 注意:此字段可能返回 null,表示取不到有效值。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值 // 注意:此字段可能返回 null,表示取不到有效值。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // 记录的 TTL 值 // 注意:此字段可能返回 null,表示取不到有效值。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 记录添加状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 操作类型 // 注意:此字段可能返回 null,表示取不到有效值。 - Operation *string `json:"Operation,omitempty" name:"Operation"` + Operation *string `json:"Operation,omitnil" name:"Operation"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` + ErrMsg *string `json:"ErrMsg,omitnil" name:"ErrMsg"` // 此条记录在列表中的ID - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` // 记录生效状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Enabled *uint64 `json:"Enabled,omitempty" name:"Enabled"` + Enabled *uint64 `json:"Enabled,omitnil" name:"Enabled"` // 记录的MX权重 // 注意:此字段可能返回 null,表示取不到有效值。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` + + // 记录权重 + // 注意:此字段可能返回 null,表示取不到有效值。 + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` + + // 备注信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Remark *string `json:"Remark,omitnil" name:"Remark"` +} + +// Predefined struct for user +type CheckRecordSnapshotRollbackRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 解析记录信息 + Record *SnapshotRecord `json:"Record,omitnil" name:"Record"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type CheckRecordSnapshotRollbackRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 解析记录信息 + Record *SnapshotRecord `json:"Record,omitnil" name:"Record"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *CheckRecordSnapshotRollbackRequest) 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 *CheckRecordSnapshotRollbackRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "SnapshotId") + delete(f, "Record") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CheckRecordSnapshotRollbackRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CheckRecordSnapshotRollbackResponseParams struct { + // 错误原因 + // 注意:此字段可能返回 null,表示取不到有效值。 + Reason *string `json:"Reason,omitnil" name:"Reason"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type CheckRecordSnapshotRollbackResponse struct { + *tchttp.BaseResponse + Response *CheckRecordSnapshotRollbackResponseParams `json:"Response"` +} + +func (r *CheckRecordSnapshotRollbackResponse) 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 *CheckRecordSnapshotRollbackResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CheckSnapshotRollbackRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type CheckSnapshotRollbackRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *CheckSnapshotRollbackRequest) 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 *CheckSnapshotRollbackRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "SnapshotId") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CheckSnapshotRollbackRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CheckSnapshotRollbackResponseParams struct { + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 回滚时长(分钟) + CostMinutes *uint64 `json:"CostMinutes,omitnil" name:"CostMinutes"` + + // 快照所属域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 解析记录总数 + Total *uint64 `json:"Total,omitnil" name:"Total"` + + // 值为 1,表示超时 + // 注意:此字段可能返回 null,表示取不到有效值。 + Timeout *uint64 `json:"Timeout,omitnil" name:"Timeout"` + + // 检查失败数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Failed *uint64 `json:"Failed,omitnil" name:"Failed"` + + // 失败记录信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + FailedRecordList []*SnapshotRecord `json:"FailedRecordList,omitnil" name:"FailedRecordList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type CheckSnapshotRollbackResponse struct { + *tchttp.BaseResponse + Response *CheckSnapshotRollbackResponseParams `json:"Response"` +} + +func (r *CheckSnapshotRollbackResponse) 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 *CheckSnapshotRollbackResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) } // Predefined struct for user type CreateDealRequestParams struct { // 询价类型,1 新购,2 续费,3 套餐升级(增值服务暂时只支持新购) - DealType *uint64 `json:"DealType,omitempty" name:"DealType"` + DealType *uint64 `json:"DealType,omitnil" name:"DealType"` // 商品类型,1 域名套餐 2 增值服务 - GoodsType *uint64 `json:"GoodsType,omitempty" name:"GoodsType"` + GoodsType *uint64 `json:"GoodsType,omitnil" name:"GoodsType"` // 套餐类型: // DP_PLUS:专业版 @@ -121,36 +299,36 @@ type CreateDealRequestParams struct { // DMONITOR_TASKS:D监控任务数 // DMONITOR_IP:D监控备用 IP 数 // CUSTOMLINE:自定义线路数 - GoodsChildType *string `json:"GoodsChildType,omitempty" name:"GoodsChildType"` + GoodsChildType *string `json:"GoodsChildType,omitnil" name:"GoodsChildType"` // 增值服务购买数量,如果是域名套餐固定为1,如果是增值服务则按以下规则: // 负载均衡、D监控任务数、D监控备用 IP 数、自定义线路数、URL 转发(必须是5的正整数倍,如 5、10、15 等) - GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` + GoodsNum *uint64 `json:"GoodsNum,omitnil" name:"GoodsNum"` // 是否开启自动续费,1 开启,2 不开启(增值服务暂不支持自动续费),默认值为 2 不开启 - AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` + AutoRenew *uint64 `json:"AutoRenew,omitnil" name:"AutoRenew"` // 需要绑定套餐的域名,如 dnspod.cn,如果是续费或升级,domain 参数必须要传,新购可不传。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 套餐时长: // 1. 套餐以月为单位(按月只能是 3、6 还有 12 的倍数),套餐例如购买一年则传12,最大120 。(续费最低一年) // 2. 升级套餐时不需要传。 // 3. 增值服务的时长单位为年,买一年传1(增值服务新购按年只能是 1,增值服务续费最大为 10) - TimeSpan *uint64 `json:"TimeSpan,omitempty" name:"TimeSpan"` + TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // 套餐类型,需要升级到的套餐类型,只有升级时需要。 - NewPackageType *string `json:"NewPackageType,omitempty" name:"NewPackageType"` + NewPackageType *string `json:"NewPackageType,omitnil" name:"NewPackageType"` } type CreateDealRequest struct { *tchttp.BaseRequest // 询价类型,1 新购,2 续费,3 套餐升级(增值服务暂时只支持新购) - DealType *uint64 `json:"DealType,omitempty" name:"DealType"` + DealType *uint64 `json:"DealType,omitnil" name:"DealType"` // 商品类型,1 域名套餐 2 增值服务 - GoodsType *uint64 `json:"GoodsType,omitempty" name:"GoodsType"` + GoodsType *uint64 `json:"GoodsType,omitnil" name:"GoodsType"` // 套餐类型: // DP_PLUS:专业版 @@ -163,26 +341,26 @@ type CreateDealRequest struct { // DMONITOR_TASKS:D监控任务数 // DMONITOR_IP:D监控备用 IP 数 // CUSTOMLINE:自定义线路数 - GoodsChildType *string `json:"GoodsChildType,omitempty" name:"GoodsChildType"` + GoodsChildType *string `json:"GoodsChildType,omitnil" name:"GoodsChildType"` // 增值服务购买数量,如果是域名套餐固定为1,如果是增值服务则按以下规则: // 负载均衡、D监控任务数、D监控备用 IP 数、自定义线路数、URL 转发(必须是5的正整数倍,如 5、10、15 等) - GoodsNum *uint64 `json:"GoodsNum,omitempty" name:"GoodsNum"` + GoodsNum *uint64 `json:"GoodsNum,omitnil" name:"GoodsNum"` // 是否开启自动续费,1 开启,2 不开启(增值服务暂不支持自动续费),默认值为 2 不开启 - AutoRenew *uint64 `json:"AutoRenew,omitempty" name:"AutoRenew"` + AutoRenew *uint64 `json:"AutoRenew,omitnil" name:"AutoRenew"` // 需要绑定套餐的域名,如 dnspod.cn,如果是续费或升级,domain 参数必须要传,新购可不传。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 套餐时长: // 1. 套餐以月为单位(按月只能是 3、6 还有 12 的倍数),套餐例如购买一年则传12,最大120 。(续费最低一年) // 2. 升级套餐时不需要传。 // 3. 增值服务的时长单位为年,买一年传1(增值服务新购按年只能是 1,增值服务续费最大为 10) - TimeSpan *uint64 `json:"TimeSpan,omitempty" name:"TimeSpan"` + TimeSpan *uint64 `json:"TimeSpan,omitnil" name:"TimeSpan"` // 套餐类型,需要升级到的套餐类型,只有升级时需要。 - NewPackageType *string `json:"NewPackageType,omitempty" name:"NewPackageType"` + NewPackageType *string `json:"NewPackageType,omitnil" name:"NewPackageType"` } func (r *CreateDealRequest) ToJsonString() string { @@ -214,13 +392,13 @@ func (r *CreateDealRequest) FromJsonString(s string) error { // Predefined struct for user type CreateDealResponseParams struct { // 大订单号,一个大订单号下可以有多个子订单,说明是同一次下单 - BigDealId *string `json:"BigDealId,omitempty" name:"BigDealId"` + BigDealId *string `json:"BigDealId,omitnil" name:"BigDealId"` // 子订单列表 - DealList []*Deals `json:"DealList,omitempty" name:"DealList"` + DealList []*Deals `json:"DealList,omitnil" name:"DealList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateDealResponse struct { @@ -242,26 +420,26 @@ func (r *CreateDealResponse) FromJsonString(s string) error { // Predefined struct for user type CreateDomainAliasRequestParams struct { // 域名别名 - DomainAlias *string `json:"DomainAlias,omitempty" name:"DomainAlias"` + DomainAlias *string `json:"DomainAlias,omitnil" name:"DomainAlias"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain - DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *int64 `json:"DomainId,omitnil" name:"DomainId"` } type CreateDomainAliasRequest struct { *tchttp.BaseRequest // 域名别名 - DomainAlias *string `json:"DomainAlias,omitempty" name:"DomainAlias"` + DomainAlias *string `json:"DomainAlias,omitnil" name:"DomainAlias"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain - DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *int64 `json:"DomainId,omitnil" name:"DomainId"` } func (r *CreateDomainAliasRequest) ToJsonString() string { @@ -288,10 +466,10 @@ func (r *CreateDomainAliasRequest) FromJsonString(s string) error { // Predefined struct for user type CreateDomainAliasResponseParams struct { // 域名别名ID - DomainAliasId *int64 `json:"DomainAliasId,omitempty" name:"DomainAliasId"` + DomainAliasId *int64 `json:"DomainAliasId,omitnil" name:"DomainAliasId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateDomainAliasResponse struct { @@ -313,86 +491,86 @@ func (r *CreateDomainAliasResponse) FromJsonString(s string) error { type CreateDomainBatchDetail struct { // 见RecordInfoBatch // 注意:此字段可能返回 null,表示取不到有效值。 - RecordList []*CreateDomainBatchRecord `json:"RecordList,omitempty" name:"RecordList"` + RecordList []*CreateDomainBatchRecord `json:"RecordList,omitnil" name:"RecordList"` // 任务编号 - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` // 域名 // 注意:此字段可能返回 null,表示取不到有效值。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名等级 // 注意:此字段可能返回 null,表示取不到有效值。 - DomainGrade *string `json:"DomainGrade,omitempty" name:"DomainGrade"` + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` + ErrMsg *string `json:"ErrMsg,omitnil" name:"ErrMsg"` // 该条任务运行状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 操作类型 // 注意:此字段可能返回 null,表示取不到有效值。 - Operation *string `json:"Operation,omitempty" name:"Operation"` + Operation *string `json:"Operation,omitnil" name:"Operation"` } type CreateDomainBatchRecord struct { // 子域名(主机记录)。 // 注意:此字段可能返回 null,表示取不到有效值。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 记录类型, 详见 DescribeRecordType 接口 // 注意:此字段可能返回 null,表示取不到有效值。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 解析记录的线路,详见 DescribeRecordLineList 接口 // 注意:此字段可能返回 null,表示取不到有效值。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值 // 注意:此字段可能返回 null,表示取不到有效值。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // 记录的 TTL 值 // 注意:此字段可能返回 null,表示取不到有效值。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 记录添加状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 操作类型 // 注意:此字段可能返回 null,表示取不到有效值。 - Operation *string `json:"Operation,omitempty" name:"Operation"` + Operation *string `json:"Operation,omitnil" name:"Operation"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` + ErrMsg *string `json:"ErrMsg,omitnil" name:"ErrMsg"` // 此条记录在列表中的ID - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` } // Predefined struct for user type CreateDomainBatchRequestParams struct { // 域名数组 - DomainList []*string `json:"DomainList,omitempty" name:"DomainList"` + DomainList []*string `json:"DomainList,omitnil" name:"DomainList"` // 每个域名添加 @ 和 www 的 A 记录值,记录值为IP,如果不传此参数或者传空,将只添加域名,不添加记录。 - RecordValue *string `json:"RecordValue,omitempty" name:"RecordValue"` + RecordValue *string `json:"RecordValue,omitnil" name:"RecordValue"` } type CreateDomainBatchRequest struct { *tchttp.BaseRequest // 域名数组 - DomainList []*string `json:"DomainList,omitempty" name:"DomainList"` + DomainList []*string `json:"DomainList,omitnil" name:"DomainList"` // 每个域名添加 @ 和 www 的 A 记录值,记录值为IP,如果不传此参数或者传空,将只添加域名,不添加记录。 - RecordValue *string `json:"RecordValue,omitempty" name:"RecordValue"` + RecordValue *string `json:"RecordValue,omitnil" name:"RecordValue"` } func (r *CreateDomainBatchRequest) ToJsonString() string { @@ -418,13 +596,13 @@ func (r *CreateDomainBatchRequest) FromJsonString(s string) error { // Predefined struct for user type CreateDomainBatchResponseParams struct { // 批量添加域名信息 - DetailList []*CreateDomainBatchDetail `json:"DetailList,omitempty" name:"DetailList"` + DetailList []*CreateDomainBatchDetail `json:"DetailList,omitnil" name:"DetailList"` // 批量任务的ID - JobId *uint64 `json:"JobId,omitempty" name:"JobId"` + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateDomainBatchResponse struct { @@ -446,14 +624,14 @@ func (r *CreateDomainBatchResponse) FromJsonString(s string) error { // Predefined struct for user type CreateDomainGroupRequestParams struct { // 域名分组 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` } type CreateDomainGroupRequest struct { *tchttp.BaseRequest // 域名分组 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` } func (r *CreateDomainGroupRequest) ToJsonString() string { @@ -478,10 +656,10 @@ func (r *CreateDomainGroupRequest) FromJsonString(s string) error { // Predefined struct for user type CreateDomainGroupResponseParams struct { // 域名分组ID - GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` + GroupId *int64 `json:"GroupId,omitnil" name:"GroupId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateDomainGroupResponse struct { @@ -503,26 +681,38 @@ func (r *CreateDomainGroupResponse) FromJsonString(s string) error { // Predefined struct for user type CreateDomainRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名分组ID - GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` + // 域名分组ID。可以通过接口DescribeDomainGroupList查看当前域名分组信息 + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` // 是否星标域名,”yes”、”no” 分别代表是和否。 - IsMark *string `json:"IsMark,omitempty" name:"IsMark"` + IsMark *string `json:"IsMark,omitnil" name:"IsMark"` + + // 添加子域名时,是否迁移相关父域名的解析记录。不传默认为 true + TransferSubDomain *bool `json:"TransferSubDomain,omitnil" name:"TransferSubDomain"` + + // 域名绑定的标签 + Tags []*TagItem `json:"Tags,omitnil" name:"Tags"` } type CreateDomainRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名分组ID - GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` + // 域名分组ID。可以通过接口DescribeDomainGroupList查看当前域名分组信息 + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` // 是否星标域名,”yes”、”no” 分别代表是和否。 - IsMark *string `json:"IsMark,omitempty" name:"IsMark"` + IsMark *string `json:"IsMark,omitnil" name:"IsMark"` + + // 添加子域名时,是否迁移相关父域名的解析记录。不传默认为 true + TransferSubDomain *bool `json:"TransferSubDomain,omitnil" name:"TransferSubDomain"` + + // 域名绑定的标签 + Tags []*TagItem `json:"Tags,omitnil" name:"Tags"` } func (r *CreateDomainRequest) ToJsonString() string { @@ -540,6 +730,8 @@ func (r *CreateDomainRequest) FromJsonString(s string) error { delete(f, "Domain") delete(f, "GroupId") delete(f, "IsMark") + delete(f, "TransferSubDomain") + delete(f, "Tags") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateDomainRequest has unknown keys!", "") } @@ -549,10 +741,10 @@ func (r *CreateDomainRequest) FromJsonString(s string) error { // Predefined struct for user type CreateDomainResponseParams struct { // 域名信息 - DomainInfo *DomainCreateInfo `json:"DomainInfo,omitempty" name:"DomainInfo"` + DomainInfo *DomainCreateInfo `json:"DomainInfo,omitnil" name:"DomainInfo"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateDomainResponse struct { @@ -574,94 +766,98 @@ func (r *CreateDomainResponse) FromJsonString(s string) error { type CreateRecordBatchDetail struct { // 见RecordInfoBatch // 注意:此字段可能返回 null,表示取不到有效值。 - RecordList []*CreateRecordBatchRecord `json:"RecordList,omitempty" name:"RecordList"` + RecordList []*CreateRecordBatchRecord `json:"RecordList,omitnil" name:"RecordList"` // 任务编号 - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` // 域名 // 注意:此字段可能返回 null,表示取不到有效值。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名等级 // 注意:此字段可能返回 null,表示取不到有效值。 - DomainGrade *string `json:"DomainGrade,omitempty" name:"DomainGrade"` + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` + ErrMsg *string `json:"ErrMsg,omitnil" name:"ErrMsg"` // 该条任务运行状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 操作类型 // 注意:此字段可能返回 null,表示取不到有效值。 - Operation *string `json:"Operation,omitempty" name:"Operation"` + Operation *string `json:"Operation,omitnil" name:"Operation"` // 域名ID // 注意:此字段可能返回 null,表示取不到有效值。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } type CreateRecordBatchRecord struct { // 子域名(主机记录)。 // 注意:此字段可能返回 null,表示取不到有效值。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 记录类型, 详见 DescribeRecordType 接口 // 注意:此字段可能返回 null,表示取不到有效值。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 解析记录的线路,详见 DescribeRecordLineList 接口 // 注意:此字段可能返回 null,表示取不到有效值。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值 // 注意:此字段可能返回 null,表示取不到有效值。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // 记录的 TTL 值 // 注意:此字段可能返回 null,表示取不到有效值。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 记录添加状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 操作类型 // 注意:此字段可能返回 null,表示取不到有效值。 - Operation *string `json:"Operation,omitempty" name:"Operation"` + Operation *string `json:"Operation,omitnil" name:"Operation"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` + ErrMsg *string `json:"ErrMsg,omitnil" name:"ErrMsg"` // 此条记录在列表中的ID - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` // 记录的MX权重 // 注意:此字段可能返回 null,表示取不到有效值。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` + + // 记录的权重 + // 注意:此字段可能返回 null,表示取不到有效值。 + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` } // Predefined struct for user type CreateRecordBatchRequestParams struct { // 域名ID,多个 domain_id 用英文逗号进行分割。 - DomainIdList []*string `json:"DomainIdList,omitempty" name:"DomainIdList"` + DomainIdList []*string `json:"DomainIdList,omitnil" name:"DomainIdList"` // 记录数组 - RecordList []*AddRecordBatch `json:"RecordList,omitempty" name:"RecordList"` + RecordList []*AddRecordBatch `json:"RecordList,omitnil" name:"RecordList"` } type CreateRecordBatchRequest struct { *tchttp.BaseRequest // 域名ID,多个 domain_id 用英文逗号进行分割。 - DomainIdList []*string `json:"DomainIdList,omitempty" name:"DomainIdList"` + DomainIdList []*string `json:"DomainIdList,omitnil" name:"DomainIdList"` // 记录数组 - RecordList []*AddRecordBatch `json:"RecordList,omitempty" name:"RecordList"` + RecordList []*AddRecordBatch `json:"RecordList,omitnil" name:"RecordList"` } func (r *CreateRecordBatchRequest) ToJsonString() string { @@ -687,13 +883,13 @@ func (r *CreateRecordBatchRequest) FromJsonString(s string) error { // Predefined struct for user type CreateRecordBatchResponseParams struct { // 批量添加域名信息 - DetailList []*CreateRecordBatchDetail `json:"DetailList,omitempty" name:"DetailList"` + DetailList []*CreateRecordBatchDetail `json:"DetailList,omitnil" name:"DetailList"` // 批量任务的ID - JobId *uint64 `json:"JobId,omitempty" name:"JobId"` + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateRecordBatchResponse struct { @@ -712,77 +908,154 @@ func (r *CreateRecordBatchResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type CreateRecordGroupRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 分组名称 + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type CreateRecordGroupRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 分组名称 + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *CreateRecordGroupRequest) 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 *CreateRecordGroupRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "GroupName") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateRecordGroupRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type CreateRecordGroupResponseParams struct { + // 新增的分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type CreateRecordGroupResponse struct { + *tchttp.BaseResponse + Response *CreateRecordGroupResponseParams `json:"Response"` +} + +func (r *CreateRecordGroupResponse) 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 *CreateRecordGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + // Predefined struct for user type CreateRecordRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 记录类型,通过 API 记录类型获得,大写英文,比如:A 。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 记录线路,通过 API 记录线路获得,中文,比如:默认。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值,如 IP : 200.200.200.200, CNAME : cname.dnspod.com., MX : mail.dnspod.com.。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 主机记录,如 www,如果不传,默认为 @。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 线路的 ID,通过 API 记录线路获得,英文字符串,比如:10=1。参数RecordLineId优先级高于RecordLine,如果同时传递二者,优先使用RecordLineId参数。 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` // MX 优先级,当记录类型是 MX 时有效,范围1-20,MX 记录时必选。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` // TTL,范围1-604800,不同等级域名最小值不同。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 权重信息,0到100的整数。仅企业 VIP 域名可用,0 表示关闭,不传该参数,表示不设置权重信息。 - Weight *uint64 `json:"Weight,omitempty" name:"Weight"` + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` // 记录初始状态,取值范围为 ENABLE 和 DISABLE 。默认为 ENABLE ,如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` + + // 备注 + Remark *string `json:"Remark,omitnil" name:"Remark"` } type CreateRecordRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 记录类型,通过 API 记录类型获得,大写英文,比如:A 。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 记录线路,通过 API 记录线路获得,中文,比如:默认。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值,如 IP : 200.200.200.200, CNAME : cname.dnspod.com., MX : mail.dnspod.com.。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 主机记录,如 www,如果不传,默认为 @。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 线路的 ID,通过 API 记录线路获得,英文字符串,比如:10=1。参数RecordLineId优先级高于RecordLine,如果同时传递二者,优先使用RecordLineId参数。 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` // MX 优先级,当记录类型是 MX 时有效,范围1-20,MX 记录时必选。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` // TTL,范围1-604800,不同等级域名最小值不同。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 权重信息,0到100的整数。仅企业 VIP 域名可用,0 表示关闭,不传该参数,表示不设置权重信息。 - Weight *uint64 `json:"Weight,omitempty" name:"Weight"` + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` // 记录初始状态,取值范围为 ENABLE 和 DISABLE 。默认为 ENABLE ,如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` + + // 备注 + Remark *string `json:"Remark,omitnil" name:"Remark"` } func (r *CreateRecordRequest) ToJsonString() string { @@ -808,6 +1081,7 @@ func (r *CreateRecordRequest) FromJsonString(s string) error { delete(f, "TTL") delete(f, "Weight") delete(f, "Status") + delete(f, "Remark") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateRecordRequest has unknown keys!", "") } @@ -817,10 +1091,10 @@ func (r *CreateRecordRequest) FromJsonString(s string) error { // Predefined struct for user type CreateRecordResponseParams struct { // 记录ID - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateRecordResponse struct { @@ -839,728 +1113,1282 @@ func (r *CreateRecordResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type Deals struct { - // 子订单ID - DealId *string `json:"DealId,omitempty" name:"DealId"` - - // 子订单号 - DealName *string `json:"DealName,omitempty" name:"DealName"` -} - // Predefined struct for user -type DeleteDomainAliasRequestParams struct { - // 域名别名ID - DomainAliasId *int64 `json:"DomainAliasId,omitempty" name:"DomainAliasId"` - +type CreateSnapshotRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain - DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DeleteDomainAliasRequest struct { +type CreateSnapshotRequest struct { *tchttp.BaseRequest - // 域名别名ID - DomainAliasId *int64 `json:"DomainAliasId,omitempty" name:"DomainAliasId"` - // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain - DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DeleteDomainAliasRequest) ToJsonString() string { +func (r *CreateSnapshotRequest) 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 *DeleteDomainAliasRequest) FromJsonString(s string) error { +func (r *CreateSnapshotRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "DomainAliasId") delete(f, "Domain") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDomainAliasRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateSnapshotRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DeleteDomainAliasResponseParams struct { +type CreateSnapshotResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DeleteDomainAliasResponse struct { +type CreateSnapshotResponse struct { *tchttp.BaseResponse - Response *DeleteDomainAliasResponseParams `json:"Response"` + Response *CreateSnapshotResponseParams `json:"Response"` } -func (r *DeleteDomainAliasResponse) ToJsonString() string { +func (r *CreateSnapshotResponse) 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 *DeleteDomainAliasResponse) FromJsonString(s string) error { +func (r *CreateSnapshotResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type Deals struct { + // 子订单ID + DealId *string `json:"DealId,omitnil" name:"DealId"` + + // 子订单号 + DealName *string `json:"DealName,omitnil" name:"DealName"` +} + // Predefined struct for user -type DeleteDomainRequestParams struct { +type DeleteDomainAliasRequestParams struct { + // 域名别名ID。可以通过接口DescribeDomainAliasList查到所有的域名别名列表以及对应的ID + DomainAliasId *int64 `json:"DomainAliasId,omitnil" name:"DomainAliasId"` + // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *int64 `json:"DomainId,omitnil" name:"DomainId"` } -type DeleteDomainRequest struct { +type DeleteDomainAliasRequest struct { *tchttp.BaseRequest + // 域名别名ID。可以通过接口DescribeDomainAliasList查到所有的域名别名列表以及对应的ID + DomainAliasId *int64 `json:"DomainAliasId,omitnil" name:"DomainAliasId"` + // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *int64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DeleteDomainRequest) ToJsonString() string { +func (r *DeleteDomainAliasRequest) 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 *DeleteDomainRequest) FromJsonString(s string) error { +func (r *DeleteDomainAliasRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } + delete(f, "DomainAliasId") delete(f, "Domain") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDomainRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDomainAliasRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DeleteDomainResponseParams struct { +type DeleteDomainAliasResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DeleteDomainResponse struct { +type DeleteDomainAliasResponse struct { *tchttp.BaseResponse - Response *DeleteDomainResponseParams `json:"Response"` + Response *DeleteDomainAliasResponseParams `json:"Response"` } -func (r *DeleteDomainResponse) ToJsonString() string { +func (r *DeleteDomainAliasResponse) 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 *DeleteDomainResponse) FromJsonString(s string) error { +func (r *DeleteDomainAliasResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -// Predefined struct for user -type DeleteRecordRequestParams struct { +type DeleteDomainBatchDetail struct { + // 域名 ID + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录 ID 。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 错误信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Error *string `json:"Error,omitnil" name:"Error"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 删除状态 + Status *string `json:"Status,omitnil" name:"Status"` + + // 操作 + Operation *string `json:"Operation,omitnil" name:"Operation"` } -type DeleteRecordRequest struct { +// Predefined struct for user +type DeleteDomainBatchRequestParams struct { + // 域名数组 + DomainList []*string `json:"DomainList,omitnil" name:"DomainList"` +} + +type DeleteDomainBatchRequest struct { *tchttp.BaseRequest - // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 记录 ID 。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` - - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名数组 + DomainList []*string `json:"DomainList,omitnil" name:"DomainList"` } -func (r *DeleteRecordRequest) ToJsonString() string { +func (r *DeleteDomainBatchRequest) 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 *DeleteRecordRequest) FromJsonString(s string) error { +func (r *DeleteDomainBatchRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "Domain") - delete(f, "RecordId") - delete(f, "DomainId") + delete(f, "DomainList") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRecordRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDomainBatchRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DeleteRecordResponseParams struct { +type DeleteDomainBatchResponseParams struct { + // 任务 ID + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` + + // 任务详情数组 + DetailList []*DeleteDomainBatchDetail `json:"DetailList,omitnil" name:"DetailList"` + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DeleteRecordResponse struct { +type DeleteDomainBatchResponse struct { *tchttp.BaseResponse - Response *DeleteRecordResponseParams `json:"Response"` + Response *DeleteDomainBatchResponseParams `json:"Response"` } -func (r *DeleteRecordResponse) ToJsonString() string { +func (r *DeleteDomainBatchResponse) 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 *DeleteRecordResponse) FromJsonString(s string) error { +func (r *DeleteDomainBatchResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DeleteShareDomainRequestParams struct { +type DeleteDomainRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名共享的账号 - Account *string `json:"Account,omitempty" name:"Account"` - - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DeleteShareDomainRequest struct { +type DeleteDomainRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 域名共享的账号 - Account *string `json:"Account,omitempty" name:"Account"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DeleteShareDomainRequest) ToJsonString() string { +func (r *DeleteDomainRequest) 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 *DeleteShareDomainRequest) FromJsonString(s string) error { +func (r *DeleteDomainRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") - delete(f, "Account") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteShareDomainRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteDomainRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DeleteShareDomainResponseParams struct { +type DeleteDomainResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DeleteShareDomainResponse struct { +type DeleteDomainResponse struct { *tchttp.BaseResponse - Response *DeleteShareDomainResponseParams `json:"Response"` + Response *DeleteDomainResponseParams `json:"Response"` } -func (r *DeleteShareDomainResponse) ToJsonString() string { +func (r *DeleteDomainResponse) 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 *DeleteShareDomainResponse) FromJsonString(s string) error { +func (r *DeleteDomainResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type DescribeBatchTaskDetail struct { - // 见BatchRecordInfo - // 注意:此字段可能返回 null,表示取不到有效值。 - RecordList []*BatchRecordInfo `json:"RecordList,omitempty" name:"RecordList"` - - // 任务编号 - Id *uint64 `json:"Id,omitempty" name:"Id"` +type DeleteRecordBatchDetail struct { + // 域名 ID + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 域名 - // 注意:此字段可能返回 null,表示取不到有效值。 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 域名等级 - // 注意:此字段可能返回 null,表示取不到有效值。 - DomainGrade *string `json:"DomainGrade,omitempty" name:"DomainGrade"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` + Error *string `json:"Error,omitnil" name:"Error"` - // 该条任务运行状态 - // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitempty" name:"Status"` + // 删除状态 + Status *string `json:"Status,omitnil" name:"Status"` - // 操作类型 - // 注意:此字段可能返回 null,表示取不到有效值。 - Operation *string `json:"Operation,omitempty" name:"Operation"` + // 操作 + Operation *string `json:"Operation,omitnil" name:"Operation"` - // 域名ID - // 注意:此字段可能返回 null,表示取不到有效值。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 解析记录列表,json 序列化之后的字符串形式 + RecordList *string `json:"RecordList,omitnil" name:"RecordList"` } // Predefined struct for user -type DescribeBatchTaskRequestParams struct { - // 任务ID - JobId *uint64 `json:"JobId,omitempty" name:"JobId"` +type DeleteRecordBatchRequestParams struct { + // 解析记录 ID 数组 + RecordIdList []*uint64 `json:"RecordIdList,omitnil" name:"RecordIdList"` } -type DescribeBatchTaskRequest struct { +type DeleteRecordBatchRequest struct { *tchttp.BaseRequest - // 任务ID - JobId *uint64 `json:"JobId,omitempty" name:"JobId"` + // 解析记录 ID 数组 + RecordIdList []*uint64 `json:"RecordIdList,omitnil" name:"RecordIdList"` } -func (r *DescribeBatchTaskRequest) ToJsonString() string { +func (r *DeleteRecordBatchRequest) 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 *DescribeBatchTaskRequest) FromJsonString(s string) error { +func (r *DeleteRecordBatchRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "JobId") + delete(f, "RecordIdList") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBatchTaskRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRecordBatchRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeBatchTaskResponseParams struct { - // 批量任务详情 - DetailList []*DescribeBatchTaskDetail `json:"DetailList,omitempty" name:"DetailList"` - - // 总任务条数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` +type DeleteRecordBatchResponseParams struct { + // 批量任务 ID + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` - // 成功条数 - SuccessCount *uint64 `json:"SuccessCount,omitempty" name:"SuccessCount"` - - // 失败条数 - FailCount *uint64 `json:"FailCount,omitempty" name:"FailCount"` - - // 批量任务类型 - JobType *string `json:"JobType,omitempty" name:"JobType"` - - // 任务创建时间 - CreatedAt *string `json:"CreatedAt,omitempty" name:"CreatedAt"` + // 任务详情 + DetailList []*DeleteRecordBatchDetail `json:"DetailList,omitnil" name:"DetailList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeBatchTaskResponse struct { +type DeleteRecordBatchResponse struct { *tchttp.BaseResponse - Response *DescribeBatchTaskResponseParams `json:"Response"` + Response *DeleteRecordBatchResponseParams `json:"Response"` } -func (r *DescribeBatchTaskResponse) ToJsonString() string { +func (r *DeleteRecordBatchResponse) 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 *DescribeBatchTaskResponse) FromJsonString(s string) error { +func (r *DeleteRecordBatchResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainAliasListRequestParams struct { +type DeleteRecordGroupRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名ID,域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain - DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"` + // 分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeDomainAliasListRequest struct { +type DeleteRecordGroupRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` - // 域名ID,域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain - DomainId *int64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeDomainAliasListRequest) ToJsonString() string { +func (r *DeleteRecordGroupRequest) 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 *DescribeDomainAliasListRequest) FromJsonString(s string) error { +func (r *DeleteRecordGroupRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") + delete(f, "GroupId") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainAliasListRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRecordGroupRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainAliasListResponseParams struct { - // 域名别名列表 - DomainAliasList []*DomainAliasInfo `json:"DomainAliasList,omitempty" name:"DomainAliasList"` - +type DeleteRecordGroupResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeDomainAliasListResponse struct { +type DeleteRecordGroupResponse struct { *tchttp.BaseResponse - Response *DescribeDomainAliasListResponseParams `json:"Response"` + Response *DeleteRecordGroupResponseParams `json:"Response"` } -func (r *DescribeDomainAliasListResponse) ToJsonString() string { +func (r *DeleteRecordGroupResponse) 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 *DescribeDomainAliasListResponse) FromJsonString(s string) error { +func (r *DeleteRecordGroupResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainAnalyticsRequestParams struct { - // 要查询解析量的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 查询的开始时间,格式:YYYY-MM-DD - StartDate *string `json:"StartDate,omitempty" name:"StartDate"` - - // 查询的结束时间,格式:YYYY-MM-DD - EndDate *string `json:"EndDate,omitempty" name:"EndDate"` +type DeleteRecordRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // DATE:按天维度统计 HOUR:按小时维度统计 - DnsFormat *string `json:"DnsFormat,omitempty" name:"DnsFormat"` + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeDomainAnalyticsRequest struct { +type DeleteRecordRequest struct { *tchttp.BaseRequest - // 要查询解析量的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 查询的开始时间,格式:YYYY-MM-DD - StartDate *string `json:"StartDate,omitempty" name:"StartDate"` - - // 查询的结束时间,格式:YYYY-MM-DD - EndDate *string `json:"EndDate,omitempty" name:"EndDate"` + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // DATE:按天维度统计 HOUR:按小时维度统计 - DnsFormat *string `json:"DnsFormat,omitempty" name:"DnsFormat"` + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeDomainAnalyticsRequest) ToJsonString() string { +func (r *DeleteRecordRequest) 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 *DescribeDomainAnalyticsRequest) FromJsonString(s string) error { +func (r *DeleteRecordRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") - delete(f, "StartDate") - delete(f, "EndDate") - delete(f, "DnsFormat") + delete(f, "RecordId") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainAnalyticsRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteRecordRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainAnalyticsResponseParams struct { - // 当前统计维度解析量小计 - Data []*DomainAnalyticsDetail `json:"Data,omitempty" name:"Data"` - - // 域名解析量统计查询信息 - Info *DomainAnalyticsInfo `json:"Info,omitempty" name:"Info"` - - // 域名别名解析量统计信息 - AliasData []*DomainAliasAnalyticsItem `json:"AliasData,omitempty" name:"AliasData"` - +type DeleteRecordResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeDomainAnalyticsResponse struct { +type DeleteRecordResponse struct { *tchttp.BaseResponse - Response *DescribeDomainAnalyticsResponseParams `json:"Response"` + Response *DeleteRecordResponseParams `json:"Response"` } -func (r *DescribeDomainAnalyticsResponse) ToJsonString() string { +func (r *DeleteRecordResponse) 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 *DescribeDomainAnalyticsResponse) FromJsonString(s string) error { +func (r *DeleteRecordResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainGroupListRequestParams struct { +type DeleteShareDomainRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名共享的账号 + Account *string `json:"Account,omitnil" name:"Account"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeDomainGroupListRequest struct { +type DeleteShareDomainRequest struct { *tchttp.BaseRequest + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名共享的账号 + Account *string `json:"Account,omitnil" name:"Account"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeDomainGroupListRequest) ToJsonString() string { +func (r *DeleteShareDomainRequest) 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 *DescribeDomainGroupListRequest) FromJsonString(s string) error { +func (r *DeleteShareDomainRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - + delete(f, "Domain") + delete(f, "Account") + delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainGroupListRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteShareDomainRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainGroupListResponseParams struct { - // 分组列表 - GroupList []*GroupInfo `json:"GroupList,omitempty" name:"GroupList"` - +type DeleteShareDomainResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeDomainGroupListResponse struct { +type DeleteShareDomainResponse struct { *tchttp.BaseResponse - Response *DescribeDomainGroupListResponseParams `json:"Response"` + Response *DeleteShareDomainResponseParams `json:"Response"` } -func (r *DescribeDomainGroupListResponse) ToJsonString() string { +func (r *DeleteShareDomainResponse) 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 *DescribeDomainGroupListResponse) FromJsonString(s string) error { +func (r *DeleteShareDomainResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainListRequestParams struct { - // 域名分组类型,默认为ALL。可取值为ALL,MINE,SHARE,ISMARK,PAUSE,VIP,RECENT,SHARE_OUT。 - Type *string `json:"Type,omitempty" name:"Type"` - - // 记录开始的偏移, 第一条记录为 0, 依次类推。默认值为0。 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` - - // 要获取的域名数量, 比如获取20个, 则为20。默认值为3000。 - Limit *int64 `json:"Limit,omitempty" name:"Limit"` +type DeleteSnapshotRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 分组ID, 获取指定分组的域名 - GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` - // 根据关键字搜索域名 - Keyword *string `json:"Keyword,omitempty" name:"Keyword"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeDomainListRequest struct { +type DeleteSnapshotRequest struct { *tchttp.BaseRequest - // 域名分组类型,默认为ALL。可取值为ALL,MINE,SHARE,ISMARK,PAUSE,VIP,RECENT,SHARE_OUT。 - Type *string `json:"Type,omitempty" name:"Type"` - - // 记录开始的偏移, 第一条记录为 0, 依次类推。默认值为0。 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` - - // 要获取的域名数量, 比如获取20个, 则为20。默认值为3000。 - Limit *int64 `json:"Limit,omitempty" name:"Limit"` + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 分组ID, 获取指定分组的域名 - GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` - // 根据关键字搜索域名 - Keyword *string `json:"Keyword,omitempty" name:"Keyword"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeDomainListRequest) ToJsonString() string { +func (r *DeleteSnapshotRequest) 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 *DescribeDomainListRequest) FromJsonString(s string) error { +func (r *DeleteSnapshotRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "Type") - delete(f, "Offset") - delete(f, "Limit") - delete(f, "GroupId") - delete(f, "Keyword") + delete(f, "Domain") + delete(f, "SnapshotId") + delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainListRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DeleteSnapshotRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainListResponseParams struct { - // 列表页统计信息 - DomainCountInfo *DomainCountInfo `json:"DomainCountInfo,omitempty" name:"DomainCountInfo"` - - // 域名列表 - DomainList []*DomainListItem `json:"DomainList,omitempty" name:"DomainList"` - +type DeleteSnapshotResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeDomainListResponse struct { +type DeleteSnapshotResponse struct { *tchttp.BaseResponse - Response *DescribeDomainListResponseParams `json:"Response"` + Response *DeleteSnapshotResponseParams `json:"Response"` } -func (r *DescribeDomainListResponse) ToJsonString() string { +func (r *DeleteSnapshotResponse) 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 *DescribeDomainListResponse) FromJsonString(s string) error { +func (r *DeleteSnapshotResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -// Predefined struct for user -type DescribeDomainLogListRequestParams struct { +type DescribeBatchTaskDetail struct { + // 见BatchRecordInfo + // 注意:此字段可能返回 null,表示取不到有效值。 + RecordList []*BatchRecordInfo `json:"RecordList,omitnil" name:"RecordList"` + + // 任务编号 + Id *uint64 `json:"Id,omitnil" name:"Id"` + // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + // 注意:此字段可能返回 null,表示取不到有效值。 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名等级 + // 注意:此字段可能返回 null,表示取不到有效值。 + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` - // 记录开始的偏移,第一条记录为 0,依次类推,默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + // 错误信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + ErrMsg *string `json:"ErrMsg,omitnil" name:"ErrMsg"` - // 共要获取的日志条数,比如获取20条,则为20,默认为500条,单次最多获取500条。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` -} + // 该条任务运行状态 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status *string `json:"Status,omitnil" name:"Status"` -type DescribeDomainLogListRequest struct { - *tchttp.BaseRequest - - // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + // 操作类型 + // 注意:此字段可能返回 null,表示取不到有效值。 + Operation *string `json:"Operation,omitnil" name:"Operation"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名ID + // 注意:此字段可能返回 null,表示取不到有效值。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} - // 记录开始的偏移,第一条记录为 0,依次类推,默认为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` +// Predefined struct for user +type DescribeBatchTaskRequestParams struct { + // 任务ID。操作批量接口时会返回JobId + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` +} - // 共要获取的日志条数,比如获取20条,则为20,默认为500条,单次最多获取500条。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` +type DescribeBatchTaskRequest struct { + *tchttp.BaseRequest + + // 任务ID。操作批量接口时会返回JobId + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` } -func (r *DescribeDomainLogListRequest) ToJsonString() string { +func (r *DescribeBatchTaskRequest) 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 *DescribeDomainLogListRequest) FromJsonString(s string) error { +func (r *DescribeBatchTaskRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "Domain") - delete(f, "DomainId") - delete(f, "Offset") - delete(f, "Limit") + delete(f, "JobId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeBatchTaskRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeBatchTaskResponseParams struct { + // 批量任务详情 + DetailList []*DescribeBatchTaskDetail `json:"DetailList,omitnil" name:"DetailList"` + + // 总任务条数 + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` + + // 成功条数 + SuccessCount *uint64 `json:"SuccessCount,omitnil" name:"SuccessCount"` + + // 失败条数 + FailCount *uint64 `json:"FailCount,omitnil" name:"FailCount"` + + // 批量任务类型 + JobType *string `json:"JobType,omitnil" name:"JobType"` + + // 任务创建时间 + CreatedAt *string `json:"CreatedAt,omitnil" name:"CreatedAt"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeBatchTaskResponse struct { + *tchttp.BaseResponse + Response *DescribeBatchTaskResponseParams `json:"Response"` +} + +func (r *DescribeBatchTaskResponse) 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 *DescribeBatchTaskResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainAliasListRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名ID,域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *int64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeDomainAliasListRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名ID,域名ID,参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *int64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeDomainAliasListRequest) 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 *DescribeDomainAliasListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainAliasListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainAliasListResponseParams struct { + // 域名别名列表 + DomainAliasList []*DomainAliasInfo `json:"DomainAliasList,omitnil" name:"DomainAliasList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainAliasListResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainAliasListResponseParams `json:"Response"` +} + +func (r *DescribeDomainAliasListResponse) 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 *DescribeDomainAliasListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainAnalyticsRequestParams struct { + // 要查询解析量的域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 查询的开始时间,格式:YYYY-MM-DD + StartDate *string `json:"StartDate,omitnil" name:"StartDate"` + + // 查询的结束时间,格式:YYYY-MM-DD + EndDate *string `json:"EndDate,omitnil" name:"EndDate"` + + // DATE:按天维度统计 HOUR:按小时维度统计 + DnsFormat *string `json:"DnsFormat,omitnil" name:"DnsFormat"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeDomainAnalyticsRequest struct { + *tchttp.BaseRequest + + // 要查询解析量的域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 查询的开始时间,格式:YYYY-MM-DD + StartDate *string `json:"StartDate,omitnil" name:"StartDate"` + + // 查询的结束时间,格式:YYYY-MM-DD + EndDate *string `json:"EndDate,omitnil" name:"EndDate"` + + // DATE:按天维度统计 HOUR:按小时维度统计 + DnsFormat *string `json:"DnsFormat,omitnil" name:"DnsFormat"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeDomainAnalyticsRequest) 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 *DescribeDomainAnalyticsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "StartDate") + delete(f, "EndDate") + delete(f, "DnsFormat") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainAnalyticsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainAnalyticsResponseParams struct { + // 当前统计维度解析量小计 + Data []*DomainAnalyticsDetail `json:"Data,omitnil" name:"Data"` + + // 域名解析量统计查询信息 + Info *DomainAnalyticsInfo `json:"Info,omitnil" name:"Info"` + + // 域名别名解析量统计信息 + AliasData []*DomainAliasAnalyticsItem `json:"AliasData,omitnil" name:"AliasData"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainAnalyticsResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainAnalyticsResponseParams `json:"Response"` +} + +func (r *DescribeDomainAnalyticsResponse) 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 *DescribeDomainAnalyticsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainFilterListRequestParams struct { + // 根据域名分组类型获取域名。可取值为 ALL,MINE,SHARE,RECENT。 + // ALL:全部 + // MINE:我的域名 + // SHARE:共享给我的域名 + // RECENT:最近操作过的域名 + Type *string `json:"Type,omitnil" name:"Type"` + + // 记录开始的偏移, 第一条记录为 0, 依次类推。默认值为 0。 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 要获取的域名数量, 比如获取 20 个, 则为 20。默认值为 5000。如果账户中的域名数量超过了 5000, 将会强制分页并且只返回前 5000 条, 这时需要通过 Offset 和 Limit 参数去获取其它域名。 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` + + // 根据域名分组 id 获取域名,可通过 DescribeDomain 或 DescribeDomainList 接口 GroupId 字段获取。 + GroupId []*int64 `json:"GroupId,omitnil" name:"GroupId"` + + // 根据关键字获取域名。 + Keyword *string `json:"Keyword,omitnil" name:"Keyword"` + + // 排序字段。可取值为 NAME,STATUS,RECORDS,GRADE,UPDATED_ON。 + // NAME:域名名称 + // STATUS:域名状态 + // RECORDS:记录数量 + // GRADE:套餐等级 + // UPDATED_ON:更新时间 + SortField *string `json:"SortField,omitnil" name:"SortField"` + + // 排序类型,升序:ASC,降序:DESC。 + SortType *string `json:"SortType,omitnil" name:"SortType"` + + // 根据域名状态获取域名。可取值为 ENABLE,LOCK,PAUSE,SPAM。 + // ENABLE:正常 + // LOCK:锁定 + // PAUSE:暂停 + // SPAM:封禁 + Status []*string `json:"Status,omitnil" name:"Status"` + + // 根据套餐获取域名,可通过 DescribeDomain 或 DescribeDomainList 接口 Grade 字段获取。 + Package []*string `json:"Package,omitnil" name:"Package"` + + // 根据备注信息获取域名。 + Remark *string `json:"Remark,omitnil" name:"Remark"` + + // 要获取域名的更新时间起始时间点,如 '2021-05-01 03:00:00'。 + UpdatedAtBegin *string `json:"UpdatedAtBegin,omitnil" name:"UpdatedAtBegin"` + + // 要获取域名的更新时间终止时间点,如 '2021-05-10 20:00:00'。 + UpdatedAtEnd *string `json:"UpdatedAtEnd,omitnil" name:"UpdatedAtEnd"` + + // 要获取域名的记录数查询区间起点。 + RecordCountBegin *uint64 `json:"RecordCountBegin,omitnil" name:"RecordCountBegin"` + + // 要获取域名的记录数查询区间终点。 + RecordCountEnd *uint64 `json:"RecordCountEnd,omitnil" name:"RecordCountEnd"` + + // 项目ID + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` + + // 标签过滤 + Tags []*TagItemFilter `json:"Tags,omitnil" name:"Tags"` +} + +type DescribeDomainFilterListRequest struct { + *tchttp.BaseRequest + + // 根据域名分组类型获取域名。可取值为 ALL,MINE,SHARE,RECENT。 + // ALL:全部 + // MINE:我的域名 + // SHARE:共享给我的域名 + // RECENT:最近操作过的域名 + Type *string `json:"Type,omitnil" name:"Type"` + + // 记录开始的偏移, 第一条记录为 0, 依次类推。默认值为 0。 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 要获取的域名数量, 比如获取 20 个, 则为 20。默认值为 5000。如果账户中的域名数量超过了 5000, 将会强制分页并且只返回前 5000 条, 这时需要通过 Offset 和 Limit 参数去获取其它域名。 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` + + // 根据域名分组 id 获取域名,可通过 DescribeDomain 或 DescribeDomainList 接口 GroupId 字段获取。 + GroupId []*int64 `json:"GroupId,omitnil" name:"GroupId"` + + // 根据关键字获取域名。 + Keyword *string `json:"Keyword,omitnil" name:"Keyword"` + + // 排序字段。可取值为 NAME,STATUS,RECORDS,GRADE,UPDATED_ON。 + // NAME:域名名称 + // STATUS:域名状态 + // RECORDS:记录数量 + // GRADE:套餐等级 + // UPDATED_ON:更新时间 + SortField *string `json:"SortField,omitnil" name:"SortField"` + + // 排序类型,升序:ASC,降序:DESC。 + SortType *string `json:"SortType,omitnil" name:"SortType"` + + // 根据域名状态获取域名。可取值为 ENABLE,LOCK,PAUSE,SPAM。 + // ENABLE:正常 + // LOCK:锁定 + // PAUSE:暂停 + // SPAM:封禁 + Status []*string `json:"Status,omitnil" name:"Status"` + + // 根据套餐获取域名,可通过 DescribeDomain 或 DescribeDomainList 接口 Grade 字段获取。 + Package []*string `json:"Package,omitnil" name:"Package"` + + // 根据备注信息获取域名。 + Remark *string `json:"Remark,omitnil" name:"Remark"` + + // 要获取域名的更新时间起始时间点,如 '2021-05-01 03:00:00'。 + UpdatedAtBegin *string `json:"UpdatedAtBegin,omitnil" name:"UpdatedAtBegin"` + + // 要获取域名的更新时间终止时间点,如 '2021-05-10 20:00:00'。 + UpdatedAtEnd *string `json:"UpdatedAtEnd,omitnil" name:"UpdatedAtEnd"` + + // 要获取域名的记录数查询区间起点。 + RecordCountBegin *uint64 `json:"RecordCountBegin,omitnil" name:"RecordCountBegin"` + + // 要获取域名的记录数查询区间终点。 + RecordCountEnd *uint64 `json:"RecordCountEnd,omitnil" name:"RecordCountEnd"` + + // 项目ID + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` + + // 标签过滤 + Tags []*TagItemFilter `json:"Tags,omitnil" name:"Tags"` +} + +func (r *DescribeDomainFilterListRequest) 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 *DescribeDomainFilterListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Type") + delete(f, "Offset") + delete(f, "Limit") + delete(f, "GroupId") + delete(f, "Keyword") + delete(f, "SortField") + delete(f, "SortType") + delete(f, "Status") + delete(f, "Package") + delete(f, "Remark") + delete(f, "UpdatedAtBegin") + delete(f, "UpdatedAtEnd") + delete(f, "RecordCountBegin") + delete(f, "RecordCountEnd") + delete(f, "ProjectId") + delete(f, "Tags") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainFilterListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainFilterListResponseParams struct { + // 列表页统计信息 + DomainCountInfo *DomainCountInfo `json:"DomainCountInfo,omitnil" name:"DomainCountInfo"` + + // 域名列表 + DomainList []*DomainListItem `json:"DomainList,omitnil" name:"DomainList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainFilterListResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainFilterListResponseParams `json:"Response"` +} + +func (r *DescribeDomainFilterListResponse) 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 *DescribeDomainFilterListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainGroupListRequestParams struct { + +} + +type DescribeDomainGroupListRequest struct { + *tchttp.BaseRequest + +} + +func (r *DescribeDomainGroupListRequest) 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 *DescribeDomainGroupListRequest) 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", "DescribeDomainGroupListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainGroupListResponseParams struct { + // 分组列表 + GroupList []*GroupInfo `json:"GroupList,omitnil" name:"GroupList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainGroupListResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainGroupListResponseParams `json:"Response"` +} + +func (r *DescribeDomainGroupListResponse) 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 *DescribeDomainGroupListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainListRequestParams struct { + // 域名分组类型,默认为ALL。可取值为ALL,MINE,SHARE,ISMARK,PAUSE,VIP,RECENT,SHARE_OUT,FREE。 + Type *string `json:"Type,omitnil" name:"Type"` + + // 记录开始的偏移, 第一条记录为 0, 依次类推。默认值为0。 + Offset *int64 `json:"Offset,omitnil" name:"Offset"` + + // 要获取的域名数量, 比如获取20个, 则为20。默认值为3000。 + Limit *int64 `json:"Limit,omitnil" name:"Limit"` + + // 分组ID, 获取指定分组的域名 + GroupId *int64 `json:"GroupId,omitnil" name:"GroupId"` + + // 根据关键字搜索域名 + Keyword *string `json:"Keyword,omitnil" name:"Keyword"` + + // 标签过滤 + Tags []*TagItemFilter `json:"Tags,omitnil" name:"Tags"` +} + +type DescribeDomainListRequest struct { + *tchttp.BaseRequest + + // 域名分组类型,默认为ALL。可取值为ALL,MINE,SHARE,ISMARK,PAUSE,VIP,RECENT,SHARE_OUT,FREE。 + Type *string `json:"Type,omitnil" name:"Type"` + + // 记录开始的偏移, 第一条记录为 0, 依次类推。默认值为0。 + Offset *int64 `json:"Offset,omitnil" name:"Offset"` + + // 要获取的域名数量, 比如获取20个, 则为20。默认值为3000。 + Limit *int64 `json:"Limit,omitnil" name:"Limit"` + + // 分组ID, 获取指定分组的域名 + GroupId *int64 `json:"GroupId,omitnil" name:"GroupId"` + + // 根据关键字搜索域名 + Keyword *string `json:"Keyword,omitnil" name:"Keyword"` + + // 标签过滤 + Tags []*TagItemFilter `json:"Tags,omitnil" name:"Tags"` +} + +func (r *DescribeDomainListRequest) 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 *DescribeDomainListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Type") + delete(f, "Offset") + delete(f, "Limit") + delete(f, "GroupId") + delete(f, "Keyword") + delete(f, "Tags") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainListResponseParams struct { + // 列表页统计信息 + DomainCountInfo *DomainCountInfo `json:"DomainCountInfo,omitnil" name:"DomainCountInfo"` + + // 域名列表 + DomainList []*DomainListItem `json:"DomainList,omitnil" name:"DomainList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainListResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainListResponseParams `json:"Response"` +} + +func (r *DescribeDomainListResponse) 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 *DescribeDomainListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainLogListRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 记录开始的偏移,第一条记录为 0,依次类推,默认为0 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 共要获取的日志条数,比如获取20条,则为20,默认为500条,单次最多获取500条。 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` +} + +type DescribeDomainLogListRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 记录开始的偏移,第一条记录为 0,依次类推,默认为0 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 共要获取的日志条数,比如获取20条,则为20,默认为500条,单次最多获取500条。 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` +} + +func (r *DescribeDomainLogListRequest) 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 *DescribeDomainLogListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + delete(f, "Offset") + delete(f, "Limit") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainLogListRequest has unknown keys!", "") } @@ -1568,620 +2396,1603 @@ func (r *DescribeDomainLogListRequest) FromJsonString(s string) error { } // Predefined struct for user -type DescribeDomainLogListResponseParams struct { - // 域名信息 - // 注意:此字段可能返回 null,表示取不到有效值。 - LogList []*string `json:"LogList,omitempty" name:"LogList"` +type DescribeDomainLogListResponseParams struct { + // 域名信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + LogList []*string `json:"LogList,omitnil" name:"LogList"` + + // 分页大小 + PageSize *uint64 `json:"PageSize,omitnil" name:"PageSize"` + + // 日志总条数 + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainLogListResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainLogListResponseParams `json:"Response"` +} + +func (r *DescribeDomainLogListResponse) 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 *DescribeDomainLogListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainPreviewRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeDomainPreviewRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeDomainPreviewRequest) 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 *DescribeDomainPreviewRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainPreviewRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainPreviewResponseParams struct { + // 域名概览信息 + Domain *PreviewDetail `json:"Domain,omitnil" name:"Domain"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainPreviewResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainPreviewResponseParams `json:"Response"` +} + +func (r *DescribeDomainPreviewResponse) 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 *DescribeDomainPreviewResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainPurviewRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeDomainPurviewRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeDomainPurviewRequest) 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 *DescribeDomainPurviewRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainPurviewRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainPurviewResponseParams struct { + // 域名权限列表 + PurviewList []*PurviewInfo `json:"PurviewList,omitnil" name:"PurviewList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainPurviewResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainPurviewResponseParams `json:"Response"` +} + +func (r *DescribeDomainPurviewResponse) 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 *DescribeDomainPurviewResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeDomainRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeDomainRequest) 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 *DescribeDomainRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainResponseParams struct { + // 域名信息 + DomainInfo *DomainInfo `json:"DomainInfo,omitnil" name:"DomainInfo"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainResponseParams `json:"Response"` +} + +func (r *DescribeDomainResponse) 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 *DescribeDomainResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainShareInfoRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeDomainShareInfoRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeDomainShareInfoRequest) 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 *DescribeDomainShareInfoRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainShareInfoRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainShareInfoResponseParams struct { + // 域名共享信息 + ShareList []*DomainShareInfo `json:"ShareList,omitnil" name:"ShareList"` + + // 域名拥有者账号 + Owner *string `json:"Owner,omitnil" name:"Owner"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainShareInfoResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainShareInfoResponseParams `json:"Response"` +} + +func (r *DescribeDomainShareInfoResponse) 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 *DescribeDomainShareInfoResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainWhoisRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` +} + +type DescribeDomainWhoisRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` +} + +func (r *DescribeDomainWhoisRequest) 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 *DescribeDomainWhoisRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainWhoisRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeDomainWhoisResponseParams struct { + // 域名Whois信息 + Info *WhoisInfo `json:"Info,omitnil" name:"Info"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeDomainWhoisResponse struct { + *tchttp.BaseResponse + Response *DescribeDomainWhoisResponseParams `json:"Response"` +} + +func (r *DescribeDomainWhoisResponse) 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 *DescribeDomainWhoisResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribePackageDetailRequestParams struct { + +} + +type DescribePackageDetailRequest struct { + *tchttp.BaseRequest + +} + +func (r *DescribePackageDetailRequest) 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 *DescribePackageDetailRequest) 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", "DescribePackageDetailRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribePackageDetailResponseParams struct { + // 套餐配置详情 + Info []*PackageDetailItem `json:"Info,omitnil" name:"Info"` + + // 套餐代码列表 + LevelMap []*string `json:"LevelMap,omitnil" name:"LevelMap"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribePackageDetailResponse struct { + *tchttp.BaseResponse + Response *DescribePackageDetailResponseParams `json:"Response"` +} + +func (r *DescribePackageDetailResponse) 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 *DescribePackageDetailResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordExistExceptDefaultNSRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeRecordExistExceptDefaultNSRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeRecordExistExceptDefaultNSRequest) 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 *DescribeRecordExistExceptDefaultNSRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordExistExceptDefaultNSRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordExistExceptDefaultNSResponseParams struct { + // true 是 false 否 + Exist *bool `json:"Exist,omitnil" name:"Exist"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeRecordExistExceptDefaultNSResponse struct { + *tchttp.BaseResponse + Response *DescribeRecordExistExceptDefaultNSResponseParams `json:"Response"` +} + +func (r *DescribeRecordExistExceptDefaultNSResponse) 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 *DescribeRecordExistExceptDefaultNSResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordFilterListRequestParams struct { + // 要获取的解析记录所属的域名。 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 要获取的解析记录所属的域名 Id,如果传了 DomainId,系统将会忽略 Domain 参数。 可以通过接口 DescribeDomainList 查到所有的 Domain 以及 DomainId。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 根据解析记录的主机头获取解析记录。默认模糊匹配。可以通过设置 IsExactSubdomain 参数为 true 进行精确查找。 + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` + + // 获取某些类型的解析记录,如 A,CNAME,NS,AAAA,显性URL,隐性URL,CAA,SPF等。 + RecordType []*string `json:"RecordType,omitnil" name:"RecordType"` + + // 获取某些线路ID的解析记录。可以通过接口 DescribeRecordLineList 查看当前域名允许的线路信息。 + RecordLine []*string `json:"RecordLine,omitnil" name:"RecordLine"` + + // 获取某些分组下的解析记录时,传这个分组 Id。可以通过接口 DescribeRecordGroupList 接口 GroupId 字段获取。 + GroupId []*uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 通过关键字搜索解析记录,当前支持搜索主机头和记录值 + Keyword *string `json:"Keyword,omitnil" name:"Keyword"` + + // 排序字段,支持 NAME,LINE,TYPE,VALUE,WEIGHT,MX,TTL,UPDATED_ON 几个字段。 + // NAME:解析记录的主机头 + // LINE:解析记录线路 + // TYPE:解析记录类型 + // VALUE:解析记录值 + // WEIGHT:权重 + // MX:MX 优先级 + // TTL:解析记录缓存时间 + // UPDATED_ON:解析记录更新时间 + SortField *string `json:"SortField,omitnil" name:"SortField"` + + // 排序方式,升序:ASC,降序:DESC。默认值为ASC。 + SortType *string `json:"SortType,omitnil" name:"SortType"` + + // 偏移量,默认值为0。 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 限制数量,当前Limit最大支持3000。默认值为100。 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` + + // 根据解析记录的值获取解析记录 + RecordValue *string `json:"RecordValue,omitnil" name:"RecordValue"` + + // 根据解析记录的状态获取解析记录。可取值为 ENABLE,DISABLE。 + // ENABLE:正常 + // DISABLE:暂停 + RecordStatus []*string `json:"RecordStatus,omitnil" name:"RecordStatus"` + + // 要获取解析记录权重查询区间起点。 + WeightBegin *uint64 `json:"WeightBegin,omitnil" name:"WeightBegin"` + + // 要获取解析记录权重查询区间终点。 + WeightEnd *uint64 `json:"WeightEnd,omitnil" name:"WeightEnd"` + + // 要获取解析记录 MX 优先级查询区间起点。 + MXBegin *uint64 `json:"MXBegin,omitnil" name:"MXBegin"` + + // 要获取解析记录 MX 优先级查询区间终点。 + MXEnd *uint64 `json:"MXEnd,omitnil" name:"MXEnd"` + + // 要获取解析记录 TTL 查询区间起点。 + TTLBegin *uint64 `json:"TTLBegin,omitnil" name:"TTLBegin"` + + // 要获取解析记录 TTL 查询区间终点。 + TTLEnd *uint64 `json:"TTLEnd,omitnil" name:"TTLEnd"` + + // 要获取解析记录更新时间查询区间起点。 + UpdatedAtBegin *string `json:"UpdatedAtBegin,omitnil" name:"UpdatedAtBegin"` + + // 要获取解析记录更新时间查询区间终点。 + UpdatedAtEnd *string `json:"UpdatedAtEnd,omitnil" name:"UpdatedAtEnd"` + + // 根据解析记录的备注获取解析记录。 + Remark *string `json:"Remark,omitnil" name:"Remark"` + + // 是否根据 Subdomain 参数进行精确查找。 + IsExactSubDomain *bool `json:"IsExactSubDomain,omitnil" name:"IsExactSubDomain"` + + // 项目ID + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` +} + +type DescribeRecordFilterListRequest struct { + *tchttp.BaseRequest + + // 要获取的解析记录所属的域名。 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 要获取的解析记录所属的域名 Id,如果传了 DomainId,系统将会忽略 Domain 参数。 可以通过接口 DescribeDomainList 查到所有的 Domain 以及 DomainId。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 根据解析记录的主机头获取解析记录。默认模糊匹配。可以通过设置 IsExactSubdomain 参数为 true 进行精确查找。 + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` + + // 获取某些类型的解析记录,如 A,CNAME,NS,AAAA,显性URL,隐性URL,CAA,SPF等。 + RecordType []*string `json:"RecordType,omitnil" name:"RecordType"` + + // 获取某些线路ID的解析记录。可以通过接口 DescribeRecordLineList 查看当前域名允许的线路信息。 + RecordLine []*string `json:"RecordLine,omitnil" name:"RecordLine"` + + // 获取某些分组下的解析记录时,传这个分组 Id。可以通过接口 DescribeRecordGroupList 接口 GroupId 字段获取。 + GroupId []*uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 通过关键字搜索解析记录,当前支持搜索主机头和记录值 + Keyword *string `json:"Keyword,omitnil" name:"Keyword"` + + // 排序字段,支持 NAME,LINE,TYPE,VALUE,WEIGHT,MX,TTL,UPDATED_ON 几个字段。 + // NAME:解析记录的主机头 + // LINE:解析记录线路 + // TYPE:解析记录类型 + // VALUE:解析记录值 + // WEIGHT:权重 + // MX:MX 优先级 + // TTL:解析记录缓存时间 + // UPDATED_ON:解析记录更新时间 + SortField *string `json:"SortField,omitnil" name:"SortField"` + + // 排序方式,升序:ASC,降序:DESC。默认值为ASC。 + SortType *string `json:"SortType,omitnil" name:"SortType"` + + // 偏移量,默认值为0。 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 限制数量,当前Limit最大支持3000。默认值为100。 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` + + // 根据解析记录的值获取解析记录 + RecordValue *string `json:"RecordValue,omitnil" name:"RecordValue"` + + // 根据解析记录的状态获取解析记录。可取值为 ENABLE,DISABLE。 + // ENABLE:正常 + // DISABLE:暂停 + RecordStatus []*string `json:"RecordStatus,omitnil" name:"RecordStatus"` + + // 要获取解析记录权重查询区间起点。 + WeightBegin *uint64 `json:"WeightBegin,omitnil" name:"WeightBegin"` + + // 要获取解析记录权重查询区间终点。 + WeightEnd *uint64 `json:"WeightEnd,omitnil" name:"WeightEnd"` + + // 要获取解析记录 MX 优先级查询区间起点。 + MXBegin *uint64 `json:"MXBegin,omitnil" name:"MXBegin"` + + // 要获取解析记录 MX 优先级查询区间终点。 + MXEnd *uint64 `json:"MXEnd,omitnil" name:"MXEnd"` + + // 要获取解析记录 TTL 查询区间起点。 + TTLBegin *uint64 `json:"TTLBegin,omitnil" name:"TTLBegin"` + + // 要获取解析记录 TTL 查询区间终点。 + TTLEnd *uint64 `json:"TTLEnd,omitnil" name:"TTLEnd"` + + // 要获取解析记录更新时间查询区间起点。 + UpdatedAtBegin *string `json:"UpdatedAtBegin,omitnil" name:"UpdatedAtBegin"` + + // 要获取解析记录更新时间查询区间终点。 + UpdatedAtEnd *string `json:"UpdatedAtEnd,omitnil" name:"UpdatedAtEnd"` + + // 根据解析记录的备注获取解析记录。 + Remark *string `json:"Remark,omitnil" name:"Remark"` + + // 是否根据 Subdomain 参数进行精确查找。 + IsExactSubDomain *bool `json:"IsExactSubDomain,omitnil" name:"IsExactSubDomain"` + + // 项目ID + ProjectId *int64 `json:"ProjectId,omitnil" name:"ProjectId"` +} + +func (r *DescribeRecordFilterListRequest) 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 *DescribeRecordFilterListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + delete(f, "SubDomain") + delete(f, "RecordType") + delete(f, "RecordLine") + delete(f, "GroupId") + delete(f, "Keyword") + delete(f, "SortField") + delete(f, "SortType") + delete(f, "Offset") + delete(f, "Limit") + delete(f, "RecordValue") + delete(f, "RecordStatus") + delete(f, "WeightBegin") + delete(f, "WeightEnd") + delete(f, "MXBegin") + delete(f, "MXEnd") + delete(f, "TTLBegin") + delete(f, "TTLEnd") + delete(f, "UpdatedAtBegin") + delete(f, "UpdatedAtEnd") + delete(f, "Remark") + delete(f, "IsExactSubDomain") + delete(f, "ProjectId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordFilterListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordFilterListResponseParams struct { + // 记录的数量统计信息 + RecordCountInfo *RecordCountInfo `json:"RecordCountInfo,omitnil" name:"RecordCountInfo"` + + // 获取的记录列表 + RecordList []*RecordListItem `json:"RecordList,omitnil" name:"RecordList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeRecordFilterListResponse struct { + *tchttp.BaseResponse + Response *DescribeRecordFilterListResponseParams `json:"Response"` +} + +func (r *DescribeRecordFilterListResponse) 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 *DescribeRecordFilterListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordGroupListRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 分页开始位置 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 分页每页数 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` +} + +type DescribeRecordGroupListRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 分页开始位置 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 分页每页数 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` +} + +func (r *DescribeRecordGroupListRequest) 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 *DescribeRecordGroupListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainId") + delete(f, "Offset") + delete(f, "Limit") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordGroupListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordGroupListResponseParams struct { + // 分组列表 + GroupList []*RecordGroupInfo `json:"GroupList,omitnil" name:"GroupList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeRecordGroupListResponse struct { + *tchttp.BaseResponse + Response *DescribeRecordGroupListResponseParams `json:"Response"` +} + +func (r *DescribeRecordGroupListResponse) 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 *DescribeRecordGroupListResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordLineListRequestParams struct { + // 域名。 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 分页大小 - PageSize *uint64 `json:"PageSize,omitempty" name:"PageSize"` + // 域名等级。 + // + 旧套餐:D_FREE、D_PLUS、D_EXTRA、D_EXPERT、D_ULTRA 分别对应免费套餐、个人豪华、企业1、企业2、企业3。 + // + 新套餐:DP_FREE、DP_PLUS、DP_EXTRA、DP_EXPERT、DP_ULTRA 分别对应新免费、个人专业版、企业创业版、企业标准版、企业旗舰版。 + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` - // 日志总条数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeRecordLineListRequest struct { + *tchttp.BaseRequest + + // 域名。 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名等级。 + // + 旧套餐:D_FREE、D_PLUS、D_EXTRA、D_EXPERT、D_ULTRA 分别对应免费套餐、个人豪华、企业1、企业2、企业3。 + // + 新套餐:DP_FREE、DP_PLUS、DP_EXTRA、DP_EXPERT、DP_ULTRA 分别对应新免费、个人专业版、企业创业版、企业标准版、企业旗舰版。 + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeRecordLineListRequest) 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 *DescribeRecordLineListRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "DomainGrade") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordLineListRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordLineListResponseParams struct { + // 线路列表。 + LineList []*LineInfo `json:"LineList,omitnil" name:"LineList"` + + // 线路分组列表。 + LineGroupList []*LineGroupInfo `json:"LineGroupList,omitnil" name:"LineGroupList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeDomainLogListResponse struct { +type DescribeRecordLineListResponse struct { *tchttp.BaseResponse - Response *DescribeDomainLogListResponseParams `json:"Response"` + Response *DescribeRecordLineListResponseParams `json:"Response"` } -func (r *DescribeDomainLogListResponse) ToJsonString() string { +func (r *DescribeRecordLineListResponse) 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 *DescribeDomainLogListResponse) FromJsonString(s string) error { +func (r *DescribeRecordLineListResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainPurviewRequestParams struct { - // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` +type DescribeRecordListRequestParams struct { + // 要获取的解析记录所属的域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 要获取的解析记录所属的域名Id,如果传了DomainId,系统将会忽略Domain参数。 可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 解析记录的主机头,如果传了此参数,则只会返回此主机头对应的解析记录 + Subdomain *string `json:"Subdomain,omitnil" name:"Subdomain"` + + // 获取某种类型的解析记录,如 A,CNAME,NS,AAAA,显性URL,隐性URL,CAA,SPF等 + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` + + // 获取某条线路名称的解析记录。可以通过接口DescribeRecordLineList查看当前域名允许的线路信息 + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` + + // 获取某个线路Id对应的解析记录,如果传RecordLineId,系统会忽略RecordLine参数。可以通过接口DescribeRecordLineList查看当前域名允许的线路信息 + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` + + // 获取某个分组下的解析记录时,传这个分组Id。 + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 通过关键字搜索解析记录,当前支持搜索主机头和记录值 + Keyword *string `json:"Keyword,omitnil" name:"Keyword"` + + // 排序字段,支持 name,line,type,value,weight,mx,ttl,updated_on 几个字段。 + SortField *string `json:"SortField,omitnil" name:"SortField"` + + // 排序方式,正序:ASC,逆序:DESC。默认值为ASC。 + SortType *string `json:"SortType,omitnil" name:"SortType"` + + // 偏移量,默认值为0。 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 限制数量,当前Limit最大支持3000。默认值为100。 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` } -type DescribeDomainPurviewRequest struct { +type DescribeRecordListRequest struct { *tchttp.BaseRequest - // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + // 要获取的解析记录所属的域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 要获取的解析记录所属的域名Id,如果传了DomainId,系统将会忽略Domain参数。 可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 解析记录的主机头,如果传了此参数,则只会返回此主机头对应的解析记录 + Subdomain *string `json:"Subdomain,omitnil" name:"Subdomain"` + + // 获取某种类型的解析记录,如 A,CNAME,NS,AAAA,显性URL,隐性URL,CAA,SPF等 + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` + + // 获取某条线路名称的解析记录。可以通过接口DescribeRecordLineList查看当前域名允许的线路信息 + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` + + // 获取某个线路Id对应的解析记录,如果传RecordLineId,系统会忽略RecordLine参数。可以通过接口DescribeRecordLineList查看当前域名允许的线路信息 + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` + + // 获取某个分组下的解析记录时,传这个分组Id。 + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 通过关键字搜索解析记录,当前支持搜索主机头和记录值 + Keyword *string `json:"Keyword,omitnil" name:"Keyword"` + + // 排序字段,支持 name,line,type,value,weight,mx,ttl,updated_on 几个字段。 + SortField *string `json:"SortField,omitnil" name:"SortField"` + + // 排序方式,正序:ASC,逆序:DESC。默认值为ASC。 + SortType *string `json:"SortType,omitnil" name:"SortType"` + + // 偏移量,默认值为0。 + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` + + // 限制数量,当前Limit最大支持3000。默认值为100。 + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` } -func (r *DescribeDomainPurviewRequest) ToJsonString() string { +func (r *DescribeRecordListRequest) 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 *DescribeDomainPurviewRequest) FromJsonString(s string) error { +func (r *DescribeRecordListRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") delete(f, "DomainId") + delete(f, "Subdomain") + delete(f, "RecordType") + delete(f, "RecordLine") + delete(f, "RecordLineId") + delete(f, "GroupId") + delete(f, "Keyword") + delete(f, "SortField") + delete(f, "SortType") + delete(f, "Offset") + delete(f, "Limit") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainPurviewRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordListRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainPurviewResponseParams struct { - // 域名权限列表 - PurviewList []*PurviewInfo `json:"PurviewList,omitempty" name:"PurviewList"` +type DescribeRecordListResponseParams struct { + // 记录的数量统计信息 + RecordCountInfo *RecordCountInfo `json:"RecordCountInfo,omitnil" name:"RecordCountInfo"` + + // 获取的记录列表 + RecordList []*RecordListItem `json:"RecordList,omitnil" name:"RecordList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeDomainPurviewResponse struct { +type DescribeRecordListResponse struct { *tchttp.BaseResponse - Response *DescribeDomainPurviewResponseParams `json:"Response"` + Response *DescribeRecordListResponseParams `json:"Response"` } -func (r *DescribeDomainPurviewResponse) ToJsonString() string { +func (r *DescribeRecordListResponse) 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 *DescribeDomainPurviewResponse) FromJsonString(s string) error { +func (r *DescribeRecordListResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainRequestParams struct { +type DescribeRecordRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeDomainRequest struct { +type DescribeRecordRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeDomainRequest) ToJsonString() string { +func (r *DescribeRecordRequest) 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 *DescribeDomainRequest) FromJsonString(s string) error { +func (r *DescribeRecordRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") + delete(f, "RecordId") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainResponseParams struct { - // 域名信息 - DomainInfo *DomainInfo `json:"DomainInfo,omitempty" name:"DomainInfo"` +type DescribeRecordResponseParams struct { + // 记录信息 + RecordInfo *RecordInfo `json:"RecordInfo,omitnil" name:"RecordInfo"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeDomainResponse struct { +type DescribeRecordResponse struct { *tchttp.BaseResponse - Response *DescribeDomainResponseParams `json:"Response"` + Response *DescribeRecordResponseParams `json:"Response"` } -func (r *DescribeDomainResponse) ToJsonString() string { +func (r *DescribeRecordResponse) 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 *DescribeDomainResponse) FromJsonString(s string) error { +func (r *DescribeRecordResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainShareInfoRequestParams struct { +type DescribeRecordSnapshotRollbackResultRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 回滚任务 ID + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeDomainShareInfoRequest struct { +type DescribeRecordSnapshotRollbackResultRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 回滚任务 ID + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeDomainShareInfoRequest) ToJsonString() string { +func (r *DescribeRecordSnapshotRollbackResultRequest) 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 *DescribeDomainShareInfoRequest) FromJsonString(s string) error { +func (r *DescribeRecordSnapshotRollbackResultRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") + delete(f, "JobId") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeDomainShareInfoRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordSnapshotRollbackResultRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeDomainShareInfoResponseParams struct { - // 域名共享信息 - ShareList []*DomainShareInfo `json:"ShareList,omitempty" name:"ShareList"` +type DescribeRecordSnapshotRollbackResultResponseParams struct { + // 回滚任务 ID + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` - // 域名拥有者账号 - Owner *string `json:"Owner,omitempty" name:"Owner"` + // 回滚状态 + Status *string `json:"Status,omitnil" name:"Status"` + + // 失败的记录信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + FailedRecordList []*SnapshotRecord `json:"FailedRecordList,omitnil" name:"FailedRecordList"` + + // 所属域名 + // 注意:此字段可能返回 null,表示取不到有效值。 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 回滚进度 + // 注意:此字段可能返回 null,表示取不到有效值。 + Progress *uint64 `json:"Progress,omitnil" name:"Progress"` + + // 回滚剩余时间(单位:分钟) + // 注意:此字段可能返回 null,表示取不到有效值。 + LeftMinutes *uint64 `json:"LeftMinutes,omitnil" name:"LeftMinutes"` + + // 总记录数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Total *uint64 `json:"Total,omitnil" name:"Total"` + + // 失败记录数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Failed *uint64 `json:"Failed,omitnil" name:"Failed"` + + // 成功记录数 + // 注意:此字段可能返回 null,表示取不到有效值。 + Success *uint64 `json:"Success,omitnil" name:"Success"` + + // 快照下载地址 + // 注意:此字段可能返回 null,表示取不到有效值。 + CosUrl *string `json:"CosUrl,omitnil" name:"CosUrl"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeDomainShareInfoResponse struct { +type DescribeRecordSnapshotRollbackResultResponse struct { *tchttp.BaseResponse - Response *DescribeDomainShareInfoResponseParams `json:"Response"` + Response *DescribeRecordSnapshotRollbackResultResponseParams `json:"Response"` } -func (r *DescribeDomainShareInfoResponse) ToJsonString() string { +func (r *DescribeRecordSnapshotRollbackResultResponse) 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 *DescribeDomainShareInfoResponse) FromJsonString(s string) error { +func (r *DescribeRecordSnapshotRollbackResultResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeRecordLineListRequestParams struct { - // 域名。 - Domain *string `json:"Domain,omitempty" name:"Domain"` +type DescribeRecordTypeRequestParams struct { + // 域名等级。 + // + 旧套餐:D_FREE、D_PLUS、D_EXTRA、D_EXPERT、D_ULTRA 分别对应免费套餐、个人豪华、企业1、企业2、企业3。 + // + 新套餐:DP_FREE、DP_PLUS、DP_EXTRA、DP_EXPERT、DP_ULTRA 分别对应新免费、个人专业版、企业创业版、企业标准版、企业旗舰版。 + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` +} +type DescribeRecordTypeRequest struct { + *tchttp.BaseRequest + // 域名等级。 // + 旧套餐:D_FREE、D_PLUS、D_EXTRA、D_EXPERT、D_ULTRA 分别对应免费套餐、个人豪华、企业1、企业2、企业3。 // + 新套餐:DP_FREE、DP_PLUS、DP_EXTRA、DP_EXPERT、DP_ULTRA 分别对应新免费、个人专业版、企业创业版、企业标准版、企业旗舰版。 - DomainGrade *string `json:"DomainGrade,omitempty" name:"DomainGrade"` + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` +} + +func (r *DescribeRecordTypeRequest) 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 *DescribeRecordTypeRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DomainGrade") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordTypeRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeRecordTypeResponseParams struct { + // 记录类型列表 + TypeList []*string `json:"TypeList,omitnil" name:"TypeList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeRecordTypeResponse struct { + *tchttp.BaseResponse + Response *DescribeRecordTypeResponseParams `json:"Response"` +} + +func (r *DescribeRecordTypeResponse) 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 *DescribeRecordTypeResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeSnapshotConfigRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeRecordLineListRequest struct { +type DescribeSnapshotConfigRequest struct { *tchttp.BaseRequest - // 域名。 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 域名等级。 - // + 旧套餐:D_FREE、D_PLUS、D_EXTRA、D_EXPERT、D_ULTRA 分别对应免费套餐、个人豪华、企业1、企业2、企业3。 - // + 新套餐:DP_FREE、DP_PLUS、DP_EXTRA、DP_EXPERT、DP_ULTRA 分别对应新免费、个人专业版、企业创业版、企业标准版、企业旗舰版。 - DomainGrade *string `json:"DomainGrade,omitempty" name:"DomainGrade"` + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeRecordLineListRequest) ToJsonString() string { +func (r *DescribeSnapshotConfigRequest) 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 *DescribeRecordLineListRequest) FromJsonString(s string) error { +func (r *DescribeSnapshotConfigRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") - delete(f, "DomainGrade") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordLineListRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSnapshotConfigRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeRecordLineListResponseParams struct { - // 线路列表。 - LineList []*LineInfo `json:"LineList,omitempty" name:"LineList"` - - // 线路分组列表。 - LineGroupList []*LineGroupInfo `json:"LineGroupList,omitempty" name:"LineGroupList"` +type DescribeSnapshotConfigResponseParams struct { + // 解析快照配置 + SnapshotConfig *SnapshotConfig `json:"SnapshotConfig,omitnil" name:"SnapshotConfig"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeRecordLineListResponse struct { +type DescribeSnapshotConfigResponse struct { *tchttp.BaseResponse - Response *DescribeRecordLineListResponseParams `json:"Response"` + Response *DescribeSnapshotConfigResponseParams `json:"Response"` } -func (r *DescribeRecordLineListResponse) ToJsonString() string { +func (r *DescribeSnapshotConfigResponse) 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 *DescribeRecordLineListResponse) FromJsonString(s string) error { +func (r *DescribeSnapshotConfigResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeRecordListRequestParams struct { - // 要获取的解析记录所属的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 要获取的解析记录所属的域名Id,如果传了DomainId,系统将会忽略Domain参数 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` - - // 解析记录的主机头,如果传了此参数,则只会返回此主机头对应的解析记录 - Subdomain *string `json:"Subdomain,omitempty" name:"Subdomain"` - - // 获取某种类型的解析记录,如 A,CNAME,NS,AAAA,显性URL,隐性URL,CAA,SPF等 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` - - // 获取某条线路名称的解析记录 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` - - // 获取某个线路Id对应的解析记录,如果传RecordLineId,系统会忽略RecordLine参数 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` - - // 获取某个分组下的解析记录时,传这个分组Id - GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` - - // 通过关键字搜索解析记录,当前支持搜索主机头和记录值 - Keyword *string `json:"Keyword,omitempty" name:"Keyword"` - - // 排序字段,支持 name,line,type,value,weight,mx,ttl,updated_on 几个字段。 - SortField *string `json:"SortField,omitempty" name:"SortField"` - - // 排序方式,正序:ASC,逆序:DESC。默认值为ASC。 - SortType *string `json:"SortType,omitempty" name:"SortType"` - - // 偏移量,默认值为0。 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` +type DescribeSnapshotListRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 限制数量,当前Limit最大支持3000。默认值为100。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeRecordListRequest struct { +type DescribeSnapshotListRequest struct { *tchttp.BaseRequest - // 要获取的解析记录所属的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 要获取的解析记录所属的域名Id,如果传了DomainId,系统将会忽略Domain参数 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` - - // 解析记录的主机头,如果传了此参数,则只会返回此主机头对应的解析记录 - Subdomain *string `json:"Subdomain,omitempty" name:"Subdomain"` - - // 获取某种类型的解析记录,如 A,CNAME,NS,AAAA,显性URL,隐性URL,CAA,SPF等 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` - - // 获取某条线路名称的解析记录 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` - - // 获取某个线路Id对应的解析记录,如果传RecordLineId,系统会忽略RecordLine参数 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` - - // 获取某个分组下的解析记录时,传这个分组Id - GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` - - // 通过关键字搜索解析记录,当前支持搜索主机头和记录值 - Keyword *string `json:"Keyword,omitempty" name:"Keyword"` - - // 排序字段,支持 name,line,type,value,weight,mx,ttl,updated_on 几个字段。 - SortField *string `json:"SortField,omitempty" name:"SortField"` - - // 排序方式,正序:ASC,逆序:DESC。默认值为ASC。 - SortType *string `json:"SortType,omitempty" name:"SortType"` - - // 偏移量,默认值为0。 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 限制数量,当前Limit最大支持3000。默认值为100。 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeRecordListRequest) ToJsonString() string { +func (r *DescribeSnapshotListRequest) 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 *DescribeRecordListRequest) FromJsonString(s string) error { +func (r *DescribeSnapshotListRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") delete(f, "DomainId") - delete(f, "Subdomain") - delete(f, "RecordType") - delete(f, "RecordLine") - delete(f, "RecordLineId") - delete(f, "GroupId") - delete(f, "Keyword") - delete(f, "SortField") - delete(f, "SortType") - delete(f, "Offset") - delete(f, "Limit") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordListRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSnapshotListRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeRecordListResponseParams struct { - // 记录的数量统计信息 - RecordCountInfo *RecordCountInfo `json:"RecordCountInfo,omitempty" name:"RecordCountInfo"` +type DescribeSnapshotListResponseParams struct { + // 分页信息 + Info *SnapshotPageInfo `json:"Info,omitnil" name:"Info"` - // 获取的记录列表 - RecordList []*RecordListItem `json:"RecordList,omitempty" name:"RecordList"` + // 快照列表 + SnapshotList []*SnapshotInfo `json:"SnapshotList,omitnil" name:"SnapshotList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeRecordListResponse struct { +type DescribeSnapshotListResponse struct { *tchttp.BaseResponse - Response *DescribeRecordListResponseParams `json:"Response"` + Response *DescribeSnapshotListResponseParams `json:"Response"` } -func (r *DescribeRecordListResponse) ToJsonString() string { +func (r *DescribeSnapshotListResponse) 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 *DescribeRecordListResponse) FromJsonString(s string) error { +func (r *DescribeSnapshotListResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeRecordRequestParams struct { +type DescribeSnapshotRollbackResultRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 快照回滚任务 ID + TaskId *uint64 `json:"TaskId,omitnil" name:"TaskId"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。DomainId是域名的资源ID,可以通过接口DescribeDomainList查到所有的Domain以及DomainId - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeRecordRequest struct { +type DescribeSnapshotRollbackResultRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 快照回滚任务 ID + TaskId *uint64 `json:"TaskId,omitnil" name:"TaskId"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。DomainId是域名的资源ID,可以通过接口DescribeDomainList查到所有的Domain以及DomainId - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeRecordRequest) ToJsonString() string { +func (r *DescribeSnapshotRollbackResultRequest) 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 *DescribeRecordRequest) FromJsonString(s string) error { +func (r *DescribeSnapshotRollbackResultRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") - delete(f, "RecordId") + delete(f, "TaskId") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSnapshotRollbackResultRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeRecordResponseParams struct { - // 记录信息 - RecordInfo *RecordInfo `json:"RecordInfo,omitempty" name:"RecordInfo"` +type DescribeSnapshotRollbackResultResponseParams struct { + // 快照所属域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 回滚剩余时间(分钟) + LeftMinutes *uint64 `json:"LeftMinutes,omitnil" name:"LeftMinutes"` + + // 回滚进度百分比 + Progress *uint64 `json:"Progress,omitnil" name:"Progress"` + + // 快照 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 回滚状态 + Status *string `json:"Status,omitnil" name:"Status"` + + // 快照回滚任务 ID + TaskId *uint64 `json:"TaskId,omitnil" name:"TaskId"` + + // 成功数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Success *uint64 `json:"Success,omitnil" name:"Success"` + + // 失败数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Failed *uint64 `json:"Failed,omitnil" name:"Failed"` + + // 总数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Total *uint64 `json:"Total,omitnil" name:"Total"` + + // 失败详细信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + FailedRecordList []*SnapshotRecord `json:"FailedRecordList,omitnil" name:"FailedRecordList"` + + // 快照的下载地址 + // 注意:此字段可能返回 null,表示取不到有效值。 + CosUrl *string `json:"CosUrl,omitnil" name:"CosUrl"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeRecordResponse struct { +type DescribeSnapshotRollbackResultResponse struct { *tchttp.BaseResponse - Response *DescribeRecordResponseParams `json:"Response"` + Response *DescribeSnapshotRollbackResultResponseParams `json:"Response"` } -func (r *DescribeRecordResponse) ToJsonString() string { +func (r *DescribeSnapshotRollbackResultResponse) 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 *DescribeRecordResponse) FromJsonString(s string) error { +func (r *DescribeSnapshotRollbackResultResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeRecordTypeRequestParams struct { - // 域名等级。 - // + 旧套餐:D_FREE、D_PLUS、D_EXTRA、D_EXPERT、D_ULTRA 分别对应免费套餐、个人豪华、企业1、企业2、企业3。 - // + 新套餐:DP_FREE、DP_PLUS、DP_EXTRA、DP_EXPERT、DP_ULTRA 分别对应新免费、个人专业版、企业创业版、企业标准版、企业旗舰版。 - DomainGrade *string `json:"DomainGrade,omitempty" name:"DomainGrade"` +type DescribeSnapshotRollbackTaskRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type DescribeRecordTypeRequest struct { +type DescribeSnapshotRollbackTaskRequest struct { *tchttp.BaseRequest - // 域名等级。 - // + 旧套餐:D_FREE、D_PLUS、D_EXTRA、D_EXPERT、D_ULTRA 分别对应免费套餐、个人豪华、企业1、企业2、企业3。 - // + 新套餐:DP_FREE、DP_PLUS、DP_EXTRA、DP_EXPERT、DP_ULTRA 分别对应新免费、个人专业版、企业创业版、企业标准版、企业旗舰版。 - DomainGrade *string `json:"DomainGrade,omitempty" name:"DomainGrade"` + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *DescribeRecordTypeRequest) ToJsonString() string { +func (r *DescribeSnapshotRollbackTaskRequest) 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 *DescribeRecordTypeRequest) FromJsonString(s string) error { +func (r *DescribeSnapshotRollbackTaskRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } - delete(f, "DomainGrade") + delete(f, "Domain") + delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRecordTypeRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeSnapshotRollbackTaskRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type DescribeRecordTypeResponseParams struct { - // 记录类型列表 - TypeList []*string `json:"TypeList,omitempty" name:"TypeList"` +type DescribeSnapshotRollbackTaskResponseParams struct { + // 快照所属域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 回滚状态 + Status *string `json:"Status,omitnil" name:"Status"` + + // 快照回滚任务 ID + TaskId *uint64 `json:"TaskId,omitnil" name:"TaskId"` + + // 总数量 + RecordCount *uint64 `json:"RecordCount,omitnil" name:"RecordCount"` + + // 开始回滚时间 + CreatedOn *string `json:"CreatedOn,omitnil" name:"CreatedOn"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type DescribeRecordTypeResponse struct { +type DescribeSnapshotRollbackTaskResponse struct { *tchttp.BaseResponse - Response *DescribeRecordTypeResponseParams `json:"Response"` + Response *DescribeSnapshotRollbackTaskResponseParams `json:"Response"` } -func (r *DescribeRecordTypeResponse) ToJsonString() string { +func (r *DescribeSnapshotRollbackTaskResponse) 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 *DescribeRecordTypeResponse) FromJsonString(s string) error { +func (r *DescribeSnapshotRollbackTaskResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user type DescribeSubdomainAnalyticsRequestParams struct { // 要查询解析量的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 查询的开始时间,格式:YYYY-MM-DD - StartDate *string `json:"StartDate,omitempty" name:"StartDate"` + StartDate *string `json:"StartDate,omitnil" name:"StartDate"` // 查询的结束时间,格式:YYYY-MM-DD - EndDate *string `json:"EndDate,omitempty" name:"EndDate"` + EndDate *string `json:"EndDate,omitnil" name:"EndDate"` // 要查询解析量的子域名 - Subdomain *string `json:"Subdomain,omitempty" name:"Subdomain"` + Subdomain *string `json:"Subdomain,omitnil" name:"Subdomain"` // DATE:按天维度统计 HOUR:按小时维度统计 - DnsFormat *string `json:"DnsFormat,omitempty" name:"DnsFormat"` + DnsFormat *string `json:"DnsFormat,omitnil" name:"DnsFormat"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } type DescribeSubdomainAnalyticsRequest struct { *tchttp.BaseRequest // 要查询解析量的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 查询的开始时间,格式:YYYY-MM-DD - StartDate *string `json:"StartDate,omitempty" name:"StartDate"` + StartDate *string `json:"StartDate,omitnil" name:"StartDate"` // 查询的结束时间,格式:YYYY-MM-DD - EndDate *string `json:"EndDate,omitempty" name:"EndDate"` + EndDate *string `json:"EndDate,omitnil" name:"EndDate"` // 要查询解析量的子域名 - Subdomain *string `json:"Subdomain,omitempty" name:"Subdomain"` + Subdomain *string `json:"Subdomain,omitnil" name:"Subdomain"` // DATE:按天维度统计 HOUR:按小时维度统计 - DnsFormat *string `json:"DnsFormat,omitempty" name:"DnsFormat"` + DnsFormat *string `json:"DnsFormat,omitnil" name:"DnsFormat"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } func (r *DescribeSubdomainAnalyticsRequest) ToJsonString() string { @@ -2211,16 +4022,16 @@ func (r *DescribeSubdomainAnalyticsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeSubdomainAnalyticsResponseParams struct { // 当前统计维度解析量小计 - Data []*DomainAnalyticsDetail `json:"Data,omitempty" name:"Data"` + Data []*DomainAnalyticsDetail `json:"Data,omitnil" name:"Data"` // 子域名解析量统计查询信息 - Info *SubdomainAnalyticsInfo `json:"Info,omitempty" name:"Info"` + Info *SubdomainAnalyticsInfo `json:"Info,omitnil" name:"Info"` // 子域名别名解析量统计信息 - AliasData []*SubdomainAliasAnalyticsItem `json:"AliasData,omitempty" name:"AliasData"` + AliasData []*SubdomainAliasAnalyticsItem `json:"AliasData,omitnil" name:"AliasData"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeSubdomainAnalyticsResponse struct { @@ -2270,11 +4081,11 @@ func (r *DescribeUserDetailRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeUserDetailResponseParams struct { - // 帐户信息 - UserInfo *UserInfo `json:"UserInfo,omitempty" name:"UserInfo"` + // 账户信息 + UserInfo *UserInfo `json:"UserInfo,omitnil" name:"UserInfo"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeUserDetailResponse struct { @@ -2293,326 +4104,505 @@ func (r *DescribeUserDetailResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +// Predefined struct for user +type DescribeVASStatisticRequestParams struct { + // 域名ID + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DescribeVASStatisticRequest struct { + *tchttp.BaseRequest + + // 域名ID + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DescribeVASStatisticRequest) 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 *DescribeVASStatisticRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeVASStatisticRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DescribeVASStatisticResponseParams struct { + // 增值服务用量列表 + VASList []*VASStatisticItem `json:"VASList,omitnil" name:"VASList"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DescribeVASStatisticResponse struct { + *tchttp.BaseResponse + Response *DescribeVASStatisticResponseParams `json:"Response"` +} + +func (r *DescribeVASStatisticResponse) 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 *DescribeVASStatisticResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + type DomainAliasAnalyticsItem struct { // 域名解析量统计查询信息 - Info *DomainAnalyticsInfo `json:"Info,omitempty" name:"Info"` + Info *DomainAnalyticsInfo `json:"Info,omitnil" name:"Info"` // 当前统计维度解析量小计 - Data []*DomainAnalyticsDetail `json:"Data,omitempty" name:"Data"` + Data []*DomainAnalyticsDetail `json:"Data,omitnil" name:"Data"` } type DomainAliasInfo struct { // 域名别名ID - Id *int64 `json:"Id,omitempty" name:"Id"` + Id *int64 `json:"Id,omitnil" name:"Id"` // 域名别名 - DomainAlias *string `json:"DomainAlias,omitempty" name:"DomainAlias"` + DomainAlias *string `json:"DomainAlias,omitnil" name:"DomainAlias"` + + // 别名状态:1-DNS不正确;2-正常;3-封禁。 + Status *uint64 `json:"Status,omitnil" name:"Status"` } type DomainAnalyticsDetail struct { // 当前统计维度解析量小计 - Num *uint64 `json:"Num,omitempty" name:"Num"` + Num *uint64 `json:"Num,omitnil" name:"Num"` // 按天统计时,为统计日期 - DateKey *string `json:"DateKey,omitempty" name:"DateKey"` + DateKey *string `json:"DateKey,omitnil" name:"DateKey"` // 按小时统计时,为统计的当前时间的小时数(0-23),例:HourKey为23时,统计周期为22点-23点的解析量 // 注意:此字段可能返回 null,表示取不到有效值。 - HourKey *uint64 `json:"HourKey,omitempty" name:"HourKey"` + HourKey *uint64 `json:"HourKey,omitnil" name:"HourKey"` } type DomainAnalyticsInfo struct { // DATE:按天维度统计 HOUR:按小时维度统计 - DnsFormat *string `json:"DnsFormat,omitempty" name:"DnsFormat"` + DnsFormat *string `json:"DnsFormat,omitnil" name:"DnsFormat"` // 当前统计周期解析量总计 - DnsTotal *uint64 `json:"DnsTotal,omitempty" name:"DnsTotal"` + DnsTotal *uint64 `json:"DnsTotal,omitnil" name:"DnsTotal"` // 当前查询的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 当前统计周期开始时间 - StartDate *string `json:"StartDate,omitempty" name:"StartDate"` + StartDate *string `json:"StartDate,omitnil" name:"StartDate"` // 当前统计周期结束时间 - EndDate *string `json:"EndDate,omitempty" name:"EndDate"` + EndDate *string `json:"EndDate,omitnil" name:"EndDate"` } type DomainCountInfo struct { // 符合条件的域名数量 - DomainTotal *uint64 `json:"DomainTotal,omitempty" name:"DomainTotal"` + DomainTotal *uint64 `json:"DomainTotal,omitnil" name:"DomainTotal"` // 用户可以查看的所有域名数量 - AllTotal *uint64 `json:"AllTotal,omitempty" name:"AllTotal"` + AllTotal *uint64 `json:"AllTotal,omitnil" name:"AllTotal"` // 用户账号添加的域名数量 - MineTotal *uint64 `json:"MineTotal,omitempty" name:"MineTotal"` + MineTotal *uint64 `json:"MineTotal,omitnil" name:"MineTotal"` // 共享给用户的域名数量 - ShareTotal *uint64 `json:"ShareTotal,omitempty" name:"ShareTotal"` + ShareTotal *uint64 `json:"ShareTotal,omitnil" name:"ShareTotal"` // 付费域名数量 - VipTotal *uint64 `json:"VipTotal,omitempty" name:"VipTotal"` + VipTotal *uint64 `json:"VipTotal,omitnil" name:"VipTotal"` // 暂停的域名数量 - PauseTotal *uint64 `json:"PauseTotal,omitempty" name:"PauseTotal"` + PauseTotal *uint64 `json:"PauseTotal,omitnil" name:"PauseTotal"` // dns设置错误的域名数量 - ErrorTotal *uint64 `json:"ErrorTotal,omitempty" name:"ErrorTotal"` + ErrorTotal *uint64 `json:"ErrorTotal,omitnil" name:"ErrorTotal"` // 锁定的域名数量 - LockTotal *uint64 `json:"LockTotal,omitempty" name:"LockTotal"` + LockTotal *uint64 `json:"LockTotal,omitnil" name:"LockTotal"` // 封禁的域名数量 - SpamTotal *uint64 `json:"SpamTotal,omitempty" name:"SpamTotal"` + SpamTotal *uint64 `json:"SpamTotal,omitnil" name:"SpamTotal"` // 30天内即将到期的域名数量 - VipExpire *uint64 `json:"VipExpire,omitempty" name:"VipExpire"` + VipExpire *uint64 `json:"VipExpire,omitnil" name:"VipExpire"` // 分享给其它人的域名数量 - ShareOutTotal *uint64 `json:"ShareOutTotal,omitempty" name:"ShareOutTotal"` + ShareOutTotal *uint64 `json:"ShareOutTotal,omitnil" name:"ShareOutTotal"` // 指定分组内的域名数量 - GroupTotal *uint64 `json:"GroupTotal,omitempty" name:"GroupTotal"` + GroupTotal *uint64 `json:"GroupTotal,omitnil" name:"GroupTotal"` } type DomainCreateInfo struct { // 域名ID - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名的punycode - Punycode *string `json:"Punycode,omitempty" name:"Punycode"` + Punycode *string `json:"Punycode,omitnil" name:"Punycode"` // 域名的NS列表 - GradeNsList []*string `json:"GradeNsList,omitempty" name:"GradeNsList"` + GradeNsList []*string `json:"GradeNsList,omitnil" name:"GradeNsList"` } type DomainInfo struct { // 域名ID - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 域名状态 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 域名套餐等级 - Grade *string `json:"Grade,omitempty" name:"Grade"` + Grade *string `json:"Grade,omitnil" name:"Grade"` // 域名分组ID - GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` // 是否星标域名 - IsMark *string `json:"IsMark,omitempty" name:"IsMark"` + IsMark *string `json:"IsMark,omitnil" name:"IsMark"` // TTL(DNS记录缓存时间) - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // cname加速启用状态 - CnameSpeedup *string `json:"CnameSpeedup,omitempty" name:"CnameSpeedup"` + CnameSpeedup *string `json:"CnameSpeedup,omitnil" name:"CnameSpeedup"` // 域名备注 // 注意:此字段可能返回 null,表示取不到有效值。 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` // 域名Punycode - Punycode *string `json:"Punycode,omitempty" name:"Punycode"` + Punycode *string `json:"Punycode,omitnil" name:"Punycode"` // 域名DNS状态 - DnsStatus *string `json:"DnsStatus,omitempty" name:"DnsStatus"` + DnsStatus *string `json:"DnsStatus,omitnil" name:"DnsStatus"` // 域名的NS列表 - DnspodNsList []*string `json:"DnspodNsList,omitempty" name:"DnspodNsList"` + DnspodNsList []*string `json:"DnspodNsList,omitnil" name:"DnspodNsList"` // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名等级代号 - GradeLevel *uint64 `json:"GradeLevel,omitempty" name:"GradeLevel"` + GradeLevel *uint64 `json:"GradeLevel,omitnil" name:"GradeLevel"` // 域名所属的用户ID - UserId *uint64 `json:"UserId,omitempty" name:"UserId"` + UserId *uint64 `json:"UserId,omitnil" name:"UserId"` // 是否为付费域名 - IsVip *string `json:"IsVip,omitempty" name:"IsVip"` + IsVip *string `json:"IsVip,omitnil" name:"IsVip"` // 域名所有者的账号 - Owner *string `json:"Owner,omitempty" name:"Owner"` + Owner *string `json:"Owner,omitnil" name:"Owner"` // 域名等级的描述 - GradeTitle *string `json:"GradeTitle,omitempty" name:"GradeTitle"` + GradeTitle *string `json:"GradeTitle,omitnil" name:"GradeTitle"` // 域名创建时间 - CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"` + CreatedOn *string `json:"CreatedOn,omitnil" name:"CreatedOn"` // 最后操作时间 - UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"` + UpdatedOn *string `json:"UpdatedOn,omitnil" name:"UpdatedOn"` // 腾讯云账户Uin - Uin *string `json:"Uin,omitempty" name:"Uin"` + Uin *string `json:"Uin,omitnil" name:"Uin"` // 域名实际使用的NS列表 // 注意:此字段可能返回 null,表示取不到有效值。 - ActualNsList []*string `json:"ActualNsList,omitempty" name:"ActualNsList"` + ActualNsList []*string `json:"ActualNsList,omitnil" name:"ActualNsList"` // 域名的记录数量 - RecordCount *uint64 `json:"RecordCount,omitempty" name:"RecordCount"` + RecordCount *uint64 `json:"RecordCount,omitnil" name:"RecordCount"` // 域名所有者的账户昵称 // 注意:此字段可能返回 null,表示取不到有效值。 - OwnerNick *string `json:"OwnerNick,omitempty" name:"OwnerNick"` + OwnerNick *string `json:"OwnerNick,omitnil" name:"OwnerNick"` + + // 是否在付费套餐宽限期 + // 注意:此字段可能返回 null,表示取不到有效值。 + IsGracePeriod *string `json:"IsGracePeriod,omitnil" name:"IsGracePeriod"` + + // 是否在付费套餐缓冲期 + // 注意:此字段可能返回 null,表示取不到有效值。 + VipBuffered *string `json:"VipBuffered,omitnil" name:"VipBuffered"` + + // VIP套餐有效期开始时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + VipStartAt *string `json:"VipStartAt,omitnil" name:"VipStartAt"` + + // VIP套餐有效期结束时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + VipEndAt *string `json:"VipEndAt,omitnil" name:"VipEndAt"` + + // VIP套餐自动续费标识。可能的值为:default-默认;no-不自动续费;yes-自动续费 + // 注意:此字段可能返回 null,表示取不到有效值。 + VipAutoRenew *string `json:"VipAutoRenew,omitnil" name:"VipAutoRenew"` + + // VIP套餐资源ID + // 注意:此字段可能返回 null,表示取不到有效值。 + VipResourceId *string `json:"VipResourceId,omitnil" name:"VipResourceId"` + + // 是否是子域名。 + // 注意:此字段可能返回 null,表示取不到有效值。 + IsSubDomain *bool `json:"IsSubDomain,omitnil" name:"IsSubDomain"` + + // 域名关联的标签列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + TagList []*TagItem `json:"TagList,omitnil" name:"TagList"` + + // 是否启用搜索引擎推送 + SearchEnginePush *string `json:"SearchEnginePush,omitnil" name:"SearchEnginePush"` } type DomainListItem struct { // 系统分配给域名的唯一标识 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 域名的原始格式 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 域名的状态,正常:ENABLE,暂停:PAUSE,封禁:SPAM - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 域名默认的解析记录默认TTL值 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 是否开启CNAME加速,开启:ENABLE,未开启:DISABLE - CNAMESpeedup *string `json:"CNAMESpeedup,omitempty" name:"CNAMESpeedup"` + CNAMESpeedup *string `json:"CNAMESpeedup,omitnil" name:"CNAMESpeedup"` // DNS 设置状态,错误:DNSERROR,正常:空字符串 - DNSStatus *string `json:"DNSStatus,omitempty" name:"DNSStatus"` + DNSStatus *string `json:"DNSStatus,omitnil" name:"DNSStatus"` // 域名的套餐等级代码 - Grade *string `json:"Grade,omitempty" name:"Grade"` + Grade *string `json:"Grade,omitnil" name:"Grade"` // 域名所属的分组Id - GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"` + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` // 是否开启搜索引擎推送优化,是:YES,否:NO - SearchEnginePush *string `json:"SearchEnginePush,omitempty" name:"SearchEnginePush"` + SearchEnginePush *string `json:"SearchEnginePush,omitnil" name:"SearchEnginePush"` // 域名备注说明 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` // 经过punycode编码后的域名格式 - Punycode *string `json:"Punycode,omitempty" name:"Punycode"` + Punycode *string `json:"Punycode,omitnil" name:"Punycode"` // 系统为域名分配的有效DNS - EffectiveDNS []*string `json:"EffectiveDNS,omitempty" name:"EffectiveDNS"` + EffectiveDNS []*string `json:"EffectiveDNS,omitnil" name:"EffectiveDNS"` // 域名套餐等级对应的序号 - GradeLevel *uint64 `json:"GradeLevel,omitempty" name:"GradeLevel"` + GradeLevel *uint64 `json:"GradeLevel,omitnil" name:"GradeLevel"` // 套餐名称 - GradeTitle *string `json:"GradeTitle,omitempty" name:"GradeTitle"` + GradeTitle *string `json:"GradeTitle,omitnil" name:"GradeTitle"` // 是否是付费套餐 - IsVip *string `json:"IsVip,omitempty" name:"IsVip"` + IsVip *string `json:"IsVip,omitnil" name:"IsVip"` // 付费套餐开通时间 - VipStartAt *string `json:"VipStartAt,omitempty" name:"VipStartAt"` + VipStartAt *string `json:"VipStartAt,omitnil" name:"VipStartAt"` // 付费套餐到期时间 - VipEndAt *string `json:"VipEndAt,omitempty" name:"VipEndAt"` + VipEndAt *string `json:"VipEndAt,omitnil" name:"VipEndAt"` // 域名是否开通VIP自动续费,是:YES,否:NO,默认:DEFAULT - VipAutoRenew *string `json:"VipAutoRenew,omitempty" name:"VipAutoRenew"` + VipAutoRenew *string `json:"VipAutoRenew,omitnil" name:"VipAutoRenew"` // 域名下的记录数量 - RecordCount *uint64 `json:"RecordCount,omitempty" name:"RecordCount"` + RecordCount *uint64 `json:"RecordCount,omitnil" name:"RecordCount"` // 域名添加时间 - CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"` + CreatedOn *string `json:"CreatedOn,omitnil" name:"CreatedOn"` // 域名更新时间 - UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"` + UpdatedOn *string `json:"UpdatedOn,omitnil" name:"UpdatedOn"` // 域名所属账号 - Owner *string `json:"Owner,omitempty" name:"Owner"` + Owner *string `json:"Owner,omitnil" name:"Owner"` + + // 域名关联的标签列表 + // 注意:此字段可能返回 null,表示取不到有效值。 + TagList []*TagItem `json:"TagList,omitnil" name:"TagList"` } type DomainShareInfo struct { // 域名共享对象的账号 - ShareTo *string `json:"ShareTo,omitempty" name:"ShareTo"` + ShareTo *string `json:"ShareTo,omitnil" name:"ShareTo"` // 共享模式,“rw”:可读写。 “r”::只读 - Mode *string `json:"Mode,omitempty" name:"Mode"` + Mode *string `json:"Mode,omitnil" name:"Mode"` // 共享状态“enabled”:共享成功。“pending”:共享到的账号不存在, 等待注册 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` +} + +// Predefined struct for user +type DownloadSnapshotRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type DownloadSnapshotRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *DownloadSnapshotRequest) 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 *DownloadSnapshotRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "SnapshotId") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DownloadSnapshotRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type DownloadSnapshotResponseParams struct { + // 快照下载链接 + CosUrl *string `json:"CosUrl,omitnil" name:"CosUrl"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type DownloadSnapshotResponse struct { + *tchttp.BaseResponse + Response *DownloadSnapshotResponseParams `json:"Response"` +} + +func (r *DownloadSnapshotResponse) 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 *DownloadSnapshotResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) } type GroupInfo struct { // 分组ID - GroupId *int64 `json:"GroupId,omitempty" name:"GroupId"` + GroupId *int64 `json:"GroupId,omitnil" name:"GroupId"` // 分组名称 - GroupName *string `json:"GroupName,omitempty" name:"GroupName"` + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` // 分组类型 - GroupType *string `json:"GroupType,omitempty" name:"GroupType"` + GroupType *string `json:"GroupType,omitnil" name:"GroupType"` // 该分组中域名个数 - Size *int64 `json:"Size,omitempty" name:"Size"` + Size *int64 `json:"Size,omitnil" name:"Size"` +} + +type KeyValue struct { + // 键 + Key *string `json:"Key,omitnil" name:"Key"` + + // 值 + // 注意:此字段可能返回 null,表示取不到有效值。 + Value *string `json:"Value,omitnil" name:"Value"` } type LineGroupInfo struct { // 线路分组ID - LineId *string `json:"LineId,omitempty" name:"LineId"` + LineId *string `json:"LineId,omitnil" name:"LineId"` // 线路分组名称 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 分组类型 - Type *string `json:"Type,omitempty" name:"Type"` + Type *string `json:"Type,omitnil" name:"Type"` // 线路分组包含的线路列表 - LineList []*string `json:"LineList,omitempty" name:"LineList"` + LineList []*string `json:"LineList,omitnil" name:"LineList"` } type LineInfo struct { // 线路名称 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 线路ID - LineId *string `json:"LineId,omitempty" name:"LineId"` + LineId *string `json:"LineId,omitnil" name:"LineId"` } type LockInfo struct { // 域名 ID - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 域名解锁码 - LockCode *string `json:"LockCode,omitempty" name:"LockCode"` + LockCode *string `json:"LockCode,omitnil" name:"LockCode"` // 域名自动解锁日期 - LockEnd *string `json:"LockEnd,omitempty" name:"LockEnd"` + LockEnd *string `json:"LockEnd,omitnil" name:"LockEnd"` } // Predefined struct for user type ModifyDomainLockRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名要锁定的天数,最多可锁定的天数可以通过获取域名权限接口获取。 - LockDays *uint64 `json:"LockDays,omitempty" name:"LockDays"` + LockDays *uint64 `json:"LockDays,omitnil" name:"LockDays"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } type ModifyDomainLockRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名要锁定的天数,最多可锁定的天数可以通过获取域名权限接口获取。 - LockDays *uint64 `json:"LockDays,omitempty" name:"LockDays"` + LockDays *uint64 `json:"LockDays,omitnil" name:"LockDays"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } func (r *ModifyDomainLockRequest) ToJsonString() string { @@ -2639,10 +4629,10 @@ func (r *ModifyDomainLockRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainLockResponseParams struct { // 域名锁定信息 - LockInfo *LockInfo `json:"LockInfo,omitempty" name:"LockInfo"` + LockInfo *LockInfo `json:"LockInfo,omitnil" name:"LockInfo"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyDomainLockResponse struct { @@ -2664,26 +4654,26 @@ func (r *ModifyDomainLockResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainOwnerRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名需要转入的账号,支持Uin或者邮箱格式 - Account *string `json:"Account,omitempty" name:"Account"` + Account *string `json:"Account,omitnil" name:"Account"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } type ModifyDomainOwnerRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名需要转入的账号,支持Uin或者邮箱格式 - Account *string `json:"Account,omitempty" name:"Account"` + Account *string `json:"Account,omitnil" name:"Account"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } func (r *ModifyDomainOwnerRequest) ToJsonString() string { @@ -2710,7 +4700,7 @@ func (r *ModifyDomainOwnerRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainOwnerResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyDomainOwnerResponse struct { @@ -2732,26 +4722,26 @@ func (r *ModifyDomainOwnerResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainRemarkRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 域名备注,删除备注请提交空内容。 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` } type ModifyDomainRemarkRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 域名备注,删除备注请提交空内容。 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` } func (r *ModifyDomainRemarkRequest) ToJsonString() string { @@ -2778,7 +4768,7 @@ func (r *ModifyDomainRemarkRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainRemarkResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyDomainRemarkResponse struct { @@ -2800,26 +4790,26 @@ func (r *ModifyDomainRemarkResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainStatusRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名状态,”enable” 、”disable” 分别代表启用和暂停 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } type ModifyDomainStatusRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名状态,”enable” 、”disable” 分别代表启用和暂停 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } func (r *ModifyDomainStatusRequest) ToJsonString() string { @@ -2846,7 +4836,7 @@ func (r *ModifyDomainStatusRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainStatusResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyDomainStatusResponse struct { @@ -2868,26 +4858,26 @@ func (r *ModifyDomainStatusResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainUnlockRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名解锁码,锁定的时候会返回。 - LockCode *string `json:"LockCode,omitempty" name:"LockCode"` + LockCode *string `json:"LockCode,omitnil" name:"LockCode"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } type ModifyDomainUnlockRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名解锁码,锁定的时候会返回。 - LockCode *string `json:"LockCode,omitempty" name:"LockCode"` + LockCode *string `json:"LockCode,omitnil" name:"LockCode"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } func (r *ModifyDomainUnlockRequest) ToJsonString() string { @@ -2914,7 +4904,7 @@ func (r *ModifyDomainUnlockRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyDomainUnlockResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyDomainUnlockResponse struct { @@ -2936,56 +4926,56 @@ func (r *ModifyDomainUnlockResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyDynamicDNSRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录ID。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 记录ID。 可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` // 记录线路,通过 API 记录线路获得,中文,比如:默认。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值,如 IP : 200.200.200.200, CNAME : cname.dnspod.com., MX : mail.dnspod.com.。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 主机记录,如 www,如果不传,默认为 @。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 线路的 ID,通过 API 记录线路获得,英文字符串,比如:10=1。参数RecordLineId优先级高于RecordLine,如果同时传递二者,优先使用RecordLineId参数。 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` // TTL值,如果不传,默认为域名的TTL值。 - Ttl *uint64 `json:"Ttl,omitempty" name:"Ttl"` + Ttl *uint64 `json:"Ttl,omitnil" name:"Ttl"` } type ModifyDynamicDNSRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录ID。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 记录ID。 可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` // 记录线路,通过 API 记录线路获得,中文,比如:默认。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值,如 IP : 200.200.200.200, CNAME : cname.dnspod.com., MX : mail.dnspod.com.。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 主机记录,如 www,如果不传,默认为 @。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 线路的 ID,通过 API 记录线路获得,英文字符串,比如:10=1。参数RecordLineId优先级高于RecordLine,如果同时传递二者,优先使用RecordLineId参数。 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` // TTL值,如果不传,默认为域名的TTL值。 - Ttl *uint64 `json:"Ttl,omitempty" name:"Ttl"` + Ttl *uint64 `json:"Ttl,omitnil" name:"Ttl"` } func (r *ModifyDynamicDNSRequest) ToJsonString() string { @@ -3017,10 +5007,10 @@ func (r *ModifyDynamicDNSRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyDynamicDNSResponseParams struct { // 记录ID - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyDynamicDNSResponse struct { @@ -3041,21 +5031,21 @@ func (r *ModifyDynamicDNSResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyPackageAutoRenewRequestParams struct { - // 资源ID - ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + // 资源ID。可以在控制台查看所有的资源 + ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // enable 开启自动续费;disable 关闭自动续费 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` } type ModifyPackageAutoRenewRequest struct { *tchttp.BaseRequest - // 资源ID - ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + // 资源ID。可以在控制台查看所有的资源 + ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // enable 开启自动续费;disable 关闭自动续费 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` } func (r *ModifyPackageAutoRenewRequest) ToJsonString() string { @@ -3081,7 +5071,7 @@ func (r *ModifyPackageAutoRenewRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyPackageAutoRenewResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyPackageAutoRenewResponse struct { @@ -3103,71 +5093,71 @@ func (r *ModifyPackageAutoRenewResponse) FromJsonString(s string) error { type ModifyRecordBatchDetail struct { // 见RecordInfoBatchModify // 注意:此字段可能返回 null,表示取不到有效值。 - RecordList []*BatchRecordInfo `json:"RecordList,omitempty" name:"RecordList"` + RecordList []*BatchRecordInfo `json:"RecordList,omitnil" name:"RecordList"` // 任务编号 - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` // 域名 // 注意:此字段可能返回 null,表示取不到有效值。 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 域名等级 // 注意:此字段可能返回 null,表示取不到有效值。 - DomainGrade *string `json:"DomainGrade,omitempty" name:"DomainGrade"` + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` // 错误信息 // 注意:此字段可能返回 null,表示取不到有效值。 - ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` + ErrMsg *string `json:"ErrMsg,omitnil" name:"ErrMsg"` // 该条任务运行状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 操作类型 // 注意:此字段可能返回 null,表示取不到有效值。 - Operation *string `json:"Operation,omitempty" name:"Operation"` + Operation *string `json:"Operation,omitnil" name:"Operation"` // 域名ID // 注意:此字段可能返回 null,表示取不到有效值。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } // Predefined struct for user type ModifyRecordBatchRequestParams struct { - // 记录ID数组 - RecordIdList []*uint64 `json:"RecordIdList,omitempty" name:"RecordIdList"` + // 记录ID数组。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordIdList []*uint64 `json:"RecordIdList,omitnil" name:"RecordIdList"` // 要修改的字段,可选值为 [“sub_domain”、”record_type”、”area”、”value”、”mx”、”ttl”、”status”] 中的某一个。 - Change *string `json:"Change,omitempty" name:"Change"` + Change *string `json:"Change,omitnil" name:"Change"` // 修改为,具体依赖 change 字段,必填参数。 - ChangeTo *string `json:"ChangeTo,omitempty" name:"ChangeTo"` + ChangeTo *string `json:"ChangeTo,omitnil" name:"ChangeTo"` // 要修改到的记录值,仅当 change 字段为 “record_type” 时为必填参数。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // MX记录优先级,仅当修改为 MX 记录时为必填参数。 - MX *string `json:"MX,omitempty" name:"MX"` + MX *string `json:"MX,omitnil" name:"MX"` } type ModifyRecordBatchRequest struct { *tchttp.BaseRequest - // 记录ID数组 - RecordIdList []*uint64 `json:"RecordIdList,omitempty" name:"RecordIdList"` + // 记录ID数组。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordIdList []*uint64 `json:"RecordIdList,omitnil" name:"RecordIdList"` // 要修改的字段,可选值为 [“sub_domain”、”record_type”、”area”、”value”、”mx”、”ttl”、”status”] 中的某一个。 - Change *string `json:"Change,omitempty" name:"Change"` + Change *string `json:"Change,omitnil" name:"Change"` // 修改为,具体依赖 change 字段,必填参数。 - ChangeTo *string `json:"ChangeTo,omitempty" name:"ChangeTo"` + ChangeTo *string `json:"ChangeTo,omitnil" name:"ChangeTo"` // 要修改到的记录值,仅当 change 字段为 “record_type” 时为必填参数。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // MX记录优先级,仅当修改为 MX 记录时为必填参数。 - MX *string `json:"MX,omitempty" name:"MX"` + MX *string `json:"MX,omitnil" name:"MX"` } func (r *ModifyRecordBatchRequest) ToJsonString() string { @@ -3196,13 +5186,13 @@ func (r *ModifyRecordBatchRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyRecordBatchResponseParams struct { // 批量任务ID - JobId *uint64 `json:"JobId,omitempty" name:"JobId"` + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` // 见modifyRecordBatchDetail - DetailList []*ModifyRecordBatchDetail `json:"DetailList,omitempty" name:"DetailList"` + DetailList []*ModifyRecordBatchDetail `json:"DetailList,omitnil" name:"DetailList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyRecordBatchResponse struct { @@ -3222,34 +5212,190 @@ func (r *ModifyRecordBatchResponse) FromJsonString(s string) error { } // Predefined struct for user -type ModifyRecordRemarkRequestParams struct { +type ModifyRecordFieldsRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 记录 ID 。 + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 要修改的记录属性和值,支持:sub_domain,record_line,record_line_id,record_type,value,ttl,status,mx,weight + FieldList []*KeyValue `json:"FieldList,omitnil" name:"FieldList"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type ModifyRecordFieldsRequest struct { + *tchttp.BaseRequest + // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 记录 ID 。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 要修改的记录属性和值,支持:sub_domain,record_line,record_line_id,record_type,value,ttl,status,mx,weight + FieldList []*KeyValue `json:"FieldList,omitnil" name:"FieldList"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *ModifyRecordFieldsRequest) 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 *ModifyRecordFieldsRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "RecordId") + delete(f, "FieldList") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRecordFieldsRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyRecordFieldsResponseParams struct { + // 记录ID + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type ModifyRecordFieldsResponse struct { + *tchttp.BaseResponse + Response *ModifyRecordFieldsResponseParams `json:"Response"` +} + +func (r *ModifyRecordFieldsResponse) 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 *ModifyRecordFieldsResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyRecordGroupRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 分组名称 + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` + + // 要修改的分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type ModifyRecordGroupRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 分组名称 + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` + + // 要修改的分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *ModifyRecordGroupRequest) 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 *ModifyRecordGroupRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "GroupName") + delete(f, "GroupId") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRecordGroupRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyRecordGroupResponseParams struct { + // 修改的分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type ModifyRecordGroupResponse struct { + *tchttp.BaseResponse + Response *ModifyRecordGroupResponseParams `json:"Response"` +} + +func (r *ModifyRecordGroupResponse) 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 *ModifyRecordGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyRecordRemarkRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 解析记录备注,删除备注请提交空内容。 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` } type ModifyRecordRemarkRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录 ID 。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 解析记录备注,删除备注请提交空内容。 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` } func (r *ModifyRecordRemarkRequest) ToJsonString() string { @@ -3277,7 +5423,7 @@ func (r *ModifyRecordRemarkRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyRecordRemarkResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyRecordRemarkResponse struct { @@ -3299,80 +5445,80 @@ func (r *ModifyRecordRemarkResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyRecordRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 记录类型,通过 API 记录类型获得,大写英文,比如:A 。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 记录线路,通过 API 记录线路获得,中文,比如:默认。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值,如 IP : 200.200.200.200, CNAME : cname.dnspod.com., MX : mail.dnspod.com.。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` - // 记录 ID 。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 主机记录,如 www,如果不传,默认为 @。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 线路的 ID,通过 API 记录线路获得,英文字符串,比如:10=1。参数RecordLineId优先级高于RecordLine,如果同时传递二者,优先使用RecordLineId参数。 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` // MX 优先级,当记录类型是 MX 时有效,范围1-20,MX 记录时必选。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` // TTL,范围1-604800,不同等级域名最小值不同。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 权重信息,0到100的整数。仅企业 VIP 域名可用,0 表示关闭,不传该参数,表示不设置权重信息。 - Weight *uint64 `json:"Weight,omitempty" name:"Weight"` + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` // 记录初始状态,取值范围为 ENABLE 和 DISABLE 。默认为 ENABLE ,如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` } type ModifyRecordRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 记录类型,通过 API 记录类型获得,大写英文,比如:A 。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 记录线路,通过 API 记录线路获得,中文,比如:默认。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 记录值,如 IP : 200.200.200.200, CNAME : cname.dnspod.com., MX : mail.dnspod.com.。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` - // 记录 ID 。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 主机记录,如 www,如果不传,默认为 @。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 线路的 ID,通过 API 记录线路获得,英文字符串,比如:10=1。参数RecordLineId优先级高于RecordLine,如果同时传递二者,优先使用RecordLineId参数。 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` // MX 优先级,当记录类型是 MX 时有效,范围1-20,MX 记录时必选。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` // TTL,范围1-604800,不同等级域名最小值不同。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 权重信息,0到100的整数。仅企业 VIP 域名可用,0 表示关闭,不传该参数,表示不设置权重信息。 - Weight *uint64 `json:"Weight,omitempty" name:"Weight"` + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` // 记录初始状态,取值范围为 ENABLE 和 DISABLE 。默认为 ENABLE ,如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` } func (r *ModifyRecordRequest) ToJsonString() string { @@ -3408,10 +5554,10 @@ func (r *ModifyRecordRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyRecordResponseParams struct { // 记录ID - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyRecordResponse struct { @@ -3433,116 +5579,259 @@ func (r *ModifyRecordResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyRecordStatusRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录 ID 。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 记录的状态。取值范围为 ENABLE 和 DISABLE。如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。 + Status *string `json:"Status,omitnil" name:"Status"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type ModifyRecordStatusRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 记录 ID 。可以通过接口DescribeRecordList查到所有的解析记录列表以及对应的RecordId + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 记录的状态。取值范围为 ENABLE 和 DISABLE。如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。 + Status *string `json:"Status,omitnil" name:"Status"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *ModifyRecordStatusRequest) 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 *ModifyRecordStatusRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "RecordId") + delete(f, "Status") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRecordStatusRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyRecordStatusResponseParams struct { + // 记录ID。 + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type ModifyRecordStatusResponse struct { + *tchttp.BaseResponse + Response *ModifyRecordStatusResponseParams `json:"Response"` +} + +func (r *ModifyRecordStatusResponse) 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 *ModifyRecordStatusResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyRecordToGroupRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 记录 ID,多个 ID 用竖线“|”分割 + RecordId *string `json:"RecordId,omitnil" name:"RecordId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type ModifyRecordToGroupRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 记录 ID,多个 ID 用竖线“|”分割 + RecordId *string `json:"RecordId,omitnil" name:"RecordId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *ModifyRecordToGroupRequest) 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 *ModifyRecordToGroupRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "GroupId") + delete(f, "RecordId") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRecordToGroupRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifyRecordToGroupResponseParams struct { + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type ModifyRecordToGroupResponse struct { + *tchttp.BaseResponse + Response *ModifyRecordToGroupResponseParams `json:"Response"` +} + +func (r *ModifyRecordToGroupResponse) 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 *ModifyRecordToGroupResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type ModifySnapshotConfigRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录的状态。取值范围为 ENABLE 和 DISABLE。如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。 - Status *string `json:"Status,omitempty" name:"Status"` + // 备件间隔:空字符串-不备份,half_hour-每半小时,hourly-每小时,daily-每天,monthly-每月 + Period *string `json:"Period,omitnil" name:"Period"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -type ModifyRecordStatusRequest struct { +type ModifySnapshotConfigRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` - - // 记录 ID 。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + Domain *string `json:"Domain,omitnil" name:"Domain"` - // 记录的状态。取值范围为 ENABLE 和 DISABLE。如果传入 DISABLE,解析不会生效,也不会验证负载均衡的限制。 - Status *string `json:"Status,omitempty" name:"Status"` + // 备件间隔:空字符串-不备份,half_hour-每半小时,hourly-每小时,daily-每天,monthly-每月 + Period *string `json:"Period,omitnil" name:"Period"` // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } -func (r *ModifyRecordStatusRequest) ToJsonString() string { +func (r *ModifySnapshotConfigRequest) 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 *ModifyRecordStatusRequest) FromJsonString(s string) error { +func (r *ModifySnapshotConfigRequest) FromJsonString(s string) error { f := make(map[string]interface{}) if err := json.Unmarshal([]byte(s), &f); err != nil { return err } delete(f, "Domain") - delete(f, "RecordId") - delete(f, "Status") + delete(f, "Period") delete(f, "DomainId") if len(f) > 0 { - return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifyRecordStatusRequest has unknown keys!", "") + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "ModifySnapshotConfigRequest has unknown keys!", "") } return json.Unmarshal([]byte(s), &r) } // Predefined struct for user -type ModifyRecordStatusResponseParams struct { - // 记录ID。 - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` - +type ModifySnapshotConfigResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } -type ModifyRecordStatusResponse struct { +type ModifySnapshotConfigResponse struct { *tchttp.BaseResponse - Response *ModifyRecordStatusResponseParams `json:"Response"` + Response *ModifySnapshotConfigResponseParams `json:"Response"` } -func (r *ModifyRecordStatusResponse) ToJsonString() string { +func (r *ModifySnapshotConfigResponse) 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 *ModifyRecordStatusResponse) FromJsonString(s string) error { +func (r *ModifySnapshotConfigResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } // Predefined struct for user type ModifySubdomainStatusRequestParams struct { // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 记录类型。允许的值为A、CNAME、MX、TXT、NS、AAAA、SPF、SRV、CAA、URL、URL1。若要传多个,用英文逗号分隔,例如A,TXT,CNAME。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 记录状态。允许的值为disable。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 主机记录,如 www,如果不传,默认为 @。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` } type ModifySubdomainStatusRequest struct { *tchttp.BaseRequest // 域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 记录类型。允许的值为A、CNAME、MX、TXT、NS、AAAA、SPF、SRV、CAA、URL、URL1。若要传多个,用英文逗号分隔,例如A,TXT,CNAME。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 记录状态。允许的值为disable。 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` - // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。可以通过接口DescribeDomainList查到所有的Domain以及DomainId + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` // 主机记录,如 www,如果不传,默认为 @。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` } func (r *ModifySubdomainStatusRequest) ToJsonString() string { @@ -3571,7 +5860,7 @@ func (r *ModifySubdomainStatusRequest) FromJsonString(s string) error { // Predefined struct for user type ModifySubdomainStatusResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifySubdomainStatusResponse struct { @@ -3592,21 +5881,21 @@ func (r *ModifySubdomainStatusResponse) FromJsonString(s string) error { // Predefined struct for user type ModifyVasAutoRenewStatusRequestParams struct { - // 资源ID - ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + // 资源ID。可以从控制台查看所有的资源 + ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // enable 开启自动续费;disable 关闭自动续费 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` } type ModifyVasAutoRenewStatusRequest struct { *tchttp.BaseRequest - // 资源ID - ResourceId *string `json:"ResourceId,omitempty" name:"ResourceId"` + // 资源ID。可以从控制台查看所有的资源 + ResourceId *string `json:"ResourceId,omitnil" name:"ResourceId"` // enable 开启自动续费;disable 关闭自动续费 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` } func (r *ModifyVasAutoRenewStatusRequest) ToJsonString() string { @@ -3632,7 +5921,7 @@ func (r *ModifyVasAutoRenewStatusRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyVasAutoRenewStatusResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyVasAutoRenewStatusResponse struct { @@ -3651,23 +5940,58 @@ func (r *ModifyVasAutoRenewStatusResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type PackageDetailItem struct { + // 套餐原价 + RealPrice *uint64 `json:"RealPrice,omitnil" name:"RealPrice"` + + // 可更换域名次数 + ChangedTimes *uint64 `json:"ChangedTimes,omitnil" name:"ChangedTimes"` + + // 允许设置的最小 TTL 值 + MinTtl *uint64 `json:"MinTtl,omitnil" name:"MinTtl"` + + // 负载均衡数量 + RecordRoll *uint64 `json:"RecordRoll,omitnil" name:"RecordRoll"` + + // 子域名级数 + SubDomainLevel *uint64 `json:"SubDomainLevel,omitnil" name:"SubDomainLevel"` + + // 泛解析级数 + MaxWildcard *uint64 `json:"MaxWildcard,omitnil" name:"MaxWildcard"` + + // DNS 服务集群个数 + DnsServerRegion *string `json:"DnsServerRegion,omitnil" name:"DnsServerRegion"` + + // 套餐名称 + DomainGradeCn *string `json:"DomainGradeCn,omitnil" name:"DomainGradeCn"` + + // 套餐代号 + GradeLevel *uint64 `json:"GradeLevel,omitnil" name:"GradeLevel"` + + // 套餐对应的 NS + Ns []*string `json:"Ns,omitnil" name:"Ns"` + + // 套餐代码 + DomainGrade *string `json:"DomainGrade,omitnil" name:"DomainGrade"` +} + // Predefined struct for user type PayOrderWithBalanceRequestParams struct { // 需要支付的大订单号数组 - BigDealIdList []*string `json:"BigDealIdList,omitempty" name:"BigDealIdList"` + BigDealIdList []*string `json:"BigDealIdList,omitnil" name:"BigDealIdList"` - // 代金券ID数组 - VoucherIdList []*string `json:"VoucherIdList,omitempty" name:"VoucherIdList"` + // 代金券ID数组。可以从控制台查到拥有的代金券 + VoucherIdList []*string `json:"VoucherIdList,omitnil" name:"VoucherIdList"` } type PayOrderWithBalanceRequest struct { *tchttp.BaseRequest // 需要支付的大订单号数组 - BigDealIdList []*string `json:"BigDealIdList,omitempty" name:"BigDealIdList"` + BigDealIdList []*string `json:"BigDealIdList,omitnil" name:"BigDealIdList"` - // 代金券ID数组 - VoucherIdList []*string `json:"VoucherIdList,omitempty" name:"VoucherIdList"` + // 代金券ID数组。可以从控制台查到拥有的代金券 + VoucherIdList []*string `json:"VoucherIdList,omitnil" name:"VoucherIdList"` } func (r *PayOrderWithBalanceRequest) ToJsonString() string { @@ -3693,16 +6017,16 @@ func (r *PayOrderWithBalanceRequest) FromJsonString(s string) error { // Predefined struct for user type PayOrderWithBalanceResponseParams struct { // 此次操作支付成功的订单id数组 - DealIdList []*string `json:"DealIdList,omitempty" name:"DealIdList"` + DealIdList []*string `json:"DealIdList,omitnil" name:"DealIdList"` // 此次操作支付成功的大订单号数组 - BigDealIdList []*string `json:"BigDealIdList,omitempty" name:"BigDealIdList"` + BigDealIdList []*string `json:"BigDealIdList,omitnil" name:"BigDealIdList"` // 此次操作支付成功的订单号数组 - DealNameList []*string `json:"DealNameList,omitempty" name:"DealNameList"` + DealNameList []*string `json:"DealNameList,omitnil" name:"DealNameList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type PayOrderWithBalanceResponse struct { @@ -3721,180 +6045,613 @@ func (r *PayOrderWithBalanceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } +type PreviewDetail struct { + // 域名 + Name *string `json:"Name,omitnil" name:"Name"` + + // 域名套餐代码 + Grade *string `json:"Grade,omitnil" name:"Grade"` + + // 域名套餐名称 + GradeTitle *string `json:"GradeTitle,omitnil" name:"GradeTitle"` + + // 域名记录数 + Records *uint64 `json:"Records,omitnil" name:"Records"` + + // 域名停靠状态。0 未开启 1 已开启 2 已暂停 + DomainParkingStatus *uint64 `json:"DomainParkingStatus,omitnil" name:"DomainParkingStatus"` + + // 自定义线路数量 + LineCount *uint64 `json:"LineCount,omitnil" name:"LineCount"` + + // 自定义线路分组数量 + LineGroupCount *uint64 `json:"LineGroupCount,omitnil" name:"LineGroupCount"` + + // 域名别名数量 + AliasCount *uint64 `json:"AliasCount,omitnil" name:"AliasCount"` + + // 允许添加的最大域名别名数量 + MaxAliasCount *uint64 `json:"MaxAliasCount,omitnil" name:"MaxAliasCount"` + + // 昨天的解析量 + ResolveCount *uint64 `json:"ResolveCount,omitnil" name:"ResolveCount"` + + // 增值服务数量 + VASCount *uint64 `json:"VASCount,omitnil" name:"VASCount"` +} + type PurviewInfo struct { // 权限名称 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 权限值 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` } type RecordCountInfo struct { // 子域名数量 - SubdomainCount *uint64 `json:"SubdomainCount,omitempty" name:"SubdomainCount"` + SubdomainCount *uint64 `json:"SubdomainCount,omitnil" name:"SubdomainCount"` // 列表返回的记录数 - ListCount *uint64 `json:"ListCount,omitempty" name:"ListCount"` + ListCount *uint64 `json:"ListCount,omitnil" name:"ListCount"` // 总的记录数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` +} + +type RecordGroupInfo struct { + // 分组 ID + GroupId *uint64 `json:"GroupId,omitnil" name:"GroupId"` + + // 分组名称 + GroupName *string `json:"GroupName,omitnil" name:"GroupName"` + + // 分组类型:system-系统;user-用户 + GroupType *string `json:"GroupType,omitnil" name:"GroupType"` } type RecordInfo struct { // 记录 ID 。 - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` // 子域名(主机记录)。 - SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"` + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` // 记录类型, 详见 DescribeRecordType 接口。 - RecordType *string `json:"RecordType,omitempty" name:"RecordType"` + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` // 解析记录的线路,详见 DescribeRecordLineList 接口。 - RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"` + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` // 解析记录的线路 ID ,详见 DescribeRecordLineList 接口。 - RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"` + RecordLineId *string `json:"RecordLineId,omitnil" name:"RecordLineId"` // 记录值。 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // 记录权重值。 // 注意:此字段可能返回 null,表示取不到有效值。 - Weight *uint64 `json:"Weight,omitempty" name:"Weight"` + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` // 记录的 MX 记录值,非 MX 记录类型,默认为 0。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` // 记录的 TTL 值。 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // 记录状态。0表示禁用,1表示启用。 - Enabled *uint64 `json:"Enabled,omitempty" name:"Enabled"` + Enabled *uint64 `json:"Enabled,omitnil" name:"Enabled"` // 该记录的 D 监控状态。 // "Ok" : 服务器正常。 // "Warn" : 该记录有报警, 服务器返回 4XX。 // "Down" : 服务器宕机。 // "" : 该记录未开启 D 监控。 - MonitorStatus *string `json:"MonitorStatus,omitempty" name:"MonitorStatus"` + MonitorStatus *string `json:"MonitorStatus,omitnil" name:"MonitorStatus"` // 记录的备注。 // 注意:此字段可能返回 null,表示取不到有效值。 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` // 记录最后更新时间。 - UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"` + UpdatedOn *string `json:"UpdatedOn,omitnil" name:"UpdatedOn"` // 域名 ID 。 - DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"` + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` } type RecordListItem struct { // 记录Id - RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"` + RecordId *uint64 `json:"RecordId,omitnil" name:"RecordId"` // 记录值 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` // 记录状态,启用:ENABLE,暂停:DISABLE - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 更新时间 - UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"` + UpdatedOn *string `json:"UpdatedOn,omitnil" name:"UpdatedOn"` // 主机名 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 记录线路 - Line *string `json:"Line,omitempty" name:"Line"` + Line *string `json:"Line,omitnil" name:"Line"` // 线路Id - LineId *string `json:"LineId,omitempty" name:"LineId"` + LineId *string `json:"LineId,omitnil" name:"LineId"` // 记录类型 - Type *string `json:"Type,omitempty" name:"Type"` + Type *string `json:"Type,omitnil" name:"Type"` // 记录权重,用于负载均衡记录 // 注意:此字段可能返回 null,表示取不到有效值。 - Weight *uint64 `json:"Weight,omitempty" name:"Weight"` + Weight *uint64 `json:"Weight,omitnil" name:"Weight"` // 记录监控状态,正常:OK,告警:WARN,宕机:DOWN,未设置监控或监控暂停则为空 - MonitorStatus *string `json:"MonitorStatus,omitempty" name:"MonitorStatus"` + MonitorStatus *string `json:"MonitorStatus,omitnil" name:"MonitorStatus"` // 记录备注说明 - Remark *string `json:"Remark,omitempty" name:"Remark"` + Remark *string `json:"Remark,omitnil" name:"Remark"` // 记录缓存时间 - TTL *uint64 `json:"TTL,omitempty" name:"TTL"` + TTL *uint64 `json:"TTL,omitnil" name:"TTL"` // MX值,只有MX记录有 // 注意:此字段可能返回 null,表示取不到有效值。 - MX *uint64 `json:"MX,omitempty" name:"MX"` + MX *uint64 `json:"MX,omitnil" name:"MX"` + + // 是否是默认的ns记录 + DefaultNS *bool `json:"DefaultNS,omitnil" name:"DefaultNS"` +} + +// Predefined struct for user +type RollbackRecordSnapshotRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 解析记录信息 + RecordList []*SnapshotRecord `json:"RecordList,omitnil" name:"RecordList"` + + // 之前的快照回滚任务 ID + TaskId *uint64 `json:"TaskId,omitnil" name:"TaskId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +type RollbackRecordSnapshotRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 解析记录信息 + RecordList []*SnapshotRecord `json:"RecordList,omitnil" name:"RecordList"` + + // 之前的快照回滚任务 ID + TaskId *uint64 `json:"TaskId,omitnil" name:"TaskId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` +} + +func (r *RollbackRecordSnapshotRequest) 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 *RollbackRecordSnapshotRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "SnapshotId") + delete(f, "RecordList") + delete(f, "TaskId") + delete(f, "DomainId") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RollbackRecordSnapshotRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type RollbackRecordSnapshotResponseParams struct { + // 回滚任务 ID + JobId *uint64 `json:"JobId,omitnil" name:"JobId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type RollbackRecordSnapshotResponse struct { + *tchttp.BaseResponse + Response *RollbackRecordSnapshotResponseParams `json:"Response"` +} + +func (r *RollbackRecordSnapshotResponse) 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 *RollbackRecordSnapshotResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type RollbackSnapshotRequestParams struct { + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 指定需要回滚的记录 + RecordList []*SnapshotRecord `json:"RecordList,omitnil" name:"RecordList"` +} + +type RollbackSnapshotRequest struct { + *tchttp.BaseRequest + + // 域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照记录 ID + SnapshotId *string `json:"SnapshotId,omitnil" name:"SnapshotId"` + + // 域名 ID 。参数 DomainId 优先级比参数 Domain 高,如果传递参数 DomainId 将忽略参数 Domain 。 + DomainId *uint64 `json:"DomainId,omitnil" name:"DomainId"` + + // 指定需要回滚的记录 + RecordList []*SnapshotRecord `json:"RecordList,omitnil" name:"RecordList"` +} + +func (r *RollbackSnapshotRequest) 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 *RollbackSnapshotRequest) FromJsonString(s string) error { + f := make(map[string]interface{}) + if err := json.Unmarshal([]byte(s), &f); err != nil { + return err + } + delete(f, "Domain") + delete(f, "SnapshotId") + delete(f, "DomainId") + delete(f, "RecordList") + if len(f) > 0 { + return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "RollbackSnapshotRequest has unknown keys!", "") + } + return json.Unmarshal([]byte(s), &r) +} + +// Predefined struct for user +type RollbackSnapshotResponseParams struct { + // 回滚任务 ID,用来查询回滚状态 + TaskId *uint64 `json:"TaskId,omitnil" name:"TaskId"` + + // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` +} + +type RollbackSnapshotResponse struct { + *tchttp.BaseResponse + Response *RollbackSnapshotResponseParams `json:"Response"` +} + +func (r *RollbackSnapshotResponse) 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 *RollbackSnapshotResponse) FromJsonString(s string) error { + return json.Unmarshal([]byte(s), &r) +} + +type SnapshotConfig struct { + // 配置类型:空字符串-不备份,half_hour-每半小时,hourly-每小时,daily-每天,monthly-每月 + Config *string `json:"Config,omitnil" name:"Config"` + + // 添加时间 + CreatedOn *string `json:"CreatedOn,omitnil" name:"CreatedOn"` + + // 所属域名 ID + DomainId *string `json:"DomainId,omitnil" name:"DomainId"` + + // 配置 ID + Id *string `json:"Id,omitnil" name:"Id"` + + // 快照数量 + SnapshotCount *uint64 `json:"SnapshotCount,omitnil" name:"SnapshotCount"` + + // 状态:enable-启用,disable-禁用 + Status *string `json:"Status,omitnil" name:"Status"` + + // 更新时间 + UpdatedOn *string `json:"UpdatedOn,omitnil" name:"UpdatedOn"` +} + +type SnapshotInfo struct { + // 快照的对象存储地址 + CosUrl *string `json:"CosUrl,omitnil" name:"CosUrl"` + + // 添加时间 + CreatedOn *string `json:"CreatedOn,omitnil" name:"CreatedOn"` + + // 所属域名 + Domain *string `json:"Domain,omitnil" name:"Domain"` + + // 快照记录 ID + Id *string `json:"Id,omitnil" name:"Id"` + + // 域名解析记录数 + RecordCount *string `json:"RecordCount,omitnil" name:"RecordCount"` + + // 状态:normal-正常,create-备份中 + Status *string `json:"Status,omitnil" name:"Status"` +} + +type SnapshotPageInfo struct { + // 快照总数 + Total *uint64 `json:"Total,omitnil" name:"Total"` +} + +type SnapshotRecord struct { + // 子域名 + SubDomain *string `json:"SubDomain,omitnil" name:"SubDomain"` + + // 记录类型 + RecordType *string `json:"RecordType,omitnil" name:"RecordType"` + + // 解析线路 + RecordLine *string `json:"RecordLine,omitnil" name:"RecordLine"` + + // 解析值 + Value *string `json:"Value,omitnil" name:"Value"` + + // TTL(秒) + TTL *string `json:"TTL,omitnil" name:"TTL"` + + // 解析记录 ID + RecordId *string `json:"RecordId,omitnil" name:"RecordId"` + + // MX优先级 + // 注意:此字段可能返回 null,表示取不到有效值。 + MX *string `json:"MX,omitnil" name:"MX"` + + // 权重 + // 注意:此字段可能返回 null,表示取不到有效值。 + Weight *string `json:"Weight,omitnil" name:"Weight"` + + // 失败原因 + // 注意:此字段可能返回 null,表示取不到有效值。 + Reason *string `json:"Reason,omitnil" name:"Reason"` } type SubdomainAliasAnalyticsItem struct { // 子域名解析量统计查询信息 - Info *SubdomainAnalyticsInfo `json:"Info,omitempty" name:"Info"` + Info *SubdomainAnalyticsInfo `json:"Info,omitnil" name:"Info"` // 当前统计维度解析量小计 - Data []*DomainAnalyticsDetail `json:"Data,omitempty" name:"Data"` + Data []*DomainAnalyticsDetail `json:"Data,omitnil" name:"Data"` } type SubdomainAnalyticsInfo struct { // DATE:按天维度统计 HOUR:按小时维度统计 - DnsFormat *string `json:"DnsFormat,omitempty" name:"DnsFormat"` + DnsFormat *string `json:"DnsFormat,omitnil" name:"DnsFormat"` // 当前统计周期解析量总计 - DnsTotal *uint64 `json:"DnsTotal,omitempty" name:"DnsTotal"` + DnsTotal *uint64 `json:"DnsTotal,omitnil" name:"DnsTotal"` // 当前查询的域名 - Domain *string `json:"Domain,omitempty" name:"Domain"` + Domain *string `json:"Domain,omitnil" name:"Domain"` // 当前统计周期开始时间 - StartDate *string `json:"StartDate,omitempty" name:"StartDate"` + StartDate *string `json:"StartDate,omitnil" name:"StartDate"` // 当前统计周期结束时间 - EndDate *string `json:"EndDate,omitempty" name:"EndDate"` + EndDate *string `json:"EndDate,omitnil" name:"EndDate"` // 当前统计的子域名 - Subdomain *string `json:"Subdomain,omitempty" name:"Subdomain"` + Subdomain *string `json:"Subdomain,omitnil" name:"Subdomain"` +} + +type TagItem struct { + // 标签键 + TagKey *string `json:"TagKey,omitnil" name:"TagKey"` + + // 标签值 + // 注意:此字段可能返回 null,表示取不到有效值。 + TagValue *string `json:"TagValue,omitnil" name:"TagValue"` +} + +type TagItemFilter struct { + // 标签键 + TagKey *string `json:"TagKey,omitnil" name:"TagKey"` + + // 标签键 + TagValue []*string `json:"TagValue,omitnil" name:"TagValue"` } type UserInfo struct { // 用户昵称 - Nick *string `json:"Nick,omitempty" name:"Nick"` + Nick *string `json:"Nick,omitnil" name:"Nick"` // 用户ID - Id *int64 `json:"Id,omitempty" name:"Id"` + Id *int64 `json:"Id,omitnil" name:"Id"` // 用户账号, 邮箱格式 - Email *string `json:"Email,omitempty" name:"Email"` + Email *string `json:"Email,omitnil" name:"Email"` // 账号状态:”enabled”: 正常;”disabled”: 被封禁 - Status *string `json:"Status,omitempty" name:"Status"` + Status *string `json:"Status,omitnil" name:"Status"` // 电话号码 - Telephone *string `json:"Telephone,omitempty" name:"Telephone"` + Telephone *string `json:"Telephone,omitnil" name:"Telephone"` // 邮箱是否通过验证:”yes”: 通过;”no”: 未通过 - EmailVerified *string `json:"EmailVerified,omitempty" name:"EmailVerified"` + EmailVerified *string `json:"EmailVerified,omitnil" name:"EmailVerified"` // 手机是否通过验证:”yes”: 通过;”no”: 未通过 - TelephoneVerified *string `json:"TelephoneVerified,omitempty" name:"TelephoneVerified"` + TelephoneVerified *string `json:"TelephoneVerified,omitnil" name:"TelephoneVerified"` // 账号等级, 按照用户账号下域名等级排序, 选取一个最高等级为账号等级, 具体对应情况参见域名等级。 - UserGrade *string `json:"UserGrade,omitempty" name:"UserGrade"` + UserGrade *string `json:"UserGrade,omitnil" name:"UserGrade"` // 用户名称, 企业用户对应为公司名称 - RealName *string `json:"RealName,omitempty" name:"RealName"` + RealName *string `json:"RealName,omitnil" name:"RealName"` // 是否绑定微信:”yes”: 通过;”no”: 未通过 - WechatBinded *string `json:"WechatBinded,omitempty" name:"WechatBinded"` + WechatBinded *string `json:"WechatBinded,omitnil" name:"WechatBinded"` // 用户UIN - Uin *int64 `json:"Uin,omitempty" name:"Uin"` + Uin *int64 `json:"Uin,omitnil" name:"Uin"` // 所属 DNS 服务器 - FreeNs []*string `json:"FreeNs,omitempty" name:"FreeNs"` + FreeNs []*string `json:"FreeNs,omitnil" name:"FreeNs"` +} + +type VASStatisticItem struct { + // 增值服务名称 + Name *string `json:"Name,omitnil" name:"Name"` + + // 增值服务标识 + Key *string `json:"Key,omitnil" name:"Key"` + + // 增值服务最大用量 + LimitCount *uint64 `json:"LimitCount,omitnil" name:"LimitCount"` + + // 增值服务已使用的用量 + UseCount *uint64 `json:"UseCount,omitnil" name:"UseCount"` +} + +type WhoisContact struct { + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Admin *WhoisContactAddress `json:"Admin,omitnil" name:"Admin"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Billing *WhoisContactAddress `json:"Billing,omitnil" name:"Billing"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Registrant *WhoisContactAddress `json:"Registrant,omitnil" name:"Registrant"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Tech *WhoisContactAddress `json:"Tech,omitnil" name:"Tech"` +} + +type WhoisContactAddress struct { + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + City *string `json:"City,omitnil" name:"City"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Country *string `json:"Country,omitnil" name:"Country"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Email *string `json:"Email,omitnil" name:"Email"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Fax *string `json:"Fax,omitnil" name:"Fax"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + FaxExt *string `json:"FaxExt,omitnil" name:"FaxExt"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Handle *string `json:"Handle,omitnil" name:"Handle"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Name *string `json:"Name,omitnil" name:"Name"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Organization *string `json:"Organization,omitnil" name:"Organization"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Phone *string `json:"Phone,omitnil" name:"Phone"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + PostalCode *string `json:"PostalCode,omitnil" name:"PostalCode"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + State *string `json:"State,omitnil" name:"State"` + + // 无 + // 注意:此字段可能返回 null,表示取不到有效值。 + Street *string `json:"Street,omitnil" name:"Street"` +} + +type WhoisInfo struct { + // 联系信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Contacts *WhoisContact `json:"Contacts,omitnil" name:"Contacts"` + + // 域名注册时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + CreationDate *string `json:"CreationDate,omitnil" name:"CreationDate"` + + // 域名到期时间 + // 注意:此字段可能返回 null,表示取不到有效值。 + ExpirationDate *string `json:"ExpirationDate,omitnil" name:"ExpirationDate"` + + // 是否是在腾讯云注册的域名 + // 注意:此字段可能返回 null,表示取不到有效值。 + IsQcloud *bool `json:"IsQcloud,omitnil" name:"IsQcloud"` + + // 是否当前操作账号注册的域名 + // 注意:此字段可能返回 null,表示取不到有效值。 + IsQcloudOwner *bool `json:"IsQcloudOwner,omitnil" name:"IsQcloudOwner"` + + // 域名配置的NS + // 注意:此字段可能返回 null,表示取不到有效值。 + NameServers []*string `json:"NameServers,omitnil" name:"NameServers"` + + // Whois原始信息 + // 注意:此字段可能返回 null,表示取不到有效值。 + Raw []*string `json:"Raw,omitnil" name:"Raw"` + + // 域名注册商 + // 注意:此字段可能返回 null,表示取不到有效值。 + Registrar []*string `json:"Registrar,omitnil" name:"Registrar"` + + // 状态 + // 注意:此字段可能返回 null,表示取不到有效值。 + Status []*string `json:"Status,omitnil" name:"Status"` + + // 更新日期 + // 注意:此字段可能返回 null,表示取不到有效值。 + UpdatedDate *string `json:"UpdatedDate,omitnil" name:"UpdatedDate"` } \ No newline at end of file diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/client.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/client.go index 7be74afe8c..b65aed4e4a 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/client.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/client.go @@ -67,20 +67,15 @@ func NewCreateIndexResponse() (response *CreateIndexResponse) { // 创建索引 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXMETAJSON = "InvalidParameter.InvalidIndexMetaJson" +// INVALIDPARAMETER_INVALIDINDEXNAME = "InvalidParameter.InvalidIndexName" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) CreateIndex(request *CreateIndexRequest) (response *CreateIndexResponse, err error) { return c.CreateIndexWithContext(context.Background(), request) } @@ -89,20 +84,15 @@ func (c *Client) CreateIndex(request *CreateIndexRequest) (response *CreateIndex // 创建索引 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXMETAJSON = "InvalidParameter.InvalidIndexMetaJson" +// INVALIDPARAMETER_INVALIDINDEXNAME = "InvalidParameter.InvalidIndexName" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) CreateIndexWithContext(ctx context.Context, request *CreateIndexRequest) (response *CreateIndexResponse, err error) { if request == nil { request = NewCreateIndexRequest() @@ -148,11 +138,39 @@ func NewCreateInstanceResponse() (response *CreateInstanceResponse) { // FAILEDOPERATION_NOTAUTHENTICATED = "FailedOperation.NotAuthenticated" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAUTOVOUCHER = "InvalidParameter.InvalidAutoVoucher" +// INVALIDPARAMETER_INVALIDDEPLOYMODE = "InvalidParameter.InvalidDeployMode" +// INVALIDPARAMETER_INVALIDDISKCOUNT = "InvalidParameter.InvalidDiskCount" +// INVALIDPARAMETER_INVALIDDISKENCRYPT = "InvalidParameter.InvalidDiskEncrypt" +// INVALIDPARAMETER_INVALIDDISKENHANCE = "InvalidParameter.InvalidDiskEnhance" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDMULTIZONEINFO = "InvalidParameter.InvalidMultiZoneInfo" +// INVALIDPARAMETER_INVALIDNODENUM = "InvalidParameter.InvalidNodeNum" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETER_INVALIDOPTYPE = "InvalidParameter.InvalidOpType" +// INVALIDPARAMETER_INVALIDOPERATIONDURATION = "InvalidParameter.InvalidOperationDuration" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDTAGLIST = "InvalidParameter.InvalidTagList" +// INVALIDPARAMETER_INVALIDTYPE = "InvalidParameter.InvalidType" +// INVALIDPARAMETER_INVALIDVOUCHERIDS = "InvalidParameter.InvalidVoucherIds" +// INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" +// INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" +// INVALIDPARAMETERVALUE_RENEWFLAG = "InvalidParameterValue.RenewFlag" +// LIMITEXCEEDED_CLUSTERNUM = "LimitExceeded.ClusterNum" // RESOURCEINUSE = "ResourceInUse" +// RESOURCEINUSE_ORDER = "ResourceInUse.Order" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" // RESOURCEINSUFFICIENT_HIDDENZONE = "ResourceInsufficient.HiddenZone" // RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" +// RESOURCEINSUFFICIENT_ZONE = "ResourceInsufficient.Zone" +// RESOURCENOTFOUND_DISKINFONOTFOUND = "ResourceNotFound.DiskInfoNotFound" +// RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" +// UNSUPPORTEDOPERATION_BASICSECURITYTYPE = "UnsupportedOperation.BasicSecurityType" +// UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" +// UNSUPPORTEDOPERATION_VPCINFONOTFOUND = "UnsupportedOperation.VPCInfoNotFound" func (c *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { return c.CreateInstanceWithContext(context.Background(), request) } @@ -168,11 +186,39 @@ func (c *Client) CreateInstance(request *CreateInstanceRequest) (response *Creat // FAILEDOPERATION_NOTAUTHENTICATED = "FailedOperation.NotAuthenticated" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAUTOVOUCHER = "InvalidParameter.InvalidAutoVoucher" +// INVALIDPARAMETER_INVALIDDEPLOYMODE = "InvalidParameter.InvalidDeployMode" +// INVALIDPARAMETER_INVALIDDISKCOUNT = "InvalidParameter.InvalidDiskCount" +// INVALIDPARAMETER_INVALIDDISKENCRYPT = "InvalidParameter.InvalidDiskEncrypt" +// INVALIDPARAMETER_INVALIDDISKENHANCE = "InvalidParameter.InvalidDiskEnhance" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDMULTIZONEINFO = "InvalidParameter.InvalidMultiZoneInfo" +// INVALIDPARAMETER_INVALIDNODENUM = "InvalidParameter.InvalidNodeNum" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETER_INVALIDOPTYPE = "InvalidParameter.InvalidOpType" +// INVALIDPARAMETER_INVALIDOPERATIONDURATION = "InvalidParameter.InvalidOperationDuration" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDTAGLIST = "InvalidParameter.InvalidTagList" +// INVALIDPARAMETER_INVALIDTYPE = "InvalidParameter.InvalidType" +// INVALIDPARAMETER_INVALIDVOUCHERIDS = "InvalidParameter.InvalidVoucherIds" +// INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" +// INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" +// INVALIDPARAMETERVALUE_RENEWFLAG = "InvalidParameterValue.RenewFlag" +// LIMITEXCEEDED_CLUSTERNUM = "LimitExceeded.ClusterNum" // RESOURCEINUSE = "ResourceInUse" +// RESOURCEINUSE_ORDER = "ResourceInUse.Order" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" // RESOURCEINSUFFICIENT_HIDDENZONE = "ResourceInsufficient.HiddenZone" // RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" +// RESOURCEINSUFFICIENT_ZONE = "ResourceInsufficient.Zone" +// RESOURCENOTFOUND_DISKINFONOTFOUND = "ResourceNotFound.DiskInfoNotFound" +// RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" +// UNSUPPORTEDOPERATION_BASICSECURITYTYPE = "UnsupportedOperation.BasicSecurityType" +// UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" +// UNSUPPORTEDOPERATION_VPCINFONOTFOUND = "UnsupportedOperation.VPCInfoNotFound" func (c *Client) CreateInstanceWithContext(ctx context.Context, request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { if request == nil { request = NewCreateInstanceRequest() @@ -275,20 +321,13 @@ func NewDeleteIndexResponse() (response *DeleteIndexResponse) { // 删除索引 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DeleteIndex(request *DeleteIndexRequest) (response *DeleteIndexResponse, err error) { return c.DeleteIndexWithContext(context.Background(), request) } @@ -297,20 +336,13 @@ func (c *Client) DeleteIndex(request *DeleteIndexRequest) (response *DeleteIndex // 删除索引 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DeleteIndexWithContext(ctx context.Context, request *DeleteIndexRequest) (response *DeleteIndexResponse, err error) { if request == nil { request = NewDeleteIndexRequest() @@ -346,25 +378,35 @@ func NewDeleteInstanceResponse() (response *DeleteInstanceResponse) { } // DeleteInstance -// 销毁集群实例 +// 销毁集群实例 // // 可能返回的错误码: +// FAILEDOPERATION_REFUNDERROR = "FailedOperation.RefundError" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" // RESOURCEINUSE = "ResourceInUse" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { return c.DeleteInstanceWithContext(context.Background(), request) } // DeleteInstance -// 销毁集群实例 +// 销毁集群实例 // // 可能返回的错误码: +// FAILEDOPERATION_REFUNDERROR = "FailedOperation.RefundError" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" // RESOURCEINUSE = "ResourceInUse" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) DeleteInstanceWithContext(ctx context.Context, request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { if request == nil { request = NewDeleteInstanceRequest() @@ -509,20 +551,13 @@ func NewDescribeIndexListResponse() (response *DescribeIndexListResponse) { // 获取索引列表 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DescribeIndexList(request *DescribeIndexListRequest) (response *DescribeIndexListResponse, err error) { return c.DescribeIndexListWithContext(context.Background(), request) } @@ -531,20 +566,13 @@ func (c *Client) DescribeIndexList(request *DescribeIndexListRequest) (response // 获取索引列表 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DescribeIndexListWithContext(ctx context.Context, request *DescribeIndexListRequest) (response *DescribeIndexListResponse, err error) { if request == nil { request = NewDescribeIndexListRequest() @@ -583,20 +611,14 @@ func NewDescribeIndexMetaResponse() (response *DescribeIndexMetaResponse) { // 获取索引元数据 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXNAME = "InvalidParameter.InvalidIndexName" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DescribeIndexMeta(request *DescribeIndexMetaRequest) (response *DescribeIndexMetaResponse, err error) { return c.DescribeIndexMetaWithContext(context.Background(), request) } @@ -605,20 +627,14 @@ func (c *Client) DescribeIndexMeta(request *DescribeIndexMetaRequest) (response // 获取索引元数据 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXNAME = "InvalidParameter.InvalidIndexName" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DescribeIndexMetaWithContext(ctx context.Context, request *DescribeIndexMetaRequest) (response *DescribeIndexMetaResponse, err error) { if request == nil { request = NewDescribeIndexMetaRequest() @@ -658,7 +674,16 @@ func NewDescribeInstanceLogsResponse() (response *DescribeInstanceLogsResponse) // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDLIMIT = "InvalidParameter.InvalidLimit" +// INVALIDPARAMETER_INVALIDLOGTYPE = "InvalidParameter.InvalidLogType" +// INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" +// INVALIDPARAMETER_INVALIDORDERBYKEY = "InvalidParameter.InvalidOrderByKey" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDTIMEPARAM = "InvalidParameter.InvalidTimeParam" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DescribeInstanceLogs(request *DescribeInstanceLogsRequest) (response *DescribeInstanceLogsResponse, err error) { return c.DescribeInstanceLogsWithContext(context.Background(), request) } @@ -668,7 +693,16 @@ func (c *Client) DescribeInstanceLogs(request *DescribeInstanceLogsRequest) (res // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDLIMIT = "InvalidParameter.InvalidLimit" +// INVALIDPARAMETER_INVALIDLOGTYPE = "InvalidParameter.InvalidLogType" +// INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" +// INVALIDPARAMETER_INVALIDORDERBYKEY = "InvalidParameter.InvalidOrderByKey" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDTIMEPARAM = "InvalidParameter.InvalidTimeParam" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DescribeInstanceLogsWithContext(ctx context.Context, request *DescribeInstanceLogsRequest) (response *DescribeInstanceLogsResponse, err error) { if request == nil { request = NewDescribeInstanceLogsRequest() @@ -708,8 +742,11 @@ func NewDescribeInstanceOperationsResponse() (response *DescribeInstanceOperatio // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDLIMIT = "InvalidParameter.InvalidLimit" +// INVALIDPARAMETER_INVALIDTIMEPARAM = "InvalidParameter.InvalidTimeParam" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) DescribeInstanceOperations(request *DescribeInstanceOperationsRequest) (response *DescribeInstanceOperationsResponse, err error) { return c.DescribeInstanceOperationsWithContext(context.Background(), request) } @@ -719,8 +756,11 @@ func (c *Client) DescribeInstanceOperations(request *DescribeInstanceOperationsR // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDLIMIT = "InvalidParameter.InvalidLimit" +// INVALIDPARAMETER_INVALIDTIMEPARAM = "InvalidParameter.InvalidTimeParam" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) DescribeInstanceOperationsWithContext(ctx context.Context, request *DescribeInstanceOperationsRequest) (response *DescribeInstanceOperationsResponse, err error) { if request == nil { request = NewDescribeInstanceOperationsRequest() @@ -759,10 +799,24 @@ func NewDescribeInstancesResponse() (response *DescribeInstancesResponse) { // 查询用户该地域下符合条件的所有实例 // // 可能返回的错误码: +// AUTHFAILURE_UNAUTHDESCRIBEINSTANCES = "AuthFailure.UnAuthDescribeInstances" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// FAILEDOPERATION_GETTAGINFOERROR = "FailedOperation.GetTagInfoError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDIP = "InvalidParameter.InvalidIp" +// INVALIDPARAMETER_INVALIDIPLIST = "InvalidParameter.InvalidIpList" +// INVALIDPARAMETER_INVALIDLIMIT = "InvalidParameter.InvalidLimit" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" +// INVALIDPARAMETER_INVALIDORDERBYKEY = "InvalidParameter.InvalidOrderByKey" +// INVALIDPARAMETER_INVALIDORDERBYTYPE = "InvalidParameter.InvalidOrderByType" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDTAGINFO = "InvalidParameter.InvalidTagInfo" +// INVALIDPARAMETER_INVALIDTAGLIST = "InvalidParameter.InvalidTagList" +// INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" +// RESOURCENOTFOUND_CAMINFONOTFOUND = "ResourceNotFound.CAMInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { return c.DescribeInstancesWithContext(context.Background(), request) } @@ -771,10 +825,24 @@ func (c *Client) DescribeInstances(request *DescribeInstancesRequest) (response // 查询用户该地域下符合条件的所有实例 // // 可能返回的错误码: +// AUTHFAILURE_UNAUTHDESCRIBEINSTANCES = "AuthFailure.UnAuthDescribeInstances" // AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// FAILEDOPERATION_GETTAGINFOERROR = "FailedOperation.GetTagInfoError" +// INTERNALERROR = "InternalError" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDIP = "InvalidParameter.InvalidIp" +// INVALIDPARAMETER_INVALIDIPLIST = "InvalidParameter.InvalidIpList" +// INVALIDPARAMETER_INVALIDLIMIT = "InvalidParameter.InvalidLimit" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" +// INVALIDPARAMETER_INVALIDORDERBYKEY = "InvalidParameter.InvalidOrderByKey" +// INVALIDPARAMETER_INVALIDORDERBYTYPE = "InvalidParameter.InvalidOrderByType" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDTAGINFO = "InvalidParameter.InvalidTagInfo" +// INVALIDPARAMETER_INVALIDTAGLIST = "InvalidParameter.InvalidTagList" +// INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" +// RESOURCENOTFOUND_CAMINFONOTFOUND = "ResourceNotFound.CAMInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) DescribeInstancesWithContext(ctx context.Context, request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { if request == nil { request = NewDescribeInstancesRequest() @@ -1019,7 +1087,9 @@ func NewDescribeViewsResponse() (response *DescribeViewsResponse) { // 可能返回的错误码: // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" // RESOURCEINUSE = "ResourceInUse" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) DescribeViews(request *DescribeViewsRequest) (response *DescribeViewsResponse, err error) { return c.DescribeViewsWithContext(context.Background(), request) } @@ -1030,7 +1100,9 @@ func (c *Client) DescribeViews(request *DescribeViewsRequest) (response *Describ // 可能返回的错误码: // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" // RESOURCEINUSE = "ResourceInUse" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) DescribeViewsWithContext(ctx context.Context, request *DescribeViewsRequest) (response *DescribeViewsResponse, err error) { if request == nil { request = NewDescribeViewsRequest() @@ -1069,12 +1141,17 @@ func NewDiagnoseInstanceResponse() (response *DiagnoseInstanceResponse) { // 智能运维诊断集群 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// LIMITEXCEEDED_DIAGNOSECOUNT = "LimitExceeded.DiagnoseCount" +// RESOURCEINUSE_DIAGNOSE = "ResourceInUse.Diagnose" // RESOURCEINSUFFICIENT = "ResourceInsufficient" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_DIAGNOSENOTFOUND = "ResourceNotFound.DiagnoseNotFound" +// UNSUPPORTEDOPERATION_DIAGNOSEJOB = "UnsupportedOperation.DiagnoseJob" +// UNSUPPORTEDOPERATION_DIAGNOSENOTOPEN = "UnsupportedOperation.DiagnoseNotOpen" func (c *Client) DiagnoseInstance(request *DiagnoseInstanceRequest) (response *DiagnoseInstanceResponse, err error) { return c.DiagnoseInstanceWithContext(context.Background(), request) } @@ -1083,12 +1160,17 @@ func (c *Client) DiagnoseInstance(request *DiagnoseInstanceRequest) (response *D // 智能运维诊断集群 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// LIMITEXCEEDED_DIAGNOSECOUNT = "LimitExceeded.DiagnoseCount" +// RESOURCEINUSE_DIAGNOSE = "ResourceInUse.Diagnose" // RESOURCEINSUFFICIENT = "ResourceInsufficient" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_DIAGNOSENOTFOUND = "ResourceNotFound.DiagnoseNotFound" +// UNSUPPORTEDOPERATION_DIAGNOSEJOB = "UnsupportedOperation.DiagnoseJob" +// UNSUPPORTEDOPERATION_DIAGNOSENOTOPEN = "UnsupportedOperation.DiagnoseNotOpen" func (c *Client) DiagnoseInstanceWithContext(ctx context.Context, request *DiagnoseInstanceRequest) (response *DiagnoseInstanceResponse, err error) { if request == nil { request = NewDiagnoseInstanceRequest() @@ -1128,8 +1210,11 @@ func NewGetRequestTargetNodeTypesResponse() (response *GetRequestTargetNodeTypes // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" func (c *Client) GetRequestTargetNodeTypes(request *GetRequestTargetNodeTypesRequest) (response *GetRequestTargetNodeTypesResponse, err error) { return c.GetRequestTargetNodeTypesWithContext(context.Background(), request) } @@ -1139,8 +1224,11 @@ func (c *Client) GetRequestTargetNodeTypes(request *GetRequestTargetNodeTypesReq // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" func (c *Client) GetRequestTargetNodeTypesWithContext(ctx context.Context, request *GetRequestTargetNodeTypesRequest) (response *GetRequestTargetNodeTypesResponse, err error) { if request == nil { request = NewGetRequestTargetNodeTypesRequest() @@ -1234,25 +1322,41 @@ func NewRestartInstanceResponse() (response *RestartInstanceResponse) { } // RestartInstance -// 重启ES集群实例(用于系统版本更新等操作) +// 重启ES集群实例(用于系统版本更新等操作) // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) RestartInstance(request *RestartInstanceRequest) (response *RestartInstanceResponse, err error) { return c.RestartInstanceWithContext(context.Background(), request) } // RestartInstance -// 重启ES集群实例(用于系统版本更新等操作) +// 重启ES集群实例(用于系统版本更新等操作) // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) RestartInstanceWithContext(ctx context.Context, request *RestartInstanceRequest) (response *RestartInstanceResponse, err error) { if request == nil { request = NewRestartInstanceRequest() @@ -1288,23 +1392,31 @@ func NewRestartKibanaResponse() (response *RestartKibanaResponse) { } // RestartKibana -// 重启Kibana +// 重启Kibana // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) RestartKibana(request *RestartKibanaRequest) (response *RestartKibanaResponse, err error) { return c.RestartKibanaWithContext(context.Background(), request) } // RestartKibana -// 重启Kibana +// 重启Kibana // // 可能返回的错误码: // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) RestartKibanaWithContext(ctx context.Context, request *RestartKibanaRequest) (response *RestartKibanaResponse, err error) { if request == nil { request = NewRestartKibanaRequest() @@ -1399,11 +1511,22 @@ func NewRestartNodesResponse() (response *RestartNodesResponse) { // 用于重启集群节点 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDIPLIST = "InvalidParameter.InvalidIpList" +// INVALIDPARAMETER_INVALIDNODENAMES = "InvalidParameter.InvalidNodeNames" +// INVALIDPARAMETER_INVALIDRESTARTMODE = "InvalidParameter.InvalidRestartMode" +// INVALIDPARAMETER_INVALIDSUBNETUIDLIST = "InvalidParameter.InvalidSubnetUidList" // RESOURCEINUSE = "ResourceInUse" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// RESOURCEINSUFFICIENT_SUBNETIP = "ResourceInsufficient.SubnetIp" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_RESTARTMODE = "UnsupportedOperation.RestartMode" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) RestartNodes(request *RestartNodesRequest) (response *RestartNodesResponse, err error) { return c.RestartNodesWithContext(context.Background(), request) } @@ -1412,11 +1535,22 @@ func (c *Client) RestartNodes(request *RestartNodesRequest) (response *RestartNo // 用于重启集群节点 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDIPLIST = "InvalidParameter.InvalidIpList" +// INVALIDPARAMETER_INVALIDNODENAMES = "InvalidParameter.InvalidNodeNames" +// INVALIDPARAMETER_INVALIDRESTARTMODE = "InvalidParameter.InvalidRestartMode" +// INVALIDPARAMETER_INVALIDSUBNETUIDLIST = "InvalidParameter.InvalidSubnetUidList" // RESOURCEINUSE = "ResourceInUse" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// RESOURCEINSUFFICIENT_SUBNETIP = "ResourceInsufficient.SubnetIp" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_RESTARTMODE = "UnsupportedOperation.RestartMode" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) RestartNodesWithContext(ctx context.Context, request *RestartNodesRequest) (response *RestartNodesResponse, err error) { if request == nil { request = NewRestartNodesRequest() @@ -1607,12 +1741,13 @@ func NewUpdateDiagnoseSettingsResponse() (response *UpdateDiagnoseSettingsRespon // 更新智能运维配置 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDTIMEPARAM = "InvalidParameter.InvalidTimeParam" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdateDiagnoseSettings(request *UpdateDiagnoseSettingsRequest) (response *UpdateDiagnoseSettingsResponse, err error) { return c.UpdateDiagnoseSettingsWithContext(context.Background(), request) } @@ -1621,12 +1756,13 @@ func (c *Client) UpdateDiagnoseSettings(request *UpdateDiagnoseSettingsRequest) // 更新智能运维配置 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDTIMEPARAM = "InvalidParameter.InvalidTimeParam" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdateDiagnoseSettingsWithContext(ctx context.Context, request *UpdateDiagnoseSettingsRequest) (response *UpdateDiagnoseSettingsResponse, err error) { if request == nil { request = NewUpdateDiagnoseSettingsRequest() @@ -1665,13 +1801,21 @@ func NewUpdateDictionariesResponse() (response *UpdateDictionariesResponse) { // 更新ES集群词典 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" +// FAILEDOPERATION_ESDICTIONARYINFOERROR = "FailedOperation.EsDictionaryInfoError" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDUPDATETYPE = "InvalidParameter.InvalidUpdateType" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" // RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" -// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_COSINFONOTFOUND = "ResourceNotFound.CosInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdateDictionaries(request *UpdateDictionariesRequest) (response *UpdateDictionariesResponse, err error) { return c.UpdateDictionariesWithContext(context.Background(), request) } @@ -1680,13 +1824,21 @@ func (c *Client) UpdateDictionaries(request *UpdateDictionariesRequest) (respons // 更新ES集群词典 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" +// FAILEDOPERATION_ESDICTIONARYINFOERROR = "FailedOperation.EsDictionaryInfoError" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDUPDATETYPE = "InvalidParameter.InvalidUpdateType" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" // RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" -// RESOURCENOTFOUND = "ResourceNotFound" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_COSINFONOTFOUND = "ResourceNotFound.CosInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdateDictionariesWithContext(ctx context.Context, request *UpdateDictionariesRequest) (response *UpdateDictionariesResponse, err error) { if request == nil { request = NewUpdateDictionariesRequest() @@ -1725,20 +1877,16 @@ func NewUpdateIndexResponse() (response *UpdateIndexResponse) { // 更新索引 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXMETAJSON = "InvalidParameter.InvalidIndexMetaJson" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDUPDATEMETAJSON = "InvalidParameter.InvalidUpdateMetaJson" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) UpdateIndex(request *UpdateIndexRequest) (response *UpdateIndexResponse, err error) { return c.UpdateIndexWithContext(context.Background(), request) } @@ -1747,20 +1895,16 @@ func (c *Client) UpdateIndex(request *UpdateIndexRequest) (response *UpdateIndex // 更新索引 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" -// AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// INVALIDPARAMETERVALUE = "InvalidParameterValue" -// MISSINGPARAMETER = "MissingParameter" -// REQUESTLIMITEXCEEDED = "RequestLimitExceeded" -// RESOURCEINUSE = "ResourceInUse" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINDEXMETAJSON = "InvalidParameter.InvalidIndexMetaJson" +// INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDUPDATEMETAJSON = "InvalidParameter.InvalidUpdateMetaJson" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" func (c *Client) UpdateIndexWithContext(ctx context.Context, request *UpdateIndexRequest) (response *UpdateIndexResponse, err error) { if request == nil { request = NewUpdateIndexRequest() @@ -1813,21 +1957,69 @@ func NewUpdateInstanceResponse() (response *UpdateInstanceResponse) { // 以上参数组合只能传递一种,多传或少传均会导致请求失败 // // 可能返回的错误码: -// FAILEDOPERATION_CLUSTERRESOURCELIMITERROR = "FailedOperation.ClusterResourceLimitError" -// FAILEDOPERATION_DISKCOUNTPARAMERROR = "FailedOperation.DiskCountParamError" // FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" +// FAILEDOPERATION_ESDICTIONARYINFOERROR = "FailedOperation.EsDictionaryInfoError" // FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" +// FAILEDOPERATION_NOTAUTHENTICATED = "FailedOperation.NotAuthenticated" +// FAILEDOPERATION_UNSUPPORTEDLOCALDISKROLLUPSCALEUPORDOWN = "FailedOperation.UnsupportedLocalDiskRollUpScaleUpOrDown" // FAILEDOPERATION_UNSUPPORTEDRESETNODETYPEANDSCALEOUTDISK = "FailedOperation.UnsupportedResetNodeTypeAndScaleOutDisk" // FAILEDOPERATION_UNSUPPORTEDRESTSCALEDOWNANDMODIFYDISK = "FailedOperation.UnsupportedRestScaleDownAndModifyDisk" // FAILEDOPERATION_UNSUPPORTEDREVERSEREGULATIONNODETYPEANDDISK = "FailedOperation.UnsupportedReverseRegulationNodeTypeAndDisk" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDAUTOVOUCHER = "InvalidParameter.InvalidAutoVoucher" +// INVALIDPARAMETER_INVALIDCLUSTERNAME = "InvalidParameter.InvalidClusterName" +// INVALIDPARAMETER_INVALIDCOSBACKUPINFO = "InvalidParameter.InvalidCosBackupInfo" +// INVALIDPARAMETER_INVALIDDISKCOUNT = "InvalidParameter.InvalidDiskCount" +// INVALIDPARAMETER_INVALIDDISKENCRYPT = "InvalidParameter.InvalidDiskEncrypt" +// INVALIDPARAMETER_INVALIDDISKTYPE = "InvalidParameter.InvalidDiskType" +// INVALIDPARAMETER_INVALIDESACL = "InvalidParameter.InvalidEsACL" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDKIBANAPRIVATEPORT = "InvalidParameter.InvalidKibanaPrivatePort" +// INVALIDPARAMETER_INVALIDMULTIZONEINFO = "InvalidParameter.InvalidMultiZoneInfo" +// INVALIDPARAMETER_INVALIDNODENUM = "InvalidParameter.InvalidNodeNum" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETER_INVALIDOPERATIONDURATION = "InvalidParameter.InvalidOperationDuration" +// INVALIDPARAMETER_INVALIDPRIVATEACCESS = "InvalidParameter.InvalidPrivateAccess" +// INVALIDPARAMETER_INVALIDPUBLICACCESS = "InvalidParameter.InvalidPublicAccess" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDRESTARTTYPE = "InvalidParameter.InvalidRestartType" +// INVALIDPARAMETER_INVALIDSUBNETID = "InvalidParameter.InvalidSubnetId" +// INVALIDPARAMETER_INVALIDTYPE = "InvalidParameter.InvalidType" +// INVALIDPARAMETER_INVALIDUPDATETYPE = "InvalidParameter.InvalidUpdateType" +// INVALIDPARAMETER_INVALIDVOUCHERIDS = "InvalidParameter.InvalidVoucherIds" +// INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" +// INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// INVALIDPARAMETERVALUE_ESCONFIGTYPE = "InvalidParameterValue.EsConfigType" +// INVALIDPARAMETERVALUE_INSTANCENAME = "InvalidParameterValue.InstanceName" +// INVALIDPARAMETERVALUE_INVALIDDEADLINE = "InvalidParameterValue.InvalidDeadline" +// INVALIDPARAMETERVALUE_PASSWORD = "InvalidParameterValue.Password" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" // RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" +// RESOURCEINUSE_ORDER = "ResourceInUse.Order" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" -// RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" +// RESOURCEINSUFFICIENT_CVM = "ResourceInsufficient.CVM" +// RESOURCEINSUFFICIENT_SUBNETIP = "ResourceInsufficient.SubnetIp" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_DISKINFONOTFOUND = "ResourceNotFound.DiskInfoNotFound" +// RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" +// RESOURCENOTFOUND_VPCINFONOTFOUND = "ResourceNotFound.VPCInfoNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_BASICSECURITYTYPE = "UnsupportedOperation.BasicSecurityType" +// UNSUPPORTEDOPERATION_CHANGENODETYPE = "UnsupportedOperation.ChangeNodeType" +// UNSUPPORTEDOPERATION_CLUSTERSTATECLOSE = "UnsupportedOperation.ClusterStateClose" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" +// UNSUPPORTEDOPERATION_MULTIZONESUPGRADE = "UnsupportedOperation.MultiZonesUpgrade" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" +// UNSUPPORTEDOPERATION_WEBSERVICETYPE = "UnsupportedOperation.WebServiceType" func (c *Client) UpdateInstance(request *UpdateInstanceRequest) (response *UpdateInstanceResponse, err error) { return c.UpdateInstanceWithContext(context.Background(), request) } @@ -1850,21 +2042,69 @@ func (c *Client) UpdateInstance(request *UpdateInstanceRequest) (response *Updat // 以上参数组合只能传递一种,多传或少传均会导致请求失败 // // 可能返回的错误码: -// FAILEDOPERATION_CLUSTERRESOURCELIMITERROR = "FailedOperation.ClusterResourceLimitError" -// FAILEDOPERATION_DISKCOUNTPARAMERROR = "FailedOperation.DiskCountParamError" // FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" +// FAILEDOPERATION_ESDICTIONARYINFOERROR = "FailedOperation.EsDictionaryInfoError" // FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" +// FAILEDOPERATION_NOTAUTHENTICATED = "FailedOperation.NotAuthenticated" +// FAILEDOPERATION_UNSUPPORTEDLOCALDISKROLLUPSCALEUPORDOWN = "FailedOperation.UnsupportedLocalDiskRollUpScaleUpOrDown" // FAILEDOPERATION_UNSUPPORTEDRESETNODETYPEANDSCALEOUTDISK = "FailedOperation.UnsupportedResetNodeTypeAndScaleOutDisk" // FAILEDOPERATION_UNSUPPORTEDRESTSCALEDOWNANDMODIFYDISK = "FailedOperation.UnsupportedRestScaleDownAndModifyDisk" // FAILEDOPERATION_UNSUPPORTEDREVERSEREGULATIONNODETYPEANDDISK = "FailedOperation.UnsupportedReverseRegulationNodeTypeAndDisk" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDAUTOVOUCHER = "InvalidParameter.InvalidAutoVoucher" +// INVALIDPARAMETER_INVALIDCLUSTERNAME = "InvalidParameter.InvalidClusterName" +// INVALIDPARAMETER_INVALIDCOSBACKUPINFO = "InvalidParameter.InvalidCosBackupInfo" +// INVALIDPARAMETER_INVALIDDISKCOUNT = "InvalidParameter.InvalidDiskCount" +// INVALIDPARAMETER_INVALIDDISKENCRYPT = "InvalidParameter.InvalidDiskEncrypt" +// INVALIDPARAMETER_INVALIDDISKTYPE = "InvalidParameter.InvalidDiskType" +// INVALIDPARAMETER_INVALIDESACL = "InvalidParameter.InvalidEsACL" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDKIBANAPRIVATEPORT = "InvalidParameter.InvalidKibanaPrivatePort" +// INVALIDPARAMETER_INVALIDMULTIZONEINFO = "InvalidParameter.InvalidMultiZoneInfo" +// INVALIDPARAMETER_INVALIDNODENUM = "InvalidParameter.InvalidNodeNum" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETER_INVALIDOPERATIONDURATION = "InvalidParameter.InvalidOperationDuration" +// INVALIDPARAMETER_INVALIDPRIVATEACCESS = "InvalidParameter.InvalidPrivateAccess" +// INVALIDPARAMETER_INVALIDPUBLICACCESS = "InvalidParameter.InvalidPublicAccess" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETER_INVALIDRESTARTTYPE = "InvalidParameter.InvalidRestartType" +// INVALIDPARAMETER_INVALIDSUBNETID = "InvalidParameter.InvalidSubnetId" +// INVALIDPARAMETER_INVALIDTYPE = "InvalidParameter.InvalidType" +// INVALIDPARAMETER_INVALIDUPDATETYPE = "InvalidParameter.InvalidUpdateType" +// INVALIDPARAMETER_INVALIDVOUCHERIDS = "InvalidParameter.InvalidVoucherIds" +// INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" +// INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// INVALIDPARAMETERVALUE_ESCONFIGTYPE = "InvalidParameterValue.EsConfigType" +// INVALIDPARAMETERVALUE_INSTANCENAME = "InvalidParameterValue.InstanceName" +// INVALIDPARAMETERVALUE_INVALIDDEADLINE = "InvalidParameterValue.InvalidDeadline" +// INVALIDPARAMETERVALUE_PASSWORD = "InvalidParameterValue.Password" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" // RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" +// RESOURCEINUSE_ORDER = "ResourceInUse.Order" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" -// RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" +// RESOURCEINSUFFICIENT_CVM = "ResourceInsufficient.CVM" +// RESOURCEINSUFFICIENT_SUBNETIP = "ResourceInsufficient.SubnetIp" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_DISKINFONOTFOUND = "ResourceNotFound.DiskInfoNotFound" +// RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" +// RESOURCENOTFOUND_VPCINFONOTFOUND = "ResourceNotFound.VPCInfoNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_BASICSECURITYTYPE = "UnsupportedOperation.BasicSecurityType" +// UNSUPPORTEDOPERATION_CHANGENODETYPE = "UnsupportedOperation.ChangeNodeType" +// UNSUPPORTEDOPERATION_CLUSTERSTATECLOSE = "UnsupportedOperation.ClusterStateClose" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" +// UNSUPPORTEDOPERATION_MULTIZONESUPGRADE = "UnsupportedOperation.MultiZonesUpgrade" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" +// UNSUPPORTEDOPERATION_WEBSERVICETYPE = "UnsupportedOperation.WebServiceType" func (c *Client) UpdateInstanceWithContext(ctx context.Context, request *UpdateInstanceRequest) (response *UpdateInstanceResponse, err error) { if request == nil { request = NewUpdateInstanceRequest() @@ -1903,19 +2143,16 @@ func NewUpdateJdkResponse() (response *UpdateJdkResponse) { // 更新实例Jdk配置 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATENOREPLICATION = "FailedOperation.ErrorClusterStateNoReplication" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCESSOLDOUT = "ResourcesSoldOut" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_GC = "InvalidParameter.GC" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETERVALUE_INVALIDJDK = "InvalidParameterValue.InvalidJDK" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_OSSINFONOTFOUND = "ResourceNotFound.OssInfoNotFound" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdateJdk(request *UpdateJdkRequest) (response *UpdateJdkResponse, err error) { return c.UpdateJdkWithContext(context.Background(), request) } @@ -1924,19 +2161,16 @@ func (c *Client) UpdateJdk(request *UpdateJdkRequest) (response *UpdateJdkRespon // 更新实例Jdk配置 // // 可能返回的错误码: -// FAILEDOPERATION = "FailedOperation" -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATENOREPLICATION = "FailedOperation.ErrorClusterStateNoReplication" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" -// RESOURCEUNAVAILABLE = "ResourceUnavailable" -// RESOURCESSOLDOUT = "ResourcesSoldOut" -// UNAUTHORIZEDOPERATION = "UnauthorizedOperation" -// UNKNOWNPARAMETER = "UnknownParameter" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_GC = "InvalidParameter.GC" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETERVALUE_INVALIDJDK = "InvalidParameterValue.InvalidJDK" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_OSSINFONOTFOUND = "ResourceNotFound.OssInfoNotFound" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdateJdkWithContext(ctx context.Context, request *UpdateJdkRequest) (response *UpdateJdkResponse, err error) { if request == nil { request = NewUpdateJdkRequest() @@ -1992,6 +2226,7 @@ func NewUpdateLogstashInstanceResponse() (response *UpdateLogstashInstanceRespon // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // RESOURCEINUSE = "ResourceInUse" +// RESOURCEINUSE_ORDER = "ResourceInUse.Order" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" // RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" @@ -2021,6 +2256,7 @@ func (c *Client) UpdateLogstashInstance(request *UpdateLogstashInstanceRequest) // INVALIDPARAMETER = "InvalidParameter" // INVALIDPARAMETERVALUE = "InvalidParameterValue" // RESOURCEINUSE = "ResourceInUse" +// RESOURCEINUSE_ORDER = "ResourceInUse.Order" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" // RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" @@ -2115,16 +2351,23 @@ func NewUpdatePluginsResponse() (response *UpdatePluginsResponse) { // 变更插件列表 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATENOREPLICATION = "FailedOperation.ErrorClusterStateNoReplication" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" -// FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" +// FAILEDOPERATION_FILENAMEERROR = "FailedOperation.FileNameError" +// FAILEDOPERATION_FILESIZEERROR = "FailedOperation.FileSizeError" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" -// RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// INVALIDPARAMETERVALUE_INSTALLPLUGINLIST = "InvalidParameterValue.InstallPluginList" +// INVALIDPARAMETERVALUE_PLUGINTYPE = "InvalidParameterValue.PluginType" +// LIMITEXCEEDED_PLUGININSTALL = "LimitExceeded.PluginInstall" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" +// RESOURCENOTFOUND_COSINFONOTFOUND = "ResourceNotFound.CosInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdatePlugins(request *UpdatePluginsRequest) (response *UpdatePluginsResponse, err error) { return c.UpdatePluginsWithContext(context.Background(), request) } @@ -2133,16 +2376,23 @@ func (c *Client) UpdatePlugins(request *UpdatePluginsRequest) (response *UpdateP // 变更插件列表 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATENOREPLICATION = "FailedOperation.ErrorClusterStateNoReplication" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" -// FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" +// FAILEDOPERATION_FILENAMEERROR = "FailedOperation.FileNameError" +// FAILEDOPERATION_FILESIZEERROR = "FailedOperation.FileSizeError" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" -// RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// INVALIDPARAMETERVALUE_INSTALLPLUGINLIST = "InvalidParameterValue.InstallPluginList" +// INVALIDPARAMETERVALUE_PLUGINTYPE = "InvalidParameterValue.PluginType" +// LIMITEXCEEDED_PLUGININSTALL = "LimitExceeded.PluginInstall" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" +// RESOURCENOTFOUND_COSINFONOTFOUND = "ResourceNotFound.CosInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" +// UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdatePluginsWithContext(ctx context.Context, request *UpdatePluginsRequest) (response *UpdatePluginsResponse, err error) { if request == nil { request = NewUpdatePluginsRequest() @@ -2181,12 +2431,14 @@ func NewUpdateRequestTargetNodeTypesResponse() (response *UpdateRequestTargetNod // 更新接收客户端请求的节点类型 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdateRequestTargetNodeTypes(request *UpdateRequestTargetNodeTypesRequest) (response *UpdateRequestTargetNodeTypesResponse, err error) { return c.UpdateRequestTargetNodeTypesWithContext(context.Background(), request) } @@ -2195,12 +2447,14 @@ func (c *Client) UpdateRequestTargetNodeTypes(request *UpdateRequestTargetNodeTy // 更新接收客户端请求的节点类型 // // 可能返回的错误码: -// AUTHFAILURE = "AuthFailure" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCENOTFOUND = "ResourceNotFound" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpdateRequestTargetNodeTypesWithContext(ctx context.Context, request *UpdateRequestTargetNodeTypesRequest) (response *UpdateRequestTargetNodeTypesResponse, err error) { if request == nil { request = NewUpdateRequestTargetNodeTypesRequest() @@ -2239,16 +2493,28 @@ func NewUpgradeInstanceResponse() (response *UpgradeInstanceResponse) { // 升级ES集群版本 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// INVALIDPARAMETERVALUE_UPGRADEMODE = "InvalidParameterValue.UpgradeMode" +// LIMITEXCEEDED_NODENUMORINDICES = "LimitExceeded.NodeNumOrIndices" +// LIMITEXCEEDED_RESOURCELIMIT = "LimitExceeded.ResourceLimit" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" -// RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// RESOURCEINSUFFICIENT_SUBNETIP = "ResourceInsufficient.SubnetIp" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" +// UNSUPPORTEDOPERATION_CLUSTERSTATECLOSE = "UnsupportedOperation.ClusterStateClose" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_COSBACKUP = "UnsupportedOperation.CosBackUp" +// UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error) { return c.UpgradeInstanceWithContext(context.Background(), request) } @@ -2257,16 +2523,28 @@ func (c *Client) UpgradeInstance(request *UpgradeInstanceRequest) (response *Upg // 升级ES集群版本 // // 可能返回的错误码: -// FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" -// FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" // FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" // INTERNALERROR = "InternalError" -// INVALIDPARAMETER = "InvalidParameter" -// RESOURCEINUSE = "ResourceInUse" -// RESOURCEINSUFFICIENT = "ResourceInsufficient" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// INVALIDPARAMETERVALUE_UPGRADEMODE = "InvalidParameterValue.UpgradeMode" +// LIMITEXCEEDED_NODENUMORINDICES = "LimitExceeded.NodeNumOrIndices" +// LIMITEXCEEDED_RESOURCELIMIT = "LimitExceeded.ResourceLimit" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" -// RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" -// UNSUPPORTEDOPERATION = "UnsupportedOperation" +// RESOURCEINSUFFICIENT_SUBNETIP = "ResourceInsufficient.SubnetIp" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" +// RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" +// UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" +// UNSUPPORTEDOPERATION_CLUSTERSTATECLOSE = "UnsupportedOperation.ClusterStateClose" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_COSBACKUP = "UnsupportedOperation.CosBackUp" +// UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" +// UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" func (c *Client) UpgradeInstanceWithContext(ctx context.Context, request *UpgradeInstanceRequest) (response *UpgradeInstanceResponse, err error) { if request == nil { request = NewUpgradeInstanceRequest() @@ -2305,13 +2583,51 @@ func NewUpgradeLicenseResponse() (response *UpgradeLicenseResponse) { // 升级ES商业特性 // // 可能返回的错误码: +// FAILEDOPERATION_ESDICTIONARYINFOERROR = "FailedOperation.EsDictionaryInfoError" // FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" +// FAILEDOPERATION_NOTAUTHENTICATED = "FailedOperation.NotAuthenticated" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDAUTOVOUCHER = "InvalidParameter.InvalidAutoVoucher" +// INVALIDPARAMETER_INVALIDCOSBACKUPINFO = "InvalidParameter.InvalidCosBackupInfo" +// INVALIDPARAMETER_INVALIDDISKCOUNT = "InvalidParameter.InvalidDiskCount" +// INVALIDPARAMETER_INVALIDDISKSIZE = "InvalidParameter.InvalidDiskSize" +// INVALIDPARAMETER_INVALIDDISKTYPE = "InvalidParameter.InvalidDiskType" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDKIBANAPRIVATEPORT = "InvalidParameter.InvalidKibanaPrivatePort" +// INVALIDPARAMETER_INVALIDNODENUM = "InvalidParameter.InvalidNodeNum" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETER_INVALIDOPTYPE = "InvalidParameter.InvalidOpType" +// INVALIDPARAMETER_INVALIDPRIVATEACCESS = "InvalidParameter.InvalidPrivateAccess" +// INVALIDPARAMETER_INVALIDRESTARTTYPE = "InvalidParameter.InvalidRestartType" +// INVALIDPARAMETER_INVALIDTYPE = "InvalidParameter.InvalidType" +// INVALIDPARAMETER_INVALIDVOUCHERIDS = "InvalidParameter.InvalidVoucherIds" +// INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// INVALIDPARAMETERVALUE_ESCONFIGTYPE = "InvalidParameterValue.EsConfigType" +// INVALIDPARAMETERVALUE_INSTANCENAME = "InvalidParameterValue.InstanceName" +// INVALIDPARAMETERVALUE_INVALIDDEADLINE = "InvalidParameterValue.InvalidDeadline" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" // RESOURCEINUSE = "ResourceInUse" +// RESOURCEINUSE_ORDER = "ResourceInUse.Order" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DATANODENOTFOUND = "ResourceNotFound.DataNodeNotFound" +// RESOURCENOTFOUND_DISKINFONOTFOUND = "ResourceNotFound.DiskInfoNotFound" +// RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" +// UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_BASICSECURITYTYPE = "UnsupportedOperation.BasicSecurityType" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" +// UNSUPPORTEDOPERATION_LOCALDISK = "UnsupportedOperation.LocalDisk" +// UNSUPPORTEDOPERATION_MULTIZONESUPGRADE = "UnsupportedOperation.MultiZonesUpgrade" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" func (c *Client) UpgradeLicense(request *UpgradeLicenseRequest) (response *UpgradeLicenseResponse, err error) { return c.UpgradeLicenseWithContext(context.Background(), request) } @@ -2320,13 +2636,51 @@ func (c *Client) UpgradeLicense(request *UpgradeLicenseRequest) (response *Upgra // 升级ES商业特性 // // 可能返回的错误码: +// FAILEDOPERATION_ESDICTIONARYINFOERROR = "FailedOperation.EsDictionaryInfoError" // FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" +// FAILEDOPERATION_NOTAUTHENTICATED = "FailedOperation.NotAuthenticated" // INTERNALERROR = "InternalError" // INVALIDPARAMETER = "InvalidParameter" +// INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" +// INVALIDPARAMETER_INVALIDAUTOVOUCHER = "InvalidParameter.InvalidAutoVoucher" +// INVALIDPARAMETER_INVALIDCOSBACKUPINFO = "InvalidParameter.InvalidCosBackupInfo" +// INVALIDPARAMETER_INVALIDDISKCOUNT = "InvalidParameter.InvalidDiskCount" +// INVALIDPARAMETER_INVALIDDISKSIZE = "InvalidParameter.InvalidDiskSize" +// INVALIDPARAMETER_INVALIDDISKTYPE = "InvalidParameter.InvalidDiskType" +// INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" +// INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" +// INVALIDPARAMETER_INVALIDKIBANAPRIVATEPORT = "InvalidParameter.InvalidKibanaPrivatePort" +// INVALIDPARAMETER_INVALIDNODENUM = "InvalidParameter.InvalidNodeNum" +// INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" +// INVALIDPARAMETER_INVALIDOPTYPE = "InvalidParameter.InvalidOpType" +// INVALIDPARAMETER_INVALIDPRIVATEACCESS = "InvalidParameter.InvalidPrivateAccess" +// INVALIDPARAMETER_INVALIDRESTARTTYPE = "InvalidParameter.InvalidRestartType" +// INVALIDPARAMETER_INVALIDTYPE = "InvalidParameter.InvalidType" +// INVALIDPARAMETER_INVALIDVOUCHERIDS = "InvalidParameter.InvalidVoucherIds" +// INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" +// INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" +// INVALIDPARAMETERVALUE_ESCONFIGTYPE = "InvalidParameterValue.EsConfigType" +// INVALIDPARAMETERVALUE_INSTANCENAME = "InvalidParameterValue.InstanceName" +// INVALIDPARAMETERVALUE_INVALIDDEADLINE = "InvalidParameterValue.InvalidDeadline" +// LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" // RESOURCEINUSE = "ResourceInUse" +// RESOURCEINUSE_ORDER = "ResourceInUse.Order" // RESOURCEINSUFFICIENT = "ResourceInsufficient" // RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" +// RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" +// RESOURCENOTFOUND_DATANODENOTFOUND = "ResourceNotFound.DataNodeNotFound" +// RESOURCENOTFOUND_DISKINFONOTFOUND = "ResourceNotFound.DiskInfoNotFound" +// RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" +// UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" // UNSUPPORTEDOPERATION = "UnsupportedOperation" +// UNSUPPORTEDOPERATION_BASICSECURITYTYPE = "UnsupportedOperation.BasicSecurityType" +// UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" +// UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" +// UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" +// UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" +// UNSUPPORTEDOPERATION_LOCALDISK = "UnsupportedOperation.LocalDisk" +// UNSUPPORTEDOPERATION_MULTIZONESUPGRADE = "UnsupportedOperation.MultiZonesUpgrade" +// UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" func (c *Client) UpgradeLicenseWithContext(ctx context.Context, request *UpgradeLicenseRequest) (response *UpgradeLicenseResponse, err error) { if request == nil { request = NewUpgradeLicenseRequest() diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/errors.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/errors.go index df54d606e0..ab773f5ac9 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/errors.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/errors.go @@ -17,15 +17,12 @@ package v20180416 const ( // 此产品的特有错误码 - // CAM签名/鉴权错误。 - AUTHFAILURE = "AuthFailure" + // 当前用户对查询集群实例操作未授权,请添加CAM权限。 + AUTHFAILURE_UNAUTHDESCRIBEINSTANCES = "AuthFailure.UnAuthDescribeInstances" // 操作未授权。 AUTHFAILURE_UNAUTHORIZEDOPERATION = "AuthFailure.UnAuthorizedOperation" - // 操作失败。 - FAILEDOPERATION = "FailedOperation" - // 集群资源配额限制错误。 FAILEDOPERATION_CLUSTERRESOURCELIMITERROR = "FailedOperation.ClusterResourceLimitError" @@ -35,11 +32,17 @@ const ( // 集群状态错误。 FAILEDOPERATION_ERRORCLUSTERSTATE = "FailedOperation.ErrorClusterState" - // 集群索引没有副本存在。 - FAILEDOPERATION_ERRORCLUSTERSTATENOREPLICATION = "FailedOperation.ErrorClusterStateNoReplication" + // 由于EsDictionaryInfo错误,不允许操纵。 + FAILEDOPERATION_ESDICTIONARYINFOERROR = "FailedOperation.EsDictionaryInfoError" + + // 文件名不符合规范。 + FAILEDOPERATION_FILENAMEERROR = "FailedOperation.FileNameError" - // 集群状态不健康。 - FAILEDOPERATION_ERRORCLUSTERSTATEUNHEALTH = "FailedOperation.ErrorClusterStateUnhealth" + // 文件大小不符合要求。 + FAILEDOPERATION_FILESIZEERROR = "FailedOperation.FileSizeError" + + // 获取实例的标签列表错误。 + FAILEDOPERATION_GETTAGINFOERROR = "FailedOperation.GetTagInfoError" // 账户未绑定信用卡或paypal,无法支付。 FAILEDOPERATION_NOPAYMENT = "FailedOperation.NoPayment" @@ -47,6 +50,12 @@ const ( // 用户未实名认证。 FAILEDOPERATION_NOTAUTHENTICATED = "FailedOperation.NotAuthenticated" + // 该实例不满足退费条件。 + FAILEDOPERATION_REFUNDERROR = "FailedOperation.RefundError" + + // 不支持对本地盘集群通过滚动重启方式扩缩容。 + FAILEDOPERATION_UNSUPPORTEDLOCALDISKROLLUPSCALEUPORDOWN = "FailedOperation.UnsupportedLocalDiskRollUpScaleUpOrDown" + // 不支持在滚动重启扩容计算资源同时扩容磁盘数量。 FAILEDOPERATION_UNSUPPORTEDRESETNODETYPEANDSCALEOUTDISK = "FailedOperation.UnsupportedResetNodeTypeAndScaleOutDisk" @@ -62,60 +71,327 @@ const ( // 参数错误。 INVALIDPARAMETER = "InvalidParameter" + // Gc类型的取值和预期不符。 + INVALIDPARAMETER_GC = "InvalidParameter.GC" + + // AppId的取值和预期不符。 + INVALIDPARAMETER_INVALIDAPPID = "InvalidParameter.InvalidAppId" + + // 是否自动使用代金券AutoVoucher的取值和预期不符。 + INVALIDPARAMETER_INVALIDAUTOVOUCHER = "InvalidParameter.InvalidAutoVoucher" + + // ClusterName的取值和预期不符。 + INVALIDPARAMETER_INVALIDCLUSTERNAME = "InvalidParameter.InvalidClusterName" + + // cos自动备份信息与预期不符。 + INVALIDPARAMETER_INVALIDCOSBACKUPINFO = "InvalidParameter.InvalidCosBackupInfo" + + // 集群部署方式InvalidDeployMode的取值和预期不符。 + INVALIDPARAMETER_INVALIDDEPLOYMODE = "InvalidParameter.InvalidDeployMode" + + // 节点磁盘块数DiskCount取值和预期不符。 + INVALIDPARAMETER_INVALIDDISKCOUNT = "InvalidParameter.InvalidDiskCount" + + // 节点磁盘加密信息DiskEncrypt的取值与预期不符。 + INVALIDPARAMETER_INVALIDDISKENCRYPT = "InvalidParameter.InvalidDiskEncrypt" + + // 是否启用增强型ssd云盘DiskEnhance的取值和预期不符。 + INVALIDPARAMETER_INVALIDDISKENHANCE = "InvalidParameter.InvalidDiskEnhance" + + // 节点磁盘容量DiskSize的取值和预期不符。 + INVALIDPARAMETER_INVALIDDISKSIZE = "InvalidParameter.InvalidDiskSize" + + // 节点磁盘类型DiskType的取值和预期不符。 + INVALIDPARAMETER_INVALIDDISKTYPE = "InvalidParameter.InvalidDiskType" + + // EsAcl的取值和预期不符。 + INVALIDPARAMETER_INVALIDESACL = "InvalidParameter.InvalidEsACL" + + // 实例版本EsVersion的取值和预期不符。 + INVALIDPARAMETER_INVALIDESVERSION = "InvalidParameter.InvalidEsVersion" + + // 创建的索引元数据JSON IndexMetaJson的取值和预期不符。 + INVALIDPARAMETER_INVALIDINDEXMETAJSON = "InvalidParameter.InvalidIndexMetaJson" + + // 索引名IndexName的取值和预期不符。 + INVALIDPARAMETER_INVALIDINDEXNAME = "InvalidParameter.InvalidIndexName" + + // 索引类型IndexType的取值和预期不符。 + INVALIDPARAMETER_INVALIDINDEXTYPE = "InvalidParameter.InvalidIndexType" + // 无效的InstanceId,没有找到对应资源。 INVALIDPARAMETER_INVALIDINSTANCEID = "InvalidParameter.InvalidInstanceId" + // Ip地址取值和预期不符。 + INVALIDPARAMETER_INVALIDIP = "InvalidParameter.InvalidIp" + + // 私有网络vip列表IpList的取值和预期不符。 + INVALIDPARAMETER_INVALIDIPLIST = "InvalidParameter.InvalidIpList" + + // Kibana内网访问端口的取值和预期不符。 + INVALIDPARAMETER_INVALIDKIBANAPRIVATEPORT = "InvalidParameter.InvalidKibanaPrivatePort" + + // 分页大小Limit的取值和预期不符。 + INVALIDPARAMETER_INVALIDLIMIT = "InvalidParameter.InvalidLimit" + + // 日志类型LogType的取值和预期不符。 + INVALIDPARAMETER_INVALIDLOGTYPE = "InvalidParameter.InvalidLogType" + + // 多可用区部署ZoneDetail的信息与预期不符。 + INVALIDPARAMETER_INVALIDMULTIZONEINFO = "InvalidParameter.InvalidMultiZoneInfo" + + // 节点名称列表NodeNames的取值和预期不符。 + INVALIDPARAMETER_INVALIDNODENAMES = "InvalidParameter.InvalidNodeNames" + + // 节点数量NodeNum的取值和预期不符。 + INVALIDPARAMETER_INVALIDNODENUM = "InvalidParameter.InvalidNodeNum" + + // 节点规格NodeType的取值和预期不符。 + INVALIDPARAMETER_INVALIDNODETYPE = "InvalidParameter.InvalidNodeType" + + // 分页起始值Offset的取值和预期不符。 + INVALIDPARAMETER_INVALIDOFFSET = "InvalidParameter.InvalidOffset" + + // 操作类型OpType的取值和预期不符。 + INVALIDPARAMETER_INVALIDOPTYPE = "InvalidParameter.InvalidOpType" + + // 可维护时间段OperationDuration的取值和预期不符。 + INVALIDPARAMETER_INVALIDOPERATIONDURATION = "InvalidParameter.InvalidOperationDuration" + + // 排序字段OrderByKey的取值和预期不符。 + INVALIDPARAMETER_INVALIDORDERBYKEY = "InvalidParameter.InvalidOrderByKey" + + // 排序方式OrderByType的取值和预期不符。 + INVALIDPARAMETER_INVALIDORDERBYTYPE = "InvalidParameter.InvalidOrderByType" + + // 内网访问PrivateAccess的取值和预期不符。 + INVALIDPARAMETER_INVALIDPRIVATEACCESS = "InvalidParameter.InvalidPrivateAccess" + + // 外网访问PublicAccess的取值和预期不符。 + INVALIDPARAMETER_INVALIDPUBLICACCESS = "InvalidParameter.InvalidPublicAccess" + + // 地域Region的取值与预期不符。 + INVALIDPARAMETER_INVALIDREGION = "InvalidParameter.InvalidRegion" + + // 可选重启模式RestartMode的取值和预期不符。 + INVALIDPARAMETER_INVALIDRESTARTMODE = "InvalidParameter.InvalidRestartMode" + + // 重启方式RestartType的取值和预期不符。 + INVALIDPARAMETER_INVALIDRESTARTTYPE = "InvalidParameter.InvalidRestartType" + // 安全组id列表SecurityGroupIds的取值和预期不符。 INVALIDPARAMETER_INVALIDSECURITYGROUPIDS = "InvalidParameter.InvalidSecurityGroupIds" + // 子网ID SubnetId的取值与预期不符。 + INVALIDPARAMETER_INVALIDSUBNETID = "InvalidParameter.InvalidSubnetId" + + // 虚拟子网络统一ID列表的取值和预期不符。 + INVALIDPARAMETER_INVALIDSUBNETUIDLIST = "InvalidParameter.InvalidSubnetUidList" + + // 节点标签信息TagInfo的取值和预期不符。 + INVALIDPARAMETER_INVALIDTAGINFO = "InvalidParameter.InvalidTagInfo" + + // 节点标签信息列表TagList的取值和预期不符。 + INVALIDPARAMETER_INVALIDTAGLIST = "InvalidParameter.InvalidTagList" + + // 时间相关参数的取值或格式和预期不符。 + INVALIDPARAMETER_INVALIDTIMEPARAM = "InvalidParameter.InvalidTimeParam" + + // 节点类型Type的取值和预期不符。 + INVALIDPARAMETER_INVALIDTYPE = "InvalidParameter.InvalidType" + + // 更新的索引元数据json UpdateMetaJson的取值和预期不符。 + INVALIDPARAMETER_INVALIDUPDATEMETAJSON = "InvalidParameter.InvalidUpdateMetaJson" + + // 更新类型UpdateType的取值和预期不符。 + INVALIDPARAMETER_INVALIDUPDATETYPE = "InvalidParameter.InvalidUpdateType" + + // 代金券ID列表VoucherIds的取值和预期不符。 + INVALIDPARAMETER_INVALIDVOUCHERIDS = "InvalidParameter.InvalidVoucherIds" + + // 可用区Zone的信息与预期不符。 + INVALIDPARAMETER_INVALIDZONE = "InvalidParameter.InvalidZone" + // 参数取值错误。 INVALIDPARAMETERVALUE = "InvalidParameterValue" - // 缺少参数错误。 - MISSINGPARAMETER = "MissingParameter" + // 计费类型ChargeType的参数取值有误。 + INVALIDPARAMETERVALUE_CHARGETYPE = "InvalidParameterValue.ChargeType" + + // 组件配置值有误。 + INVALIDPARAMETERVALUE_CONFIGINFO = "InvalidParameterValue.ConfigInfo" + + // ES配置类型取值有误。 + INVALIDPARAMETERVALUE_ESCONFIGTYPE = "InvalidParameterValue.EsConfigType" + + // 为集群稳定起见,当前只支持同时安装1个用户插件。 + INVALIDPARAMETERVALUE_INSTALLPLUGINLIST = "InvalidParameterValue.InstallPluginList" + + // 实例名校验失败,按规则输入。 + INVALIDPARAMETERVALUE_INSTANCENAME = "InvalidParameterValue.InstanceName" + + // 截止日期冲突。 + INVALIDPARAMETERVALUE_INVALIDDEADLINE = "InvalidParameterValue.InvalidDeadline" + + // Jdk类型的取值和预期不符。 + INVALIDPARAMETERVALUE_INVALIDJDK = "InvalidParameterValue.InvalidJDK" + + // 密码校验不合法。 + INVALIDPARAMETERVALUE_PASSWORD = "InvalidParameterValue.Password" + + // 插件类型PluginType的取值有误。 + INVALIDPARAMETERVALUE_PLUGINTYPE = "InvalidParameterValue.PluginType" + + // 自动续费标识RenewFlag的参数取值有误。 + INVALIDPARAMETERVALUE_RENEWFLAG = "InvalidParameterValue.RenewFlag" + + // 升级方式UpgradeMode的取值有误。 + INVALIDPARAMETERVALUE_UPGRADEMODE = "InvalidParameterValue.UpgradeMode" + + // 该账号下的集群数超过限额。 + LIMITEXCEEDED_CLUSTERNUM = "LimitExceeded.ClusterNum" + + // 超过当天智能诊断最大次数。 + LIMITEXCEEDED_DIAGNOSECOUNT = "LimitExceeded.DiagnoseCount" - // 请求的次数超过了频率限制。 - REQUESTLIMITEXCEEDED = "RequestLimitExceeded" + // 节点数量或索引存储量超过限额。 + LIMITEXCEEDED_NODENUMORINDICES = "LimitExceeded.NodeNumOrIndices" + + // 超过最大自定义插件数量,请先删除部分自定义插件。 + LIMITEXCEEDED_PLUGININSTALL = "LimitExceeded.PluginInstall" + + // 超出一个用户可以拥有的最大资源限制。 + LIMITEXCEEDED_RESOURCELIMIT = "LimitExceeded.ResourceLimit" + + // 更新参数值过多,超过限制。 + LIMITEXCEEDED_UPDATEITEMLIMIT = "LimitExceeded.UpdateItemLimit" // 资源被占用。 RESOURCEINUSE = "ResourceInUse" + // 存在诊断中的作业,请等待作业诊断完成后重试。 + RESOURCEINUSE_DIAGNOSE = "ResourceInUse.Diagnose" + + // 订单被锁定。 + RESOURCEINUSE_ORDER = "ResourceInUse.Order" + // 资源不足。 RESOURCEINSUFFICIENT = "ResourceInsufficient" // 账户余额不足。 RESOURCEINSUFFICIENT_BALANCE = "ResourceInsufficient.Balance" + // 计算资源不足,可更换可用区或调整机型。 + RESOURCEINSUFFICIENT_CVM = "ResourceInsufficient.CVM" + // 隐藏可用区专用主节点资源不足。 RESOURCEINSUFFICIENT_HIDDENZONE = "ResourceInsufficient.HiddenZone" // 子网剩余ip数量不足。 RESOURCEINSUFFICIENT_SUBNET = "ResourceInsufficient.Subnet" - // 资源不存在。 - RESOURCENOTFOUND = "ResourceNotFound" + // 可用的子网IP不足。 + RESOURCEINSUFFICIENT_SUBNETIP = "ResourceInsufficient.SubnetIp" + + // 可用区资源不足。 + RESOURCEINSUFFICIENT_ZONE = "ResourceInsufficient.Zone" + + // CAM资源未找到。 + RESOURCENOTFOUND_CAMINFONOTFOUND = "ResourceNotFound.CAMInfoNotFound" + + // 集群资源获取失败。 + RESOURCENOTFOUND_CLUSTERINFONOTFOUND = "ResourceNotFound.ClusterInfoNotFound" + + // COS相关信息获取失败。 + RESOURCENOTFOUND_COSINFONOTFOUND = "ResourceNotFound.CosInfoNotFound" // 数据库资源获取失败。 RESOURCENOTFOUND_DBINFONOTFOUND = "ResourceNotFound.DBInfoNotFound" + // 数据节点信息未找到。 + RESOURCENOTFOUND_DATANODENOTFOUND = "ResourceNotFound.DataNodeNotFound" + + // 智能诊断相关资源未找到。 + RESOURCENOTFOUND_DIAGNOSENOTFOUND = "ResourceNotFound.DiagnoseNotFound" + + // 磁盘相关资源获取失败。 + RESOURCENOTFOUND_DISKINFONOTFOUND = "ResourceNotFound.DiskInfoNotFound" + + // 获取oss资源失败。 + RESOURCENOTFOUND_OSSINFONOTFOUND = "ResourceNotFound.OssInfoNotFound" + // 安全组信息获取失败。 RESOURCENOTFOUND_SECURITYGROUPNOTFOUND = "ResourceNotFound.SecurityGroupNotFound" - // 资源不可用。 - RESOURCEUNAVAILABLE = "ResourceUnavailable" + // 获取计费资源失败。 + RESOURCENOTFOUND_TRADECGWNOTFOUND = "ResourceNotFound.TradeCgwNotFound" + + // VPC资源获取失败。 + RESOURCENOTFOUND_VPCINFONOTFOUND = "ResourceNotFound.VPCInfoNotFound" - // 资源售罄。 - RESOURCESSOLDOUT = "ResourcesSoldOut" + // 白名单资源获取失败。 + RESOURCENOTFOUND_WHITELISTNOTFOUND = "ResourceNotFound.WhiteListNotFound" - // 未授权操作。 - UNAUTHORIZEDOPERATION = "UnauthorizedOperation" + // 资源不可用。 + RESOURCEUNAVAILABLE = "ResourceUnavailable" - // 未知参数错误。 - UNKNOWNPARAMETER = "UnknownParameter" + // Uin不在白名单中。 + UNAUTHORIZEDOPERATION_UINNOTINWHITELIST = "UnauthorizedOperation.UinNotInWhiteList" // 操作不支持。 UNSUPPORTEDOPERATION = "UnsupportedOperation" + // 不支持该认证方式。 + UNSUPPORTEDOPERATION_BASICSECURITYTYPE = "UnsupportedOperation.BasicSecurityType" + + // 不支持变配节点或磁盘的配置。 + UNSUPPORTEDOPERATION_CHANGENODETYPE = "UnsupportedOperation.ChangeNodeType" + + // 集群中存在部分索引处于关闭状态。 + UNSUPPORTEDOPERATION_CLUSTERSTATECLOSE = "UnsupportedOperation.ClusterStateClose" + + // 集群中存在部分索引无备份。 + UNSUPPORTEDOPERATION_CLUSTERSTATENOREPLICATION = "UnsupportedOperation.ClusterStateNoReplication" + + // 集群的状态不正常(不为绿)。 + UNSUPPORTEDOPERATION_CLUSTERSTATEUNHEALTH = "UnsupportedOperation.ClusterStateUnHealth" + + // 该版本不支持cos备份。集群需要重启来允许cos备份。 + UNSUPPORTEDOPERATION_COSBACKUP = "UnsupportedOperation.CosBackUp" + + // 不支持该智能诊断任务。 + UNSUPPORTEDOPERATION_DIAGNOSEJOB = "UnsupportedOperation.DiagnoseJob" + + // 智能诊断未开启。 + UNSUPPORTEDOPERATION_DIAGNOSENOTOPEN = "UnsupportedOperation.DiagnoseNotOpen" + + // 不支持该操作,服务类型有误。 + UNSUPPORTEDOPERATION_INSTANCETYPEERROR = "UnsupportedOperation.InstanceTypeError" + + // 不支持该操作,license的类型有误。 + UNSUPPORTEDOPERATION_LICENSEERROR = "UnsupportedOperation.LicenseError" + + // 不支持本地盘机型。 + UNSUPPORTEDOPERATION_LOCALDISK = "UnsupportedOperation.LocalDisk" + + // 不支持多可用区变配。 + UNSUPPORTEDOPERATION_MULTIZONESUPGRADE = "UnsupportedOperation.MultiZonesUpgrade" + + // 不支持该插件。 + UNSUPPORTEDOPERATION_PLUGIN = "UnsupportedOperation.Plugin" + + // 离线节点蓝绿变更存在风险,请直接选择重启“in-place”。 + UNSUPPORTEDOPERATION_RESTARTMODE = "UnsupportedOperation.RestartMode" + + // 不支持该操作,当前实例运行状态不为正常。 + UNSUPPORTEDOPERATION_STATUSNOTNORMAL = "UnsupportedOperation.StatusNotNormal" + // 不支持该操作,实例状态有误。 UNSUPPORTEDOPERATION_STATUSNOTSUPPORT = "UnsupportedOperation.StatusNotSupport" + + // VPC资源获取失败。 + UNSUPPORTEDOPERATION_VPCINFONOTFOUND = "UnsupportedOperation.VPCInfoNotFound" + + // 不支持的web组件。 + UNSUPPORTEDOPERATION_WEBSERVICETYPE = "UnsupportedOperation.WebServiceType" ) diff --git a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/models.go b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/models.go index c6060e545a..6980eab076 100644 --- a/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/models.go +++ b/vendor/github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416/models.go @@ -15,152 +15,152 @@ package v20180416 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 BackingIndexMetaField struct { // 后备索引名 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 后备索引状态 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexStatus *string `json:"IndexStatus,omitempty" name:"IndexStatus"` + IndexStatus *string `json:"IndexStatus,omitnil" name:"IndexStatus"` // 后备索引存储大小 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexStorage *int64 `json:"IndexStorage,omitempty" name:"IndexStorage"` + IndexStorage *int64 `json:"IndexStorage,omitnil" name:"IndexStorage"` // 后备索引当前生命周期 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexPhrase *string `json:"IndexPhrase,omitempty" name:"IndexPhrase"` + IndexPhrase *string `json:"IndexPhrase,omitnil" name:"IndexPhrase"` // 后备索引创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexCreateTime *string `json:"IndexCreateTime,omitempty" name:"IndexCreateTime"` + IndexCreateTime *string `json:"IndexCreateTime,omitnil" name:"IndexCreateTime"` } type ClusterView struct { // 集群健康状态 - Health *float64 `json:"Health,omitempty" name:"Health"` + Health *float64 `json:"Health,omitnil" name:"Health"` // 集群是否可见 - Visible *float64 `json:"Visible,omitempty" name:"Visible"` + Visible *float64 `json:"Visible,omitnil" name:"Visible"` // 集群是否熔断 - Break *float64 `json:"Break,omitempty" name:"Break"` + Break *float64 `json:"Break,omitnil" name:"Break"` // 平均磁盘使用率 - AvgDiskUsage *float64 `json:"AvgDiskUsage,omitempty" name:"AvgDiskUsage"` + AvgDiskUsage *float64 `json:"AvgDiskUsage,omitnil" name:"AvgDiskUsage"` // 平均内存使用率 - AvgMemUsage *float64 `json:"AvgMemUsage,omitempty" name:"AvgMemUsage"` + AvgMemUsage *float64 `json:"AvgMemUsage,omitnil" name:"AvgMemUsage"` // 平均cpu使用率 - AvgCpuUsage *float64 `json:"AvgCpuUsage,omitempty" name:"AvgCpuUsage"` + AvgCpuUsage *float64 `json:"AvgCpuUsage,omitnil" name:"AvgCpuUsage"` // 集群总存储大小 - TotalDiskSize *uint64 `json:"TotalDiskSize,omitempty" name:"TotalDiskSize"` + TotalDiskSize *uint64 `json:"TotalDiskSize,omitnil" name:"TotalDiskSize"` // 客户端请求节点 - TargetNodeTypes []*string `json:"TargetNodeTypes,omitempty" name:"TargetNodeTypes"` + TargetNodeTypes []*string `json:"TargetNodeTypes,omitnil" name:"TargetNodeTypes"` // 在线节点数 - NodeNum *int64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *int64 `json:"NodeNum,omitnil" name:"NodeNum"` // 总节点数 - TotalNodeNum *int64 `json:"TotalNodeNum,omitempty" name:"TotalNodeNum"` + TotalNodeNum *int64 `json:"TotalNodeNum,omitnil" name:"TotalNodeNum"` // 数据节点数 - DataNodeNum *int64 `json:"DataNodeNum,omitempty" name:"DataNodeNum"` + DataNodeNum *int64 `json:"DataNodeNum,omitnil" name:"DataNodeNum"` // 索引数 - IndexNum *int64 `json:"IndexNum,omitempty" name:"IndexNum"` + IndexNum *int64 `json:"IndexNum,omitnil" name:"IndexNum"` // 文档数 - DocNum *int64 `json:"DocNum,omitempty" name:"DocNum"` + DocNum *int64 `json:"DocNum,omitnil" name:"DocNum"` // 磁盘已使用字节数 - DiskUsedInBytes *int64 `json:"DiskUsedInBytes,omitempty" name:"DiskUsedInBytes"` + DiskUsedInBytes *int64 `json:"DiskUsedInBytes,omitnil" name:"DiskUsedInBytes"` // 分片个数 - ShardNum *int64 `json:"ShardNum,omitempty" name:"ShardNum"` + ShardNum *int64 `json:"ShardNum,omitnil" name:"ShardNum"` // 主分片个数 - PrimaryShardNum *int64 `json:"PrimaryShardNum,omitempty" name:"PrimaryShardNum"` + PrimaryShardNum *int64 `json:"PrimaryShardNum,omitnil" name:"PrimaryShardNum"` // 迁移中的分片个数 - RelocatingShardNum *int64 `json:"RelocatingShardNum,omitempty" name:"RelocatingShardNum"` + RelocatingShardNum *int64 `json:"RelocatingShardNum,omitnil" name:"RelocatingShardNum"` // 初始化中的分片个数 - InitializingShardNum *int64 `json:"InitializingShardNum,omitempty" name:"InitializingShardNum"` + InitializingShardNum *int64 `json:"InitializingShardNum,omitnil" name:"InitializingShardNum"` // 未分配的分片个数 - UnassignedShardNum *int64 `json:"UnassignedShardNum,omitempty" name:"UnassignedShardNum"` + UnassignedShardNum *int64 `json:"UnassignedShardNum,omitnil" name:"UnassignedShardNum"` // 企业版COS存储容量大小,单位GB - TotalCosStorage *int64 `json:"TotalCosStorage,omitempty" name:"TotalCosStorage"` + TotalCosStorage *int64 `json:"TotalCosStorage,omitnil" name:"TotalCosStorage"` // 企业版集群可搜索快照cos存放的bucket名称 // 注意:此字段可能返回 null,表示取不到有效值。 - SearchableSnapshotCosBucket *string `json:"SearchableSnapshotCosBucket,omitempty" name:"SearchableSnapshotCosBucket"` + SearchableSnapshotCosBucket *string `json:"SearchableSnapshotCosBucket,omitnil" name:"SearchableSnapshotCosBucket"` // 企业版集群可搜索快照cos所属appid // 注意:此字段可能返回 null,表示取不到有效值。 - SearchableSnapshotCosAppId *string `json:"SearchableSnapshotCosAppId,omitempty" name:"SearchableSnapshotCosAppId"` + SearchableSnapshotCosAppId *string `json:"SearchableSnapshotCosAppId,omitnil" name:"SearchableSnapshotCosAppId"` } type CosBackup struct { // 是否开启cos自动备份 - IsAutoBackup *bool `json:"IsAutoBackup,omitempty" name:"IsAutoBackup"` + IsAutoBackup *bool `json:"IsAutoBackup,omitnil" name:"IsAutoBackup"` // 自动备份执行时间(精确到小时), e.g. "22:00" - BackupTime *string `json:"BackupTime,omitempty" name:"BackupTime"` + BackupTime *string `json:"BackupTime,omitnil" name:"BackupTime"` } // Predefined struct for user type CreateIndexRequestParams struct { // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 创建的索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 创建的索引名 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` - // 创建的索引元数据JSON,如mappings、settings - IndexMetaJson *string `json:"IndexMetaJson,omitempty" name:"IndexMetaJson"` + // 【必填】创建的索引元数据JSON,如mappings、settings + IndexMetaJson *string `json:"IndexMetaJson,omitnil" name:"IndexMetaJson"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` } type CreateIndexRequest struct { *tchttp.BaseRequest // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 创建的索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 创建的索引名 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` - // 创建的索引元数据JSON,如mappings、settings - IndexMetaJson *string `json:"IndexMetaJson,omitempty" name:"IndexMetaJson"` + // 【必填】创建的索引元数据JSON,如mappings、settings + IndexMetaJson *string `json:"IndexMetaJson,omitnil" name:"IndexMetaJson"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` } func (r *CreateIndexRequest) ToJsonString() string { @@ -190,7 +190,7 @@ func (r *CreateIndexRequest) FromJsonString(s string) error { // Predefined struct for user type CreateIndexResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateIndexResponse struct { @@ -212,228 +212,234 @@ func (r *CreateIndexResponse) FromJsonString(s string) error { // Predefined struct for user type CreateInstanceRequestParams struct { // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 实例版本(支持"5.6.4"、"6.4.3"、"6.8.2"、"7.5.1"、"7.10.1") - EsVersion *string `json:"EsVersion,omitempty" name:"EsVersion"` + EsVersion *string `json:"EsVersion,omitnil" name:"EsVersion"` // 私有网络ID - VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + VpcId *string `json:"VpcId,omitnil" name:"VpcId"` // 子网ID - SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // 访问密码(密码需8到16位,至少包括两项([a-z,A-Z],[0-9]和[-!@#$%&^*+=_:;,.?]的特殊符号) - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 已废弃请使用NodeInfoList // 节点数量(2-50个) - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR - ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + ChargeType *string `json:"ChargeType,omitnil" name:"ChargeType"` // 包年包月购买时长(单位由参数TimeUnit决定) - ChargePeriod *uint64 `json:"ChargePeriod,omitempty" name:"ChargePeriod"` + ChargePeriod *uint64 `json:"ChargePeriod,omitnil" name:"ChargePeriod"` // 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 - RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` + RenewFlag *string `json:"RenewFlag,omitnil" name:"RenewFlag"` // 已废弃请使用NodeInfoList // 节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 已废弃请使用NodeInfoList - // 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD - DiskType *string `json:"DiskType,omitempty" name:"DiskType"` + // 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高性能云硬盘
  • 默认值CLOUD_SSD + DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // 已废弃请使用NodeInfoList // 节点磁盘容量(单位GB) - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) - TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` + TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 - AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` + AutoVoucher *int64 `json:"AutoVoucher,omitnil" name:"AutoVoucher"` // 代金券ID列表(目前仅支持指定一张代金券) - VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"` + VoucherIds []*string `json:"VoucherIds,omitnil" name:"VoucherIds"` // 已废弃请使用NodeInfoList // 是否创建专用主节点
  • true:开启专用主节点
  • false:不开启专用主节点
  • 默认值false - EnableDedicatedMaster *bool `json:"EnableDedicatedMaster,omitempty" name:"EnableDedicatedMaster"` + EnableDedicatedMaster *bool `json:"EnableDedicatedMaster,omitnil" name:"EnableDedicatedMaster"` // 已废弃请使用NodeInfoList // 专用主节点个数(只支持3个和5个,EnableDedicatedMaster为true时该值必传) - MasterNodeNum *uint64 `json:"MasterNodeNum,omitempty" name:"MasterNodeNum"` + MasterNodeNum *uint64 `json:"MasterNodeNum,omitnil" name:"MasterNodeNum"` // 已废弃请使用NodeInfoList // 专用主节点类型(EnableDedicatedMaster为true时必传)
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - MasterNodeType *string `json:"MasterNodeType,omitempty" name:"MasterNodeType"` + MasterNodeType *string `json:"MasterNodeType,omitnil" name:"MasterNodeType"` // 已废弃请使用NodeInfoList // 专用主节点磁盘大小(单位GB,非必传,若传递则必须为50,暂不支持自定义) - MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitempty" name:"MasterNodeDiskSize"` + MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitnil" name:"MasterNodeDiskSize"` // 集群配置文件中的ClusterName(系统默认配置为实例ID,暂不支持自定义) - ClusterNameInConf *string `json:"ClusterNameInConf,omitempty" name:"ClusterNameInConf"` + ClusterNameInConf *string `json:"ClusterNameInConf,omitnil" name:"ClusterNameInConf"` // 集群部署方式
  • 0:单可用区部署
  • 1:多可用区部署
  • 默认为0 - DeployMode *uint64 `json:"DeployMode,omitempty" name:"DeployMode"` + DeployMode *uint64 `json:"DeployMode,omitnil" name:"DeployMode"` // 多可用区部署时可用区的详细信息(DeployMode为1时必传) - MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitempty" name:"MultiZoneInfo"` + MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitnil" name:"MultiZoneInfo"` // License类型
  • oss:开源版
  • basic:基础版
  • platinum:白金版
  • 默认值platinum - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 节点信息列表, 用于描述集群各类节点的规格信息如节点类型,节点个数,节点规格,磁盘类型,磁盘大小等 - NodeInfoList []*NodeInfo `json:"NodeInfoList,omitempty" name:"NodeInfoList"` + NodeInfoList []*NodeInfo `json:"NodeInfoList,omitnil" name:"NodeInfoList"` // 节点标签信息列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • - BasicSecurityType *uint64 `json:"BasicSecurityType,omitempty" name:"BasicSecurityType"` + BasicSecurityType *uint64 `json:"BasicSecurityType,omitnil" name:"BasicSecurityType"` // 场景化模板类型 0:不启用 1:通用 2:日志 3:搜索 - SceneType *int64 `json:"SceneType,omitempty" name:"SceneType"` + SceneType *int64 `json:"SceneType,omitnil" name:"SceneType"` // 可视化节点配置 - WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitempty" name:"WebNodeTypeInfo"` + WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitnil" name:"WebNodeTypeInfo"` // 创建https集群,默认是http - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 可维护时间段 - OperationDuration *OperationDuration `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDuration `json:"OperationDuration,omitnil" name:"OperationDuration"` // 是否开启存算分离 - EnableHybridStorage *bool `json:"EnableHybridStorage,omitempty" name:"EnableHybridStorage"` + EnableHybridStorage *bool `json:"EnableHybridStorage,omitnil" name:"EnableHybridStorage"` // 是否开启essd 增强型云盘 - DiskEnhance *uint64 `json:"DiskEnhance,omitempty" name:"DiskEnhance"` + DiskEnhance *uint64 `json:"DiskEnhance,omitnil" name:"DiskEnhance"` // 是否开启智能巡检 - EnableDiagnose *bool `json:"EnableDiagnose,omitempty" name:"EnableDiagnose"` + EnableDiagnose *bool `json:"EnableDiagnose,omitnil" name:"EnableDiagnose"` + + // cdcId,使用cdc子网时传递 + CdcId *string `json:"CdcId,omitnil" name:"CdcId"` } type CreateInstanceRequest struct { *tchttp.BaseRequest // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 实例版本(支持"5.6.4"、"6.4.3"、"6.8.2"、"7.5.1"、"7.10.1") - EsVersion *string `json:"EsVersion,omitempty" name:"EsVersion"` + EsVersion *string `json:"EsVersion,omitnil" name:"EsVersion"` // 私有网络ID - VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + VpcId *string `json:"VpcId,omitnil" name:"VpcId"` // 子网ID - SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // 访问密码(密码需8到16位,至少包括两项([a-z,A-Z],[0-9]和[-!@#$%&^*+=_:;,.?]的特殊符号) - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 已废弃请使用NodeInfoList // 节点数量(2-50个) - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR - ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + ChargeType *string `json:"ChargeType,omitnil" name:"ChargeType"` // 包年包月购买时长(单位由参数TimeUnit决定) - ChargePeriod *uint64 `json:"ChargePeriod,omitempty" name:"ChargePeriod"` + ChargePeriod *uint64 `json:"ChargePeriod,omitnil" name:"ChargePeriod"` // 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 - RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` + RenewFlag *string `json:"RenewFlag,omitnil" name:"RenewFlag"` // 已废弃请使用NodeInfoList // 节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 已废弃请使用NodeInfoList - // 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD - DiskType *string `json:"DiskType,omitempty" name:"DiskType"` + // 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高性能云硬盘
  • 默认值CLOUD_SSD + DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // 已废弃请使用NodeInfoList // 节点磁盘容量(单位GB) - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) - TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` + TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 - AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` + AutoVoucher *int64 `json:"AutoVoucher,omitnil" name:"AutoVoucher"` // 代金券ID列表(目前仅支持指定一张代金券) - VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"` + VoucherIds []*string `json:"VoucherIds,omitnil" name:"VoucherIds"` // 已废弃请使用NodeInfoList // 是否创建专用主节点
  • true:开启专用主节点
  • false:不开启专用主节点
  • 默认值false - EnableDedicatedMaster *bool `json:"EnableDedicatedMaster,omitempty" name:"EnableDedicatedMaster"` + EnableDedicatedMaster *bool `json:"EnableDedicatedMaster,omitnil" name:"EnableDedicatedMaster"` // 已废弃请使用NodeInfoList // 专用主节点个数(只支持3个和5个,EnableDedicatedMaster为true时该值必传) - MasterNodeNum *uint64 `json:"MasterNodeNum,omitempty" name:"MasterNodeNum"` + MasterNodeNum *uint64 `json:"MasterNodeNum,omitnil" name:"MasterNodeNum"` // 已废弃请使用NodeInfoList // 专用主节点类型(EnableDedicatedMaster为true时必传)
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - MasterNodeType *string `json:"MasterNodeType,omitempty" name:"MasterNodeType"` + MasterNodeType *string `json:"MasterNodeType,omitnil" name:"MasterNodeType"` // 已废弃请使用NodeInfoList // 专用主节点磁盘大小(单位GB,非必传,若传递则必须为50,暂不支持自定义) - MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitempty" name:"MasterNodeDiskSize"` + MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitnil" name:"MasterNodeDiskSize"` // 集群配置文件中的ClusterName(系统默认配置为实例ID,暂不支持自定义) - ClusterNameInConf *string `json:"ClusterNameInConf,omitempty" name:"ClusterNameInConf"` + ClusterNameInConf *string `json:"ClusterNameInConf,omitnil" name:"ClusterNameInConf"` // 集群部署方式
  • 0:单可用区部署
  • 1:多可用区部署
  • 默认为0 - DeployMode *uint64 `json:"DeployMode,omitempty" name:"DeployMode"` + DeployMode *uint64 `json:"DeployMode,omitnil" name:"DeployMode"` // 多可用区部署时可用区的详细信息(DeployMode为1时必传) - MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitempty" name:"MultiZoneInfo"` + MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitnil" name:"MultiZoneInfo"` // License类型
  • oss:开源版
  • basic:基础版
  • platinum:白金版
  • 默认值platinum - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 节点信息列表, 用于描述集群各类节点的规格信息如节点类型,节点个数,节点规格,磁盘类型,磁盘大小等 - NodeInfoList []*NodeInfo `json:"NodeInfoList,omitempty" name:"NodeInfoList"` + NodeInfoList []*NodeInfo `json:"NodeInfoList,omitnil" name:"NodeInfoList"` // 节点标签信息列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • - BasicSecurityType *uint64 `json:"BasicSecurityType,omitempty" name:"BasicSecurityType"` + BasicSecurityType *uint64 `json:"BasicSecurityType,omitnil" name:"BasicSecurityType"` // 场景化模板类型 0:不启用 1:通用 2:日志 3:搜索 - SceneType *int64 `json:"SceneType,omitempty" name:"SceneType"` + SceneType *int64 `json:"SceneType,omitnil" name:"SceneType"` // 可视化节点配置 - WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitempty" name:"WebNodeTypeInfo"` + WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitnil" name:"WebNodeTypeInfo"` // 创建https集群,默认是http - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 可维护时间段 - OperationDuration *OperationDuration `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDuration `json:"OperationDuration,omitnil" name:"OperationDuration"` // 是否开启存算分离 - EnableHybridStorage *bool `json:"EnableHybridStorage,omitempty" name:"EnableHybridStorage"` + EnableHybridStorage *bool `json:"EnableHybridStorage,omitnil" name:"EnableHybridStorage"` // 是否开启essd 增强型云盘 - DiskEnhance *uint64 `json:"DiskEnhance,omitempty" name:"DiskEnhance"` + DiskEnhance *uint64 `json:"DiskEnhance,omitnil" name:"DiskEnhance"` // 是否开启智能巡检 - EnableDiagnose *bool `json:"EnableDiagnose,omitempty" name:"EnableDiagnose"` + EnableDiagnose *bool `json:"EnableDiagnose,omitnil" name:"EnableDiagnose"` + + // cdcId,使用cdc子网时传递 + CdcId *string `json:"CdcId,omitnil" name:"CdcId"` } func (r *CreateInstanceRequest) ToJsonString() string { @@ -482,6 +488,7 @@ func (r *CreateInstanceRequest) FromJsonString(s string) error { delete(f, "EnableHybridStorage") delete(f, "DiskEnhance") delete(f, "EnableDiagnose") + delete(f, "CdcId") if len(f) > 0 { return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "CreateInstanceRequest has unknown keys!", "") } @@ -491,14 +498,14 @@ func (r *CreateInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type CreateInstanceResponseParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 订单号 // 注意:此字段可能返回 null,表示取不到有效值。 - DealName *string `json:"DealName,omitempty" name:"DealName"` + DealName *string `json:"DealName,omitnil" name:"DealName"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type CreateInstanceResponse struct { @@ -520,116 +527,116 @@ func (r *CreateInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type CreateLogstashInstanceRequestParams struct { // 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 实例版本(支持"6.8.13"、"7.10.1") - LogstashVersion *string `json:"LogstashVersion,omitempty" name:"LogstashVersion"` + LogstashVersion *string `json:"LogstashVersion,omitnil" name:"LogstashVersion"` // 私有网络ID - VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + VpcId *string `json:"VpcId,omitnil" name:"VpcId"` // 子网ID - SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // 节点数量(2-50个) - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR - ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + ChargeType *string `json:"ChargeType,omitnil" name:"ChargeType"` // 包年包月购买时长(单位由参数TimeUnit决定) - ChargePeriod *uint64 `json:"ChargePeriod,omitempty" name:"ChargePeriod"` + ChargePeriod *uint64 `json:"ChargePeriod,omitnil" name:"ChargePeriod"` // 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) - TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` + TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 - AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` + AutoVoucher *int64 `json:"AutoVoucher,omitnil" name:"AutoVoucher"` // 代金券ID列表(目前仅支持指定一张代金券) - VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"` + VoucherIds []*string `json:"VoucherIds,omitnil" name:"VoucherIds"` // 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 - RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` + RenewFlag *string `json:"RenewFlag,omitnil" name:"RenewFlag"` // 节点规格
  • LOGSTASH.S1.SMALL2:1核2G
  • LOGSTASH.S1.MEDIUM4:2核4G
  • LOGSTASH.S1.MEDIUM8:2核8G
  • LOGSTASH.S1.LARGE16:4核16G
  • LOGSTASH.S1.2XLARGE32:8核32G
  • LOGSTASH.S1.4XLARGE32:16核32G
  • LOGSTASH.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD - DiskType *string `json:"DiskType,omitempty" name:"DiskType"` + DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // 节点磁盘容量(单位GB) - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // License类型
  • oss:开源版
  • xpack:xpack版
  • 默认值xpack - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 标签信息列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` // 可维护时间段 - OperationDuration *OperationDuration `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDuration `json:"OperationDuration,omitnil" name:"OperationDuration"` } type CreateLogstashInstanceRequest struct { *tchttp.BaseRequest // 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 实例版本(支持"6.8.13"、"7.10.1") - LogstashVersion *string `json:"LogstashVersion,omitempty" name:"LogstashVersion"` + LogstashVersion *string `json:"LogstashVersion,omitnil" name:"LogstashVersion"` // 私有网络ID - VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + VpcId *string `json:"VpcId,omitnil" name:"VpcId"` // 子网ID - SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // 节点数量(2-50个) - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 计费类型
  • PREPAID:预付费,即包年包月
  • POSTPAID_BY_HOUR:按小时后付费
  • 默认值POSTPAID_BY_HOUR - ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + ChargeType *string `json:"ChargeType,omitnil" name:"ChargeType"` // 包年包月购买时长(单位由参数TimeUnit决定) - ChargePeriod *uint64 `json:"ChargePeriod,omitempty" name:"ChargePeriod"` + ChargePeriod *uint64 `json:"ChargePeriod,omitnil" name:"ChargePeriod"` // 计费时长单位(ChargeType为PREPAID时需要设置,默认值为“m”,表示月,当前只支持“m”) - TimeUnit *string `json:"TimeUnit,omitempty" name:"TimeUnit"` + TimeUnit *string `json:"TimeUnit,omitnil" name:"TimeUnit"` // 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 - AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` + AutoVoucher *int64 `json:"AutoVoucher,omitnil" name:"AutoVoucher"` // 代金券ID列表(目前仅支持指定一张代金券) - VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"` + VoucherIds []*string `json:"VoucherIds,omitnil" name:"VoucherIds"` // 自动续费标识
  • RENEW_FLAG_AUTO:自动续费
  • RENEW_FLAG_MANUAL:不自动续费,用户手动续费
  • ChargeType为PREPAID时需要设置,如不传递该参数,普通用户默认不自动续费,SVIP用户自动续费 - RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` + RenewFlag *string `json:"RenewFlag,omitnil" name:"RenewFlag"` // 节点规格
  • LOGSTASH.S1.SMALL2:1核2G
  • LOGSTASH.S1.MEDIUM4:2核4G
  • LOGSTASH.S1.MEDIUM8:2核8G
  • LOGSTASH.S1.LARGE16:4核16G
  • LOGSTASH.S1.2XLARGE32:8核32G
  • LOGSTASH.S1.4XLARGE32:16核32G
  • LOGSTASH.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD - DiskType *string `json:"DiskType,omitempty" name:"DiskType"` + DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // 节点磁盘容量(单位GB) - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // License类型
  • oss:开源版
  • xpack:xpack版
  • 默认值xpack - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 标签信息列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` // 可维护时间段 - OperationDuration *OperationDuration `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDuration `json:"OperationDuration,omitnil" name:"OperationDuration"` } func (r *CreateLogstashInstanceRequest) ToJsonString() string { @@ -671,10 +678,10 @@ func (r *CreateLogstashInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type CreateLogstashInstanceResponseParams 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 CreateLogstashInstanceResponse struct { @@ -696,44 +703,44 @@ func (r *CreateLogstashInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteIndexRequestParams struct { // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 删除的索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 删除的索引名 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 后备索引名 - BackingIndexName *string `json:"BackingIndexName,omitempty" name:"BackingIndexName"` + BackingIndexName *string `json:"BackingIndexName,omitnil" name:"BackingIndexName"` } type DeleteIndexRequest struct { *tchttp.BaseRequest // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 删除的索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 删除的索引名 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 后备索引名 - BackingIndexName *string `json:"BackingIndexName,omitempty" name:"BackingIndexName"` + BackingIndexName *string `json:"BackingIndexName,omitnil" name:"BackingIndexName"` } func (r *DeleteIndexRequest) ToJsonString() string { @@ -763,7 +770,7 @@ func (r *DeleteIndexRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteIndexResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteIndexResponse struct { @@ -785,14 +792,14 @@ func (r *DeleteIndexResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteInstanceRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } type DeleteInstanceRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } func (r *DeleteInstanceRequest) ToJsonString() string { @@ -817,7 +824,7 @@ func (r *DeleteInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteInstanceResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteInstanceResponse struct { @@ -839,14 +846,14 @@ func (r *DeleteInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteLogstashInstanceRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } type DeleteLogstashInstanceRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } func (r *DeleteLogstashInstanceRequest) ToJsonString() string { @@ -871,7 +878,7 @@ func (r *DeleteLogstashInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteLogstashInstanceResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteLogstashInstanceResponse struct { @@ -893,20 +900,20 @@ func (r *DeleteLogstashInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type DeleteLogstashPipelinesRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 管道ID列表 - PipelineIds []*string `json:"PipelineIds,omitempty" name:"PipelineIds"` + PipelineIds []*string `json:"PipelineIds,omitnil" name:"PipelineIds"` } type DeleteLogstashPipelinesRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 管道ID列表 - PipelineIds []*string `json:"PipelineIds,omitempty" name:"PipelineIds"` + PipelineIds []*string `json:"PipelineIds,omitnil" name:"PipelineIds"` } func (r *DeleteLogstashPipelinesRequest) ToJsonString() string { @@ -932,7 +939,7 @@ func (r *DeleteLogstashPipelinesRequest) FromJsonString(s string) error { // Predefined struct for user type DeleteLogstashPipelinesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DeleteLogstashPipelinesResponse struct { @@ -954,68 +961,68 @@ func (r *DeleteLogstashPipelinesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeIndexListRequestParams struct { // 索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 索引名,若填空则获取所有索引 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 分页起始位置 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` + Offset *int64 `json:"Offset,omitnil" name:"Offset"` // 一页展示数量 - Limit *int64 `json:"Limit,omitempty" name:"Limit"` + Limit *int64 `json:"Limit,omitnil" name:"Limit"` // 排序字段,支持索引名:IndexName、索引存储量:IndexStorage、索引创建时间:IndexCreateTime - OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` + OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // 过滤索引状态 - IndexStatusList []*string `json:"IndexStatusList,omitempty" name:"IndexStatusList"` + IndexStatusList []*string `json:"IndexStatusList,omitnil" name:"IndexStatusList"` - // 排序顺序,支持asc、desc - Order *string `json:"Order,omitempty" name:"Order"` + // 排序顺序,支持asc、desc,默认为desc 数据格式"asc","desc" + Order *string `json:"Order,omitnil" name:"Order"` } type DescribeIndexListRequest struct { *tchttp.BaseRequest // 索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 索引名,若填空则获取所有索引 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 分页起始位置 - Offset *int64 `json:"Offset,omitempty" name:"Offset"` + Offset *int64 `json:"Offset,omitnil" name:"Offset"` // 一页展示数量 - Limit *int64 `json:"Limit,omitempty" name:"Limit"` + Limit *int64 `json:"Limit,omitnil" name:"Limit"` // 排序字段,支持索引名:IndexName、索引存储量:IndexStorage、索引创建时间:IndexCreateTime - OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"` + OrderBy *string `json:"OrderBy,omitnil" name:"OrderBy"` // 过滤索引状态 - IndexStatusList []*string `json:"IndexStatusList,omitempty" name:"IndexStatusList"` + IndexStatusList []*string `json:"IndexStatusList,omitnil" name:"IndexStatusList"` - // 排序顺序,支持asc、desc - Order *string `json:"Order,omitempty" name:"Order"` + // 排序顺序,支持asc、desc,默认为desc 数据格式"asc","desc" + Order *string `json:"Order,omitnil" name:"Order"` } func (r *DescribeIndexListRequest) ToJsonString() string { @@ -1050,14 +1057,14 @@ func (r *DescribeIndexListRequest) FromJsonString(s string) error { type DescribeIndexListResponseParams struct { // 索引元数据字段 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexMetaFields []*IndexMetaField `json:"IndexMetaFields,omitempty" name:"IndexMetaFields"` + IndexMetaFields []*IndexMetaField `json:"IndexMetaFields,omitnil" name:"IndexMetaFields"` // 查询总数 // 注意:此字段可能返回 null,表示取不到有效值。 - 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 DescribeIndexListResponse struct { @@ -1079,38 +1086,38 @@ func (r *DescribeIndexListResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeIndexMetaRequestParams struct { // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 索引名,若填空则获取所有索引 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` } type DescribeIndexMetaRequest struct { *tchttp.BaseRequest // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 索引名,若填空则获取所有索引 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` } func (r *DescribeIndexMetaRequest) ToJsonString() string { @@ -1140,10 +1147,10 @@ func (r *DescribeIndexMetaRequest) FromJsonString(s string) error { type DescribeIndexMetaResponseParams struct { // 索引元数据字段 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexMetaField *IndexMetaField `json:"IndexMetaField,omitempty" name:"IndexMetaField"` + IndexMetaField *IndexMetaField `json:"IndexMetaField,omitnil" name:"IndexMetaField"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeIndexMetaResponse struct { @@ -1165,68 +1172,68 @@ func (r *DescribeIndexMetaResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeInstanceLogsRequestParams struct { // 集群实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 日志类型,默认值为1 //
  • 1, 主日志
  • //
  • 2, 搜索慢日志
  • //
  • 3, 索引慢日志
  • //
  • 4, GC日志
  • - LogType *uint64 `json:"LogType,omitempty" name:"LogType"` + LogType *uint64 `json:"LogType,omitnil" name:"LogType"` // 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等 - SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` + SearchKey *string `json:"SearchKey,omitnil" name:"SearchKey"` // 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53 - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 分页起始值, 默认值为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 分页大小,默认值为100,最大值100 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 时间排序方式,默认值为0 //
  • 0, 降序
  • //
  • 1, 升序
  • - OrderByType *uint64 `json:"OrderByType,omitempty" name:"OrderByType"` + OrderByType *uint64 `json:"OrderByType,omitnil" name:"OrderByType"` } type DescribeInstanceLogsRequest struct { *tchttp.BaseRequest // 集群实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 日志类型,默认值为1 //
  • 1, 主日志
  • //
  • 2, 搜索慢日志
  • //
  • 3, 索引慢日志
  • //
  • 4, GC日志
  • - LogType *uint64 `json:"LogType,omitempty" name:"LogType"` + LogType *uint64 `json:"LogType,omitnil" name:"LogType"` // 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等 - SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` + SearchKey *string `json:"SearchKey,omitnil" name:"SearchKey"` // 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53 - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 分页起始值, 默认值为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 分页大小,默认值为100,最大值100 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 时间排序方式,默认值为0 //
  • 0, 降序
  • //
  • 1, 升序
  • - OrderByType *uint64 `json:"OrderByType,omitempty" name:"OrderByType"` + OrderByType *uint64 `json:"OrderByType,omitnil" name:"OrderByType"` } func (r *DescribeInstanceLogsRequest) ToJsonString() string { @@ -1258,13 +1265,13 @@ func (r *DescribeInstanceLogsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeInstanceLogsResponseParams struct { // 返回的日志条数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 日志详细信息列表 - InstanceLogList []*InstanceLog `json:"InstanceLogList,omitempty" name:"InstanceLogList"` + InstanceLogList []*InstanceLog `json:"InstanceLogList,omitnil" name:"InstanceLogList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeInstanceLogsResponse struct { @@ -1286,38 +1293,38 @@ func (r *DescribeInstanceLogsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeInstanceOperationsRequestParams struct { // 集群实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 起始时间, e.g. "2019-03-07 16:30:39" - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间, e.g. "2019-03-30 20:18:03" - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 分页起始值 - 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"` } type DescribeInstanceOperationsRequest struct { *tchttp.BaseRequest // 集群实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 起始时间, e.g. "2019-03-07 16:30:39" - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间, e.g. "2019-03-30 20:18:03" - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 分页起始值 - 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"` } func (r *DescribeInstanceOperationsRequest) ToJsonString() string { @@ -1346,13 +1353,13 @@ func (r *DescribeInstanceOperationsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeInstanceOperationsResponseParams struct { // 操作记录总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 操作记录 - Operations []*Operation `json:"Operations,omitempty" name:"Operations"` + Operations []*Operation `json:"Operations,omitnil" name:"Operations"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeInstanceOperationsResponse struct { @@ -1374,80 +1381,80 @@ func (r *DescribeInstanceOperationsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeInstancesRequestParams struct { // 集群实例所属可用区,不传则默认所有可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 集群实例ID列表 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 集群实例名称列表 - InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` + InstanceNames []*string `json:"InstanceNames,omitnil" name:"InstanceNames"` // 分页起始值, 默认值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"` // 排序字段
  • 1:实例ID
  • 2:实例名称
  • 3:可用区
  • 4:创建时间
  • 若orderByKey未传递则按创建时间降序排序 - OrderByKey *uint64 `json:"OrderByKey,omitempty" name:"OrderByKey"` + OrderByKey *uint64 `json:"OrderByKey,omitnil" name:"OrderByKey"` // 排序方式
  • 0:升序
  • 1:降序
  • 若传递了orderByKey未传递orderByType, 则默认升序 - OrderByType *uint64 `json:"OrderByType,omitempty" name:"OrderByType"` + OrderByType *uint64 `json:"OrderByType,omitnil" name:"OrderByType"` // 节点标签信息列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` // 私有网络vip列表 - IpList []*string `json:"IpList,omitempty" name:"IpList"` + IpList []*string `json:"IpList,omitnil" name:"IpList"` // 可用区列表 - ZoneList []*string `json:"ZoneList,omitempty" name:"ZoneList"` + ZoneList []*string `json:"ZoneList,omitnil" name:"ZoneList"` // 健康状态筛列表:0表示绿色,1表示黄色,2表示红色,-1表示未知 - HealthStatus []*int64 `json:"HealthStatus,omitempty" name:"HealthStatus"` + HealthStatus []*int64 `json:"HealthStatus,omitnil" name:"HealthStatus"` // Vpc列表 筛选项 - VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` + VpcIds []*string `json:"VpcIds,omitnil" name:"VpcIds"` } type DescribeInstancesRequest struct { *tchttp.BaseRequest // 集群实例所属可用区,不传则默认所有可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 集群实例ID列表 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 集群实例名称列表 - InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` + InstanceNames []*string `json:"InstanceNames,omitnil" name:"InstanceNames"` // 分页起始值, 默认值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"` // 排序字段
  • 1:实例ID
  • 2:实例名称
  • 3:可用区
  • 4:创建时间
  • 若orderByKey未传递则按创建时间降序排序 - OrderByKey *uint64 `json:"OrderByKey,omitempty" name:"OrderByKey"` + OrderByKey *uint64 `json:"OrderByKey,omitnil" name:"OrderByKey"` // 排序方式
  • 0:升序
  • 1:降序
  • 若传递了orderByKey未传递orderByType, 则默认升序 - OrderByType *uint64 `json:"OrderByType,omitempty" name:"OrderByType"` + OrderByType *uint64 `json:"OrderByType,omitnil" name:"OrderByType"` // 节点标签信息列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` // 私有网络vip列表 - IpList []*string `json:"IpList,omitempty" name:"IpList"` + IpList []*string `json:"IpList,omitnil" name:"IpList"` // 可用区列表 - ZoneList []*string `json:"ZoneList,omitempty" name:"ZoneList"` + ZoneList []*string `json:"ZoneList,omitnil" name:"ZoneList"` // 健康状态筛列表:0表示绿色,1表示黄色,2表示红色,-1表示未知 - HealthStatus []*int64 `json:"HealthStatus,omitempty" name:"HealthStatus"` + HealthStatus []*int64 `json:"HealthStatus,omitnil" name:"HealthStatus"` // Vpc列表 筛选项 - VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` + VpcIds []*string `json:"VpcIds,omitnil" name:"VpcIds"` } func (r *DescribeInstancesRequest) ToJsonString() string { @@ -1483,13 +1490,13 @@ func (r *DescribeInstancesRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeInstancesResponseParams struct { // 返回的实例个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 实例详细信息列表 - InstanceList []*InstanceInfo `json:"InstanceList,omitempty" name:"InstanceList"` + InstanceList []*InstanceInfo `json:"InstanceList,omitnil" name:"InstanceList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeInstancesResponse struct { @@ -1511,66 +1518,66 @@ func (r *DescribeInstancesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeLogstashInstanceLogsRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 日志类型,默认值为1 //
  • 1, 主日志
  • //
  • 2, 慢日志
  • //
  • 3, GC日志
  • - LogType *uint64 `json:"LogType,omitempty" name:"LogType"` + LogType *uint64 `json:"LogType,omitnil" name:"LogType"` // 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等 - SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` + SearchKey *string `json:"SearchKey,omitnil" name:"SearchKey"` // 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53 - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 分页起始值, 默认值为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 分页大小,默认值为100,最大值100 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 时间排序方式,默认值为0 //
  • 0, 降序
  • //
  • 1, 升序
  • - OrderByType *uint64 `json:"OrderByType,omitempty" name:"OrderByType"` + OrderByType *uint64 `json:"OrderByType,omitnil" name:"OrderByType"` } type DescribeLogstashInstanceLogsRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 日志类型,默认值为1 //
  • 1, 主日志
  • //
  • 2, 慢日志
  • //
  • 3, GC日志
  • - LogType *uint64 `json:"LogType,omitempty" name:"LogType"` + LogType *uint64 `json:"LogType,omitnil" name:"LogType"` // 搜索词,支持LUCENE语法,如 level:WARN、ip:1.1.1.1、message:test-index等 - SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"` + SearchKey *string `json:"SearchKey,omitnil" name:"SearchKey"` // 日志开始时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 日志结束时间,格式为YYYY-MM-DD HH:MM:SS, 如2019-01-22 20:15:53 - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 分页起始值, 默认值为0 - Offset *uint64 `json:"Offset,omitempty" name:"Offset"` + Offset *uint64 `json:"Offset,omitnil" name:"Offset"` // 分页大小,默认值为100,最大值100 - Limit *uint64 `json:"Limit,omitempty" name:"Limit"` + Limit *uint64 `json:"Limit,omitnil" name:"Limit"` // 时间排序方式,默认值为0 //
  • 0, 降序
  • //
  • 1, 升序
  • - OrderByType *uint64 `json:"OrderByType,omitempty" name:"OrderByType"` + OrderByType *uint64 `json:"OrderByType,omitnil" name:"OrderByType"` } func (r *DescribeLogstashInstanceLogsRequest) ToJsonString() string { @@ -1602,13 +1609,13 @@ func (r *DescribeLogstashInstanceLogsRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeLogstashInstanceLogsResponseParams struct { // 返回的日志条数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 日志详细信息列表 - InstanceLogList []*InstanceLog `json:"InstanceLogList,omitempty" name:"InstanceLogList"` + InstanceLogList []*InstanceLog `json:"InstanceLogList,omitnil" name:"InstanceLogList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeLogstashInstanceLogsResponse struct { @@ -1630,38 +1637,38 @@ func (r *DescribeLogstashInstanceLogsResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeLogstashInstanceOperationsRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 起始时间, e.g. "2019-03-07 16:30:39" - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间, e.g. "2019-03-30 20:18:03" - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 分页起始值 - 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"` } type DescribeLogstashInstanceOperationsRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 起始时间, e.g. "2019-03-07 16:30:39" - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 结束时间, e.g. "2019-03-30 20:18:03" - EndTime *string `json:"EndTime,omitempty" name:"EndTime"` + EndTime *string `json:"EndTime,omitnil" name:"EndTime"` // 分页起始值 - 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"` } func (r *DescribeLogstashInstanceOperationsRequest) ToJsonString() string { @@ -1690,13 +1697,13 @@ func (r *DescribeLogstashInstanceOperationsRequest) FromJsonString(s string) err // Predefined struct for user type DescribeLogstashInstanceOperationsResponseParams struct { // 操作记录总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 操作记录 - Operations []*Operation `json:"Operations,omitempty" name:"Operations"` + Operations []*Operation `json:"Operations,omitnil" name:"Operations"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeLogstashInstanceOperationsResponse struct { @@ -1718,62 +1725,62 @@ func (r *DescribeLogstashInstanceOperationsResponse) FromJsonString(s string) er // Predefined struct for user type DescribeLogstashInstancesRequestParams struct { // 实例所属可用区,不传则默认所有可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 实例ID列表 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 实例名称列表 - InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` + InstanceNames []*string `json:"InstanceNames,omitnil" name:"InstanceNames"` // 分页起始值, 默认值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"` // 排序字段
  • 1:实例ID
  • 2:实例名称
  • 3:可用区
  • 4:创建时间
  • 若orderKey未传递则按创建时间降序排序 - OrderByKey *uint64 `json:"OrderByKey,omitempty" name:"OrderByKey"` + OrderByKey *uint64 `json:"OrderByKey,omitnil" name:"OrderByKey"` // 排序方式
  • 0:升序
  • 1:降序
  • 若传递了orderByKey未传递orderByType, 则默认升序 - OrderByType *uint64 `json:"OrderByType,omitempty" name:"OrderByType"` + OrderByType *uint64 `json:"OrderByType,omitnil" name:"OrderByType"` // VpcId 筛选项 - VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` + VpcIds []*string `json:"VpcIds,omitnil" name:"VpcIds"` // 标签信息列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` } type DescribeLogstashInstancesRequest struct { *tchttp.BaseRequest // 实例所属可用区,不传则默认所有可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 实例ID列表 - InstanceIds []*string `json:"InstanceIds,omitempty" name:"InstanceIds"` + InstanceIds []*string `json:"InstanceIds,omitnil" name:"InstanceIds"` // 实例名称列表 - InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames"` + InstanceNames []*string `json:"InstanceNames,omitnil" name:"InstanceNames"` // 分页起始值, 默认值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"` // 排序字段
  • 1:实例ID
  • 2:实例名称
  • 3:可用区
  • 4:创建时间
  • 若orderKey未传递则按创建时间降序排序 - OrderByKey *uint64 `json:"OrderByKey,omitempty" name:"OrderByKey"` + OrderByKey *uint64 `json:"OrderByKey,omitnil" name:"OrderByKey"` // 排序方式
  • 0:升序
  • 1:降序
  • 若传递了orderByKey未传递orderByType, 则默认升序 - OrderByType *uint64 `json:"OrderByType,omitempty" name:"OrderByType"` + OrderByType *uint64 `json:"OrderByType,omitnil" name:"OrderByType"` // VpcId 筛选项 - VpcIds []*string `json:"VpcIds,omitempty" name:"VpcIds"` + VpcIds []*string `json:"VpcIds,omitnil" name:"VpcIds"` // 标签信息列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` } func (r *DescribeLogstashInstancesRequest) ToJsonString() string { @@ -1806,13 +1813,13 @@ func (r *DescribeLogstashInstancesRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeLogstashInstancesResponseParams struct { // 返回的实例个数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 实例详细信息列表 - InstanceList []*LogstashInstanceInfo `json:"InstanceList,omitempty" name:"InstanceList"` + InstanceList []*LogstashInstanceInfo `json:"InstanceList,omitnil" name:"InstanceList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeLogstashInstancesResponse struct { @@ -1834,14 +1841,14 @@ func (r *DescribeLogstashInstancesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeLogstashPipelinesRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } type DescribeLogstashPipelinesRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } func (r *DescribeLogstashPipelinesRequest) ToJsonString() string { @@ -1866,13 +1873,13 @@ func (r *DescribeLogstashPipelinesRequest) FromJsonString(s string) error { // Predefined struct for user type DescribeLogstashPipelinesResponseParams struct { // 管道总数 - TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"` + TotalCount *uint64 `json:"TotalCount,omitnil" name:"TotalCount"` // 管道列表 - LogstashPipelineList []*LogstashPipelineInfo `json:"LogstashPipelineList,omitempty" name:"LogstashPipelineList"` + LogstashPipelineList []*LogstashPipelineInfo `json:"LogstashPipelineList,omitnil" name:"LogstashPipelineList"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeLogstashPipelinesResponse struct { @@ -1894,14 +1901,14 @@ func (r *DescribeLogstashPipelinesResponse) FromJsonString(s string) error { // Predefined struct for user type DescribeViewsRequestParams struct { // 集群实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } type DescribeViewsRequest struct { *tchttp.BaseRequest // 集群实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } func (r *DescribeViewsRequest) ToJsonString() string { @@ -1927,18 +1934,18 @@ func (r *DescribeViewsRequest) FromJsonString(s string) error { type DescribeViewsResponseParams struct { // 集群维度视图 // 注意:此字段可能返回 null,表示取不到有效值。 - ClusterView *ClusterView `json:"ClusterView,omitempty" name:"ClusterView"` + ClusterView *ClusterView `json:"ClusterView,omitnil" name:"ClusterView"` // 节点维度视图 // 注意:此字段可能返回 null,表示取不到有效值。 - NodesView []*NodeView `json:"NodesView,omitempty" name:"NodesView"` + NodesView []*NodeView `json:"NodesView,omitnil" name:"NodesView"` // Kibana维度视图 // 注意:此字段可能返回 null,表示取不到有效值。 - KibanasView []*KibanaView `json:"KibanasView,omitempty" name:"KibanasView"` + KibanasView []*KibanaView `json:"KibanasView,omitnil" name:"KibanasView"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DescribeViewsResponse struct { @@ -1960,26 +1967,26 @@ func (r *DescribeViewsResponse) FromJsonString(s string) error { // Predefined struct for user type DiagnoseInstanceRequestParams struct { // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 需要触发的诊断项 - DiagnoseJobs []*string `json:"DiagnoseJobs,omitempty" name:"DiagnoseJobs"` + DiagnoseJobs []*string `json:"DiagnoseJobs,omitnil" name:"DiagnoseJobs"` // 需要诊断的索引,支持通配符 - DiagnoseIndices *string `json:"DiagnoseIndices,omitempty" name:"DiagnoseIndices"` + DiagnoseIndices *string `json:"DiagnoseIndices,omitnil" name:"DiagnoseIndices"` } type DiagnoseInstanceRequest struct { *tchttp.BaseRequest // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 需要触发的诊断项 - DiagnoseJobs []*string `json:"DiagnoseJobs,omitempty" name:"DiagnoseJobs"` + DiagnoseJobs []*string `json:"DiagnoseJobs,omitnil" name:"DiagnoseJobs"` // 需要诊断的索引,支持通配符 - DiagnoseIndices *string `json:"DiagnoseIndices,omitempty" name:"DiagnoseIndices"` + DiagnoseIndices *string `json:"DiagnoseIndices,omitnil" name:"DiagnoseIndices"` } func (r *DiagnoseInstanceRequest) ToJsonString() string { @@ -2006,7 +2013,7 @@ func (r *DiagnoseInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type DiagnoseInstanceResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type DiagnoseInstanceResponse struct { @@ -2027,67 +2034,67 @@ func (r *DiagnoseInstanceResponse) FromJsonString(s string) error { type DictInfo struct { // 词典键值 - Key *string `json:"Key,omitempty" name:"Key"` + Key *string `json:"Key,omitnil" name:"Key"` // 词典名称 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 词典大小,单位B - Size *uint64 `json:"Size,omitempty" name:"Size"` + Size *uint64 `json:"Size,omitnil" name:"Size"` } type EsAcl struct { // kibana访问黑名单 - BlackIpList []*string `json:"BlackIpList,omitempty" name:"BlackIpList"` + BlackIpList []*string `json:"BlackIpList,omitnil" name:"BlackIpList"` // kibana访问白名单 - WhiteIpList []*string `json:"WhiteIpList,omitempty" name:"WhiteIpList"` + WhiteIpList []*string `json:"WhiteIpList,omitnil" name:"WhiteIpList"` } type EsConfigSetInfo struct { // 配置组类型,如ldap,ad等 - Type *string `json:"Type,omitempty" name:"Type"` + Type *string `json:"Type,omitnil" name:"Type"` // "{\"order\":0,\"url\":\"ldap://10.0.1.72:389\",\"bind_dn\":\"cn=admin,dc=tencent,dc=com\",\"user_search.base_dn\":\"dc=tencent,dc=com\",\"user_search.filter\":\"(cn={0})\",\"group_search.base_dn\":\"dc=tencent,dc=com\"}" - EsConfig *string `json:"EsConfig,omitempty" name:"EsConfig"` + EsConfig *string `json:"EsConfig,omitnil" name:"EsConfig"` } type EsDictionaryInfo struct { // 启用词词典列表 - MainDict []*DictInfo `json:"MainDict,omitempty" name:"MainDict"` + MainDict []*DictInfo `json:"MainDict,omitnil" name:"MainDict"` // 停用词词典列表 - Stopwords []*DictInfo `json:"Stopwords,omitempty" name:"Stopwords"` + Stopwords []*DictInfo `json:"Stopwords,omitnil" name:"Stopwords"` // QQ分词词典列表 - QQDict []*DictInfo `json:"QQDict,omitempty" name:"QQDict"` + QQDict []*DictInfo `json:"QQDict,omitnil" name:"QQDict"` // 同义词词典列表 - Synonym []*DictInfo `json:"Synonym,omitempty" name:"Synonym"` + Synonym []*DictInfo `json:"Synonym,omitnil" name:"Synonym"` // 更新词典类型 - UpdateType *string `json:"UpdateType,omitempty" name:"UpdateType"` + UpdateType *string `json:"UpdateType,omitnil" name:"UpdateType"` } type EsPublicAcl struct { // 访问黑名单 - BlackIpList []*string `json:"BlackIpList,omitempty" name:"BlackIpList"` + BlackIpList []*string `json:"BlackIpList,omitnil" name:"BlackIpList"` // 访问白名单 - WhiteIpList []*string `json:"WhiteIpList,omitempty" name:"WhiteIpList"` + WhiteIpList []*string `json:"WhiteIpList,omitnil" name:"WhiteIpList"` } // Predefined struct for user type GetRequestTargetNodeTypesRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } type GetRequestTargetNodeTypesRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } func (r *GetRequestTargetNodeTypesRequest) ToJsonString() string { @@ -2112,10 +2119,10 @@ func (r *GetRequestTargetNodeTypesRequest) FromJsonString(s string) error { // Predefined struct for user type GetRequestTargetNodeTypesResponseParams struct { // 接收请求的目标节点类型列表 - TargetNodeTypes []*string `json:"TargetNodeTypes,omitempty" name:"TargetNodeTypes"` + TargetNodeTypes []*string `json:"TargetNodeTypes,omitnil" name:"TargetNodeTypes"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type GetRequestTargetNodeTypesResponse struct { @@ -2137,162 +2144,166 @@ func (r *GetRequestTargetNodeTypesResponse) FromJsonString(s string) error { type IndexMetaField struct { // 索引类型 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 索引名 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` + + // 索引元数据JSON + // 注意:此字段可能返回 null,表示取不到有效值。 + IndexMetaJson *string `json:"IndexMetaJson,omitnil" name:"IndexMetaJson"` // 索引状态 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexStatus *string `json:"IndexStatus,omitempty" name:"IndexStatus"` + IndexStatus *string `json:"IndexStatus,omitnil" name:"IndexStatus"` // 索引存储大小,单位Byte // 注意:此字段可能返回 null,表示取不到有效值。 - IndexStorage *int64 `json:"IndexStorage,omitempty" name:"IndexStorage"` + IndexStorage *int64 `json:"IndexStorage,omitnil" name:"IndexStorage"` // 索引创建时间 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexCreateTime *string `json:"IndexCreateTime,omitempty" name:"IndexCreateTime"` + IndexCreateTime *string `json:"IndexCreateTime,omitnil" name:"IndexCreateTime"` // 后备索引 // 注意:此字段可能返回 null,表示取不到有效值。 - BackingIndices []*BackingIndexMetaField `json:"BackingIndices,omitempty" name:"BackingIndices"` + BackingIndices []*BackingIndexMetaField `json:"BackingIndices,omitnil" name:"BackingIndices"` // 索引所属集群ID // 注意:此字段可能返回 null,表示取不到有效值。 - ClusterId *string `json:"ClusterId,omitempty" name:"ClusterId"` + ClusterId *string `json:"ClusterId,omitnil" name:"ClusterId"` // 索引所属集群名 // 注意:此字段可能返回 null,表示取不到有效值。 - ClusterName *string `json:"ClusterName,omitempty" name:"ClusterName"` + ClusterName *string `json:"ClusterName,omitnil" name:"ClusterName"` // 索引所属集群版本 // 注意:此字段可能返回 null,表示取不到有效值。 - ClusterVersion *string `json:"ClusterVersion,omitempty" name:"ClusterVersion"` + ClusterVersion *string `json:"ClusterVersion,omitnil" name:"ClusterVersion"` // 索引生命周期字段 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexPolicyField *IndexPolicyField `json:"IndexPolicyField,omitempty" name:"IndexPolicyField"` + IndexPolicyField *IndexPolicyField `json:"IndexPolicyField,omitnil" name:"IndexPolicyField"` // 索引自治字段 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexOptionsField *IndexOptionsField `json:"IndexOptionsField,omitempty" name:"IndexOptionsField"` + IndexOptionsField *IndexOptionsField `json:"IndexOptionsField,omitnil" name:"IndexOptionsField"` // 索引配置字段 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexSettingsField *IndexSettingsField `json:"IndexSettingsField,omitempty" name:"IndexSettingsField"` + IndexSettingsField *IndexSettingsField `json:"IndexSettingsField,omitnil" name:"IndexSettingsField"` // 索引所属集群APP ID // 注意:此字段可能返回 null,表示取不到有效值。 - AppId *uint64 `json:"AppId,omitempty" name:"AppId"` + AppId *uint64 `json:"AppId,omitnil" name:"AppId"` // 索引文档数 // 注意:此字段可能返回 null,表示取不到有效值。 - IndexDocs *uint64 `json:"IndexDocs,omitempty" name:"IndexDocs"` + IndexDocs *uint64 `json:"IndexDocs,omitnil" name:"IndexDocs"` } type IndexOptionsField struct { // 过期时间 // 注意:此字段可能返回 null,表示取不到有效值。 - ExpireMaxAge *string `json:"ExpireMaxAge,omitempty" name:"ExpireMaxAge"` + ExpireMaxAge *string `json:"ExpireMaxAge,omitnil" name:"ExpireMaxAge"` // 过期大小 // 注意:此字段可能返回 null,表示取不到有效值。 - ExpireMaxSize *string `json:"ExpireMaxSize,omitempty" name:"ExpireMaxSize"` + ExpireMaxSize *string `json:"ExpireMaxSize,omitnil" name:"ExpireMaxSize"` // 滚动周期 // 注意:此字段可能返回 null,表示取不到有效值。 - RolloverMaxAge *string `json:"RolloverMaxAge,omitempty" name:"RolloverMaxAge"` + RolloverMaxAge *string `json:"RolloverMaxAge,omitnil" name:"RolloverMaxAge"` // 是否开启动态滚动 // 注意:此字段可能返回 null,表示取不到有效值。 - RolloverDynamic *string `json:"RolloverDynamic,omitempty" name:"RolloverDynamic"` + RolloverDynamic *string `json:"RolloverDynamic,omitnil" name:"RolloverDynamic"` // 是否开启动态分片 // 注意:此字段可能返回 null,表示取不到有效值。 - ShardNumDynamic *string `json:"ShardNumDynamic,omitempty" name:"ShardNumDynamic"` + ShardNumDynamic *string `json:"ShardNumDynamic,omitnil" name:"ShardNumDynamic"` // 时间分区字段 // 注意:此字段可能返回 null,表示取不到有效值。 - TimestampField *string `json:"TimestampField,omitempty" name:"TimestampField"` + TimestampField *string `json:"TimestampField,omitnil" name:"TimestampField"` // 写入模式 // 注意:此字段可能返回 null,表示取不到有效值。 - WriteMode *string `json:"WriteMode,omitempty" name:"WriteMode"` + WriteMode *string `json:"WriteMode,omitnil" name:"WriteMode"` } type IndexPolicyField struct { // 是否开启warm阶段 // 注意:此字段可能返回 null,表示取不到有效值。 - WarmEnable *string `json:"WarmEnable,omitempty" name:"WarmEnable"` + WarmEnable *string `json:"WarmEnable,omitnil" name:"WarmEnable"` // warm阶段转入时间 // 注意:此字段可能返回 null,表示取不到有效值。 - WarmMinAge *string `json:"WarmMinAge,omitempty" name:"WarmMinAge"` + WarmMinAge *string `json:"WarmMinAge,omitnil" name:"WarmMinAge"` // 是否开启cold阶段 // 注意:此字段可能返回 null,表示取不到有效值。 - ColdEnable *string `json:"ColdEnable,omitempty" name:"ColdEnable"` + ColdEnable *string `json:"ColdEnable,omitnil" name:"ColdEnable"` // cold阶段转入时间 // 注意:此字段可能返回 null,表示取不到有效值。 - ColdMinAge *string `json:"ColdMinAge,omitempty" name:"ColdMinAge"` + ColdMinAge *string `json:"ColdMinAge,omitnil" name:"ColdMinAge"` // 是否开启frozen阶段 // 注意:此字段可能返回 null,表示取不到有效值。 - FrozenEnable *string `json:"FrozenEnable,omitempty" name:"FrozenEnable"` + FrozenEnable *string `json:"FrozenEnable,omitnil" name:"FrozenEnable"` // frozen阶段转入时间 // 注意:此字段可能返回 null,表示取不到有效值。 - FrozenMinAge *string `json:"FrozenMinAge,omitempty" name:"FrozenMinAge"` + FrozenMinAge *string `json:"FrozenMinAge,omitnil" name:"FrozenMinAge"` // / // 注意:此字段可能返回 null,表示取不到有效值。 - ColdAction *string `json:"ColdAction,omitempty" name:"ColdAction"` + ColdAction *string `json:"ColdAction,omitnil" name:"ColdAction"` } type IndexSettingsField struct { // 索引主分片数 // 注意:此字段可能返回 null,表示取不到有效值。 - NumberOfShards *string `json:"NumberOfShards,omitempty" name:"NumberOfShards"` + NumberOfShards *string `json:"NumberOfShards,omitnil" name:"NumberOfShards"` // 索引副本分片数 // 注意:此字段可能返回 null,表示取不到有效值。 - NumberOfReplicas *string `json:"NumberOfReplicas,omitempty" name:"NumberOfReplicas"` + NumberOfReplicas *string `json:"NumberOfReplicas,omitnil" name:"NumberOfReplicas"` // 索引刷新频率 // 注意:此字段可能返回 null,表示取不到有效值。 - RefreshInterval *string `json:"RefreshInterval,omitempty" name:"RefreshInterval"` + RefreshInterval *string `json:"RefreshInterval,omitnil" name:"RefreshInterval"` } type InstanceInfo struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例名称 - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 地域 - Region *string `json:"Region,omitempty" name:"Region"` + Region *string `json:"Region,omitnil" name:"Region"` // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 用户ID - AppId *uint64 `json:"AppId,omitempty" name:"AppId"` + AppId *uint64 `json:"AppId,omitnil" name:"AppId"` // 用户UIN - Uin *string `json:"Uin,omitempty" name:"Uin"` + Uin *string `json:"Uin,omitnil" name:"Uin"` // 实例所属VPC的UID - VpcUid *string `json:"VpcUid,omitempty" name:"VpcUid"` + VpcUid *string `json:"VpcUid,omitnil" name:"VpcUid"` // 实例所属子网的UID - SubnetUid *string `json:"SubnetUid,omitempty" name:"SubnetUid"` + SubnetUid *string `json:"SubnetUid,omitnil" name:"SubnetUid"` // 实例状态,0:处理中,1:正常,-1停止,-2:销毁中,-3:已销毁, 2:创建集群时初始化中 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` // 自动续费标识。取值范围: // RENEW_FLAG_AUTO:自动续费 @@ -2300,593 +2311,601 @@ type InstanceInfo struct { // 默认取值: // RENEW_FLAG_DEFAULT:不自动续费 // 若该参数指定为 RENEW_FLAG_AUTO,在账户余额充足的情况下,实例到期后将按月自动续费。 - RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` + RenewFlag *string `json:"RenewFlag,omitnil" name:"RenewFlag"` // 实例计费模式。取值范围: PREPAID:表示预付费,即包年包月 POSTPAID_BY_HOUR:表示后付费,即按量计费 CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。 - ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + ChargeType *string `json:"ChargeType,omitnil" name:"ChargeType"` // 包年包月购买时长,单位:月 - ChargePeriod *uint64 `json:"ChargePeriod,omitempty" name:"ChargePeriod"` + ChargePeriod *uint64 `json:"ChargePeriod,omitnil" name:"ChargePeriod"` // 节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 节点个数 - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 节点CPU核数 - CpuNum *uint64 `json:"CpuNum,omitempty" name:"CpuNum"` + CpuNum *uint64 `json:"CpuNum,omitnil" name:"CpuNum"` // 节点内存大小,单位GB - MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` + MemSize *uint64 `json:"MemSize,omitnil" name:"MemSize"` // 节点磁盘类型 - DiskType *string `json:"DiskType,omitempty" name:"DiskType"` + DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // 节点磁盘大小,单位GB - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // ES域名 - EsDomain *string `json:"EsDomain,omitempty" name:"EsDomain"` + EsDomain *string `json:"EsDomain,omitnil" name:"EsDomain"` // ES VIP - EsVip *string `json:"EsVip,omitempty" name:"EsVip"` + EsVip *string `json:"EsVip,omitnil" name:"EsVip"` // ES端口 - EsPort *uint64 `json:"EsPort,omitempty" name:"EsPort"` + EsPort *uint64 `json:"EsPort,omitnil" name:"EsPort"` // Kibana访问url - KibanaUrl *string `json:"KibanaUrl,omitempty" name:"KibanaUrl"` + KibanaUrl *string `json:"KibanaUrl,omitnil" name:"KibanaUrl"` // ES版本号 - EsVersion *string `json:"EsVersion,omitempty" name:"EsVersion"` + EsVersion *string `json:"EsVersion,omitnil" name:"EsVersion"` // ES配置项 - EsConfig *string `json:"EsConfig,omitempty" name:"EsConfig"` + EsConfig *string `json:"EsConfig,omitnil" name:"EsConfig"` // Kibana访问控制配置 - EsAcl *EsAcl `json:"EsAcl,omitempty" name:"EsAcl"` + EsAcl *EsAcl `json:"EsAcl,omitnil" name:"EsAcl"` // 实例创建时间 - CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // 实例最后修改操作时间 - UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` + UpdateTime *string `json:"UpdateTime,omitnil" name:"UpdateTime"` // 实例到期时间 - Deadline *string `json:"Deadline,omitempty" name:"Deadline"` + Deadline *string `json:"Deadline,omitnil" name:"Deadline"` // 实例类型(实例类型标识,当前只有1,2两种) - InstanceType *uint64 `json:"InstanceType,omitempty" name:"InstanceType"` + InstanceType *uint64 `json:"InstanceType,omitnil" name:"InstanceType"` // Ik分词器配置 - IkConfig *EsDictionaryInfo `json:"IkConfig,omitempty" name:"IkConfig"` + IkConfig *EsDictionaryInfo `json:"IkConfig,omitnil" name:"IkConfig"` // 专用主节点配置 - MasterNodeInfo *MasterNodeInfo `json:"MasterNodeInfo,omitempty" name:"MasterNodeInfo"` + MasterNodeInfo *MasterNodeInfo `json:"MasterNodeInfo,omitnil" name:"MasterNodeInfo"` // cos自动备份配置 - CosBackup *CosBackup `json:"CosBackup,omitempty" name:"CosBackup"` + CosBackup *CosBackup `json:"CosBackup,omitnil" name:"CosBackup"` // 是否允许cos自动备份 - AllowCosBackup *bool `json:"AllowCosBackup,omitempty" name:"AllowCosBackup"` + AllowCosBackup *bool `json:"AllowCosBackup,omitnil" name:"AllowCosBackup"` // 实例拥有的标签列表 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` // License类型
  • oss:开源版
  • basic:基础版
  • platinum:白金版
  • 默认值platinum - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 是否为冷热集群
  • true: 冷热集群
  • false: 非冷热集群
  • // 注意:此字段可能返回 null,表示取不到有效值。 - EnableHotWarmMode *bool `json:"EnableHotWarmMode,omitempty" name:"EnableHotWarmMode"` + EnableHotWarmMode *bool `json:"EnableHotWarmMode,omitnil" name:"EnableHotWarmMode"` // 温节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • // 注意:此字段可能返回 null,表示取不到有效值。 - WarmNodeType *string `json:"WarmNodeType,omitempty" name:"WarmNodeType"` + WarmNodeType *string `json:"WarmNodeType,omitnil" name:"WarmNodeType"` // 温节点个数 // 注意:此字段可能返回 null,表示取不到有效值。 - WarmNodeNum *uint64 `json:"WarmNodeNum,omitempty" name:"WarmNodeNum"` + WarmNodeNum *uint64 `json:"WarmNodeNum,omitnil" name:"WarmNodeNum"` // 温节点CPU核数 // 注意:此字段可能返回 null,表示取不到有效值。 - WarmCpuNum *uint64 `json:"WarmCpuNum,omitempty" name:"WarmCpuNum"` + WarmCpuNum *uint64 `json:"WarmCpuNum,omitnil" name:"WarmCpuNum"` // 温节点内存内存大小,单位GB // 注意:此字段可能返回 null,表示取不到有效值。 - WarmMemSize *uint64 `json:"WarmMemSize,omitempty" name:"WarmMemSize"` + WarmMemSize *uint64 `json:"WarmMemSize,omitnil" name:"WarmMemSize"` // 温节点磁盘类型 // 注意:此字段可能返回 null,表示取不到有效值。 - WarmDiskType *string `json:"WarmDiskType,omitempty" name:"WarmDiskType"` + WarmDiskType *string `json:"WarmDiskType,omitnil" name:"WarmDiskType"` // 温节点磁盘大小,单位GB // 注意:此字段可能返回 null,表示取不到有效值。 - WarmDiskSize *uint64 `json:"WarmDiskSize,omitempty" name:"WarmDiskSize"` + WarmDiskSize *uint64 `json:"WarmDiskSize,omitnil" name:"WarmDiskSize"` // 集群节点信息列表 // 注意:此字段可能返回 null,表示取不到有效值。 - NodeInfoList []*NodeInfo `json:"NodeInfoList,omitempty" name:"NodeInfoList"` + NodeInfoList []*NodeInfo `json:"NodeInfoList,omitnil" name:"NodeInfoList"` // Es公网地址 // 注意:此字段可能返回 null,表示取不到有效值。 - EsPublicUrl *string `json:"EsPublicUrl,omitempty" name:"EsPublicUrl"` + EsPublicUrl *string `json:"EsPublicUrl,omitnil" name:"EsPublicUrl"` // 多可用区网络信息 // 注意:此字段可能返回 null,表示取不到有效值。 - MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitempty" name:"MultiZoneInfo"` + MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitnil" name:"MultiZoneInfo"` // 部署模式
  • 0:单可用区
  • 1:多可用区
  • // 注意:此字段可能返回 null,表示取不到有效值。 - DeployMode *uint64 `json:"DeployMode,omitempty" name:"DeployMode"` + DeployMode *uint64 `json:"DeployMode,omitnil" name:"DeployMode"` // ES公网访问状态
  • OPEN:开启
  • CLOSE:关闭 // 注意:此字段可能返回 null,表示取不到有效值。 - PublicAccess *string `json:"PublicAccess,omitempty" name:"PublicAccess"` + PublicAccess *string `json:"PublicAccess,omitnil" name:"PublicAccess"` // ES公网访问控制配置 - EsPublicAcl *EsAcl `json:"EsPublicAcl,omitempty" name:"EsPublicAcl"` + EsPublicAcl *EsAcl `json:"EsPublicAcl,omitnil" name:"EsPublicAcl"` // Kibana内网地址 // 注意:此字段可能返回 null,表示取不到有效值。 - KibanaPrivateUrl *string `json:"KibanaPrivateUrl,omitempty" name:"KibanaPrivateUrl"` + KibanaPrivateUrl *string `json:"KibanaPrivateUrl,omitnil" name:"KibanaPrivateUrl"` // Kibana公网访问状态
  • OPEN:开启
  • CLOSE:关闭 // 注意:此字段可能返回 null,表示取不到有效值。 - KibanaPublicAccess *string `json:"KibanaPublicAccess,omitempty" name:"KibanaPublicAccess"` + KibanaPublicAccess *string `json:"KibanaPublicAccess,omitnil" name:"KibanaPublicAccess"` // Kibana内网访问状态
  • OPEN:开启
  • CLOSE:关闭 // 注意:此字段可能返回 null,表示取不到有效值。 - KibanaPrivateAccess *string `json:"KibanaPrivateAccess,omitempty" name:"KibanaPrivateAccess"` + KibanaPrivateAccess *string `json:"KibanaPrivateAccess,omitnil" name:"KibanaPrivateAccess"` // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • // 注意:此字段可能返回 null,表示取不到有效值。 - SecurityType *uint64 `json:"SecurityType,omitempty" name:"SecurityType"` + SecurityType *uint64 `json:"SecurityType,omitnil" name:"SecurityType"` // 场景化模板类型:0、不开启;1、通用场景;2、日志场景;3、搜索场景 // 注意:此字段可能返回 null,表示取不到有效值。 - SceneType *int64 `json:"SceneType,omitempty" name:"SceneType"` + SceneType *int64 `json:"SceneType,omitnil" name:"SceneType"` // Kibana配置项 // 注意:此字段可能返回 null,表示取不到有效值。 - KibanaConfig *string `json:"KibanaConfig,omitempty" name:"KibanaConfig"` + KibanaConfig *string `json:"KibanaConfig,omitnil" name:"KibanaConfig"` // Kibana节点信息 // 注意:此字段可能返回 null,表示取不到有效值。 - KibanaNodeInfo *KibanaNodeInfo `json:"KibanaNodeInfo,omitempty" name:"KibanaNodeInfo"` + KibanaNodeInfo *KibanaNodeInfo `json:"KibanaNodeInfo,omitnil" name:"KibanaNodeInfo"` // 可视化节点配置 // 注意:此字段可能返回 null,表示取不到有效值。 - WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitempty" name:"WebNodeTypeInfo"` + WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitnil" name:"WebNodeTypeInfo"` // JDK类型,oracle或kona // 注意:此字段可能返回 null,表示取不到有效值。 - Jdk *string `json:"Jdk,omitempty" name:"Jdk"` + Jdk *string `json:"Jdk,omitnil" name:"Jdk"` // 集群网络通讯协议 // 注意:此字段可能返回 null,表示取不到有效值。 - Protocol *string `json:"Protocol,omitempty" name:"Protocol"` + Protocol *string `json:"Protocol,omitnil" name:"Protocol"` // 安全组id // 注意:此字段可能返回 null,表示取不到有效值。 - SecurityGroups []*string `json:"SecurityGroups,omitempty" name:"SecurityGroups"` + SecurityGroups []*string `json:"SecurityGroups,omitnil" name:"SecurityGroups"` // 冷节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • // 注意:此字段可能返回 null,表示取不到有效值。 - ColdNodeType *string `json:"ColdNodeType,omitempty" name:"ColdNodeType"` + ColdNodeType *string `json:"ColdNodeType,omitnil" name:"ColdNodeType"` // 冷节点个数 // 注意:此字段可能返回 null,表示取不到有效值。 - ColdNodeNum *uint64 `json:"ColdNodeNum,omitempty" name:"ColdNodeNum"` + ColdNodeNum *uint64 `json:"ColdNodeNum,omitnil" name:"ColdNodeNum"` // 冷节点CPU核数 // 注意:此字段可能返回 null,表示取不到有效值。 - ColdCpuNum *uint64 `json:"ColdCpuNum,omitempty" name:"ColdCpuNum"` + ColdCpuNum *uint64 `json:"ColdCpuNum,omitnil" name:"ColdCpuNum"` // 冷节点内存大小,单位GB // 注意:此字段可能返回 null,表示取不到有效值。 - ColdMemSize *uint64 `json:"ColdMemSize,omitempty" name:"ColdMemSize"` + ColdMemSize *uint64 `json:"ColdMemSize,omitnil" name:"ColdMemSize"` // 冷节点磁盘类型 // 注意:此字段可能返回 null,表示取不到有效值。 - ColdDiskType *string `json:"ColdDiskType,omitempty" name:"ColdDiskType"` + ColdDiskType *string `json:"ColdDiskType,omitnil" name:"ColdDiskType"` // 冷节点磁盘大小,单位GB // 注意:此字段可能返回 null,表示取不到有效值。 - ColdDiskSize *uint64 `json:"ColdDiskSize,omitempty" name:"ColdDiskSize"` + ColdDiskSize *uint64 `json:"ColdDiskSize,omitnil" name:"ColdDiskSize"` // 冻节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • // 注意:此字段可能返回 null,表示取不到有效值。 - FrozenNodeType *string `json:"FrozenNodeType,omitempty" name:"FrozenNodeType"` + FrozenNodeType *string `json:"FrozenNodeType,omitnil" name:"FrozenNodeType"` // 冻节点个数 // 注意:此字段可能返回 null,表示取不到有效值。 - FrozenNodeNum *uint64 `json:"FrozenNodeNum,omitempty" name:"FrozenNodeNum"` + FrozenNodeNum *uint64 `json:"FrozenNodeNum,omitnil" name:"FrozenNodeNum"` // 冻节点CPU核数 // 注意:此字段可能返回 null,表示取不到有效值。 - FrozenCpuNum *uint64 `json:"FrozenCpuNum,omitempty" name:"FrozenCpuNum"` + FrozenCpuNum *uint64 `json:"FrozenCpuNum,omitnil" name:"FrozenCpuNum"` // 冻节点内存大小,单位GB // 注意:此字段可能返回 null,表示取不到有效值。 - FrozenMemSize *uint64 `json:"FrozenMemSize,omitempty" name:"FrozenMemSize"` + FrozenMemSize *uint64 `json:"FrozenMemSize,omitnil" name:"FrozenMemSize"` // 冻节点磁盘类型 // 注意:此字段可能返回 null,表示取不到有效值。 - FrozenDiskType *string `json:"FrozenDiskType,omitempty" name:"FrozenDiskType"` + FrozenDiskType *string `json:"FrozenDiskType,omitnil" name:"FrozenDiskType"` // 冻节点磁盘大小,单位GB // 注意:此字段可能返回 null,表示取不到有效值。 - FrozenDiskSize *uint64 `json:"FrozenDiskSize,omitempty" name:"FrozenDiskSize"` + FrozenDiskSize *uint64 `json:"FrozenDiskSize,omitnil" name:"FrozenDiskSize"` // 集群健康状态 -1 未知;0 Green; 1 Yellow; 2 Red // 注意:此字段可能返回 null,表示取不到有效值。 - HealthStatus *int64 `json:"HealthStatus,omitempty" name:"HealthStatus"` + HealthStatus *int64 `json:"HealthStatus,omitnil" name:"HealthStatus"` // https集群内网url // 注意:此字段可能返回 null,表示取不到有效值。 - EsPrivateUrl *string `json:"EsPrivateUrl,omitempty" name:"EsPrivateUrl"` + EsPrivateUrl *string `json:"EsPrivateUrl,omitnil" name:"EsPrivateUrl"` // https集群内网域名 // 注意:此字段可能返回 null,表示取不到有效值。 - EsPrivateDomain *string `json:"EsPrivateDomain,omitempty" name:"EsPrivateDomain"` + EsPrivateDomain *string `json:"EsPrivateDomain,omitnil" name:"EsPrivateDomain"` // 集群的配置组信息 // 注意:此字段可能返回 null,表示取不到有效值。 - EsConfigSets []*EsConfigSetInfo `json:"EsConfigSets,omitempty" name:"EsConfigSets"` + EsConfigSets []*EsConfigSetInfo `json:"EsConfigSets,omitnil" name:"EsConfigSets"` // 集群可维护时间段 // 注意:此字段可能返回 null,表示取不到有效值。 - OperationDuration *OperationDuration `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDuration `json:"OperationDuration,omitnil" name:"OperationDuration"` // web节点列表 // 注意:此字段可能返回 null,表示取不到有效值。 - OptionalWebServiceInfos []*OptionalWebServiceInfo `json:"OptionalWebServiceInfos,omitempty" name:"OptionalWebServiceInfos"` + OptionalWebServiceInfos []*OptionalWebServiceInfo `json:"OptionalWebServiceInfos,omitnil" name:"OptionalWebServiceInfos"` // 自治索引开关 // 注意:此字段可能返回 null,表示取不到有效值。 - AutoIndexEnabled *bool `json:"AutoIndexEnabled,omitempty" name:"AutoIndexEnabled"` + AutoIndexEnabled *bool `json:"AutoIndexEnabled,omitnil" name:"AutoIndexEnabled"` // 是否支持存储计算分离 // 注意:此字段可能返回 null,表示取不到有效值。 - EnableHybridStorage *bool `json:"EnableHybridStorage,omitempty" name:"EnableHybridStorage"` + EnableHybridStorage *bool `json:"EnableHybridStorage,omitnil" name:"EnableHybridStorage"` // 流程进度 // 注意:此字段可能返回 null,表示取不到有效值。 - ProcessPercent *float64 `json:"ProcessPercent,omitempty" name:"ProcessPercent"` + ProcessPercent *float64 `json:"ProcessPercent,omitnil" name:"ProcessPercent"` // Kibana的altering外网告警策略
  • OPEN:开启
  • CLOSE:关闭 // 注意:此字段可能返回 null,表示取不到有效值。 - KibanaAlteringPublicAccess *string `json:"KibanaAlteringPublicAccess,omitempty" name:"KibanaAlteringPublicAccess"` + KibanaAlteringPublicAccess *string `json:"KibanaAlteringPublicAccess,omitnil" name:"KibanaAlteringPublicAccess"` + + // 本月是否有内核可以更新:false-无,true-有 + // 注意:此字段可能返回 null,表示取不到有效值。 + HasKernelUpgrade *bool `json:"HasKernelUpgrade,omitnil" name:"HasKernelUpgrade"` + + // cdcId,使用cdc子网时传递 + // 注意:此字段可能返回 null,表示取不到有效值。 + CdcId *string `json:"CdcId,omitnil" name:"CdcId"` } type InstanceLog struct { // 日志时间 - Time *string `json:"Time,omitempty" name:"Time"` + Time *string `json:"Time,omitnil" name:"Time"` // 日志级别 - Level *string `json:"Level,omitempty" name:"Level"` + Level *string `json:"Level,omitnil" name:"Level"` // 集群节点ip - Ip *string `json:"Ip,omitempty" name:"Ip"` + Ip *string `json:"Ip,omitnil" name:"Ip"` // 日志内容 - Message *string `json:"Message,omitempty" name:"Message"` + Message *string `json:"Message,omitnil" name:"Message"` // 集群节点ID - NodeID *string `json:"NodeID,omitempty" name:"NodeID"` + NodeID *string `json:"NodeID,omitnil" name:"NodeID"` } type KeyValue struct { // 键 - Key *string `json:"Key,omitempty" name:"Key"` + Key *string `json:"Key,omitnil" name:"Key"` // 值 - Value *string `json:"Value,omitempty" name:"Value"` + Value *string `json:"Value,omitnil" name:"Value"` } type KibanaNodeInfo struct { // Kibana节点规格 - KibanaNodeType *string `json:"KibanaNodeType,omitempty" name:"KibanaNodeType"` + KibanaNodeType *string `json:"KibanaNodeType,omitnil" name:"KibanaNodeType"` // Kibana节点个数 - KibanaNodeNum *uint64 `json:"KibanaNodeNum,omitempty" name:"KibanaNodeNum"` + KibanaNodeNum *uint64 `json:"KibanaNodeNum,omitnil" name:"KibanaNodeNum"` // Kibana节点CPU数 - KibanaNodeCpuNum *uint64 `json:"KibanaNodeCpuNum,omitempty" name:"KibanaNodeCpuNum"` + KibanaNodeCpuNum *uint64 `json:"KibanaNodeCpuNum,omitnil" name:"KibanaNodeCpuNum"` // Kibana节点内存GB - KibanaNodeMemSize *uint64 `json:"KibanaNodeMemSize,omitempty" name:"KibanaNodeMemSize"` + KibanaNodeMemSize *uint64 `json:"KibanaNodeMemSize,omitnil" name:"KibanaNodeMemSize"` // Kibana节点磁盘类型 - KibanaNodeDiskType *string `json:"KibanaNodeDiskType,omitempty" name:"KibanaNodeDiskType"` + KibanaNodeDiskType *string `json:"KibanaNodeDiskType,omitnil" name:"KibanaNodeDiskType"` // Kibana节点磁盘大小 - KibanaNodeDiskSize *uint64 `json:"KibanaNodeDiskSize,omitempty" name:"KibanaNodeDiskSize"` + KibanaNodeDiskSize *uint64 `json:"KibanaNodeDiskSize,omitnil" name:"KibanaNodeDiskSize"` } type KibanaView struct { // Kibana节点IP - Ip *string `json:"Ip,omitempty" name:"Ip"` + Ip *string `json:"Ip,omitnil" name:"Ip"` // 节点总磁盘大小 - DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *int64 `json:"DiskSize,omitnil" name:"DiskSize"` // 磁盘使用率 - DiskUsage *float64 `json:"DiskUsage,omitempty" name:"DiskUsage"` + DiskUsage *float64 `json:"DiskUsage,omitnil" name:"DiskUsage"` // 节点内存大小 - MemSize *int64 `json:"MemSize,omitempty" name:"MemSize"` + MemSize *int64 `json:"MemSize,omitnil" name:"MemSize"` // 内存使用率 - MemUsage *float64 `json:"MemUsage,omitempty" name:"MemUsage"` + MemUsage *float64 `json:"MemUsage,omitnil" name:"MemUsage"` // 节点cpu个数 - CpuNum *int64 `json:"CpuNum,omitempty" name:"CpuNum"` + CpuNum *int64 `json:"CpuNum,omitnil" name:"CpuNum"` // cpu使用率 - CpuUsage *float64 `json:"CpuUsage,omitempty" name:"CpuUsage"` + CpuUsage *float64 `json:"CpuUsage,omitnil" name:"CpuUsage"` // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // ts-0noqayxu-az6-hot-03222010-0 - NodeId *string `json:"NodeId,omitempty" name:"NodeId"` + NodeId *string `json:"NodeId,omitnil" name:"NodeId"` } type LocalDiskInfo struct { // 本地盘类型
  • LOCAL_SATA:大数据型
  • NVME_SSD:高IO型
  • - LocalDiskType *string `json:"LocalDiskType,omitempty" name:"LocalDiskType"` + LocalDiskType *string `json:"LocalDiskType,omitnil" name:"LocalDiskType"` // 本地盘单盘大小 - LocalDiskSize *uint64 `json:"LocalDiskSize,omitempty" name:"LocalDiskSize"` + LocalDiskSize *uint64 `json:"LocalDiskSize,omitnil" name:"LocalDiskSize"` // 本地盘块数 - LocalDiskCount *uint64 `json:"LocalDiskCount,omitempty" name:"LocalDiskCount"` + LocalDiskCount *uint64 `json:"LocalDiskCount,omitnil" name:"LocalDiskCount"` } type LogstashBindedES struct { // ES集群ID - ESInstanceId *string `json:"ESInstanceId,omitempty" name:"ESInstanceId"` + ESInstanceId *string `json:"ESInstanceId,omitnil" name:"ESInstanceId"` // ES集群用户名 - ESUserName *string `json:"ESUserName,omitempty" name:"ESUserName"` + ESUserName *string `json:"ESUserName,omitnil" name:"ESUserName"` // ES集群密码 - ESPassword *string `json:"ESPassword,omitempty" name:"ESPassword"` + ESPassword *string `json:"ESPassword,omitnil" name:"ESPassword"` } type LogstashExtendedFile struct { // 扩展文件名称 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 扩展文件大小,单位B - Size *uint64 `json:"Size,omitempty" name:"Size"` + Size *uint64 `json:"Size,omitnil" name:"Size"` } type LogstashInstanceInfo struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例名称 - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 地域 - Region *string `json:"Region,omitempty" name:"Region"` + Region *string `json:"Region,omitnil" name:"Region"` // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 用户ID - AppId *uint64 `json:"AppId,omitempty" name:"AppId"` + AppId *uint64 `json:"AppId,omitnil" name:"AppId"` // 用户UIN - Uin *string `json:"Uin,omitempty" name:"Uin"` + Uin *string `json:"Uin,omitnil" name:"Uin"` // 实例所属VPC的ID - VpcId *string `json:"VpcId,omitempty" name:"VpcId"` + VpcId *string `json:"VpcId,omitnil" name:"VpcId"` // 实例所属子网的ID - SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` // 实例状态,0:处理中,1:正常,-1停止,-2:销毁中,-3:已销毁 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` // 实例计费模式。取值范围: PREPAID:表示预付费,即包年包月 POSTPAID_BY_HOUR:表示后付费,即按量计费 CDHPAID:CDH付费,即只对CDH计费,不对CDH上的实例计费。 - ChargeType *string `json:"ChargeType,omitempty" name:"ChargeType"` + ChargeType *string `json:"ChargeType,omitnil" name:"ChargeType"` // 包年包月购买时长,单位:月 - ChargePeriod *uint64 `json:"ChargePeriod,omitempty" name:"ChargePeriod"` + ChargePeriod *uint64 `json:"ChargePeriod,omitnil" name:"ChargePeriod"` // 自动续费标识。取值范围: NOTIFY_AND_AUTO_RENEW:通知过期且自动续费 NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费 DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费 默认取值:NOTIFY_AND_AUTO_RENEW。若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。 - RenewFlag *string `json:"RenewFlag,omitempty" name:"RenewFlag"` + RenewFlag *string `json:"RenewFlag,omitnil" name:"RenewFlag"` // 节点规格
  • LOGSTASH.S1.SMALL2:1核2G
  • LOGSTASH.S1.MEDIUM4:2核4G
  • LOGSTASH.S1.MEDIUM8:2核8G
  • LOGSTASH.S1.LARGE16:4核16G
  • LOGSTASH.S1.2XLARGE32:8核32G
  • LOGSTASH.S1.4XLARGE32:16核32G
  • LOGSTASH.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 节点个数 - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 节点磁盘类型 - DiskType *string `json:"DiskType,omitempty" name:"DiskType"` + DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // 节点磁盘大小,单位GB - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // Logstash版本号 - LogstashVersion *string `json:"LogstashVersion,omitempty" name:"LogstashVersion"` + LogstashVersion *string `json:"LogstashVersion,omitnil" name:"LogstashVersion"` // License类型
  • oss:开源版
  • xpack:基础版
  • 默认值xpack - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 实例创建时间 - CreateTime *string `json:"CreateTime,omitempty" name:"CreateTime"` + CreateTime *string `json:"CreateTime,omitnil" name:"CreateTime"` // 实例最后修改操作时间 - UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` + UpdateTime *string `json:"UpdateTime,omitnil" name:"UpdateTime"` // 实例到期时间 - Deadline *string `json:"Deadline,omitempty" name:"Deadline"` + Deadline *string `json:"Deadline,omitnil" name:"Deadline"` // 实例节点类型 - Nodes []*LogstashNodeInfo `json:"Nodes,omitempty" name:"Nodes"` + Nodes []*LogstashNodeInfo `json:"Nodes,omitnil" name:"Nodes"` // 实例绑定的ES集群ID - BindedESInstanceId *string `json:"BindedESInstanceId,omitempty" name:"BindedESInstanceId"` + BindedESInstanceId *string `json:"BindedESInstanceId,omitnil" name:"BindedESInstanceId"` // 实例的YML配置 // 注意:此字段可能返回 null,表示取不到有效值。 - YMLConfig *string `json:"YMLConfig,omitempty" name:"YMLConfig"` + YMLConfig *string `json:"YMLConfig,omitnil" name:"YMLConfig"` // 扩展文件列表 // 注意:此字段可能返回 null,表示取不到有效值。 - ExtendedFiles []*LogstashExtendedFile `json:"ExtendedFiles,omitempty" name:"ExtendedFiles"` + ExtendedFiles []*LogstashExtendedFile `json:"ExtendedFiles,omitnil" name:"ExtendedFiles"` // 可维护时间段 // 注意:此字段可能返回 null,表示取不到有效值。 - OperationDuration *OperationDuration `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDuration `json:"OperationDuration,omitnil" name:"OperationDuration"` // CPU数量 // 注意:此字段可能返回 null,表示取不到有效值。 - CpuNum *uint64 `json:"CpuNum,omitempty" name:"CpuNum"` + CpuNum *uint64 `json:"CpuNum,omitnil" name:"CpuNum"` // 实例标签信息 // 注意:此字段可能返回 null,表示取不到有效值。 - TagList []*TagInfo `json:"TagList,omitempty" name:"TagList"` + TagList []*TagInfo `json:"TagList,omitnil" name:"TagList"` // 内存大小 // 注意:此字段可能返回 null,表示取不到有效值。 - MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` + MemSize *uint64 `json:"MemSize,omitnil" name:"MemSize"` } type LogstashNodeInfo struct { // 节点ID - NodeId *string `json:"NodeId,omitempty" name:"NodeId"` + NodeId *string `json:"NodeId,omitnil" name:"NodeId"` // 节点IP - Ip *string `json:"Ip,omitempty" name:"Ip"` + Ip *string `json:"Ip,omitnil" name:"Ip"` // 节点端口 - Port *uint64 `json:"Port,omitempty" name:"Port"` + Port *uint64 `json:"Port,omitnil" name:"Port"` } type LogstashPipeline struct { // 管道ID - PipelineId *string `json:"PipelineId,omitempty" name:"PipelineId"` + PipelineId *string `json:"PipelineId,omitnil" name:"PipelineId"` // 管道描述信息 // 注意:此字段可能返回 null,表示取不到有效值。 - PipelineDesc *string `json:"PipelineDesc,omitempty" name:"PipelineDesc"` + PipelineDesc *string `json:"PipelineDesc,omitnil" name:"PipelineDesc"` // 管道配置内容 - Config *string `json:"Config,omitempty" name:"Config"` + Config *string `json:"Config,omitnil" name:"Config"` // 管道的Worker数量 // 注意:此字段可能返回 null,表示取不到有效值。 - Workers *uint64 `json:"Workers,omitempty" name:"Workers"` + Workers *uint64 `json:"Workers,omitnil" name:"Workers"` // 管道批处理大小 // 注意:此字段可能返回 null,表示取不到有效值。 - BatchSize *uint64 `json:"BatchSize,omitempty" name:"BatchSize"` + BatchSize *uint64 `json:"BatchSize,omitnil" name:"BatchSize"` // 管道批处理延迟 // 注意:此字段可能返回 null,表示取不到有效值。 - BatchDelay *uint64 `json:"BatchDelay,omitempty" name:"BatchDelay"` + BatchDelay *uint64 `json:"BatchDelay,omitnil" name:"BatchDelay"` // 管道缓冲队列类型 // 注意:此字段可能返回 null,表示取不到有效值。 - QueueType *string `json:"QueueType,omitempty" name:"QueueType"` + QueueType *string `json:"QueueType,omitnil" name:"QueueType"` // 管道缓冲队列大小 // 注意:此字段可能返回 null,表示取不到有效值。 - QueueMaxBytes *string `json:"QueueMaxBytes,omitempty" name:"QueueMaxBytes"` + QueueMaxBytes *string `json:"QueueMaxBytes,omitnil" name:"QueueMaxBytes"` // 管道缓冲队列检查点写入数 // 注意:此字段可能返回 null,表示取不到有效值。 - QueueCheckPointWrites *uint64 `json:"QueueCheckPointWrites,omitempty" name:"QueueCheckPointWrites"` + QueueCheckPointWrites *uint64 `json:"QueueCheckPointWrites,omitnil" name:"QueueCheckPointWrites"` } type LogstashPipelineInfo struct { // 管道ID - PipelineId *string `json:"PipelineId,omitempty" name:"PipelineId"` + PipelineId *string `json:"PipelineId,omitnil" name:"PipelineId"` // 管道描述信息 // 注意:此字段可能返回 null,表示取不到有效值。 - PipelineDesc *string `json:"PipelineDesc,omitempty" name:"PipelineDesc"` + PipelineDesc *string `json:"PipelineDesc,omitnil" name:"PipelineDesc"` // 管道配置内容 - Config *string `json:"Config,omitempty" name:"Config"` + Config *string `json:"Config,omitnil" name:"Config"` // 管道状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` // 管道的Worker数量 // 注意:此字段可能返回 null,表示取不到有效值。 - Workers *uint64 `json:"Workers,omitempty" name:"Workers"` + Workers *uint64 `json:"Workers,omitnil" name:"Workers"` // 管道批处理大小 // 注意:此字段可能返回 null,表示取不到有效值。 - BatchSize *uint64 `json:"BatchSize,omitempty" name:"BatchSize"` + BatchSize *uint64 `json:"BatchSize,omitnil" name:"BatchSize"` // 管道批处理延迟 // 注意:此字段可能返回 null,表示取不到有效值。 - BatchDelay *uint64 `json:"BatchDelay,omitempty" name:"BatchDelay"` + BatchDelay *uint64 `json:"BatchDelay,omitnil" name:"BatchDelay"` // 管道缓冲队列类型 // 注意:此字段可能返回 null,表示取不到有效值。 - QueueType *string `json:"QueueType,omitempty" name:"QueueType"` + QueueType *string `json:"QueueType,omitnil" name:"QueueType"` // 管道缓冲队列大小 // 注意:此字段可能返回 null,表示取不到有效值。 - QueueMaxBytes *string `json:"QueueMaxBytes,omitempty" name:"QueueMaxBytes"` + QueueMaxBytes *string `json:"QueueMaxBytes,omitnil" name:"QueueMaxBytes"` // 管道缓冲队列检查点写入数 // 注意:此字段可能返回 null,表示取不到有效值。 - QueueCheckPointWrites *uint64 `json:"QueueCheckPointWrites,omitempty" name:"QueueCheckPointWrites"` + QueueCheckPointWrites *uint64 `json:"QueueCheckPointWrites,omitnil" name:"QueueCheckPointWrites"` } type MasterNodeInfo struct { // 是否启用了专用主节点 - EnableDedicatedMaster *bool `json:"EnableDedicatedMaster,omitempty" name:"EnableDedicatedMaster"` + EnableDedicatedMaster *bool `json:"EnableDedicatedMaster,omitnil" name:"EnableDedicatedMaster"` // 专用主节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - MasterNodeType *string `json:"MasterNodeType,omitempty" name:"MasterNodeType"` + MasterNodeType *string `json:"MasterNodeType,omitnil" name:"MasterNodeType"` // 专用主节点个数 - MasterNodeNum *uint64 `json:"MasterNodeNum,omitempty" name:"MasterNodeNum"` + MasterNodeNum *uint64 `json:"MasterNodeNum,omitnil" name:"MasterNodeNum"` // 专用主节点CPU核数 - MasterNodeCpuNum *uint64 `json:"MasterNodeCpuNum,omitempty" name:"MasterNodeCpuNum"` + MasterNodeCpuNum *uint64 `json:"MasterNodeCpuNum,omitnil" name:"MasterNodeCpuNum"` // 专用主节点内存大小,单位GB - MasterNodeMemSize *uint64 `json:"MasterNodeMemSize,omitempty" name:"MasterNodeMemSize"` + MasterNodeMemSize *uint64 `json:"MasterNodeMemSize,omitnil" name:"MasterNodeMemSize"` // 专用主节点磁盘大小,单位GB - MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitempty" name:"MasterNodeDiskSize"` + MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitnil" name:"MasterNodeDiskSize"` // 专用主节点磁盘类型 - MasterNodeDiskType *string `json:"MasterNodeDiskType,omitempty" name:"MasterNodeDiskType"` + MasterNodeDiskType *string `json:"MasterNodeDiskType,omitnil" name:"MasterNodeDiskType"` } // Predefined struct for user type ModifyEsVipSecurityGroupRequestParams struct { // es集群的实例id - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 安全组id列表 - SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` + SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"` } type ModifyEsVipSecurityGroupRequest struct { *tchttp.BaseRequest // es集群的实例id - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 安全组id列表 - SecurityGroupIds []*string `json:"SecurityGroupIds,omitempty" name:"SecurityGroupIds"` + SecurityGroupIds []*string `json:"SecurityGroupIds,omitnil" name:"SecurityGroupIds"` } func (r *ModifyEsVipSecurityGroupRequest) ToJsonString() string { @@ -2912,7 +2931,7 @@ func (r *ModifyEsVipSecurityGroupRequest) FromJsonString(s string) error { // Predefined struct for user type ModifyEsVipSecurityGroupResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type ModifyEsVipSecurityGroupResponse struct { @@ -2933,215 +2952,240 @@ func (r *ModifyEsVipSecurityGroupResponse) FromJsonString(s string) error { type NodeInfo struct { // 节点数量 - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 节点类型
  • hotData: 热数据节点
  • //
  • warmData: 冷数据节点
  • //
  • dedicatedMaster: 专用主节点
  • // 默认值为hotData - Type *string `json:"Type,omitempty" name:"Type"` + Type *string `json:"Type,omitnil" name:"Type"` // 节点磁盘类型
  • CLOUD_SSD:SSD云硬盘
  • CLOUD_PREMIUM:高硬能云硬盘
  • 默认值CLOUD_SSD - DiskType *string `json:"DiskType,omitempty" name:"DiskType"` + DiskType *string `json:"DiskType,omitnil" name:"DiskType"` // 节点磁盘容量(单位GB) - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // 节点本地盘信息 // 注意:此字段可能返回 null,表示取不到有效值。 - LocalDiskInfo *LocalDiskInfo `json:"LocalDiskInfo,omitempty" name:"LocalDiskInfo"` + LocalDiskInfo *LocalDiskInfo `json:"LocalDiskInfo,omitnil" name:"LocalDiskInfo"` // 节点磁盘块数 - DiskCount *uint64 `json:"DiskCount,omitempty" name:"DiskCount"` + DiskCount *uint64 `json:"DiskCount,omitnil" name:"DiskCount"` // 节点磁盘是否加密 0: 不加密,1: 加密;默认不加密 - DiskEncrypt *uint64 `json:"DiskEncrypt,omitempty" name:"DiskEncrypt"` + DiskEncrypt *uint64 `json:"DiskEncrypt,omitnil" name:"DiskEncrypt"` // cpu数目 // 注意:此字段可能返回 null,表示取不到有效值。 - CpuNum *uint64 `json:"CpuNum,omitempty" name:"CpuNum"` + CpuNum *uint64 `json:"CpuNum,omitnil" name:"CpuNum"` // 内存大小,单位GB // 注意:此字段可能返回 null,表示取不到有效值。 - MemSize *int64 `json:"MemSize,omitempty" name:"MemSize"` + MemSize *int64 `json:"MemSize,omitnil" name:"MemSize"` // / // 注意:此字段可能返回 null,表示取不到有效值。 - DiskEnhance *int64 `json:"DiskEnhance,omitempty" name:"DiskEnhance"` + DiskEnhance *int64 `json:"DiskEnhance,omitnil" name:"DiskEnhance"` } type NodeView struct { // 节点ID - NodeId *string `json:"NodeId,omitempty" name:"NodeId"` + NodeId *string `json:"NodeId,omitnil" name:"NodeId"` // 节点IP - NodeIp *string `json:"NodeIp,omitempty" name:"NodeIp"` + NodeIp *string `json:"NodeIp,omitnil" name:"NodeIp"` // 节点是否可见 - Visible *float64 `json:"Visible,omitempty" name:"Visible"` + Visible *float64 `json:"Visible,omitnil" name:"Visible"` // 是否熔断 - Break *float64 `json:"Break,omitempty" name:"Break"` + Break *float64 `json:"Break,omitnil" name:"Break"` // 节点总磁盘大小 - DiskSize *int64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *int64 `json:"DiskSize,omitnil" name:"DiskSize"` // 磁盘使用率 - DiskUsage *float64 `json:"DiskUsage,omitempty" name:"DiskUsage"` + DiskUsage *float64 `json:"DiskUsage,omitnil" name:"DiskUsage"` // 节点内存大小,单位GB - MemSize *int64 `json:"MemSize,omitempty" name:"MemSize"` + MemSize *int64 `json:"MemSize,omitnil" name:"MemSize"` // 内存使用率 - MemUsage *float64 `json:"MemUsage,omitempty" name:"MemUsage"` + MemUsage *float64 `json:"MemUsage,omitnil" name:"MemUsage"` // 节点cpu个数 - CpuNum *int64 `json:"CpuNum,omitempty" name:"CpuNum"` + CpuNum *int64 `json:"CpuNum,omitnil" name:"CpuNum"` // cpu使用率 - CpuUsage *float64 `json:"CpuUsage,omitempty" name:"CpuUsage"` + CpuUsage *float64 `json:"CpuUsage,omitnil" name:"CpuUsage"` // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 节点角色 - NodeRole *string `json:"NodeRole,omitempty" name:"NodeRole"` + NodeRole *string `json:"NodeRole,omitnil" name:"NodeRole"` // 节点HTTP IP - NodeHttpIp *string `json:"NodeHttpIp,omitempty" name:"NodeHttpIp"` + NodeHttpIp *string `json:"NodeHttpIp,omitnil" name:"NodeHttpIp"` // JVM内存使用率 - JvmMemUsage *float64 `json:"JvmMemUsage,omitempty" name:"JvmMemUsage"` + JvmMemUsage *float64 `json:"JvmMemUsage,omitnil" name:"JvmMemUsage"` // 节点分片数 - ShardNum *int64 `json:"ShardNum,omitempty" name:"ShardNum"` + ShardNum *int64 `json:"ShardNum,omitnil" name:"ShardNum"` // 节点上磁盘ID列表 - DiskIds []*string `json:"DiskIds,omitempty" name:"DiskIds"` + DiskIds []*string `json:"DiskIds,omitnil" name:"DiskIds"` // 是否为隐藏可用区 - Hidden *bool `json:"Hidden,omitempty" name:"Hidden"` + Hidden *bool `json:"Hidden,omitnil" name:"Hidden"` } type Operation struct { // 操作唯一id - Id *uint64 `json:"Id,omitempty" name:"Id"` + Id *uint64 `json:"Id,omitnil" name:"Id"` // 操作开始时间 - StartTime *string `json:"StartTime,omitempty" name:"StartTime"` + StartTime *string `json:"StartTime,omitnil" name:"StartTime"` // 操作类型 - Type *string `json:"Type,omitempty" name:"Type"` + Type *string `json:"Type,omitnil" name:"Type"` // 操作详情 - Detail *OperationDetail `json:"Detail,omitempty" name:"Detail"` + Detail *OperationDetail `json:"Detail,omitnil" name:"Detail"` // 操作结果 - Result *string `json:"Result,omitempty" name:"Result"` + Result *string `json:"Result,omitnil" name:"Result"` // 流程任务信息 - Tasks []*TaskDetail `json:"Tasks,omitempty" name:"Tasks"` + Tasks []*TaskDetail `json:"Tasks,omitnil" name:"Tasks"` // 操作进度 - Progress *float64 `json:"Progress,omitempty" name:"Progress"` + Progress *float64 `json:"Progress,omitnil" name:"Progress"` + + // 操作者Uin + // 注意:此字段可能返回 null,表示取不到有效值。 + SubAccountUin *string `json:"SubAccountUin,omitnil" name:"SubAccountUin"` } type OperationDetail struct { // 实例原始配置信息 - OldInfo []*KeyValue `json:"OldInfo,omitempty" name:"OldInfo"` + OldInfo []*KeyValue `json:"OldInfo,omitnil" name:"OldInfo"` // 实例更新后配置信息 - NewInfo []*KeyValue `json:"NewInfo,omitempty" name:"NewInfo"` + NewInfo []*KeyValue `json:"NewInfo,omitnil" name:"NewInfo"` } type OperationDuration struct { // 维护周期,表示周一到周日,可取值[0, 6] // 注意:此字段可能返回 null,表示取不到有效值。 - Periods []*uint64 `json:"Periods,omitempty" name:"Periods"` + Periods []*uint64 `json:"Periods,omitnil" name:"Periods"` // 维护开始时间 - TimeStart *string `json:"TimeStart,omitempty" name:"TimeStart"` + TimeStart *string `json:"TimeStart,omitnil" name:"TimeStart"` // 维护结束时间 - TimeEnd *string `json:"TimeEnd,omitempty" name:"TimeEnd"` + TimeEnd *string `json:"TimeEnd,omitnil" name:"TimeEnd"` // 时区,以UTC形式表示 - TimeZone *string `json:"TimeZone,omitempty" name:"TimeZone"` + TimeZone *string `json:"TimeZone,omitnil" name:"TimeZone"` } type OperationDurationUpdated struct { // 维护周期,表示周一到周日,可取值[0, 6] - Periods []*uint64 `json:"Periods,omitempty" name:"Periods"` + Periods []*uint64 `json:"Periods,omitnil" name:"Periods"` // 维护开始时间 - TimeStart *string `json:"TimeStart,omitempty" name:"TimeStart"` + TimeStart *string `json:"TimeStart,omitnil" name:"TimeStart"` // 维护结束时间 - TimeEnd *string `json:"TimeEnd,omitempty" name:"TimeEnd"` + TimeEnd *string `json:"TimeEnd,omitnil" name:"TimeEnd"` // 时区,以UTC形式表示 - TimeZone *string `json:"TimeZone,omitempty" name:"TimeZone"` + TimeZone *string `json:"TimeZone,omitnil" name:"TimeZone"` // ES集群ID数组 - MoreInstances []*string `json:"MoreInstances,omitempty" name:"MoreInstances"` + MoreInstances []*string `json:"MoreInstances,omitnil" name:"MoreInstances"` } type OptionalWebServiceInfo struct { // 类型 // 注意:此字段可能返回 null,表示取不到有效值。 - Type *string `json:"Type,omitempty" name:"Type"` + Type *string `json:"Type,omitnil" name:"Type"` // 状态 // 注意:此字段可能返回 null,表示取不到有效值。 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` // 公网url // 注意:此字段可能返回 null,表示取不到有效值。 - PublicUrl *string `json:"PublicUrl,omitempty" name:"PublicUrl"` + PublicUrl *string `json:"PublicUrl,omitnil" name:"PublicUrl"` // 内网url // 注意:此字段可能返回 null,表示取不到有效值。 - PrivateUrl *string `json:"PrivateUrl,omitempty" name:"PrivateUrl"` + PrivateUrl *string `json:"PrivateUrl,omitnil" name:"PrivateUrl"` // 公网访问权限 // 注意:此字段可能返回 null,表示取不到有效值。 - PublicAccess *string `json:"PublicAccess,omitempty" name:"PublicAccess"` + PublicAccess *string `json:"PublicAccess,omitnil" name:"PublicAccess"` // 内网访问权限 // 注意:此字段可能返回 null,表示取不到有效值。 - PrivateAccess *string `json:"PrivateAccess,omitempty" name:"PrivateAccess"` + PrivateAccess *string `json:"PrivateAccess,omitnil" name:"PrivateAccess"` // 版本号 // 注意:此字段可能返回 null,表示取不到有效值。 - Version *string `json:"Version,omitempty" name:"Version"` + Version *string `json:"Version,omitnil" name:"Version"` +} + +type ProcessDetail struct { + // 已完成数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Completed *int64 `json:"Completed,omitnil" name:"Completed"` + + // 剩余数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Remain *int64 `json:"Remain,omitnil" name:"Remain"` + + // 总数量 + // 注意:此字段可能返回 null,表示取不到有效值。 + Total *int64 `json:"Total,omitnil" name:"Total"` + + // 任务类型: + // 60:重启型任务 + // 70:分片迁移型任务 + // 80:节点变配任务 + // 注意:此字段可能返回 null,表示取不到有效值。 + TaskType *int64 `json:"TaskType,omitnil" name:"TaskType"` } // Predefined struct for user type RestartInstanceRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 是否强制重启
  • true:强制重启
  • false:不强制重启
  • 默认false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` // 重启模式:0 滚动重启; 1 全量重启 - RestartMode *int64 `json:"RestartMode,omitempty" name:"RestartMode"` + RestartMode *int64 `json:"RestartMode,omitnil" name:"RestartMode"` } type RestartInstanceRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 是否强制重启
  • true:强制重启
  • false:不强制重启
  • 默认false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` // 重启模式:0 滚动重启; 1 全量重启 - RestartMode *int64 `json:"RestartMode,omitempty" name:"RestartMode"` + RestartMode *int64 `json:"RestartMode,omitnil" name:"RestartMode"` } func (r *RestartInstanceRequest) ToJsonString() string { @@ -3168,7 +3212,7 @@ func (r *RestartInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type RestartInstanceResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type RestartInstanceResponse struct { @@ -3190,14 +3234,14 @@ func (r *RestartInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type RestartKibanaRequestParams struct { // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } type RestartKibanaRequest struct { *tchttp.BaseRequest // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` } func (r *RestartKibanaRequest) ToJsonString() string { @@ -3222,7 +3266,7 @@ func (r *RestartKibanaRequest) FromJsonString(s string) error { // Predefined struct for user type RestartKibanaResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type RestartKibanaResponse struct { @@ -3244,20 +3288,20 @@ func (r *RestartKibanaResponse) FromJsonString(s string) error { // Predefined struct for user type RestartLogstashInstanceRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 重启类型,0全量重启,1滚动重启 - Type *int64 `json:"Type,omitempty" name:"Type"` + Type *int64 `json:"Type,omitnil" name:"Type"` } type RestartLogstashInstanceRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 重启类型,0全量重启,1滚动重启 - Type *int64 `json:"Type,omitempty" name:"Type"` + Type *int64 `json:"Type,omitnil" name:"Type"` } func (r *RestartLogstashInstanceRequest) ToJsonString() string { @@ -3283,7 +3327,7 @@ func (r *RestartLogstashInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type RestartLogstashInstanceResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type RestartLogstashInstanceResponse struct { @@ -3305,38 +3349,38 @@ func (r *RestartLogstashInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type RestartNodesRequestParams struct { // 集群实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 节点名称列表 - NodeNames []*string `json:"NodeNames,omitempty" name:"NodeNames"` + NodeNames []*string `json:"NodeNames,omitnil" name:"NodeNames"` // 是否强制重启 - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` // 可选重启模式"in-place","blue-green",分别表示重启,蓝绿重启;默认值为"in-place" - RestartMode *string `json:"RestartMode,omitempty" name:"RestartMode"` + RestartMode *string `json:"RestartMode,omitnil" name:"RestartMode"` // 节点状态,在蓝绿模式中使用;离线节点蓝绿有风险 - IsOffline *bool `json:"IsOffline,omitempty" name:"IsOffline"` + IsOffline *bool `json:"IsOffline,omitnil" name:"IsOffline"` } type RestartNodesRequest struct { *tchttp.BaseRequest // 集群实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 节点名称列表 - NodeNames []*string `json:"NodeNames,omitempty" name:"NodeNames"` + NodeNames []*string `json:"NodeNames,omitnil" name:"NodeNames"` // 是否强制重启 - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` // 可选重启模式"in-place","blue-green",分别表示重启,蓝绿重启;默认值为"in-place" - RestartMode *string `json:"RestartMode,omitempty" name:"RestartMode"` + RestartMode *string `json:"RestartMode,omitnil" name:"RestartMode"` // 节点状态,在蓝绿模式中使用;离线节点蓝绿有风险 - IsOffline *bool `json:"IsOffline,omitempty" name:"IsOffline"` + IsOffline *bool `json:"IsOffline,omitnil" name:"IsOffline"` } func (r *RestartNodesRequest) ToJsonString() string { @@ -3365,7 +3409,7 @@ func (r *RestartNodesRequest) FromJsonString(s string) error { // Predefined struct for user type RestartNodesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type RestartNodesResponse struct { @@ -3387,26 +3431,26 @@ func (r *RestartNodesResponse) FromJsonString(s string) error { // Predefined struct for user type SaveAndDeployLogstashPipelineRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例管道信息 - Pipeline *LogstashPipeline `json:"Pipeline,omitempty" name:"Pipeline"` + Pipeline *LogstashPipeline `json:"Pipeline,omitnil" name:"Pipeline"` // 操作类型
  • 1:只保存
  • 2:保存并部署
  • - OpType *uint64 `json:"OpType,omitempty" name:"OpType"` + OpType *uint64 `json:"OpType,omitnil" name:"OpType"` } type SaveAndDeployLogstashPipelineRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例管道信息 - Pipeline *LogstashPipeline `json:"Pipeline,omitempty" name:"Pipeline"` + Pipeline *LogstashPipeline `json:"Pipeline,omitnil" name:"Pipeline"` // 操作类型
  • 1:只保存
  • 2:保存并部署
  • - OpType *uint64 `json:"OpType,omitempty" name:"OpType"` + OpType *uint64 `json:"OpType,omitnil" name:"OpType"` } func (r *SaveAndDeployLogstashPipelineRequest) ToJsonString() string { @@ -3433,7 +3477,7 @@ func (r *SaveAndDeployLogstashPipelineRequest) FromJsonString(s string) error { // Predefined struct for user type SaveAndDeployLogstashPipelineResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type SaveAndDeployLogstashPipelineResponse struct { @@ -3455,20 +3499,20 @@ func (r *SaveAndDeployLogstashPipelineResponse) FromJsonString(s string) error { // Predefined struct for user type StartLogstashPipelinesRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 管道ID列表 - PipelineIds []*string `json:"PipelineIds,omitempty" name:"PipelineIds"` + PipelineIds []*string `json:"PipelineIds,omitnil" name:"PipelineIds"` } type StartLogstashPipelinesRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 管道ID列表 - PipelineIds []*string `json:"PipelineIds,omitempty" name:"PipelineIds"` + PipelineIds []*string `json:"PipelineIds,omitnil" name:"PipelineIds"` } func (r *StartLogstashPipelinesRequest) ToJsonString() string { @@ -3494,7 +3538,7 @@ func (r *StartLogstashPipelinesRequest) FromJsonString(s string) error { // Predefined struct for user type StartLogstashPipelinesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type StartLogstashPipelinesResponse struct { @@ -3516,20 +3560,20 @@ func (r *StartLogstashPipelinesResponse) FromJsonString(s string) error { // Predefined struct for user type StopLogstashPipelinesRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 管道ID列表 - PipelineIds []*string `json:"PipelineIds,omitempty" name:"PipelineIds"` + PipelineIds []*string `json:"PipelineIds,omitnil" name:"PipelineIds"` } type StopLogstashPipelinesRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 管道ID列表 - PipelineIds []*string `json:"PipelineIds,omitempty" name:"PipelineIds"` + PipelineIds []*string `json:"PipelineIds,omitnil" name:"PipelineIds"` } func (r *StopLogstashPipelinesRequest) ToJsonString() string { @@ -3555,7 +3599,7 @@ func (r *StopLogstashPipelinesRequest) FromJsonString(s string) error { // Predefined struct for user type StopLogstashPipelinesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type StopLogstashPipelinesResponse struct { @@ -3576,79 +3620,83 @@ func (r *StopLogstashPipelinesResponse) FromJsonString(s string) error { type SubTaskDetail struct { // 子任务名 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 子任务结果 - Result *bool `json:"Result,omitempty" name:"Result"` + Result *bool `json:"Result,omitnil" name:"Result"` // 子任务错误信息 - ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"` + ErrMsg *string `json:"ErrMsg,omitnil" name:"ErrMsg"` // 子任务类型 - Type *string `json:"Type,omitempty" name:"Type"` + Type *string `json:"Type,omitnil" name:"Type"` // 子任务状态,0处理中 1成功 -1失败 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` // 升级检查失败的索引名 - FailedIndices []*string `json:"FailedIndices,omitempty" name:"FailedIndices"` + FailedIndices []*string `json:"FailedIndices,omitnil" name:"FailedIndices"` // 子任务结束时间 - FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"` + FinishTime *string `json:"FinishTime,omitnil" name:"FinishTime"` // 子任务等级,1警告 2失败 - Level *int64 `json:"Level,omitempty" name:"Level"` + Level *int64 `json:"Level,omitnil" name:"Level"` } type TagInfo 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 TaskDetail struct { // 任务名 - Name *string `json:"Name,omitempty" name:"Name"` + Name *string `json:"Name,omitnil" name:"Name"` // 任务进度 - Progress *float64 `json:"Progress,omitempty" name:"Progress"` + Progress *float64 `json:"Progress,omitnil" name:"Progress"` // 任务完成时间 - FinishTime *string `json:"FinishTime,omitempty" name:"FinishTime"` + FinishTime *string `json:"FinishTime,omitnil" name:"FinishTime"` // 子任务 - SubTasks []*SubTaskDetail `json:"SubTasks,omitempty" name:"SubTasks"` + SubTasks []*SubTaskDetail `json:"SubTasks,omitnil" name:"SubTasks"` // 任务花费时间 // 注意:此字段可能返回 null,表示取不到有效值。 - ElapsedTime *int64 `json:"ElapsedTime,omitempty" name:"ElapsedTime"` + ElapsedTime *int64 `json:"ElapsedTime,omitnil" name:"ElapsedTime"` + + // 任务进度详情 + // 注意:此字段可能返回 null,表示取不到有效值。 + ProcessInfo *ProcessDetail `json:"ProcessInfo,omitnil" name:"ProcessInfo"` } // Predefined struct for user type UpdateDiagnoseSettingsRequestParams struct { // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 0:开启智能运维;-1:关闭智能运维 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` - // 智能运维每天定时巡检时间 - CronTime *string `json:"CronTime,omitempty" name:"CronTime"` + // 智能运维每天定时巡检时间,时间格式为HH:00:00,例如15:00:00 + CronTime *string `json:"CronTime,omitnil" name:"CronTime"` } type UpdateDiagnoseSettingsRequest struct { *tchttp.BaseRequest // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 0:开启智能运维;-1:关闭智能运维 - Status *int64 `json:"Status,omitempty" name:"Status"` + Status *int64 `json:"Status,omitnil" name:"Status"` - // 智能运维每天定时巡检时间 - CronTime *string `json:"CronTime,omitempty" name:"CronTime"` + // 智能运维每天定时巡检时间,时间格式为HH:00:00,例如15:00:00 + CronTime *string `json:"CronTime,omitnil" name:"CronTime"` } func (r *UpdateDiagnoseSettingsRequest) ToJsonString() string { @@ -3675,7 +3723,7 @@ func (r *UpdateDiagnoseSettingsRequest) FromJsonString(s string) error { // Predefined struct for user type UpdateDiagnoseSettingsResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdateDiagnoseSettingsResponse struct { @@ -3697,50 +3745,50 @@ func (r *UpdateDiagnoseSettingsResponse) FromJsonString(s string) error { // Predefined struct for user type UpdateDictionariesRequestParams struct { // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` - // IK分词主词典COS地址 - IkMainDicts []*string `json:"IkMainDicts,omitempty" name:"IkMainDicts"` + // 安装时填IK分词主词典COS地址,删除时填词典名如test.dic + IkMainDicts []*string `json:"IkMainDicts,omitnil" name:"IkMainDicts"` - // IK分词停用词词典COS地址 - IkStopwords []*string `json:"IkStopwords,omitempty" name:"IkStopwords"` + // 安装时填IK分词停用词词典COS地址,删除时填词典名如test.dic + IkStopwords []*string `json:"IkStopwords,omitnil" name:"IkStopwords"` - // 同义词词典COS地址 - Synonym []*string `json:"Synonym,omitempty" name:"Synonym"` + // 安装时填同义词词典COS地址,删除时填词典名如test.dic + Synonym []*string `json:"Synonym,omitnil" name:"Synonym"` - // QQ分词词典COS地址 - QQDict []*string `json:"QQDict,omitempty" name:"QQDict"` + // 安装时填QQ分词词典COS地址,删除时填词典名如test.dic + QQDict []*string `json:"QQDict,omitnil" name:"QQDict"` // 0:安装;1:删除。默认值0 - UpdateType *int64 `json:"UpdateType,omitempty" name:"UpdateType"` + UpdateType *int64 `json:"UpdateType,omitnil" name:"UpdateType"` // 是否强制重启集群。默认值false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` } type UpdateDictionariesRequest struct { *tchttp.BaseRequest // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` - // IK分词主词典COS地址 - IkMainDicts []*string `json:"IkMainDicts,omitempty" name:"IkMainDicts"` + // 安装时填IK分词主词典COS地址,删除时填词典名如test.dic + IkMainDicts []*string `json:"IkMainDicts,omitnil" name:"IkMainDicts"` - // IK分词停用词词典COS地址 - IkStopwords []*string `json:"IkStopwords,omitempty" name:"IkStopwords"` + // 安装时填IK分词停用词词典COS地址,删除时填词典名如test.dic + IkStopwords []*string `json:"IkStopwords,omitnil" name:"IkStopwords"` - // 同义词词典COS地址 - Synonym []*string `json:"Synonym,omitempty" name:"Synonym"` + // 安装时填同义词词典COS地址,删除时填词典名如test.dic + Synonym []*string `json:"Synonym,omitnil" name:"Synonym"` - // QQ分词词典COS地址 - QQDict []*string `json:"QQDict,omitempty" name:"QQDict"` + // 安装时填QQ分词词典COS地址,删除时填词典名如test.dic + QQDict []*string `json:"QQDict,omitnil" name:"QQDict"` // 0:安装;1:删除。默认值0 - UpdateType *int64 `json:"UpdateType,omitempty" name:"UpdateType"` + UpdateType *int64 `json:"UpdateType,omitnil" name:"UpdateType"` // 是否强制重启集群。默认值false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` } func (r *UpdateDictionariesRequest) ToJsonString() string { @@ -3771,7 +3819,7 @@ func (r *UpdateDictionariesRequest) FromJsonString(s string) error { // Predefined struct for user type UpdateDictionariesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdateDictionariesResponse struct { @@ -3793,50 +3841,50 @@ func (r *UpdateDictionariesResponse) FromJsonString(s string) error { // Predefined struct for user type UpdateIndexRequestParams struct { // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 更新的索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 更新的索引名 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 更新的索引元数据JSON,如mappings、settings - UpdateMetaJson *string `json:"UpdateMetaJson,omitempty" name:"UpdateMetaJson"` + UpdateMetaJson *string `json:"UpdateMetaJson,omitnil" name:"UpdateMetaJson"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 是否滚动后备索引 - RolloverBackingIndex *bool `json:"RolloverBackingIndex,omitempty" name:"RolloverBackingIndex"` + RolloverBackingIndex *bool `json:"RolloverBackingIndex,omitnil" name:"RolloverBackingIndex"` } type UpdateIndexRequest struct { *tchttp.BaseRequest // ES集群ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 更新的索引类型。auto:自治索引;normal:普通索引 - IndexType *string `json:"IndexType,omitempty" name:"IndexType"` + IndexType *string `json:"IndexType,omitnil" name:"IndexType"` // 更新的索引名 - IndexName *string `json:"IndexName,omitempty" name:"IndexName"` + IndexName *string `json:"IndexName,omitnil" name:"IndexName"` // 更新的索引元数据JSON,如mappings、settings - UpdateMetaJson *string `json:"UpdateMetaJson,omitempty" name:"UpdateMetaJson"` + UpdateMetaJson *string `json:"UpdateMetaJson,omitnil" name:"UpdateMetaJson"` // 集群访问用户名 - Username *string `json:"Username,omitempty" name:"Username"` + Username *string `json:"Username,omitnil" name:"Username"` // 集群访问密码 - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 是否滚动后备索引 - RolloverBackingIndex *bool `json:"RolloverBackingIndex,omitempty" name:"RolloverBackingIndex"` + RolloverBackingIndex *bool `json:"RolloverBackingIndex,omitnil" name:"RolloverBackingIndex"` } func (r *UpdateIndexRequest) ToJsonString() string { @@ -3867,7 +3915,7 @@ func (r *UpdateIndexRequest) FromJsonString(s string) error { // Predefined struct for user type UpdateIndexResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdateIndexResponse struct { @@ -3889,236 +3937,236 @@ func (r *UpdateIndexResponse) FromJsonString(s string) error { // Predefined struct for user type UpdateInstanceRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 已废弃请使用NodeInfoList // 节点个数(2-50个) - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // ES配置项(JSON格式字符串) - EsConfig *string `json:"EsConfig,omitempty" name:"EsConfig"` + EsConfig *string `json:"EsConfig,omitnil" name:"EsConfig"` // 默认用户elastic的密码(8到16位,至少包括两项([a-z,A-Z],[0-9]和[-!@#$%&^*+=_:;,.?]的特殊符号) - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 可视化组件(Kibana、Cerebro)的公网访问策略 - EsAcl *EsAcl `json:"EsAcl,omitempty" name:"EsAcl"` + EsAcl *EsAcl `json:"EsAcl,omitnil" name:"EsAcl"` // 已废弃请使用NodeInfoList // 磁盘大小(单位GB) - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // 已废弃请使用NodeInfoList // 节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 已废弃请使用NodeInfoList // 专用主节点个数(只支持3个或5个) - MasterNodeNum *uint64 `json:"MasterNodeNum,omitempty" name:"MasterNodeNum"` + MasterNodeNum *uint64 `json:"MasterNodeNum,omitnil" name:"MasterNodeNum"` // 已废弃请使用NodeInfoList // 专用主节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - MasterNodeType *string `json:"MasterNodeType,omitempty" name:"MasterNodeType"` + MasterNodeType *string `json:"MasterNodeType,omitnil" name:"MasterNodeType"` // 已废弃请使用NodeInfoList // 专用主节点磁盘大小(单位GB系统默认配置为50GB,暂不支持自定义) - MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitempty" name:"MasterNodeDiskSize"` + MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitnil" name:"MasterNodeDiskSize"` // 更新配置时是否强制重启
  • true强制重启
  • false不强制重启
  • 当前仅更新EsConfig时需要设置,默认值为false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` // COS自动备份信息 - CosBackup *CosBackup `json:"CosBackup,omitempty" name:"CosBackup"` + CosBackup *CosBackup `json:"CosBackup,omitnil" name:"CosBackup"` // 节点信息列表,可以只传递要更新的节点及其对应的规格信息。支持的操作包括
  • 修改一种节点的个数
  • 修改一种节点的节点规格及磁盘大小
  • 增加一种节点类型(需要同时指定该节点的类型,个数,规格,磁盘等信息)
  • 上述操作一次只能进行一种,且磁盘类型不支持修改 - NodeInfoList []*NodeInfo `json:"NodeInfoList,omitempty" name:"NodeInfoList"` + NodeInfoList []*NodeInfo `json:"NodeInfoList,omitnil" name:"NodeInfoList"` // ES集群公网访问状态 // OPEN 开启 // CLOSE 关闭 - PublicAccess *string `json:"PublicAccess,omitempty" name:"PublicAccess"` + PublicAccess *string `json:"PublicAccess,omitnil" name:"PublicAccess"` // 公网访问控制列表 - EsPublicAcl *EsPublicAcl `json:"EsPublicAcl,omitempty" name:"EsPublicAcl"` + EsPublicAcl *EsPublicAcl `json:"EsPublicAcl,omitnil" name:"EsPublicAcl"` // Kibana公网访问状态 // OPEN 开启 // CLOSE 关闭 - KibanaPublicAccess *string `json:"KibanaPublicAccess,omitempty" name:"KibanaPublicAccess"` + KibanaPublicAccess *string `json:"KibanaPublicAccess,omitnil" name:"KibanaPublicAccess"` // Kibana内网访问状态 // OPEN 开启 // CLOSE 关闭 - KibanaPrivateAccess *string `json:"KibanaPrivateAccess,omitempty" name:"KibanaPrivateAccess"` + KibanaPrivateAccess *string `json:"KibanaPrivateAccess,omitnil" name:"KibanaPrivateAccess"` // ES 6.8及以上版本基础版开启或关闭用户认证 - BasicSecurityType *int64 `json:"BasicSecurityType,omitempty" name:"BasicSecurityType"` + BasicSecurityType *int64 `json:"BasicSecurityType,omitnil" name:"BasicSecurityType"` // Kibana内网端口 - KibanaPrivatePort *uint64 `json:"KibanaPrivatePort,omitempty" name:"KibanaPrivatePort"` + KibanaPrivatePort *uint64 `json:"KibanaPrivatePort,omitnil" name:"KibanaPrivatePort"` // 0: 蓝绿变更方式扩容,集群不重启 (默认) 1: 磁盘解挂载扩容,集群滚动重启 - ScaleType *int64 `json:"ScaleType,omitempty" name:"ScaleType"` + ScaleType *int64 `json:"ScaleType,omitnil" name:"ScaleType"` // 多可用区部署 - MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitempty" name:"MultiZoneInfo"` + MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitnil" name:"MultiZoneInfo"` // 场景化模板类型 -1:不启用 1:通用 2:日志 3:搜索 - SceneType *int64 `json:"SceneType,omitempty" name:"SceneType"` + SceneType *int64 `json:"SceneType,omitnil" name:"SceneType"` // Kibana配置项(JSON格式字符串) - KibanaConfig *string `json:"KibanaConfig,omitempty" name:"KibanaConfig"` + KibanaConfig *string `json:"KibanaConfig,omitnil" name:"KibanaConfig"` // 可视化节点配置 - WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitempty" name:"WebNodeTypeInfo"` + WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitnil" name:"WebNodeTypeInfo"` // 切换到新网络架构 - SwitchPrivateLink *string `json:"SwitchPrivateLink,omitempty" name:"SwitchPrivateLink"` + SwitchPrivateLink *string `json:"SwitchPrivateLink,omitnil" name:"SwitchPrivateLink"` // 启用Cerebro - EnableCerebro *bool `json:"EnableCerebro,omitempty" name:"EnableCerebro"` + EnableCerebro *bool `json:"EnableCerebro,omitnil" name:"EnableCerebro"` // Cerebro公网访问状态 // OPEN 开启 // CLOSE 关闭 - CerebroPublicAccess *string `json:"CerebroPublicAccess,omitempty" name:"CerebroPublicAccess"` + CerebroPublicAccess *string `json:"CerebroPublicAccess,omitnil" name:"CerebroPublicAccess"` // Cerebro内网访问状态 // OPEN 开启 // CLOSE 关闭 - CerebroPrivateAccess *string `json:"CerebroPrivateAccess,omitempty" name:"CerebroPrivateAccess"` + CerebroPrivateAccess *string `json:"CerebroPrivateAccess,omitnil" name:"CerebroPrivateAccess"` // 新增或修改的配置组信息 - EsConfigSet *EsConfigSetInfo `json:"EsConfigSet,omitempty" name:"EsConfigSet"` + EsConfigSet *EsConfigSetInfo `json:"EsConfigSet,omitnil" name:"EsConfigSet"` // 可维护时间段 - OperationDuration *OperationDurationUpdated `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDurationUpdated `json:"OperationDuration,omitnil" name:"OperationDuration"` // 是否开启Alerting 外网告警输出: // OPEN 开启 // CLOSE 关闭 - KibanaAlteringPublicAccess *string `json:"KibanaAlteringPublicAccess,omitempty" name:"KibanaAlteringPublicAccess"` + KibanaAlteringPublicAccess *string `json:"KibanaAlteringPublicAccess,omitnil" name:"KibanaAlteringPublicAccess"` } type UpdateInstanceRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例名称(1-50 个英文、汉字、数字、连接线-或下划线_) - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 已废弃请使用NodeInfoList // 节点个数(2-50个) - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // ES配置项(JSON格式字符串) - EsConfig *string `json:"EsConfig,omitempty" name:"EsConfig"` + EsConfig *string `json:"EsConfig,omitnil" name:"EsConfig"` // 默认用户elastic的密码(8到16位,至少包括两项([a-z,A-Z],[0-9]和[-!@#$%&^*+=_:;,.?]的特殊符号) - Password *string `json:"Password,omitempty" name:"Password"` + Password *string `json:"Password,omitnil" name:"Password"` // 可视化组件(Kibana、Cerebro)的公网访问策略 - EsAcl *EsAcl `json:"EsAcl,omitempty" name:"EsAcl"` + EsAcl *EsAcl `json:"EsAcl,omitnil" name:"EsAcl"` // 已废弃请使用NodeInfoList // 磁盘大小(单位GB) - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // 已废弃请使用NodeInfoList // 节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 已废弃请使用NodeInfoList // 专用主节点个数(只支持3个或5个) - MasterNodeNum *uint64 `json:"MasterNodeNum,omitempty" name:"MasterNodeNum"` + MasterNodeNum *uint64 `json:"MasterNodeNum,omitnil" name:"MasterNodeNum"` // 已废弃请使用NodeInfoList // 专用主节点规格
  • ES.S1.SMALL2:1核2G
  • ES.S1.MEDIUM4:2核4G
  • ES.S1.MEDIUM8:2核8G
  • ES.S1.LARGE16:4核16G
  • ES.S1.2XLARGE32:8核32G
  • ES.S1.4XLARGE32:16核32G
  • ES.S1.4XLARGE64:16核64G
  • - MasterNodeType *string `json:"MasterNodeType,omitempty" name:"MasterNodeType"` + MasterNodeType *string `json:"MasterNodeType,omitnil" name:"MasterNodeType"` // 已废弃请使用NodeInfoList // 专用主节点磁盘大小(单位GB系统默认配置为50GB,暂不支持自定义) - MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitempty" name:"MasterNodeDiskSize"` + MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitnil" name:"MasterNodeDiskSize"` // 更新配置时是否强制重启
  • true强制重启
  • false不强制重启
  • 当前仅更新EsConfig时需要设置,默认值为false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` // COS自动备份信息 - CosBackup *CosBackup `json:"CosBackup,omitempty" name:"CosBackup"` + CosBackup *CosBackup `json:"CosBackup,omitnil" name:"CosBackup"` // 节点信息列表,可以只传递要更新的节点及其对应的规格信息。支持的操作包括
  • 修改一种节点的个数
  • 修改一种节点的节点规格及磁盘大小
  • 增加一种节点类型(需要同时指定该节点的类型,个数,规格,磁盘等信息)
  • 上述操作一次只能进行一种,且磁盘类型不支持修改 - NodeInfoList []*NodeInfo `json:"NodeInfoList,omitempty" name:"NodeInfoList"` + NodeInfoList []*NodeInfo `json:"NodeInfoList,omitnil" name:"NodeInfoList"` // ES集群公网访问状态 // OPEN 开启 // CLOSE 关闭 - PublicAccess *string `json:"PublicAccess,omitempty" name:"PublicAccess"` + PublicAccess *string `json:"PublicAccess,omitnil" name:"PublicAccess"` // 公网访问控制列表 - EsPublicAcl *EsPublicAcl `json:"EsPublicAcl,omitempty" name:"EsPublicAcl"` + EsPublicAcl *EsPublicAcl `json:"EsPublicAcl,omitnil" name:"EsPublicAcl"` // Kibana公网访问状态 // OPEN 开启 // CLOSE 关闭 - KibanaPublicAccess *string `json:"KibanaPublicAccess,omitempty" name:"KibanaPublicAccess"` + KibanaPublicAccess *string `json:"KibanaPublicAccess,omitnil" name:"KibanaPublicAccess"` // Kibana内网访问状态 // OPEN 开启 // CLOSE 关闭 - KibanaPrivateAccess *string `json:"KibanaPrivateAccess,omitempty" name:"KibanaPrivateAccess"` + KibanaPrivateAccess *string `json:"KibanaPrivateAccess,omitnil" name:"KibanaPrivateAccess"` // ES 6.8及以上版本基础版开启或关闭用户认证 - BasicSecurityType *int64 `json:"BasicSecurityType,omitempty" name:"BasicSecurityType"` + BasicSecurityType *int64 `json:"BasicSecurityType,omitnil" name:"BasicSecurityType"` // Kibana内网端口 - KibanaPrivatePort *uint64 `json:"KibanaPrivatePort,omitempty" name:"KibanaPrivatePort"` + KibanaPrivatePort *uint64 `json:"KibanaPrivatePort,omitnil" name:"KibanaPrivatePort"` // 0: 蓝绿变更方式扩容,集群不重启 (默认) 1: 磁盘解挂载扩容,集群滚动重启 - ScaleType *int64 `json:"ScaleType,omitempty" name:"ScaleType"` + ScaleType *int64 `json:"ScaleType,omitnil" name:"ScaleType"` // 多可用区部署 - MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitempty" name:"MultiZoneInfo"` + MultiZoneInfo []*ZoneDetail `json:"MultiZoneInfo,omitnil" name:"MultiZoneInfo"` // 场景化模板类型 -1:不启用 1:通用 2:日志 3:搜索 - SceneType *int64 `json:"SceneType,omitempty" name:"SceneType"` + SceneType *int64 `json:"SceneType,omitnil" name:"SceneType"` // Kibana配置项(JSON格式字符串) - KibanaConfig *string `json:"KibanaConfig,omitempty" name:"KibanaConfig"` + KibanaConfig *string `json:"KibanaConfig,omitnil" name:"KibanaConfig"` // 可视化节点配置 - WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitempty" name:"WebNodeTypeInfo"` + WebNodeTypeInfo *WebNodeTypeInfo `json:"WebNodeTypeInfo,omitnil" name:"WebNodeTypeInfo"` // 切换到新网络架构 - SwitchPrivateLink *string `json:"SwitchPrivateLink,omitempty" name:"SwitchPrivateLink"` + SwitchPrivateLink *string `json:"SwitchPrivateLink,omitnil" name:"SwitchPrivateLink"` // 启用Cerebro - EnableCerebro *bool `json:"EnableCerebro,omitempty" name:"EnableCerebro"` + EnableCerebro *bool `json:"EnableCerebro,omitnil" name:"EnableCerebro"` // Cerebro公网访问状态 // OPEN 开启 // CLOSE 关闭 - CerebroPublicAccess *string `json:"CerebroPublicAccess,omitempty" name:"CerebroPublicAccess"` + CerebroPublicAccess *string `json:"CerebroPublicAccess,omitnil" name:"CerebroPublicAccess"` // Cerebro内网访问状态 // OPEN 开启 // CLOSE 关闭 - CerebroPrivateAccess *string `json:"CerebroPrivateAccess,omitempty" name:"CerebroPrivateAccess"` + CerebroPrivateAccess *string `json:"CerebroPrivateAccess,omitnil" name:"CerebroPrivateAccess"` // 新增或修改的配置组信息 - EsConfigSet *EsConfigSetInfo `json:"EsConfigSet,omitempty" name:"EsConfigSet"` + EsConfigSet *EsConfigSetInfo `json:"EsConfigSet,omitnil" name:"EsConfigSet"` // 可维护时间段 - OperationDuration *OperationDurationUpdated `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDurationUpdated `json:"OperationDuration,omitnil" name:"OperationDuration"` // 是否开启Alerting 外网告警输出: // OPEN 开启 // CLOSE 关闭 - KibanaAlteringPublicAccess *string `json:"KibanaAlteringPublicAccess,omitempty" name:"KibanaAlteringPublicAccess"` + KibanaAlteringPublicAccess *string `json:"KibanaAlteringPublicAccess,omitnil" name:"KibanaAlteringPublicAccess"` } func (r *UpdateInstanceRequest) ToJsonString() string { @@ -4175,10 +4223,10 @@ func (r *UpdateInstanceRequest) FromJsonString(s string) error { type UpdateInstanceResponseParams struct { // 订单号 // 注意:此字段可能返回 null,表示取不到有效值。 - DealName *string `json:"DealName,omitempty" name:"DealName"` + DealName *string `json:"DealName,omitnil" name:"DealName"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdateInstanceResponse struct { @@ -4200,32 +4248,32 @@ func (r *UpdateInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type UpdateJdkRequestParams struct { // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Jdk类型,支持kona和oracle - Jdk *string `json:"Jdk,omitempty" name:"Jdk"` + Jdk *string `json:"Jdk,omitnil" name:"Jdk"` // Gc类型,支持g1和cms - Gc *string `json:"Gc,omitempty" name:"Gc"` + Gc *string `json:"Gc,omitnil" name:"Gc"` // 是否强制重启 - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` } type UpdateJdkRequest struct { *tchttp.BaseRequest // ES实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // Jdk类型,支持kona和oracle - Jdk *string `json:"Jdk,omitempty" name:"Jdk"` + Jdk *string `json:"Jdk,omitnil" name:"Jdk"` // Gc类型,支持g1和cms - Gc *string `json:"Gc,omitempty" name:"Gc"` + Gc *string `json:"Gc,omitnil" name:"Gc"` // 是否强制重启 - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` } func (r *UpdateJdkRequest) ToJsonString() string { @@ -4253,7 +4301,7 @@ func (r *UpdateJdkRequest) FromJsonString(s string) error { // Predefined struct for user type UpdateJdkResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdateJdkResponse struct { @@ -4275,62 +4323,62 @@ func (r *UpdateJdkResponse) FromJsonString(s string) error { // Predefined struct for user type UpdateLogstashInstanceRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例节点数量 - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 实例YML配置 - YMLConfig *string `json:"YMLConfig,omitempty" name:"YMLConfig"` + YMLConfig *string `json:"YMLConfig,omitnil" name:"YMLConfig"` // 实例绑定的ES集群信息 - BindedES *LogstashBindedES `json:"BindedES,omitempty" name:"BindedES"` + BindedES *LogstashBindedES `json:"BindedES,omitnil" name:"BindedES"` // 实例名称 - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 扩展文件列表 - ExtendedFiles []*LogstashExtendedFile `json:"ExtendedFiles,omitempty" name:"ExtendedFiles"` + ExtendedFiles []*LogstashExtendedFile `json:"ExtendedFiles,omitnil" name:"ExtendedFiles"` // 实例规格 - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 节点磁盘容量 - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // 可维护时间段 - OperationDuration *OperationDurationUpdated `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDurationUpdated `json:"OperationDuration,omitnil" name:"OperationDuration"` } type UpdateLogstashInstanceRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例节点数量 - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 实例YML配置 - YMLConfig *string `json:"YMLConfig,omitempty" name:"YMLConfig"` + YMLConfig *string `json:"YMLConfig,omitnil" name:"YMLConfig"` // 实例绑定的ES集群信息 - BindedES *LogstashBindedES `json:"BindedES,omitempty" name:"BindedES"` + BindedES *LogstashBindedES `json:"BindedES,omitnil" name:"BindedES"` // 实例名称 - InstanceName *string `json:"InstanceName,omitempty" name:"InstanceName"` + InstanceName *string `json:"InstanceName,omitnil" name:"InstanceName"` // 扩展文件列表 - ExtendedFiles []*LogstashExtendedFile `json:"ExtendedFiles,omitempty" name:"ExtendedFiles"` + ExtendedFiles []*LogstashExtendedFile `json:"ExtendedFiles,omitnil" name:"ExtendedFiles"` // 实例规格 - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` // 节点磁盘容量 - DiskSize *uint64 `json:"DiskSize,omitempty" name:"DiskSize"` + DiskSize *uint64 `json:"DiskSize,omitnil" name:"DiskSize"` // 可维护时间段 - OperationDuration *OperationDurationUpdated `json:"OperationDuration,omitempty" name:"OperationDuration"` + OperationDuration *OperationDurationUpdated `json:"OperationDuration,omitnil" name:"OperationDuration"` } func (r *UpdateLogstashInstanceRequest) ToJsonString() string { @@ -4363,7 +4411,7 @@ func (r *UpdateLogstashInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type UpdateLogstashInstanceResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdateLogstashInstanceResponse struct { @@ -4385,26 +4433,26 @@ func (r *UpdateLogstashInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type UpdateLogstashPipelineDescRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例管道ID - PipelineId *string `json:"PipelineId,omitempty" name:"PipelineId"` + PipelineId *string `json:"PipelineId,omitnil" name:"PipelineId"` // 管道描述信息 - PipelineDesc *string `json:"PipelineDesc,omitempty" name:"PipelineDesc"` + PipelineDesc *string `json:"PipelineDesc,omitnil" name:"PipelineDesc"` } type UpdateLogstashPipelineDescRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 实例管道ID - PipelineId *string `json:"PipelineId,omitempty" name:"PipelineId"` + PipelineId *string `json:"PipelineId,omitnil" name:"PipelineId"` // 管道描述信息 - PipelineDesc *string `json:"PipelineDesc,omitempty" name:"PipelineDesc"` + PipelineDesc *string `json:"PipelineDesc,omitnil" name:"PipelineDesc"` } func (r *UpdateLogstashPipelineDescRequest) ToJsonString() string { @@ -4431,7 +4479,7 @@ func (r *UpdateLogstashPipelineDescRequest) FromJsonString(s string) error { // Predefined struct for user type UpdateLogstashPipelineDescResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdateLogstashPipelineDescResponse struct { @@ -4453,44 +4501,44 @@ func (r *UpdateLogstashPipelineDescResponse) FromJsonString(s string) error { // Predefined struct for user type UpdatePluginsRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 需要安装的插件名列表 - InstallPluginList []*string `json:"InstallPluginList,omitempty" name:"InstallPluginList"` + InstallPluginList []*string `json:"InstallPluginList,omitnil" name:"InstallPluginList"` // 需要卸载的插件名列表 - RemovePluginList []*string `json:"RemovePluginList,omitempty" name:"RemovePluginList"` + RemovePluginList []*string `json:"RemovePluginList,omitnil" name:"RemovePluginList"` // 是否强制重启,默认值false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` // 是否重新安装,默认值false - ForceUpdate *bool `json:"ForceUpdate,omitempty" name:"ForceUpdate"` + ForceUpdate *bool `json:"ForceUpdate,omitnil" name:"ForceUpdate"` // 0:系统插件 - PluginType *uint64 `json:"PluginType,omitempty" name:"PluginType"` + PluginType *uint64 `json:"PluginType,omitnil" name:"PluginType"` } type UpdatePluginsRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 需要安装的插件名列表 - InstallPluginList []*string `json:"InstallPluginList,omitempty" name:"InstallPluginList"` + InstallPluginList []*string `json:"InstallPluginList,omitnil" name:"InstallPluginList"` // 需要卸载的插件名列表 - RemovePluginList []*string `json:"RemovePluginList,omitempty" name:"RemovePluginList"` + RemovePluginList []*string `json:"RemovePluginList,omitnil" name:"RemovePluginList"` // 是否强制重启,默认值false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` // 是否重新安装,默认值false - ForceUpdate *bool `json:"ForceUpdate,omitempty" name:"ForceUpdate"` + ForceUpdate *bool `json:"ForceUpdate,omitnil" name:"ForceUpdate"` // 0:系统插件 - PluginType *uint64 `json:"PluginType,omitempty" name:"PluginType"` + PluginType *uint64 `json:"PluginType,omitnil" name:"PluginType"` } func (r *UpdatePluginsRequest) ToJsonString() string { @@ -4520,7 +4568,7 @@ func (r *UpdatePluginsRequest) FromJsonString(s string) error { // Predefined struct for user type UpdatePluginsResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdatePluginsResponse struct { @@ -4542,20 +4590,20 @@ func (r *UpdatePluginsResponse) FromJsonString(s string) error { // Predefined struct for user type UpdateRequestTargetNodeTypesRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 接收请求的目标节点类型列表 - TargetNodeTypes []*string `json:"TargetNodeTypes,omitempty" name:"TargetNodeTypes"` + TargetNodeTypes []*string `json:"TargetNodeTypes,omitnil" name:"TargetNodeTypes"` } type UpdateRequestTargetNodeTypesRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // 接收请求的目标节点类型列表 - TargetNodeTypes []*string `json:"TargetNodeTypes,omitempty" name:"TargetNodeTypes"` + TargetNodeTypes []*string `json:"TargetNodeTypes,omitnil" name:"TargetNodeTypes"` } func (r *UpdateRequestTargetNodeTypesRequest) ToJsonString() string { @@ -4581,7 +4629,7 @@ func (r *UpdateRequestTargetNodeTypesRequest) FromJsonString(s string) error { // Predefined struct for user type UpdateRequestTargetNodeTypesResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpdateRequestTargetNodeTypesResponse struct { @@ -4603,56 +4651,56 @@ func (r *UpdateRequestTargetNodeTypesResponse) FromJsonString(s string) error { // Predefined struct for user type UpgradeInstanceRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` - // 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1" - EsVersion *string `json:"EsVersion,omitempty" name:"EsVersion"` + // 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1", "7.10.1", "7.14.2" + EsVersion *string `json:"EsVersion,omitnil" name:"EsVersion"` // 是否只做升级检查,默认值为false - CheckOnly *bool `json:"CheckOnly,omitempty" name:"CheckOnly"` + CheckOnly *bool `json:"CheckOnly,omitnil" name:"CheckOnly"` // 目标商业特性版本:
  • oss 开源版
  • basic 基础版
  • 当前仅在5.6.4升级6.x版本时使用,默认值为basic - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • - BasicSecurityType *uint64 `json:"BasicSecurityType,omitempty" name:"BasicSecurityType"` + BasicSecurityType *uint64 `json:"BasicSecurityType,omitnil" name:"BasicSecurityType"` // 升级方式:
  • scale 蓝绿变更
  • restart 滚动重启
  • 默认值为scale - UpgradeMode *string `json:"UpgradeMode,omitempty" name:"UpgradeMode"` + UpgradeMode *string `json:"UpgradeMode,omitnil" name:"UpgradeMode"` // 升级版本前是否对集群进行备份,默认不备份 - CosBackup *bool `json:"CosBackup,omitempty" name:"CosBackup"` + CosBackup *bool `json:"CosBackup,omitnil" name:"CosBackup"` // 滚动模式时,是否跳过检查,进行强制重启。默认值为false - SkipCheckForceRestart *bool `json:"SkipCheckForceRestart,omitempty" name:"SkipCheckForceRestart"` + SkipCheckForceRestart *bool `json:"SkipCheckForceRestart,omitnil" name:"SkipCheckForceRestart"` } type UpgradeInstanceRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` - // 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1" - EsVersion *string `json:"EsVersion,omitempty" name:"EsVersion"` + // 目标ES版本,支持:”6.4.3“, "6.8.2","7.5.1", "7.10.1", "7.14.2" + EsVersion *string `json:"EsVersion,omitnil" name:"EsVersion"` // 是否只做升级检查,默认值为false - CheckOnly *bool `json:"CheckOnly,omitempty" name:"CheckOnly"` + CheckOnly *bool `json:"CheckOnly,omitnil" name:"CheckOnly"` // 目标商业特性版本:
  • oss 开源版
  • basic 基础版
  • 当前仅在5.6.4升级6.x版本时使用,默认值为basic - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • - BasicSecurityType *uint64 `json:"BasicSecurityType,omitempty" name:"BasicSecurityType"` + BasicSecurityType *uint64 `json:"BasicSecurityType,omitnil" name:"BasicSecurityType"` // 升级方式:
  • scale 蓝绿变更
  • restart 滚动重启
  • 默认值为scale - UpgradeMode *string `json:"UpgradeMode,omitempty" name:"UpgradeMode"` + UpgradeMode *string `json:"UpgradeMode,omitnil" name:"UpgradeMode"` // 升级版本前是否对集群进行备份,默认不备份 - CosBackup *bool `json:"CosBackup,omitempty" name:"CosBackup"` + CosBackup *bool `json:"CosBackup,omitnil" name:"CosBackup"` // 滚动模式时,是否跳过检查,进行强制重启。默认值为false - SkipCheckForceRestart *bool `json:"SkipCheckForceRestart,omitempty" name:"SkipCheckForceRestart"` + SkipCheckForceRestart *bool `json:"SkipCheckForceRestart,omitnil" name:"SkipCheckForceRestart"` } func (r *UpgradeInstanceRequest) ToJsonString() string { @@ -4684,7 +4732,7 @@ func (r *UpgradeInstanceRequest) FromJsonString(s string) error { // Predefined struct for user type UpgradeInstanceResponseParams struct { // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpgradeInstanceResponse struct { @@ -4706,44 +4754,44 @@ func (r *UpgradeInstanceResponse) FromJsonString(s string) error { // Predefined struct for user type UpgradeLicenseRequestParams struct { // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // License类型
  • oss:开源版
  • basic:基础版
  • platinum:白金版
  • 默认值platinum - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 - AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` + AutoVoucher *int64 `json:"AutoVoucher,omitnil" name:"AutoVoucher"` // 代金券ID列表(目前仅支持指定一张代金券) - VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"` + VoucherIds []*string `json:"VoucherIds,omitnil" name:"VoucherIds"` - // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • - BasicSecurityType *uint64 `json:"BasicSecurityType,omitempty" name:"BasicSecurityType"` + // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • 不传参时会默认维持原状,传参时需注意只能由不开启变为开启,无法由开启变为不开启
  • + BasicSecurityType *uint64 `json:"BasicSecurityType,omitnil" name:"BasicSecurityType"` // 是否强制重启
  • true强制重启
  • false不强制重启
  • 默认值false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` } type UpgradeLicenseRequest struct { *tchttp.BaseRequest // 实例ID - InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` + InstanceId *string `json:"InstanceId,omitnil" name:"InstanceId"` // License类型
  • oss:开源版
  • basic:基础版
  • platinum:白金版
  • 默认值platinum - LicenseType *string `json:"LicenseType,omitempty" name:"LicenseType"` + LicenseType *string `json:"LicenseType,omitnil" name:"LicenseType"` // 是否自动使用代金券
  • 0:不自动使用
  • 1:自动使用
  • 默认值0 - AutoVoucher *int64 `json:"AutoVoucher,omitempty" name:"AutoVoucher"` + AutoVoucher *int64 `json:"AutoVoucher,omitnil" name:"AutoVoucher"` // 代金券ID列表(目前仅支持指定一张代金券) - VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds"` + VoucherIds []*string `json:"VoucherIds,omitnil" name:"VoucherIds"` - // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • - BasicSecurityType *uint64 `json:"BasicSecurityType,omitempty" name:"BasicSecurityType"` + // 6.8(及以上版本)基础版是否开启xpack security认证
  • 1:不开启
  • 2:开启
  • 不传参时会默认维持原状,传参时需注意只能由不开启变为开启,无法由开启变为不开启
  • + BasicSecurityType *uint64 `json:"BasicSecurityType,omitnil" name:"BasicSecurityType"` // 是否强制重启
  • true强制重启
  • false不强制重启
  • 默认值false - ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` + ForceRestart *bool `json:"ForceRestart,omitnil" name:"ForceRestart"` } func (r *UpgradeLicenseRequest) ToJsonString() string { @@ -4774,10 +4822,10 @@ func (r *UpgradeLicenseRequest) FromJsonString(s string) error { type UpgradeLicenseResponseParams struct { // 订单号 // 注意:此字段可能返回 null,表示取不到有效值。 - DealName *string `json:"DealName,omitempty" name:"DealName"` + DealName *string `json:"DealName,omitnil" name:"DealName"` // 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 - RequestId *string `json:"RequestId,omitempty" name:"RequestId"` + RequestId *string `json:"RequestId,omitnil" name:"RequestId"` } type UpgradeLicenseResponse struct { @@ -4798,16 +4846,16 @@ func (r *UpgradeLicenseResponse) FromJsonString(s string) error { type WebNodeTypeInfo struct { // 可视化节点个数,固定为1 - NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` + NodeNum *uint64 `json:"NodeNum,omitnil" name:"NodeNum"` // 可视化节点规格 - NodeType *string `json:"NodeType,omitempty" name:"NodeType"` + NodeType *string `json:"NodeType,omitnil" name:"NodeType"` } type ZoneDetail struct { // 可用区 - Zone *string `json:"Zone,omitempty" name:"Zone"` + Zone *string `json:"Zone,omitnil" name:"Zone"` // 子网ID - SubnetId *string `json:"SubnetId,omitempty" name:"SubnetId"` + SubnetId *string `json:"SubnetId,omitnil" name:"SubnetId"` } \ No newline at end of file diff --git a/vendor/modules.txt b/vendor/modules.txt index cdf073ebf5..87f31a996b 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1131,7 +1131,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.711 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.763 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.765 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors @@ -1163,7 +1163,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dcdb/v20180411 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc v1.0.726 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dlc/v20210125 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.539 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod v1.0.765 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/dnspod/v20210323 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/domain v1.0.414 @@ -1178,7 +1178,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/eb/v20210416 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr v1.0.762 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/emr/v20190103 -# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.699 +# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es v1.0.762 ## explicit; go 1.14 github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/es/v20180416 # github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/gaap v1.0.760 diff --git a/website/docs/d/cam_account_summary.html.markdown b/website/docs/d/cam_account_summary.html.markdown new file mode 100644 index 0000000000..2129f87dad --- /dev/null +++ b/website/docs/d/cam_account_summary.html.markdown @@ -0,0 +1,38 @@ +--- +subcategory: "Cloud Access Management(CAM)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_cam_account_summary" +sidebar_current: "docs-tencentcloud-datasource-cam_account_summary" +description: |- + Use this data source to query detailed information of cam account_summary +--- + +# tencentcloud_cam_account_summary + +Use this data source to query detailed information of cam account_summary + +## Example Usage + +```hcl +data "tencentcloud_cam_account_summary" "account_summary" { +} +``` + +## 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: + +* `group` - The number of Group. +* `identity_providers` - The number of identity provider. +* `member` - The number of grouped users. +* `policies` - The number of policy. +* `roles` - The number of role. +* `user` - The number of Sub-user. + + diff --git a/website/docs/d/cam_oidc_config.html.markdown b/website/docs/d/cam_oidc_config.html.markdown new file mode 100644 index 0000000000..81cbf06b3c --- /dev/null +++ b/website/docs/d/cam_oidc_config.html.markdown @@ -0,0 +1,48 @@ +--- +subcategory: "Cloud Access Management(CAM)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_cam_oidc_config" +sidebar_current: "docs-tencentcloud-datasource-cam_oidc_config" +description: |- + Use this data source to query detailed information of cam oidc_config +--- + +# tencentcloud_cam_oidc_config + +Use this data source to query detailed information of cam oidc_config + +## Example Usage + +```hcl +data "tencentcloud_cam_oidc_config" "oidc_config" { + name = "cls-kzilgv5m" +} + +output "identity_key" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_key +} + +output "identity_url" { + value = data.tencentcloud_cam_oidc_config.oidc_config.identity_url +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required, String) Name. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `client_id` - Client ID. +* `description` - Description. +* `identity_key` - Public key for signature. +* `identity_url` - IdP URL. +* `provider_type` - IdP type. 11: Role IdP. +* `status` - Status. 0: Not set; 2: Disabled; 11: Enabled. + + diff --git a/website/docs/d/cam_policy_granting_service_access.html.markdown b/website/docs/d/cam_policy_granting_service_access.html.markdown new file mode 100644 index 0000000000..f8b9cde261 --- /dev/null +++ b/website/docs/d/cam_policy_granting_service_access.html.markdown @@ -0,0 +1,50 @@ +--- +subcategory: "Cloud Access Management(CAM)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_cam_policy_granting_service_access" +sidebar_current: "docs-tencentcloud-datasource-cam_policy_granting_service_access" +description: |- + Use this data source to query detailed information of cam policy_granting_service_access +--- + +# tencentcloud_cam_policy_granting_service_access + +Use this data source to query detailed information of cam policy_granting_service_access + +## Example Usage + +```hcl +data "tencentcloud_cam_policy_granting_service_access" "policy_granting_service_access" { + role_id = 4611686018436805021 + service_type = "cam" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `group_id` - (Optional, Int) Group Id, one of the three (TargetUin, RoleId, GroupId) must be passed. +* `result_output_file` - (Optional, String) Used to save results. +* `role_id` - (Optional, Int) Role Id, one of the three (TargetUin, RoleId, GroupId) must be passed. +* `service_type` - (Optional, String) Service type, this field needs to be passed when viewing the details of the service authorization interface. +* `target_uin` - (Optional, Int) Sub-account uin, one of the three (TargetUin, RoleId, GroupId) must be passed. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `list` - List. + * `action` - Action list. + * `description` - Action description. + * `name` - Action name. + * `policy` - Policy list. + * `policy_description` - Policy description. + * `policy_id` - Policy Id. + * `policy_name` - Policy name. + * `policy_type` - Polic type. + * `service` - Service info. + * `service_name` - Service name. + * `service_type` - Service type. + + diff --git a/website/docs/d/cam_secret_last_used_time.html.markdown b/website/docs/d/cam_secret_last_used_time.html.markdown new file mode 100644 index 0000000000..2c4334334c --- /dev/null +++ b/website/docs/d/cam_secret_last_used_time.html.markdown @@ -0,0 +1,38 @@ +--- +subcategory: "Cloud Access Management(CAM)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_cam_secret_last_used_time" +sidebar_current: "docs-tencentcloud-datasource-cam_secret_last_used_time" +description: |- + Use this data source to query detailed information of cam secret_last_used_time +--- + +# tencentcloud_cam_secret_last_used_time + +Use this data source to query detailed information of cam secret_last_used_time + +## Example Usage + +```hcl +data "tencentcloud_cam_secret_last_used_time" "secret_last_used_time" { + secret_id_list = ["xxxx"] +} +``` + +## Argument Reference + +The following arguments are supported: + +* `secret_id_list` - (Required, Set: [`String`]) Query the key ID list. Supports up to 10. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `secret_id_last_used_rows` - Last used time list. + * `last_secret_used_date` - Last used timestamp. + * `last_used_date` - Last used date (with 1 day delay). + * `secret_id` - Secret Id. + + diff --git a/website/docs/d/dnspod_domain_analytics.html.markdown b/website/docs/d/dnspod_domain_analytics.html.markdown new file mode 100644 index 0000000000..9c7aa384cc --- /dev/null +++ b/website/docs/d/dnspod_domain_analytics.html.markdown @@ -0,0 +1,63 @@ +--- +subcategory: "DNSPOD" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dnspod_domain_analytics" +sidebar_current: "docs-tencentcloud-datasource-dnspod_domain_analytics" +description: |- + Use this data source to query detailed information of dnspod domain_analytics +--- + +# tencentcloud_dnspod_domain_analytics + +Use this data source to query detailed information of dnspod domain_analytics + +## Example Usage + +```hcl +data "tencentcloud_dnspod_domain_analytics" "domain_analytics" { + domain = "dnspod.cn" + start_date = "2023-10-07" + end_date = "2023-10-12" + dns_format = "HOUR" + # domain_id = 123 +} +``` + +## Argument Reference + +The following arguments are supported: + +* `domain` - (Required, String) The domain name to query for resolution volume. +* `end_date` - (Required, String) The end date of the query, format: YYYY-MM-DD. +* `start_date` - (Required, String) The start date of the query, format: YYYY-MM-DD. +* `dns_format` - (Optional, String) DATE: Statistics by day dimension HOUR: Statistics by hour dimension. +* `domain_id` - (Optional, Int) Domain ID. The parameter DomainId has a higher priority than the parameter Domain. If the parameter DomainId is passed, the parameter Domain will be ignored. You can find all Domains and DomainIds through the DescribeDomainList interface. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `alias_data` - Domain alias resolution volume statistics information. + * `data` - Subtotal of resolution volume for the current statistical dimension. + * `date_key` - For daily statistics, it is the statistical date. + * `hour_key` - For hourly statistics, it is the hour of the current time (0-23), for example, when HourKey is 23, the statistical period is the resolution volume from 22:00 to 23:00. Note: This field may return null, indicating that no valid value can be obtained. + * `num` - Subtotal of resolution volume for the current statistical dimension. + * `info` - Domain resolution volume statistics query information. + * `dns_format` - DATE: Statistics by day dimension HOUR: Statistics by hour dimension. + * `dns_total` - Total resolution volume for the current statistical period. + * `domain` - The domain name currently being queried. + * `end_date` - End time of the current statistical period. + * `start_date` - Start time of the current statistical period. +* `data` - Subtotal of resolution volume for the current statistical dimension. + * `date_key` - For daily statistics, it is the statistical date. + * `hour_key` - For hourly statistics, it is the hour of the current time (0-23), for example, when HourKey is 23, the statistical period is the resolution volume from 22:00 to 23:00. Note: This field may return null, indicating that no valid value can be obtained. + * `num` - Subtotal of resolution volume for the current statistical dimension. +* `info` - Domain resolution volume statistics query information. + * `dns_format` - DATE: Statistics by day dimension HOUR: Statistics by hour dimension. + * `dns_total` - Total resolution volume for the current statistical period. + * `domain` - The domain name currently being queried. + * `end_date` - End time of the current statistical period. + * `start_date` - Start time of the current statistical period. + + diff --git a/website/docs/d/dnspod_domain_list.html.markdown b/website/docs/d/dnspod_domain_list.html.markdown new file mode 100644 index 0000000000..c73c83618e --- /dev/null +++ b/website/docs/d/dnspod_domain_list.html.markdown @@ -0,0 +1,94 @@ +--- +subcategory: "DNSPOD" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_dnspod_domain_list" +sidebar_current: "docs-tencentcloud-datasource-dnspod_domain_list" +description: |- + Use this data source to query detailed information of dnspod domain_list +--- + +# tencentcloud_dnspod_domain_list + +Use this data source to query detailed information of dnspod domain_list + +## Example Usage + +```hcl +data "tencentcloud_dnspod_domain_list" "domain_list" { + type = "ALL" + group_id = [1] + keyword = "" + sort_field = "UPDATED_ON" + sort_type = "DESC" + status = ["PAUSE"] + package = [""] + remark = "" + updated_at_begin = "2021-05-01 03:00:00" + updated_at_end = "2024-05-10 20:00:00" + record_count_begin = 0 + record_count_end = 100 + project_id = -1 + tags { + tag_key = "created_by" + tag_value = ["terraform"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `type` - (Required, String) Get domain names based on domain group type. Available values are ALL, MINE, SHARE, RECENT. ALL: All MINE: My domain names SHARE: Domain names shared with me RECENT: Recently operated domain names. +* `group_id` - (Optional, Set: [`Int`]) Get domain names based on domain group id, which can be obtained through the GroupId field in DescribeDomain or DescribeDomainList interface. +* `keyword` - (Optional, String) Get domain names based on keywords. +* `package` - (Optional, Set: [`String`]) Get domain names based on the package, which can be obtained through the Grade field in DescribeDomain or DescribeDomainList interface. +* `project_id` - (Optional, Int) Project ID. +* `record_count_begin` - (Optional, Int) The start point of the domain name&#39;s record count query range. +* `record_count_end` - (Optional, Int) The end point of the domain name&#39;s record count query range. +* `remark` - (Optional, String) Get domain names based on remark information. +* `result_output_file` - (Optional, String) Used to save results. +* `sort_field` - (Optional, String) Sorting field. Available values are NAME, STATUS, RECORDS, GRADE, UPDATED_ON. NAME: Domain name STATUS: Domain status RECORDS: Number of records GRADE: Package level UPDATED_ON: Update time. +* `sort_type` - (Optional, String) Sorting type, ascending: ASC, descending: DESC. +* `status` - (Optional, Set: [`String`]) Get domain names based on domain status. Available values are ENABLE, LOCK, PAUSE, SPAM. ENABLE: Normal LOCK: Locked PAUSE: Paused SPAM: Banned. +* `tags` - (Optional, List) Tag description list. +* `updated_at_begin` - (Optional, String) The start time of the domain name&#39;s update time to be obtained, such as &#39;2021-05-01 03:00:00&#39;. +* `updated_at_end` - (Optional, String) The end time of the domain name&#39;s update time to be obtained, such as &#39;2021-05-10 20:00:00&#39;. + +The `tags` object supports the following: + +* `tag_key` - (Required, String) Field to be filtered. +* `tag_value` - (Required, Set) Filter value of the field. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `domain_list` - Domain list. + * `cname_speedup` - Whether to enable CNAME acceleration, enabled: ENABLE, disabled: DISABLE. + * `created_on` - Domain addition time. + * `dns_status` - DNS settings status, error: DNSERROR, normal: empty string. + * `domain_id` - Unique identifier assigned to the domain by the system. + * `effective_dns` - Valid DNS assigned to the domain by the system. + * `grade_level` - Sequence number corresponding to the domain package level. + * `grade_title` - Package name. + * `grade` - Domain package level code. + * `group_id` - Group Id the domain belongs to. + * `is_vip` - Whether it is a paid package. + * `name` - Original format of the domain. + * `owner` - Domain owner account. + * `punycode` - Punycode encoded domain format. + * `record_count` - Number of records under the domain. + * `remark` - Domain remark description. + * `search_engine_push` - Whether to enable search engine push optimization, YES: YES, NO: NO. + * `status` - Domain status, normal: ENABLE, paused: PAUSE, banned: SPAM. + * `tag_list` - Domain-related tag list Note: This field may return null, indicating that no valid value can be obtained. + * `tag_key` - Tag key. + * `tag_value` - Tag Value. Note: This field may return null, indicating that no valid value can be obtained. + * `ttl` - Default TTL value for domain resolution records. + * `updated_on` - Domain update time. + * `vip_auto_renew` - Whether the domain has VIP auto-renewal enabled, YES: YES, NO: NO, DEFAULT: DEFAULT. + * `vip_end_at` - Paid package expiration time. + * `vip_start_at` - Paid package activation time. + + diff --git a/website/docs/d/kms_list_algorithms.html.markdown b/website/docs/d/kms_list_algorithms.html.markdown new file mode 100644 index 0000000000..a8917760fe --- /dev/null +++ b/website/docs/d/kms_list_algorithms.html.markdown @@ -0,0 +1,40 @@ +--- +subcategory: "Key Management Service(KMS)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_kms_list_algorithms" +sidebar_current: "docs-tencentcloud-datasource-kms_list_algorithms" +description: |- + Use this data source to query detailed information of kms list_algorithms +--- + +# tencentcloud_kms_list_algorithms + +Use this data source to query detailed information of kms list_algorithms + +## Example Usage + +```hcl +data "tencentcloud_kms_list_algorithms" "example" {} +``` + +## 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: + +* `asymmetric_algorithms` - Asymmetric encryption algorithms supported in this region. + * `algorithm` - Algorithm. + * `key_usage` - Key usage. +* `asymmetric_sign_verify_algorithms` - Asymmetric signature verification algorithms supported in this region. + * `algorithm` - Algorithm. + * `key_usage` - Key usage. +* `symmetric_algorithms` - Symmetric encryption algorithms supported in this region. + * `algorithm` - Algorithm. + * `key_usage` - Key usage. + + diff --git a/website/docs/d/kms_white_box_decrypt_key.html.markdown b/website/docs/d/kms_white_box_decrypt_key.html.markdown new file mode 100644 index 0000000000..addb179dd7 --- /dev/null +++ b/website/docs/d/kms_white_box_decrypt_key.html.markdown @@ -0,0 +1,35 @@ +--- +subcategory: "Key Management Service(KMS)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_kms_white_box_decrypt_key" +sidebar_current: "docs-tencentcloud-datasource-kms_white_box_decrypt_key" +description: |- + Use this data source to query detailed information of kms white_box_decrypt_key +--- + +# tencentcloud_kms_white_box_decrypt_key + +Use this data source to query detailed information of kms white_box_decrypt_key + +## Example Usage + +```hcl +data "tencentcloud_kms_white_box_decrypt_key" "example" { + key_id = "244dab8c-6dad-11ea-80c6-5254006d0810" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `key_id` - (Required, String) Globally unique identifier for the white box key. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `decrypt_key` - White box decryption key, base64 encoded. + + diff --git a/website/docs/d/kms_white_box_device_fingerprints.html.markdown b/website/docs/d/kms_white_box_device_fingerprints.html.markdown new file mode 100644 index 0000000000..d10c3b68e3 --- /dev/null +++ b/website/docs/d/kms_white_box_device_fingerprints.html.markdown @@ -0,0 +1,37 @@ +--- +subcategory: "Key Management Service(KMS)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_kms_white_box_device_fingerprints" +sidebar_current: "docs-tencentcloud-datasource-kms_white_box_device_fingerprints" +description: |- + Use this data source to query detailed information of kms white_box_device_fingerprints +--- + +# tencentcloud_kms_white_box_device_fingerprints + +Use this data source to query detailed information of kms white_box_device_fingerprints + +## Example Usage + +```hcl +data "tencentcloud_kms_white_box_device_fingerprints" "example" { + key_id = "244dab8c-6dad-11ea-80c6-5254006d0810" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `key_id` - (Required, String) Globally unique identifier for the white box key. +* `result_output_file` - (Optional, String) Used to save results. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `list` - Device fingerprint list. + * `description` - Description. + * `identity` - identity. + + diff --git a/website/docs/r/cam_role.html.markdown b/website/docs/r/cam_role.html.markdown index d1d41c1b86..68546ebf59 100644 --- a/website/docs/r/cam_role.html.markdown +++ b/website/docs/r/cam_role.html.markdown @@ -95,7 +95,7 @@ The following arguments are supported: * `document` - (Required, String) Document of the CAM role. The syntax refers to [CAM POLICY](https://intl.cloud.tencent.com/document/product/598/10604). There are some notes when using this para in terraform: 1. The elements in json claimed supporting two types as `string` and `array` only support type `array`; 2. Terraform does not support the `root` syntax, when appears, it must be replaced with the uin it stands for. * `name` - (Required, String, ForceNew) Name of CAM role. -* `console_login` - (Optional, Bool, ForceNew) Indicates whether the CAM role can login or not. +* `console_login` - (Optional, Bool) Indicates whether the CAM role can login or not. * `description` - (Optional, String) Description of the CAM role. * `tags` - (Optional, Map) A list of tags used to associate different resources. diff --git a/website/docs/r/cam_role_permission_boundary_attachment.html.markdown b/website/docs/r/cam_role_permission_boundary_attachment.html.markdown new file mode 100644 index 0000000000..e8470c7630 --- /dev/null +++ b/website/docs/r/cam_role_permission_boundary_attachment.html.markdown @@ -0,0 +1,46 @@ +--- +subcategory: "Cloud Access Management(CAM)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_cam_role_permission_boundary_attachment" +sidebar_current: "docs-tencentcloud-resource-cam_role_permission_boundary_attachment" +description: |- + Provides a resource to create a cam role_permission_boundary_attachment +--- + +# tencentcloud_cam_role_permission_boundary_attachment + +Provides a resource to create a cam role_permission_boundary_attachment + +## Example Usage + +```hcl +resource "tencentcloud_cam_role_permission_boundary_attachment" "role_permission_boundary_attachment" { + policy_id = 1 + role_name = "test-cam-tag" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `policy_id` - (Required, Int, ForceNew) Role ID. +* `role_id` - (Optional, String, ForceNew) Role ID (at least one should be filled in with the role name). +* `role_name` - (Optional, String, ForceNew) Role name (at least one should be filled in with the role ID). + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + +## Import + +cam role_permission_boundary_attachment can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_role_permission_boundary_attachment.role_permission_boundary_attachment role_permission_boundary_attachment_id +``` + diff --git a/website/docs/r/cam_set_policy_version_config.html.markdown b/website/docs/r/cam_set_policy_version_config.html.markdown new file mode 100644 index 0000000000..8b6c369ad7 --- /dev/null +++ b/website/docs/r/cam_set_policy_version_config.html.markdown @@ -0,0 +1,45 @@ +--- +subcategory: "Cloud Access Management(CAM)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_cam_set_policy_version_config" +sidebar_current: "docs-tencentcloud-resource-cam_set_policy_version_config" +description: |- + Provides a resource to create a cam set_policy_version_config +--- + +# tencentcloud_cam_set_policy_version_config + +Provides a resource to create a cam set_policy_version_config + +## Example Usage + +```hcl +resource "tencentcloud_cam_set_policy_version_config" "set_policy_version_config" { + policy_id = 171162811 + version_id = 2 +} +``` + +## Argument Reference + +The following arguments are supported: + +* `policy_id` - (Required, Int) Policy ID. +* `version_id` - (Required, Int) The policy version number, which can be obtained from ListPolicyVersions. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + +## Import + +cam set_policy_version_config can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_set_policy_version_config.set_policy_version_config set_policy_version_config_id +``` + diff --git a/website/docs/r/cam_tag_role_attachment.html.markdown b/website/docs/r/cam_tag_role_attachment.html.markdown new file mode 100644 index 0000000000..624b0469b1 --- /dev/null +++ b/website/docs/r/cam_tag_role_attachment.html.markdown @@ -0,0 +1,54 @@ +--- +subcategory: "Cloud Access Management(CAM)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_cam_tag_role_attachment" +sidebar_current: "docs-tencentcloud-resource-cam_tag_role_attachment" +description: |- + Provides a resource to create a cam tag_role +--- + +# tencentcloud_cam_tag_role_attachment + +Provides a resource to create a cam tag_role + +## Example Usage + +```hcl +resource "tencentcloud_cam_tag_role_attachment" "tag_role" { + tags { + key = "test1" + value = "test1" + } + role_id = "test-cam-tag" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `tags` - (Required, List, ForceNew) Label. +* `role_id` - (Optional, String, ForceNew) Character ID, at least one input with the character name. +* `role_name` - (Optional, String, ForceNew) Character name, at least one input with the character ID. + +The `tags` object supports the following: + +* `key` - (Required, String) Label. +* `value` - (Required, String) Label. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + +## Import + +cam tag_role can be imported using the id, e.g. + +``` +terraform import tencentcloud_cam_tag_role_attachment.tag_role tag_role_id +``` + diff --git a/website/docs/r/elasticsearch_logstash.html.markdown b/website/docs/r/elasticsearch_logstash.html.markdown new file mode 100644 index 0000000000..3d18219310 --- /dev/null +++ b/website/docs/r/elasticsearch_logstash.html.markdown @@ -0,0 +1,93 @@ +--- +subcategory: "Elasticsearch Service(ES)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_elasticsearch_logstash" +sidebar_current: "docs-tencentcloud-resource-elasticsearch_logstash" +description: |- + Provides a resource to create a elasticsearch logstash +--- + +# tencentcloud_elasticsearch_logstash + +Provides a resource to create a elasticsearch logstash + +## Example Usage + +```hcl +resource "tencentcloud_elasticsearch_logstash" "logstash" { + instance_name = "logstash-test" + zone = "ap-guangzhou-6" + logstash_version = "7.14.2" + vpc_id = "vpc-4owdpnwr" + subnet_id = "subnet-4o0zd840" + node_num = 1 + charge_type = "POSTPAID_BY_HOUR" + node_type = "LOGSTASH.SA2.MEDIUM4" + disk_type = "CLOUD_SSD" + disk_size = 20 + license_type = "xpack" + operation_duration { + periods = [1, 2, 3, 4, 5, 6, 0] + time_start = "02:00" + time_end = "06:00" + time_zone = "UTC+8" + } + tags = { + tagKey = "tagValue" + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `instance_name` - (Required, String) Instance name (compose of 1-50 letter, number, - or _). +* `logstash_version` - (Required, String) Instance version(6.8.13, 7.10.1). +* `subnet_id` - (Required, String) Subnet id. +* `vpc_id` - (Required, String) VPC id. +* `zone` - (Required, String) Available zone. +* `auto_voucher` - (Optional, Int) whether to use voucher auto, 1 when use, else 0. +* `charge_period` - (Optional, Int) Period when charged by months or years(unit depends on TimeUnit). +* `charge_type` - (Optional, String) Charge type. PREPAID: charged by months or years; POSTPAID_BY_HOUR: charged by hours; default vaule: POSTPAID_BY_HOUR. +* `disk_size` - (Optional, Int) node disk size (unit GB). +* `disk_type` - (Optional, String) Disk type. CLOUD_SSD: SSD cloud disk; CLOUD_PREMIUM: high hard energy cloud disk; default: CLOUD_SSD. +* `license_type` - (Optional, String) License type. oss: open source version; xpack:xpack version; default: xpack. +* `node_num` - (Optional, Int) Node num(range 2-50). +* `node_type` - (Optional, String) Node type. Valid values: +- LOGSTASH.S1.SMALL2: 1 core 2G; +- LOGSTASH.S1.MEDIUM4:2 core 4G; +- LOGSTASH.S1.MEDIUM8:2 core 8G; +- LOGSTASH.S1.LARGE16:4 core 16G; +- LOGSTASH.S1.2XLARGE32:8 core 32G; +- LOGSTASH.S1.4XLARGE32:16 core 32G; +- LOGSTASH.S1.4XLARGE64:16 core 64G. +* `operation_duration` - (Optional, List) operation time by tencent clound. +* `renew_flag` - (Optional, String) Automatic renewal flag. RENEW_FLAG_AUTO: auto renewal; RENEW_FLAG_MANUAL: do not renew automatically, users renew manually. It needs to be set when ChargeType is PREPAID. If this parameter is not passed, ordinary users will not renew automatically by default, and SVIP users will renew automatically. +* `tags` - (Optional, Map) Tag description list. +* `time_unit` - (Optional, String) charge time unit(set when ChargeType is PREPAID, default value: ms). +* `voucher_ids` - (Optional, Set: [`String`]) Voucher list(only can use one voucher by now). + +The `operation_duration` object supports the following: + +* `periods` - (Required, Set) day of week, from Monday to Sunday, value range: [0, 6]notes: may return null when missing. +* `time_end` - (Required, String) operation end time. +* `time_start` - (Required, String) operation start time. +* `time_zone` - (Required, String) time zone, for example: UTC+8. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + +## Import + +elasticsearch logstash can be imported using the id, e.g. + +``` +terraform import tencentcloud_elasticsearch_logstash.logstash logstash_id +``` + diff --git a/website/docs/r/elasticsearch_logstash_pipeline.html.markdown b/website/docs/r/elasticsearch_logstash_pipeline.html.markdown new file mode 100644 index 0000000000..efae3615fe --- /dev/null +++ b/website/docs/r/elasticsearch_logstash_pipeline.html.markdown @@ -0,0 +1,79 @@ +--- +subcategory: "Elasticsearch Service(ES)" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_elasticsearch_logstash_pipeline" +sidebar_current: "docs-tencentcloud-resource-elasticsearch_logstash_pipeline" +description: |- + Provides a resource to create a elasticsearch logstash pipeline +--- + +# tencentcloud_elasticsearch_logstash_pipeline + +Provides a resource to create a elasticsearch logstash pipeline + +## Example Usage + +```hcl +resource "tencentcloud_elasticsearch_logstash_pipeline" "logstash_pipeline" { + instance_id = "ls-xxxxxx" + pipeline { + pipeline_id = "logstash-pipeline-test" + pipeline_desc = "" + config = < Data Sources @@ -1635,6 +1659,12 @@
  • Data Sources
  • @@ -2065,12 +2110,21 @@
  • tencentcloud_kms_keys
  • +
  • + tencentcloud_kms_list_algorithms +
  • tencentcloud_kms_list_keys
  • tencentcloud_kms_public_key
  • +
  • + tencentcloud_kms_white_box_decrypt_key +
  • +
  • + tencentcloud_kms_white_box_device_fingerprints +
  • tencentcloud_kms_white_box_key_details
  • @@ -2079,12 +2133,18 @@
  • Resources