diff --git a/tencentcloud/cdb/v20170320/client.go b/tencentcloud/cdb/v20170320/client.go index 6c4619e8..a9a9ae87 100644 --- a/tencentcloud/cdb/v20170320/client.go +++ b/tencentcloud/cdb/v20170320/client.go @@ -235,14 +235,14 @@ func NewCreateDBInstanceHourResponse() (response *CreateDBInstanceHourResponse) return } -// This API is used to create a pay-as-you-go TencentDB instance (which can be a master, disaster recovery, or read-only instance) by passing in information such as instance specifications, MySQL version number, and quantity. +// This API is used to create a pay-as-you-go TencentDB instance (which can be a main, disaster recovery, or read-only instance) by passing in information such as instance specifications, MySQL version number, and quantity. // // This is an async API. You can also use the [DescribeDBInstances](https://cloud.tencent.com/document/api/236/15872) API to query the instance details. If the `Status` value of an instance is 1 and `TaskStatus` is 0, the instance has been successfully delivered. // // 1. Please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/api/236/17229) API to query the supported instance specifications first and then use the [DescribeDBPrice](https://cloud.tencent.com/document/api/236/18566) API to query the prices of the supported instances; // 2. You can create up to 100 instances at a time, with an instance validity period of up to 36 months; // 3. MySQL v5.5, v5.6, and v5.7 are supported; -// 4. Master instances, read-only instances, and disaster recovery instances can be created; +// 4. Main instances, read-only instances, and disaster recovery instances can be created; // 5. If `Port`, `ParamList`, or `Password` is set in the input parameters, the instance will be initialized. func (c *Client) CreateDBInstanceHour(request *CreateDBInstanceHourRequest) (response *CreateDBInstanceHourResponse, err error) { if request == nil { @@ -872,7 +872,7 @@ func NewDescribeDBInstancesResponse() (response *DescribeDBInstancesResponse) { return } -// This API (DescribeDBInstances) is used to query the list of TencentDB instances (which can be master, disaster recovery, or read-only instances). It supports filtering instances by project ID, instance ID, access address, and instance status. +// This API (DescribeDBInstances) is used to query the list of TencentDB instances (which can be main, disaster recovery, or read-only instances). It supports filtering instances by project ID, instance ID, access address, and instance status. func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error) { if request == nil { request = NewDescribeDBInstancesRequest() @@ -2084,7 +2084,7 @@ func NewRestartDBInstancesResponse() (response *RestartDBInstancesResponse) { // This API (RestartDBInstances) is used to restart TencentDB instances. // // Note: -// 1. This API only supports restarting master instances. +// 1. This API only supports restarting main instances. // 2. The instance status must be normal, and no other async tasks are in progress. func (c *Client) RestartDBInstances(request *RestartDBInstancesRequest) (response *RestartDBInstancesResponse, err error) { if request == nil { @@ -2160,7 +2160,7 @@ func NewSwitchForUpgradeResponse() (response *SwitchForUpgradeResponse) { return } -// This API (SwitchForUpgrade) is used to switch to a new instance. You can initiate this process when the master instance being upgraded is pending switch. +// This API (SwitchForUpgrade) is used to switch to a new instance. You can initiate this process when the main instance being upgraded is pending switch. func (c *Client) SwitchForUpgrade(request *SwitchForUpgradeRequest) (response *SwitchForUpgradeResponse, err error) { if request == nil { request = NewSwitchForUpgradeRequest() @@ -2185,7 +2185,7 @@ func NewUpgradeDBInstanceResponse() (response *UpgradeDBInstanceResponse) { return } -// This API is used to upgrade or downgrade a TencentDB instance, which can be a master instance, disaster recovery instance, or read-only instance. +// This API is used to upgrade or downgrade a TencentDB instance, which can be a main instance, disaster recovery instance, or read-only instance. func (c *Client) UpgradeDBInstance(request *UpgradeDBInstanceRequest) (response *UpgradeDBInstanceResponse, err error) { if request == nil { request = NewUpgradeDBInstanceRequest() @@ -2210,7 +2210,7 @@ func NewUpgradeDBInstanceEngineVersionResponse() (response *UpgradeDBInstanceEng return } -// This API (UpgradeDBInstanceEngineVersion) is used to upgrade the version of a TencentDB instance, which can be a master instance, disaster recovery instance, or read-only instance. +// This API (UpgradeDBInstanceEngineVersion) is used to upgrade the version of a TencentDB instance, which can be a main instance, disaster recovery instance, or read-only instance. func (c *Client) UpgradeDBInstanceEngineVersion(request *UpgradeDBInstanceEngineVersionRequest) (response *UpgradeDBInstanceEngineVersionResponse, err error) { if request == nil { request = NewUpgradeDBInstanceEngineVersionRequest() diff --git a/tencentcloud/cdb/v20170320/models.go b/tencentcloud/cdb/v20170320/models.go index 96d4c2bc..84d5bab8 100644 --- a/tencentcloud/cdb/v20170320/models.go +++ b/tencentcloud/cdb/v20170320/models.go @@ -144,16 +144,16 @@ func (r *AssociateSecurityGroupsResponse) FromJsonString(s string) error { type BackupConfig struct { - // Replication mode of slave database 2. Value range: async, semi-sync + // Replication mode of subordinate database 2. Value range: async, semi-sync ReplicationMode *string `json:"ReplicationMode,omitempty" name:"ReplicationMode"` - // Name of the AZ of slave database 2, such as ap-shanghai-1 + // Name of the AZ of subordinate database 2, such as ap-shanghai-1 Zone *string `json:"Zone,omitempty" name:"Zone"` - // Private IP address of slave database 2 + // Private IP address of subordinate database 2 Vip *string `json:"Vip,omitempty" name:"Vip"` - // Access port of slave database 2 + // Access port of subordinate database 2 Vport *uint64 `json:"Vport,omitempty" name:"Vport"` } @@ -544,34 +544,34 @@ type CreateDBInstanceHourRequest struct { // AZ information. By default, the system will automatically select an AZ. Please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/api/236/17229) API to query the supported AZs. Zone *string `json:"Zone,omitempty" name:"Zone"` - // Instance ID, which is required and the same as the master instance ID when purchasing read-only or disaster recovery instances. Please use the [DescribeDBInstances](https://cloud.tencent.com/document/api/236/15872) API to query the instance IDs. - MasterInstanceId *string `json:"MasterInstanceId,omitempty" name:"MasterInstanceId"` + // Instance ID, which is required and the same as the main instance ID when purchasing read-only or disaster recovery instances. Please use the [DescribeDBInstances](https://cloud.tencent.com/document/api/236/15872) API to query the instance IDs. + MainInstanceId *string `json:"MainInstanceId,omitempty" name:"MainInstanceId"` - // Instance type. Valid values: master (master instance), dr (disaster recovery instance), ro (read-only instance). Default value: master. + // Instance type. Valid values: main (main instance), dr (disaster recovery instance), ro (read-only instance). Default value: main. InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` - // AZ information of the master instance, which is required for purchasing disaster recovery instances. - MasterRegion *string `json:"MasterRegion,omitempty" name:"MasterRegion"` + // AZ information of the main instance, which is required for purchasing disaster recovery instances. + MainRegion *string `json:"MainRegion,omitempty" name:"MainRegion"` // Custom port. Value range: [1024-65535]. Port *int64 `json:"Port,omitempty" name:"Port"` - // Sets the root account password. Rule: the password can contain 8–64 characters and must contain at least two of the following types of characters: letters, digits, and special symbols (_+-&=!@#$%^*()). This parameter can be specified when purchasing master instances and is meaningless for read-only or disaster recovery instances. + // Sets the root account password. Rule: the password can contain 8–64 characters and must contain at least two of the following types of characters: letters, digits, and special symbols (_+-&=!@#$%^*()). This parameter can be specified when purchasing main instances and is meaningless for read-only or disaster recovery instances. Password *string `json:"Password,omitempty" name:"Password"` // List of parameters in the format of `ParamList.0.Name=auto_increment&ParamList.0.Value=1`. You can use the [DescribeDefaultParams](https://cloud.tencent.com/document/api/236/32662) API to query the configurable parameters. ParamList []*ParamInfo `json:"ParamList,omitempty" name:"ParamList" list` - // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0. This parameter can be specified when purchasing master instances and is meaningless for read-only or disaster recovery instances. + // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0. This parameter can be specified when purchasing main instances and is meaningless for read-only or disaster recovery instances. ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` - // Multi-AZ. Valid value: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when purchasing master instances and is meaningless for read-only or disaster recovery instances. + // Multi-AZ. Valid value: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when purchasing main instances and is meaningless for read-only or disaster recovery instances. DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` - // AZ information of slave database 1, which is the `Zone` value by default. This parameter can be specified when purchasing master instances and is meaningless for read-only or disaster recovery instances. - SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"` + // AZ information of subordinate database 1, which is the `Zone` value by default. This parameter can be specified when purchasing main instances and is meaningless for read-only or disaster recovery instances. + SubordinateZone *string `json:"SubordinateZone,omitempty" name:"SubordinateZone"` - // AZ information of slave database 2, which is empty by default. This parameter can be specified when purchasing strong sync master instances and is meaningless for other types of instances. + // AZ information of subordinate database 2, which is empty by default. This parameter can be specified when purchasing strong sync main instances and is meaningless for other types of instances. BackupZone *string `json:"BackupZone,omitempty" name:"BackupZone"` // Security group parameter. You can use the [DescribeProjectSecurityGroups](https://cloud.tencent.com/document/api/236/15850) API to query the security group details of a project. @@ -735,7 +735,7 @@ type DBSwitchInfo struct { // Switch time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-09-03 01:34:31 SwitchTime *string `json:"SwitchTime,omitempty" name:"SwitchTime"` - // Switch type. Value range: TRANSFER (data migration), MASTER2SLAVE (master/slave switch), RECOVERY (master/slave recovery) + // Switch type. Value range: TRANSFER (data migration), MASTER2SLAVE (main/subordinate switch), RECOVERY (main/subordinate recovery) SwitchType *string `json:"SwitchType,omitempty" name:"SwitchType"` } @@ -1604,19 +1604,19 @@ type DescribeDBInstanceConfigResponse struct { *tchttp.BaseResponse Response *struct { - // Data protection mode of the master instance. Value range: 0 (async replication), 1 (semi-sync replication), 2 (strong sync replication). + // Data protection mode of the main instance. Value range: 0 (async replication), 1 (semi-sync replication), 2 (strong sync replication). ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` - // Master instance deployment mode. Value range: 0 (single-AZ), 1 (multi-AZ) + // Main instance deployment mode. Value range: 0 (single-AZ), 1 (multi-AZ) DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` // Instance AZ information in the format of "ap-shanghai-1". Zone *string `json:"Zone,omitempty" name:"Zone"` - // Configuration information of the slave database. - SlaveConfig *SlaveConfig `json:"SlaveConfig,omitempty" name:"SlaveConfig"` + // Configuration information of the subordinate database. + SubordinateConfig *SubordinateConfig `json:"SubordinateConfig,omitempty" name:"SubordinateConfig"` - // Configuration information of slave database 2 of a strong sync instance. + // Configuration information of subordinate database 2 of a strong sync instance. BackupConfig *BackupConfig `json:"BackupConfig,omitempty" name:"BackupConfig"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. @@ -1767,7 +1767,7 @@ type DescribeDBInstancesRequest struct { // Project ID. You can use the [project list querying API](https://cloud.tencent.com/document/product/378/4400) to query the project ID. ProjectId *int64 `json:"ProjectId,omitempty" name:"ProjectId"` - // Instance type. Value range: 1 (master), 2 (disaster recovery), 3 (read-only). + // Instance type. Value range: 1 (main), 2 (disaster recovery), 3 (read-only). InstanceTypes []*uint64 `json:"InstanceTypes,omitempty" name:"InstanceTypes" list` // Private IP address of the instance. @@ -1791,7 +1791,7 @@ type DescribeDBInstancesRequest struct { // Instance name. InstanceNames []*string `json:"InstanceNames,omitempty" name:"InstanceNames" list` - // Instance task status. Value range:
0 - no task
1 - upgrading
2 - importing data
3 - activating slave
4 - public network access enabled
5 - batch operation in progress
6 - rolling back
7 - public network access not enabled
8 - modifying password
9 - renaming instance
10 - restarting
12 - migrating self-built instance
13 - dropping table
14 - creating and syncing disaster recovery instance
15 - pending upgrade and switch
16 - upgrade and switch in progress
17 - upgrade and switch completed + // Instance task status. Value range:
0 - no task
1 - upgrading
2 - importing data
3 - activating subordinate
4 - public network access enabled
5 - batch operation in progress
6 - rolling back
7 - public network access not enabled
8 - modifying password
9 - renaming instance
10 - restarting
12 - migrating self-built instance
13 - dropping table
14 - creating and syncing disaster recovery instance
15 - pending upgrade and switch
16 - upgrade and switch in progress
17 - upgrade and switch completed TaskStatus []*uint64 `json:"TaskStatus,omitempty" name:"TaskStatus" list` // Version of the instance database engine. Value range: 5.1, 5.5, 5.6, 5.7. @@ -1830,14 +1830,14 @@ type DescribeDBInstancesRequest struct { // Initialization flag. Value range: 0 (not initialized), 1 (initialized). InitFlag *int64 `json:"InitFlag,omitempty" name:"InitFlag"` - // Whether instances corresponding to the disaster recovery relationship are included. Valid values: 0 (not included), 1 (included). Default value: 1. If a master instance is pulled, the data of the disaster recovery relationship will be in the `DrInfo` field. If a disaster recovery instance is pulled, the data of the disaster recovery relationship will be in the `MasterInfo` field. The disaster recovery relationship contains only partial basic data. To get the detailed data, you need to call an API to pull it. + // Whether instances corresponding to the disaster recovery relationship are included. Valid values: 0 (not included), 1 (included). Default value: 1. If a main instance is pulled, the data of the disaster recovery relationship will be in the `DrInfo` field. If a disaster recovery instance is pulled, the data of the disaster recovery relationship will be in the `MainInfo` field. The disaster recovery relationship contains only partial basic data. To get the detailed data, you need to call an API to pull it. WithDr *int64 `json:"WithDr,omitempty" name:"WithDr"` // Whether read-only instances are included. Valid values: 0 (not included), 1 (included). Default value: 1. WithRo *int64 `json:"WithRo,omitempty" name:"WithRo"` - // Whether master instances are included. Valid values: 0 (not included), 1 (included). Default value: 1. - WithMaster *int64 `json:"WithMaster,omitempty" name:"WithMaster"` + // Whether main instances are included. Valid values: 0 (not included), 1 (included). Default value: 1. + WithMain *int64 `json:"WithMain,omitempty" name:"WithMain"` // Placement group ID list. DeployGroupIds []*string `json:"DeployGroupIds,omitempty" name:"DeployGroupIds" list` @@ -2908,7 +2908,7 @@ type DescribeTasksRequest struct { // 8 - enabling GTID of a TencentDB instance; // 9 - upgrading a read-only instance; // 10 - rolling back databases in batches; - // 11 - upgrading a master instance; + // 11 - upgrading a main instance; // 12 - deleting a TencentDB table; // 13 - promoting a disaster recovery instance. TaskTypes []*int64 `json:"TaskTypes,omitempty" name:"TaskTypes" list` @@ -3338,9 +3338,9 @@ type InstanceInfo struct { // VPC ID, such as 51102 VpcId *int64 `json:"VpcId,omitempty" name:"VpcId"` - // Information of a slave server + // Information of a subordinate server // Note: This field may return null, indicating that no valid values can be obtained. - SlaveInfo *SlaveInfo `json:"SlaveInfo,omitempty" name:"SlaveInfo"` + SubordinateInfo *SubordinateInfo `json:"SubordinateInfo,omitempty" name:"SubordinateInfo"` // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` @@ -3361,7 +3361,7 @@ type InstanceInfo struct { // Subnet ID, such as 2333 SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` - // Instance type. Value range: 1 (master), 2 (disaster recovery), 3 (read-only) + // Instance type. Value range: 1 (main), 2 (disaster recovery), 3 (read-only) InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` // Project ID @@ -3376,12 +3376,12 @@ type InstanceInfo struct { // AZ deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ) DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` - // Instance task status. 0 - no task; 1 - upgrading; 2 - importing data; 3 - activating slave; 4 - enabling public network access; 5 - batch operation in progress; 6 - rolling back; 7 - disabling public network access; 8 - changing password; 9 - renaming instance; 10 - restarting; 12 - migrating self-built instance; 13 - dropping table; 14 - creating and syncing disaster recovery instance; 15 - pending upgrade and switch; 16 - upgrade and switch in progress; 17 - upgrade and switch completed + // Instance task status. 0 - no task; 1 - upgrading; 2 - importing data; 3 - activating subordinate; 4 - enabling public network access; 5 - batch operation in progress; 6 - rolling back; 7 - disabling public network access; 8 - changing password; 9 - renaming instance; 10 - restarting; 12 - migrating self-built instance; 13 - dropping table; 14 - creating and syncing disaster recovery instance; 15 - pending upgrade and switch; 16 - upgrade and switch in progress; 17 - upgrade and switch completed TaskStatus *int64 `json:"TaskStatus,omitempty" name:"TaskStatus"` - // Details of a master instance + // Details of a main instance // Note: This field may return null, indicating that no valid values can be obtained. - MasterInfo *MasterInfo `json:"MasterInfo,omitempty" name:"MasterInfo"` + MainInfo *MainInfo `json:"MainInfo,omitempty" name:"MainInfo"` // Instance type. Value range: HA (High-Availability Edition), FE (Finance Edition), BASIC (Basic Edition) DeviceType *string `json:"DeviceType,omitempty" name:"DeviceType"` @@ -3510,7 +3510,7 @@ func (r *IsolateDBInstanceResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type MasterInfo struct { +type MainInfo struct { // Region information Region *string `json:"Region,omitempty" name:"Region"` @@ -4530,7 +4530,7 @@ type RoGroup struct { // Read-only group name. RoGroupName *string `json:"RoGroupName,omitempty" name:"RoGroupName"` - // Whether to enable the function of isolating an instance that exceeds the latency threshold. If it is enabled, when the latency between the read-only instance and the master instance exceeds the latency threshold, the read-only instance will be isolated. Valid values: 1 (enabled), 0 (not enabled) + // Whether to enable the function of isolating an instance that exceeds the latency threshold. If it is enabled, when the latency between the read-only instance and the main instance exceeds the latency threshold, the read-only instance will be isolated. Valid values: 1 (enabled), 0 (not enabled) RoOfflineDelay *int64 `json:"RoOfflineDelay,omitempty" name:"RoOfflineDelay"` // Latency threshold @@ -4591,8 +4591,8 @@ type RoGroupAttr struct { type RoInstanceInfo struct { - // Master instance ID corresponding to the RO group - MasterInstanceId *string `json:"MasterInstanceId,omitempty" name:"MasterInstanceId"` + // Main instance ID corresponding to the RO group + MainInstanceId *string `json:"MainInstanceId,omitempty" name:"MainInstanceId"` // RO instance status in the RO group. Value range: online, offline RoStatus *string `json:"RoStatus,omitempty" name:"RoStatus"` @@ -4615,7 +4615,7 @@ type RoInstanceInfo struct { // RO instance status. Value range: 0 (creating), 1 (running), 4 (deleting) Status *int64 `json:"Status,omitempty" name:"Status"` - // Instance type. Value range: 1 (master), 2 (disaster recovery), 3 (read-only) + // Instance type. Value range: 1 (main), 2 (disaster recovery), 3 (read-only) InstanceType *int64 `json:"InstanceType,omitempty" name:"InstanceType"` // RO instance name @@ -4624,7 +4624,7 @@ type RoInstanceInfo struct { // Pay-as-you-go billing status. Value range: 1 (normal), 2 (in arrears) HourFeeStatus *int64 `json:"HourFeeStatus,omitempty" name:"HourFeeStatus"` - // RO instance task status. Value range:
0 - no task
1 - upgrading
2 - importing data
3 - activating slave
4 - public network access enabled
5 - batch operation in progress
6 - rolling back
7 - public network access not enabled
8 - modifying password
9 - renaming instance
10 - restarting
12 - migrating self-built instance
13 - dropping table
14 - creating and syncing disaster recovery instance + // RO instance task status. Value range:
0 - no task
1 - upgrading
2 - importing data
3 - activating subordinate
4 - public network access enabled
5 - batch operation in progress
6 - rolling back
7 - public network access not enabled
8 - modifying password
9 - renaming instance
10 - restarting
12 - migrating self-built instance
13 - dropping table
14 - creating and syncing disaster recovery instance TaskStatus *int64 `json:"TaskStatus,omitempty" name:"TaskStatus"` // RO instance memory size in MB @@ -4854,26 +4854,26 @@ type SellType struct { Configs []*SellConfig `json:"Configs,omitempty" name:"Configs" list` } -type SlaveConfig struct { +type SubordinateConfig struct { - // Replication mode of the slave database. Value range: async, semi-sync + // Replication mode of the subordinate database. Value range: async, semi-sync ReplicationMode *string `json:"ReplicationMode,omitempty" name:"ReplicationMode"` - // AZ name of the slave database, such as ap-shanghai-1 + // AZ name of the subordinate database, such as ap-shanghai-1 Zone *string `json:"Zone,omitempty" name:"Zone"` } -type SlaveInfo struct { +type SubordinateInfo struct { - // Information of slave server 1 - First *SlaveInstanceInfo `json:"First,omitempty" name:"First"` + // Information of subordinate server 1 + First *SubordinateInstanceInfo `json:"First,omitempty" name:"First"` - // Information of slave server 2 + // Information of subordinate server 2 // Note: This field may return null, indicating that no valid values can be obtained. - Second *SlaveInstanceInfo `json:"Second,omitempty" name:"Second"` + Second *SubordinateInstanceInfo `json:"Second,omitempty" name:"Second"` } -type SlaveInstanceInfo struct { +type SubordinateInstanceInfo struct { // Port number Vport *int64 `json:"Vport,omitempty" name:"Vport"` @@ -5162,7 +5162,7 @@ type TaskDetail struct { // "OPEN GTID" - enabling GTID of a TencentDB instance; // "UPGRADE RO" - upgrading a read-only instance; // "BATCH ROLLBACK" - rolling back databases in batches; - // "UPGRADE MASTER" - upgrading a master instance; + // "UPGRADE MASTER" - upgrading a main instance; // "DROP TABLES" - dropping a TencentDB table; // "SWITCH DR TO MASTER" - promoting a disaster recovery instance. TaskType *string `json:"TaskType,omitempty" name:"TaskType"` @@ -5187,7 +5187,7 @@ type UpgradeDBInstanceEngineVersionRequest struct { // Instance ID in the format of cdb-c1nl9rpv or cdbro-c1nl9rpv. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [instance list querying API](https://cloud.tencent.com/document/api/236/15872) to query the ID, whose value is the `InstanceId` value in output parameters. InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` - // Version of master instance database engine. Value range: 5.6, 5.7 + // Version of main instance database engine. Value range: 5.6, 5.7 EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` // Mode of switch to a new instance. Value range: 0 (switch immediately), 1 (switch within a time window). Default value: 0. If the value is 1, the switch process will be performed within a time window. Or, you can call the [switching to new instance API](https://cloud.tencent.com/document/product/236/15864) to trigger the process. @@ -5236,25 +5236,25 @@ type UpgradeDBInstanceRequest struct { // Disk size in GB after upgrade. To ensure that the `Volume` value to be passed in is valid, please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/product/236/17229) API to query the specifications of the disk that can be upgraded to. Volume *int64 `json:"Volume,omitempty" name:"Volume"` - // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). This parameter can be specified when upgrading master instances and is meaningless for read-only or disaster recovery instances. + // Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). This parameter can be specified when upgrading main instances and is meaningless for read-only or disaster recovery instances. ProtectMode *int64 `json:"ProtectMode,omitempty" name:"ProtectMode"` - // Deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when upgrading master instances and is meaningless for read-only or disaster recovery instances. + // Deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when upgrading main instances and is meaningless for read-only or disaster recovery instances. DeployMode *int64 `json:"DeployMode,omitempty" name:"DeployMode"` - // AZ information of slave database 1, which is the `Zone` value of the instance by default. This parameter can be specified when upgrading master instances in multi-AZ mode and is meaningless for read-only or disaster recovery instances. You can use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/product/236/17229) API to query the supported AZs. - SlaveZone *string `json:"SlaveZone,omitempty" name:"SlaveZone"` + // AZ information of subordinate database 1, which is the `Zone` value of the instance by default. This parameter can be specified when upgrading main instances in multi-AZ mode and is meaningless for read-only or disaster recovery instances. You can use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/product/236/17229) API to query the supported AZs. + SubordinateZone *string `json:"SubordinateZone,omitempty" name:"SubordinateZone"` - // Version of master instance database engine. Valid values: 5.5, 5.6, 5.7. + // Version of main instance database engine. Valid values: 5.5, 5.6, 5.7. EngineVersion *string `json:"EngineVersion,omitempty" name:"EngineVersion"` // Mode of switch to new instance. Valid values: 0 (switch immediately), 1 (switch within a time window). Default value: 0. If the value is 1, the switch process will be performed within a time window. Or, you can call the [SwitchForUpgrade](https://cloud.tencent.com/document/product/236/15864) API to trigger the process. WaitSwitch *int64 `json:"WaitSwitch,omitempty" name:"WaitSwitch"` - // AZ information of slave database 2, which is empty by default. This parameter can be specified when upgrading master instances and is meaningless for read-only or disaster recovery instances. + // AZ information of subordinate database 2, which is empty by default. This parameter can be specified when upgrading main instances and is meaningless for read-only or disaster recovery instances. BackupZone *string `json:"BackupZone,omitempty" name:"BackupZone"` - // Instance type. Valid values: master (master instance), dr (disaster recovery instance), ro (read-only instance). Default value: master. + // Instance type. Valid values: main (main instance), dr (disaster recovery instance), ro (read-only instance). Default value: main. InstanceRole *string `json:"InstanceRole,omitempty" name:"InstanceRole"` } @@ -5305,11 +5305,11 @@ type ZoneConf struct { // AZ deployment mode. Value range: 0 (single-AZ), 1 (multi-AZ) DeployMode []*int64 `json:"DeployMode,omitempty" name:"DeployMode" list` - // AZ where the master instance is located - MasterZone []*string `json:"MasterZone,omitempty" name:"MasterZone" list` + // AZ where the main instance is located + MainZone []*string `json:"MainZone,omitempty" name:"MainZone" list` // AZ where salve database 1 is located when the instance is deployed in multi-AZ mode - SlaveZone []*string `json:"SlaveZone,omitempty" name:"SlaveZone" list` + SubordinateZone []*string `json:"SubordinateZone,omitempty" name:"SubordinateZone" list` // AZ where salve database 2 is located when the instance is deployed in multi-AZ mode BackupZone []*string `json:"BackupZone,omitempty" name:"BackupZone" list` diff --git a/tencentcloud/cdn/v20180606/models.go b/tencentcloud/cdn/v20180606/models.go index b31e4c74..ebdb90f7 100644 --- a/tencentcloud/cdn/v20180606/models.go +++ b/tencentcloud/cdn/v20180606/models.go @@ -2183,13 +2183,13 @@ type DomainAreaConfig struct { type DomainFilter struct { // Filter field name, the list supported is as follows: - // - origin: master origin server. + // - origin: main origin server. // - domain: domain name. // - resourceId: domain name id. // - status: domain name status. Values include `online`, `offline`, or `processing`. // - serviceType: service type. Values include `web`, `download`, or `media`. // - projectId: project ID. - // - domainType: master origin server type, `cname` indicates external origin, `COS` indicates COS origin. + // - domainType: main origin server type, `cname` indicates external origin, `COS` indicates COS origin. // - fullUrlCache: full-path cache, which can be on or off. // - https: whether to configure HTTPS, which can be on, off or processing. // - originPullProtocol: origin-pull protocol type. HTTP, follow, or HTTPS are supported. @@ -3041,12 +3041,12 @@ type MaxAgeRule struct { type Origin struct { - // Master origin server list + // Main origin server list // When modifying the origin server, you need to enter the corresponding OriginType. // Note: this field may return null, indicating that no valid values can be obtained. Origins []*string `json:"Origins,omitempty" name:"Origins" list` - // Master origin server type + // Main origin server type // The following types are supported for input parameters: // domain: domain name type // cos: COS origin @@ -3061,7 +3061,7 @@ type Origin struct { // Note: this field may return null, indicating that no valid values can be obtained. OriginType *string `json:"OriginType,omitempty" name:"OriginType"` - // Host header used when accessing the master origin server. If left empty, the acceleration domain name will be used by default. + // Host header used when accessing the main origin server. If left empty, the acceleration domain name will be used by default. // If a wildcard domain name is accessed, then the sub-domain name during the access will be used by default. // Note: this field may return null, indicating that no valid values can be obtained. ServerName *string `json:"ServerName,omitempty" name:"ServerName"` @@ -3090,7 +3090,7 @@ type Origin struct { // Note: this field may return null, indicating that no valid values can be obtained. BackupOriginType *string `json:"BackupOriginType,omitempty" name:"BackupOriginType"` - // Host header used when accessing the backup origin server. If left empty, the ServerName of master origin server will be used by default. + // Host header used when accessing the backup origin server. If left empty, the ServerName of main origin server will be used by default. // Note: this field may return null, indicating that no valid values can be obtained. BackupServerName *string `json:"BackupServerName,omitempty" name:"BackupServerName"` diff --git a/tencentcloud/dcdb/v20180411/models.go b/tencentcloud/dcdb/v20180411/models.go index f6c401aa..47a9f0fa 100644 --- a/tencentcloud/dcdb/v20180411/models.go +++ b/tencentcloud/dcdb/v20180411/models.go @@ -188,13 +188,13 @@ type CreateAccountRequest struct { // Account password, which can contain 6–32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks. Password *string `json:"Password,omitempty" name:"Password"` - // Whether to create a read-only account. 0: no; 1: for the account's SQL requests, the slave will be used first, and if it is unavailable, the master will be used; 2: the slave will be used first, and if it is unavailable, the operation will fail; 3: only the slave will be read from. + // Whether to create a read-only account. 0: no; 1: for the account's SQL requests, the subordinate will be used first, and if it is unavailable, the main will be used; 2: the subordinate will be used first, and if it is unavailable, the operation will fail; 3: only the subordinate will be read from. ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` // Account remarks, which can contain 0–256 letters, digits, and common symbols. Description *string `json:"Description,omitempty" name:"Description"` - // If the slave delay exceeds the set value of this parameter, the slave will be deemed to have failed. + // If the subordinate delay exceeds the set value of this parameter, the subordinate will be deemed to have failed. // It is recommended that this parameter be set to a value greater than 10. This parameter takes effect when `ReadOnly` is 1 or 2. DelayThresh *int64 `json:"DelayThresh,omitempty" name:"DelayThresh"` } @@ -255,10 +255,10 @@ type DBAccount struct { // Last updated time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` - // Read-only flag. 0: no; 1: for the account's SQL requests, the slave will be used first, and if it is unavailable, the master will be used; 2: the slave will be used first, and if it is unavailable, the operation will fail. + // Read-only flag. 0: no; 1: for the account's SQL requests, the subordinate will be used first, and if it is unavailable, the main will be used; 2: the subordinate will be used first, and if it is unavailable, the operation will fail. ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` - // If the slave delay exceeds the set value of this parameter, the slave will be deemed to have failed. + // If the subordinate delay exceeds the set value of this parameter, the subordinate will be deemed to have failed. // It is recommended that this parameter be set to a value greater than 10. This parameter takes effect when `ReadOnly` is 1 or 2. DelayThresh *int64 `json:"DelayThresh,omitempty" name:"DelayThresh"` } @@ -337,7 +337,7 @@ type DCDBInstanceInfo struct { // Shard details ShardDetail []*ShardInfo `json:"ShardDetail,omitempty" name:"ShardDetail" list` - // Number of nodes. 2: one master and one slave; 3: one master and two slaves + // Number of nodes. 2: one main and one subordinate; 3: one main and two subordinates NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"` // Temporary instance flag. 0: non-temporary instance @@ -437,7 +437,7 @@ type DCDBShardInfo struct { // Expiration time PeriodEndTime *string `json:"PeriodEndTime,omitempty" name:"PeriodEndTime"` - // Number of nodes. 2: one master and one slave; 3: one master and two slaves + // Number of nodes. 2: one main and one subordinate; 3: one main and two subordinates NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"` // Storage utilization in % @@ -459,13 +459,13 @@ type DCDBShardInfo struct { // Note: this field may return null, indicating that no valid values can be obtained. Paymode *string `json:"Paymode,omitempty" name:"Paymode"` - // Master AZ of a shard + // Main AZ of a shard // Note: this field may return null, indicating that no valid values can be obtained. - ShardMasterZone *string `json:"ShardMasterZone,omitempty" name:"ShardMasterZone"` + ShardMainZone *string `json:"ShardMainZone,omitempty" name:"ShardMainZone"` - // List of slave AZs of a shard + // List of subordinate AZs of a shard // Note: this field may return null, indicating that no valid values can be obtained. - ShardSlaveZones []*string `json:"ShardSlaveZones,omitempty" name:"ShardSlaveZones" list` + ShardSubordinateZones []*string `json:"ShardSubordinateZones,omitempty" name:"ShardSubordinateZones" list` // Number of CPU cores Cpu *int64 `json:"Cpu,omitempty" name:"Cpu"` @@ -1571,7 +1571,7 @@ type ShardInfo struct { // Numeric ID of a shard ShardId *int64 `json:"ShardId,omitempty" name:"ShardId"` - // Number of nodes. 2: one master and one slave; 3: one master and two slaves + // Number of nodes. 2: one main and one subordinate; 3: one main and two subordinates NodeCount *int64 `json:"NodeCount,omitempty" name:"NodeCount"` // Product type ID (this field is obsolete and should not be depended on) diff --git a/tencentcloud/dts/v20180330/client.go b/tencentcloud/dts/v20180330/client.go index aa81efc0..d029aa4f 100644 --- a/tencentcloud/dts/v20180330/client.go +++ b/tencentcloud/dts/v20180330/client.go @@ -791,27 +791,27 @@ func (c *Client) StopMigrateJob(request *StopMigrateJobRequest) (response *StopM return } -func NewSwitchDrToMasterRequest() (request *SwitchDrToMasterRequest) { - request = &SwitchDrToMasterRequest{ +func NewSwitchDrToMainRequest() (request *SwitchDrToMainRequest) { + request = &SwitchDrToMainRequest{ BaseRequest: &tchttp.BaseRequest{}, } - request.Init().WithApiInfo("dts", APIVersion, "SwitchDrToMaster") + request.Init().WithApiInfo("dts", APIVersion, "SwitchDrToMain") return } -func NewSwitchDrToMasterResponse() (response *SwitchDrToMasterResponse) { - response = &SwitchDrToMasterResponse{ +func NewSwitchDrToMainResponse() (response *SwitchDrToMainResponse) { + response = &SwitchDrToMainResponse{ BaseResponse: &tchttp.BaseResponse{}, } return } -// This API is used to promote a disaster recovery instance to a master instance, which will stop sync from the original master instance and end the master/slave relationship. -func (c *Client) SwitchDrToMaster(request *SwitchDrToMasterRequest) (response *SwitchDrToMasterResponse, err error) { +// This API is used to promote a disaster recovery instance to a main instance, which will stop sync from the original main instance and end the main/subordinate relationship. +func (c *Client) SwitchDrToMain(request *SwitchDrToMainRequest) (response *SwitchDrToMainResponse, err error) { if request == nil { - request = NewSwitchDrToMasterRequest() + request = NewSwitchDrToMainRequest() } - response = NewSwitchDrToMasterResponse() + response = NewSwitchDrToMainResponse() err = c.Send(request, response) return } diff --git a/tencentcloud/dts/v20180330/models.go b/tencentcloud/dts/v20180330/models.go index 43bd95b4..e36ce587 100644 --- a/tencentcloud/dts/v20180330/models.go +++ b/tencentcloud/dts/v20180330/models.go @@ -978,11 +978,11 @@ type MigrateDetailInfo struct { // Progress of current step, such as "1" CurrentStepProgress *string `json:"CurrentStepProgress,omitempty" name:"CurrentStepProgress"` - // Master/slave lag in MB, which is valid during incremental sync and currently supported by TencentDB for Redis and MySQL - MasterSlaveDistance *int64 `json:"MasterSlaveDistance,omitempty" name:"MasterSlaveDistance"` + // Main/subordinate lag in MB, which is valid during incremental sync and currently supported by TencentDB for Redis and MySQL + MainSubordinateDistance *int64 `json:"MainSubordinateDistance,omitempty" name:"MainSubordinateDistance"` - // Master/slave lag in seconds, which is valid during incremental sync and currently supported by TencentDB for MySQL - SecondsBehindMaster *int64 `json:"SecondsBehindMaster,omitempty" name:"SecondsBehindMaster"` + // Main/subordinate lag in seconds, which is valid during incremental sync and currently supported by TencentDB for MySQL + SecondsBehindMain *int64 `json:"SecondsBehindMain,omitempty" name:"SecondsBehindMain"` // Step information StepInfo []*MigrateStepDetailInfo `json:"StepInfo,omitempty" name:"StepInfo" list` @@ -1062,9 +1062,9 @@ type MigrateOption struct { // Additional parameters for different databases, which are described in JSON format. // The following parameters can be defined for Redis: // { - // "ClientOutputBufferHardLimit":512, Hard capacity limit of slave buffer (MB) - // "ClientOutputBufferSoftLimit":512, Soft capacity limit of slave buffer (MB) - // "ClientOutputBufferPersistTime":60, Soft limit duration of slave buffer (s) + // "ClientOutputBufferHardLimit":512, Hard capacity limit of subordinate buffer (MB) + // "ClientOutputBufferSoftLimit":512, Soft capacity limit of subordinate buffer (MB) + // "ClientOutputBufferPersistTime":60, Soft limit duration of subordinate buffer (s) // "ReplBacklogSize":512, Circular buffer capacity limit (MB) // "ReplTimeout":120, Replication timeout period (s) // } @@ -1693,7 +1693,7 @@ type SubscribeRegionConf struct { Status *int64 `json:"Status,omitempty" name:"Status"` } -type SwitchDrToMasterRequest struct { +type SwitchDrToMainRequest struct { *tchttp.BaseRequest // Disaster recovery instance information @@ -1703,16 +1703,16 @@ type SwitchDrToMasterRequest struct { DatabaseType *string `json:"DatabaseType,omitempty" name:"DatabaseType"` } -func (r *SwitchDrToMasterRequest) ToJsonString() string { +func (r *SwitchDrToMainRequest) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } -func (r *SwitchDrToMasterRequest) FromJsonString(s string) error { +func (r *SwitchDrToMainRequest) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } -type SwitchDrToMasterResponse struct { +type SwitchDrToMainResponse struct { *tchttp.BaseResponse Response *struct { @@ -1724,12 +1724,12 @@ type SwitchDrToMasterResponse struct { } `json:"Response"` } -func (r *SwitchDrToMasterResponse) ToJsonString() string { +func (r *SwitchDrToMainResponse) ToJsonString() string { b, _ := json.Marshal(r) return string(b) } -func (r *SwitchDrToMasterResponse) FromJsonString(s string) error { +func (r *SwitchDrToMainResponse) FromJsonString(s string) error { return json.Unmarshal([]byte(s), &r) } @@ -1762,11 +1762,11 @@ type SyncDetailInfo struct { // Progress of the current step CurrentStepProgress *string `json:"CurrentStepProgress,omitempty" name:"CurrentStepProgress"` - // Master/slave delay in MB - MasterSlaveDistance *int64 `json:"MasterSlaveDistance,omitempty" name:"MasterSlaveDistance"` + // Main/subordinate delay in MB + MainSubordinateDistance *int64 `json:"MainSubordinateDistance,omitempty" name:"MainSubordinateDistance"` - // Master/slave delay in seconds - SecondsBehindMaster *int64 `json:"SecondsBehindMaster,omitempty" name:"SecondsBehindMaster"` + // Main/subordinate delay in seconds + SecondsBehindMain *int64 `json:"SecondsBehindMain,omitempty" name:"SecondsBehindMain"` // Step information StepInfo []*SyncStepDetailInfo `json:"StepInfo,omitempty" name:"StepInfo" list` diff --git a/tencentcloud/emr/v20190103/models.go b/tencentcloud/emr/v20190103/models.go index 1080f91a..e7dd9ff7 100644 --- a/tencentcloud/emr/v20190103/models.go +++ b/tencentcloud/emr/v20190103/models.go @@ -184,9 +184,9 @@ type ClusterInstancesInfo struct { // Note: this field may return null, indicating that no valid values can be obtained. Config *EmrProductConfigOutter `json:"Config,omitempty" name:"Config"` - // Public IP of master node + // Public IP of main node // Note: this field may return null, indicating that no valid values can be obtained. - MasterIp *string `json:"MasterIp,omitempty" name:"MasterIp"` + MainIp *string `json:"MainIp,omitempty" name:"MainIp"` // EMR version // Note: this field may return null, indicating that no valid values can be obtained. @@ -313,10 +313,10 @@ type CreateInstanceRequest struct { // Client token. ClientToken *string `json:"ClientToken,omitempty" name:"ClientToken"` - // Whether to enable public IP access for master node. Valid values: - //
  • NEED_MASTER_WAN: enables public IP for master node.
  • - //
  • NOT_NEED_MASTER_WAN: does not enable.
  • Public IP is enabled for master node by default. - NeedMasterWan *string `json:"NeedMasterWan,omitempty" name:"NeedMasterWan"` + // Whether to enable public IP access for main node. Valid values: + //
  • NEED_MASTER_WAN: enables public IP for main node.
  • + //
  • NOT_NEED_MASTER_WAN: does not enable.
  • Public IP is enabled for main node by default. + NeedMainWan *string `json:"NeedMainWan,omitempty" name:"NeedMainWan"` // Whether to enable remote public network login, i.e., port 22. When `SgId` is not empty, this parameter does not take effect. RemoteLoginAtCreate *int64 `json:"RemoteLoginAtCreate,omitempty" name:"RemoteLoginAtCreate"` @@ -396,7 +396,7 @@ type DescribeClusterNodesRequest struct { // Node flag. Valid values: //
  • all: gets the information of nodes in all types except TencentDB information.
  • - //
  • master: gets master node information.
  • + //
  • main: gets main node information.
  • //
  • core: gets core node information.
  • //
  • task: gets task node information.
  • //
  • common: gets common node information.
  • @@ -527,9 +527,9 @@ type EmrProductConfigOutter struct { // Note: this field may return null, indicating that no valid values can be obtained. SoftInfo []*string `json:"SoftInfo,omitempty" name:"SoftInfo" list` - // Number of master nodes + // Number of main nodes // Note: this field may return null, indicating that no valid values can be obtained. - MasterNodeSize *int64 `json:"MasterNodeSize,omitempty" name:"MasterNodeSize"` + MainNodeSize *int64 `json:"MainNodeSize,omitempty" name:"MainNodeSize"` // Number of core nodes // Note: this field may return null, indicating that no valid values can be obtained. @@ -543,9 +543,9 @@ type EmrProductConfigOutter struct { // Note: this field may return null, indicating that no valid values can be obtained. ComNodeSize *int64 `json:"ComNodeSize,omitempty" name:"ComNodeSize"` - // Master node resource + // Main node resource // Note: this field may return null, indicating that no valid values can be obtained. - MasterResource *OutterResource `json:"MasterResource,omitempty" name:"MasterResource"` + MainResource *OutterResource `json:"MainResource,omitempty" name:"MainResource"` // Core node resource // Note: this field may return null, indicating that no valid values can be obtained. @@ -942,8 +942,8 @@ type MultiDiskMC struct { type NewResourceSpec struct { - // Describes master node resource - MasterResourceSpec *Resource `json:"MasterResourceSpec,omitempty" name:"MasterResourceSpec"` + // Describes main node resource + MainResourceSpec *Resource `json:"MainResourceSpec,omitempty" name:"MainResourceSpec"` // Describes core node resource CoreResourceSpec *Resource `json:"CoreResourceSpec,omitempty" name:"CoreResourceSpec"` @@ -951,8 +951,8 @@ type NewResourceSpec struct { // Describes task node resource TaskResourceSpec *Resource `json:"TaskResourceSpec,omitempty" name:"TaskResourceSpec"` - // Number of master nodes - MasterCount *int64 `json:"MasterCount,omitempty" name:"MasterCount"` + // Number of main nodes + MainCount *int64 `json:"MainCount,omitempty" name:"MainCount"` // Number of core nodes CoreCount *int64 `json:"CoreCount,omitempty" name:"CoreCount"` @@ -981,7 +981,7 @@ type NodeHardwareInfo struct { // Note: this field may return null, indicating that no valid values can be obtained. OrderNo *string `json:"OrderNo,omitempty" name:"OrderNo"` - // Public IP bound to master node + // Public IP bound to main node // Note: this field may return null, indicating that no valid values can be obtained. WanIp *string `json:"WanIp,omitempty" name:"WanIp"` diff --git a/tencentcloud/es/v20180416/client.go b/tencentcloud/es/v20180416/client.go index 39fd06c5..cce89e20 100644 --- a/tencentcloud/es/v20180416/client.go +++ b/tencentcloud/es/v20180416/client.go @@ -210,7 +210,7 @@ func NewUpdateInstanceResponse() (response *UpdateInstanceResponse) { // This API is used for operations such as modifying node specification, renaming an instance, modifying configuration, resetting password, and setting Kibana blacklist/whitelist. `InstanceId` is required, while `ForceRestart` is optional. Other parameters or parameter combinations and their meanings are as follows: // - InstanceName: renames an instance (only for instance identification) -// - NodeInfoList: modifies node configuration (horizontally scaling nodes, vertically scaling nodes, adding master nodes, adding cold nodes, etc.) +// - NodeInfoList: modifies node configuration (horizontally scaling nodes, vertically scaling nodes, adding main nodes, adding cold nodes, etc.) // - EsConfig: modifies cluster configuration // - Password: changes the password of the default user "elastic" // - EsAcl: modifies the ACL diff --git a/tencentcloud/es/v20180416/models.go b/tencentcloud/es/v20180416/models.go index e723bfbe..e9927f12 100644 --- a/tencentcloud/es/v20180416/models.go +++ b/tencentcloud/es/v20180416/models.go @@ -85,20 +85,20 @@ type CreateInstanceRequest struct { VoucherIds []*string `json:"VoucherIds,omitempty" name:"VoucherIds" list` // This parameter has been disused. Please use `NodeInfoList` - // Whether to create a dedicated master node
  • true: yes
  • false: no
  • Default value: false - EnableDedicatedMaster *bool `json:"EnableDedicatedMaster,omitempty" name:"EnableDedicatedMaster"` + // Whether to create a dedicated main node
  • true: yes
  • false: no
  • Default value: false + EnableDedicatedMain *bool `json:"EnableDedicatedMain,omitempty" name:"EnableDedicatedMain"` // This parameter has been disused. Please use `NodeInfoList` - // Number of dedicated master nodes (only 3 and 5 are supported. This value must be passed in if `EnableDedicatedMaster` is `true`) - MasterNodeNum *uint64 `json:"MasterNodeNum,omitempty" name:"MasterNodeNum"` + // Number of dedicated main nodes (only 3 and 5 are supported. This value must be passed in if `EnableDedicatedMain` is `true`) + MainNodeNum *uint64 `json:"MainNodeNum,omitempty" name:"MainNodeNum"` // This parameter has been disused. Please use `NodeInfoList` - // Dedicated master node type, which must be passed in if `EnableDedicatedMaster` is `true`
  • ES.S1.SMALL2: 1-core 2 GB
  • ES.S1.MEDIUM4: 2-core 4 GB
  • ES.S1.MEDIUM8: 2-core 8 GB
  • ES.S1.LARGE16: 4-core 16 GB
  • ES.S1.2XLARGE32: 8-core 32 GB
  • ES.S1.4XLARGE32: 16-core 32 GB
  • ES.S1.4XLARGE64: 16-core 64 GB
  • - MasterNodeType *string `json:"MasterNodeType,omitempty" name:"MasterNodeType"` + // Dedicated main node type, which must be passed in if `EnableDedicatedMain` is `true`
  • ES.S1.SMALL2: 1-core 2 GB
  • ES.S1.MEDIUM4: 2-core 4 GB
  • ES.S1.MEDIUM8: 2-core 8 GB
  • ES.S1.LARGE16: 4-core 16 GB
  • ES.S1.2XLARGE32: 8-core 32 GB
  • ES.S1.4XLARGE32: 16-core 32 GB
  • ES.S1.4XLARGE64: 16-core 64 GB
  • + MainNodeType *string `json:"MainNodeType,omitempty" name:"MainNodeType"` // This parameter has been disused. Please use `NodeInfoList` - // Dedicated master node disk size in GB, which is optional. If passed in, it can only be 50 and cannot be customized currently - MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitempty" name:"MasterNodeDiskSize"` + // Dedicated main node disk size in GB, which is optional. If passed in, it can only be 50 and cannot be customized currently + MainNodeDiskSize *uint64 `json:"MainNodeDiskSize,omitempty" name:"MainNodeDiskSize"` // ClusterName in the cluster configuration file, which is the instance ID by default and currently cannot be customized ClusterNameInConf *string `json:"ClusterNameInConf,omitempty" name:"ClusterNameInConf"` @@ -193,7 +193,7 @@ type DescribeInstanceLogsRequest struct { InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` // Log type. Default value: 1 - //
  • 1: master log
  • + //
  • 1: main log
  • //
  • 2: search slow log
  • //
  • 3: index slow log
  • //
  • 4: GC log
  • @@ -500,8 +500,8 @@ type InstanceInfo struct { // IK analyzer configuration IkConfig *EsDictionaryInfo `json:"IkConfig,omitempty" name:"IkConfig"` - // Dedicated master node configuration - MasterNodeInfo *MasterNodeInfo `json:"MasterNodeInfo,omitempty" name:"MasterNodeInfo"` + // Dedicated main node configuration + MainNodeInfo *MainNodeInfo `json:"MainNodeInfo,omitempty" name:"MainNodeInfo"` // Auto-backup to COS configuration CosBackup *CosBackup `json:"CosBackup,omitempty" name:"CosBackup"` @@ -619,28 +619,28 @@ type LocalDiskInfo struct { LocalDiskCount *uint64 `json:"LocalDiskCount,omitempty" name:"LocalDiskCount"` } -type MasterNodeInfo struct { +type MainNodeInfo struct { - // Whether to enable the dedicated master node - EnableDedicatedMaster *bool `json:"EnableDedicatedMaster,omitempty" name:"EnableDedicatedMaster"` + // Whether to enable the dedicated main node + EnableDedicatedMain *bool `json:"EnableDedicatedMain,omitempty" name:"EnableDedicatedMain"` - // Dedicated master node specification
  • ES.S1.SMALL2: 1-core 2 GB
  • ES.S1.MEDIUM4: 2-core 4 GB
  • ES.S1.MEDIUM8: 2-core 8 GB
  • ES.S1.LARGE16: 4-core 16 GB
  • ES.S1.2XLARGE32: 8-core 32 GB
  • ES.S1.4XLARGE32: 16-core 32 GB
  • ES.S1.4XLARGE64: 16-core 64 GB
  • - MasterNodeType *string `json:"MasterNodeType,omitempty" name:"MasterNodeType"` + // Dedicated main node specification
  • ES.S1.SMALL2: 1-core 2 GB
  • ES.S1.MEDIUM4: 2-core 4 GB
  • ES.S1.MEDIUM8: 2-core 8 GB
  • ES.S1.LARGE16: 4-core 16 GB
  • ES.S1.2XLARGE32: 8-core 32 GB
  • ES.S1.4XLARGE32: 16-core 32 GB
  • ES.S1.4XLARGE64: 16-core 64 GB
  • + MainNodeType *string `json:"MainNodeType,omitempty" name:"MainNodeType"` - // Number of dedicated master nodes - MasterNodeNum *uint64 `json:"MasterNodeNum,omitempty" name:"MasterNodeNum"` + // Number of dedicated main nodes + MainNodeNum *uint64 `json:"MainNodeNum,omitempty" name:"MainNodeNum"` - // Number of CPU cores of the dedicated master node - MasterNodeCpuNum *uint64 `json:"MasterNodeCpuNum,omitempty" name:"MasterNodeCpuNum"` + // Number of CPU cores of the dedicated main node + MainNodeCpuNum *uint64 `json:"MainNodeCpuNum,omitempty" name:"MainNodeCpuNum"` - // Memory size of the dedicated master node in GB - MasterNodeMemSize *uint64 `json:"MasterNodeMemSize,omitempty" name:"MasterNodeMemSize"` + // Memory size of the dedicated main node in GB + MainNodeMemSize *uint64 `json:"MainNodeMemSize,omitempty" name:"MainNodeMemSize"` - // Disk size of the dedicated master node in GB - MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitempty" name:"MasterNodeDiskSize"` + // Disk size of the dedicated main node in GB + MainNodeDiskSize *uint64 `json:"MainNodeDiskSize,omitempty" name:"MainNodeDiskSize"` - // Disk type of the dedicated master node - MasterNodeDiskType *string `json:"MasterNodeDiskType,omitempty" name:"MasterNodeDiskType"` + // Disk type of the dedicated main node + MainNodeDiskType *string `json:"MainNodeDiskType,omitempty" name:"MainNodeDiskType"` } type NodeInfo struct { @@ -653,7 +653,7 @@ type NodeInfo struct { // Node type
  • hotData: hot data node
  • //
  • warmData: warm data node
  • - //
  • dedicatedMaster: dedicated master node
  • + //
  • dedicatedMain: dedicated main node
  • // Default value: hotData Type *string `json:"Type,omitempty" name:"Type"` @@ -823,16 +823,16 @@ type UpdateInstanceRequest struct { NodeType *string `json:"NodeType,omitempty" name:"NodeType"` // This parameter has been disused. Please use `NodeInfoList` - // Number of dedicated master nodes (only 3 and 5 are supported) - MasterNodeNum *uint64 `json:"MasterNodeNum,omitempty" name:"MasterNodeNum"` + // Number of dedicated main nodes (only 3 and 5 are supported) + MainNodeNum *uint64 `json:"MainNodeNum,omitempty" name:"MainNodeNum"` // This parameter has been disused. Please use `NodeInfoList` - // Dedicated master node specification
  • ES.S1.SMALL2: 1-core 2 GB
  • ES.S1.MEDIUM4: 2-core 4 GB
  • ES.S1.MEDIUM8: 2-core 8 GB
  • ES.S1.LARGE16: 4-core 16 GB
  • ES.S1.2XLARGE32: 8-core 32 GB
  • ES.S1.4XLARGE32: 16-core 32 GB
  • ES.S1.4XLARGE64: 16-core 64 GB
  • - MasterNodeType *string `json:"MasterNodeType,omitempty" name:"MasterNodeType"` + // Dedicated main node specification
  • ES.S1.SMALL2: 1-core 2 GB
  • ES.S1.MEDIUM4: 2-core 4 GB
  • ES.S1.MEDIUM8: 2-core 8 GB
  • ES.S1.LARGE16: 4-core 16 GB
  • ES.S1.2XLARGE32: 8-core 32 GB
  • ES.S1.4XLARGE32: 16-core 32 GB
  • ES.S1.4XLARGE64: 16-core 64 GB
  • + MainNodeType *string `json:"MainNodeType,omitempty" name:"MainNodeType"` // This parameter has been disused. Please use `NodeInfoList` - // Dedicated master node disk size in GB. This is 50 GB by default and currently cannot be customized - MasterNodeDiskSize *uint64 `json:"MasterNodeDiskSize,omitempty" name:"MasterNodeDiskSize"` + // Dedicated main node disk size in GB. This is 50 GB by default and currently cannot be customized + MainNodeDiskSize *uint64 `json:"MainNodeDiskSize,omitempty" name:"MainNodeDiskSize"` // Whether to force restart during configuration update
  • true: Yes
  • false: No
  • This needs to be set only for EsConfig. Default value: false ForceRestart *bool `json:"ForceRestart,omitempty" name:"ForceRestart"` diff --git a/tencentcloud/gme/v20180711/client.go b/tencentcloud/gme/v20180711/client.go index b902a14e..6204ba78 100644 --- a/tencentcloud/gme/v20180711/client.go +++ b/tencentcloud/gme/v20180711/client.go @@ -134,7 +134,7 @@ func NewModifyAppStatusResponse() (response *ModifyAppStatusResponse) { return } -// This API is used to change the status of an application's master switch. +// This API is used to change the status of an application's main switch. func (c *Client) ModifyAppStatus(request *ModifyAppStatusRequest) (response *ModifyAppStatusResponse, err error) { if request == nil { request = NewModifyAppStatusRequest() diff --git a/tencentcloud/kms/v20190118/client.go b/tencentcloud/kms/v20190118/client.go index ba5c1813..24993445 100644 --- a/tencentcloud/kms/v20190118/client.go +++ b/tencentcloud/kms/v20190118/client.go @@ -133,7 +133,7 @@ func NewCreateKeyResponse() (response *CreateKeyResponse) { return } -// Create a master key CMK (Custom Master Key) for user management data keys +// Create a main key CMK (Custom Main Key) for user management data keys func (c *Client) CreateKey(request *CreateKeyRequest) (response *CreateKeyResponse, err error) { if request == nil { request = NewCreateKeyRequest() @@ -433,7 +433,7 @@ func NewDisableKeyResponse() (response *DisableKeyResponse) { return } -// This API is used to disable a master key. The disabled key cannot be used for encryption and decryption operations. +// This API is used to disable a main key. The disabled key cannot be used for encryption and decryption operations. func (c *Client) DisableKey(request *DisableKeyRequest) (response *DisableKeyResponse, err error) { if request == nil { request = NewDisableKeyRequest() @@ -934,7 +934,7 @@ func NewListKeyDetailResponse() (response *ListKeyDetailResponse) { return } -// Get the master key list details according to the specified Offset and Limit. +// Get the main key list details according to the specified Offset and Limit. func (c *Client) ListKeyDetail(request *ListKeyDetailRequest) (response *ListKeyDetailResponse, err error) { if request == nil { request = NewListKeyDetailRequest() diff --git a/tencentcloud/mariadb/v20170312/models.go b/tencentcloud/mariadb/v20170312/models.go index 6bf28542..ae479487 100644 --- a/tencentcloud/mariadb/v20170312/models.go +++ b/tencentcloud/mariadb/v20170312/models.go @@ -188,13 +188,13 @@ type CreateAccountRequest struct { // Account password, which can contain 6–32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks. Password *string `json:"Password,omitempty" name:"Password"` - // Whether to create a read-only account. 0: no; 1: for the account's SQL requests, the slave will be used first, and if it is unavailable, the master will be used; 2: the slave will be used first, and if it is unavailable, the operation will fail. + // Whether to create a read-only account. 0: no; 1: for the account's SQL requests, the subordinate will be used first, and if it is unavailable, the main will be used; 2: the subordinate will be used first, and if it is unavailable, the operation will fail. ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` // Account remarks, which can contain 0–256 letters, digits, and common symbols. Description *string `json:"Description,omitempty" name:"Description"` - // Determines whether the slave is unavailable based on the passed-in time + // Determines whether the subordinate is unavailable based on the passed-in time DelayThresh *int64 `json:"DelayThresh,omitempty" name:"DelayThresh"` } @@ -254,10 +254,10 @@ type DBAccount struct { // Last updated time UpdateTime *string `json:"UpdateTime,omitempty" name:"UpdateTime"` - // Read-only flag. 0: no; 1: for the account's SQL requests, the slave will be used first, and if it is unavailable, the master will be used; 2: the slave will be used first, and if it is unavailable, the operation will fail. + // Read-only flag. 0: no; 1: for the account's SQL requests, the subordinate will be used first, and if it is unavailable, the main will be used; 2: the subordinate will be used first, and if it is unavailable, the operation will fail. ReadOnly *int64 `json:"ReadOnly,omitempty" name:"ReadOnly"` - // This field is meaningful for read-only accounts, indicating to select a slave where the master/slave delay is below this value + // This field is meaningful for read-only accounts, indicating to select a subordinate where the main/subordinate delay is below this value // Note: this field may return null, indicating that no valid values can be obtained. DelayThresh *int64 `json:"DelayThresh,omitempty" name:"DelayThresh"` } @@ -351,7 +351,7 @@ type DBInstance struct { // Original ID of instance (this field is obsolete and should not be depended on) OriginSerialId *string `json:"OriginSerialId,omitempty" name:"OriginSerialId"` - // Number of nodes. 2: one master and one slave, 3: one master and two slaves + // Number of nodes. 2: one main and one subordinate, 3: one main and two subordinates NodeCount *uint64 `json:"NodeCount,omitempty" name:"NodeCount"` // Whether it is a temp instance. 0: no, non-zero value: yes @@ -786,7 +786,7 @@ type DescribeDBPerformanceDetailsRequest struct { // End date in the format of `yyyy-mm-dd` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` - // Name of pulled metric. Valid values: long_query, select_total, update_total, insert_total, delete_total, mem_hit_rate, disk_iops, conn_active, is_master_switched, slave_delay + // Name of pulled metric. Valid values: long_query, select_total, update_total, insert_total, delete_total, mem_hit_rate, disk_iops, conn_active, is_main_switched, subordinate_delay MetricName *string `json:"MetricName,omitempty" name:"MetricName"` } @@ -803,16 +803,16 @@ type DescribeDBPerformanceDetailsResponse struct { *tchttp.BaseResponse Response *struct { - // Master node performance monitoring data - Master *PerformanceMonitorSet `json:"Master,omitempty" name:"Master"` + // Main node performance monitoring data + Main *PerformanceMonitorSet `json:"Main,omitempty" name:"Main"` - // Slave 1 performance monitoring data + // Subordinate 1 performance monitoring data // Note: this field may return null, indicating that no valid values can be obtained. - Slave1 *PerformanceMonitorSet `json:"Slave1,omitempty" name:"Slave1"` + Subordinate1 *PerformanceMonitorSet `json:"Subordinate1,omitempty" name:"Subordinate1"` - // Slave 2 performance monitoring data. If the instance is one-master-one-slave, it does not have this field + // Subordinate 2 performance monitoring data. If the instance is one-main-one-subordinate, it does not have this field // Note: this field may return null, indicating that no valid values can be obtained. - Slave2 *PerformanceMonitorSet `json:"Slave2,omitempty" name:"Slave2"` + Subordinate2 *PerformanceMonitorSet `json:"Subordinate2,omitempty" name:"Subordinate2"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` @@ -840,7 +840,7 @@ type DescribeDBPerformanceRequest struct { // End date in the format of `yyyy-mm-dd` EndTime *string `json:"EndTime,omitempty" name:"EndTime"` - // Name of pulled metric. Valid values: long_query, select_total, update_total, insert_total, delete_total, mem_hit_rate, disk_iops, conn_active, is_master_switched, slave_delay + // Name of pulled metric. Valid values: long_query, select_total, update_total, insert_total, delete_total, mem_hit_rate, disk_iops, conn_active, is_main_switched, subordinate_delay MetricName *string `json:"MetricName,omitempty" name:"MetricName"` } @@ -881,11 +881,11 @@ type DescribeDBPerformanceResponse struct { // Number of active connections ConnActive *MonitorData `json:"ConnActive,omitempty" name:"ConnActive"` - // Whether master/slave switch occurred. 1: yes, 0: no - IsMasterSwitched *MonitorData `json:"IsMasterSwitched,omitempty" name:"IsMasterSwitched"` + // Whether main/subordinate switch occurred. 1: yes, 0: no + IsMainSwitched *MonitorData `json:"IsMainSwitched,omitempty" name:"IsMainSwitched"` - // Master/slave delay - SlaveDelay *MonitorData `json:"SlaveDelay,omitempty" name:"SlaveDelay"` + // Main/subordinate delay + SubordinateDelay *MonitorData `json:"SubordinateDelay,omitempty" name:"SubordinateDelay"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` @@ -930,16 +930,16 @@ type DescribeDBResourceUsageDetailsResponse struct { *tchttp.BaseResponse Response *struct { - // Master node resource usage monitoring node - Master *ResourceUsageMonitorSet `json:"Master,omitempty" name:"Master"` + // Main node resource usage monitoring node + Main *ResourceUsageMonitorSet `json:"Main,omitempty" name:"Main"` - // Slave 1 resource usage monitoring node + // Subordinate 1 resource usage monitoring node // Note: this field may return null, indicating that no valid values can be obtained. - Slave1 *ResourceUsageMonitorSet `json:"Slave1,omitempty" name:"Slave1"` + Subordinate1 *ResourceUsageMonitorSet `json:"Subordinate1,omitempty" name:"Subordinate1"` - // Slave 2 resource usage monitoring node + // Subordinate 2 resource usage monitoring node // Note: this field may return null, indicating that no valid values can be obtained. - Slave2 *ResourceUsageMonitorSet `json:"Slave2,omitempty" name:"Slave2"` + Subordinate2 *ResourceUsageMonitorSet `json:"Subordinate2,omitempty" name:"Subordinate2"` // The unique request ID, which is returned for each request. RequestId is required for locating a problem. RequestId *string `json:"RequestId,omitempty" name:"RequestId"` @@ -1037,8 +1037,8 @@ type DescribeDBSlowLogsRequest struct { // Sorting order. Valid values: desc, asc OrderByType *string `json:"OrderByType,omitempty" name:"OrderByType"` - // Whether to query slow queries of the slave. 0: master, 1: slave - Slave *int64 `json:"Slave,omitempty" name:"Slave"` + // Whether to query slow queries of the subordinate. 0: main, 1: subordinate + Subordinate *int64 `json:"Subordinate,omitempty" name:"Subordinate"` } func (r *DescribeDBSlowLogsRequest) ToJsonString() string { @@ -1676,8 +1676,8 @@ type PerformanceMonitorSet struct { // Cache hit rate MemHitRate *MonitorData `json:"MemHitRate,omitempty" name:"MemHitRate"` - // Master/slave delay - SlaveDelay *MonitorData `json:"SlaveDelay,omitempty" name:"SlaveDelay"` + // Main/subordinate delay + SubordinateDelay *MonitorData `json:"SubordinateDelay,omitempty" name:"SubordinateDelay"` // Number of SELECT operations SelectTotal *MonitorData `json:"SelectTotal,omitempty" name:"SelectTotal"` @@ -1691,8 +1691,8 @@ type PerformanceMonitorSet struct { // Number of INSERT operations InsertTotal *MonitorData `json:"InsertTotal,omitempty" name:"InsertTotal"` - // Whether master/slave switch occurred. 1: yes, 0: no - IsMasterSwitched *MonitorData `json:"IsMasterSwitched,omitempty" name:"IsMasterSwitched"` + // Whether main/subordinate switch occurred. 1: yes, 0: no + IsMainSwitched *MonitorData `json:"IsMainSwitched,omitempty" name:"IsMainSwitched"` } type ResetAccountPasswordRequest struct { diff --git a/tencentcloud/mongodb/v20190725/client.go b/tencentcloud/mongodb/v20190725/client.go index 9e85c730..203d49de 100644 --- a/tencentcloud/mongodb/v20190725/client.go +++ b/tencentcloud/mongodb/v20190725/client.go @@ -233,7 +233,7 @@ func NewDescribeDBInstancesResponse() (response *DescribeDBInstancesResponse) { return } -// This API is used to query the list of TencentDB instances (which can be master, disaster recovery, or read-only instances). It supports filtering instances by project ID, instance ID, and instance status. +// This API is used to query the list of TencentDB instances (which can be main, disaster recovery, or read-only instances). It supports filtering instances by project ID, instance ID, and instance status. func (c *Client) DescribeDBInstances(request *DescribeDBInstancesRequest) (response *DescribeDBInstancesResponse, err error) { if request == nil { request = NewDescribeDBInstancesRequest() diff --git a/tencentcloud/mongodb/v20190725/models.go b/tencentcloud/mongodb/v20190725/models.go index e5cec4cb..402168c5 100644 --- a/tencentcloud/mongodb/v20190725/models.go +++ b/tencentcloud/mongodb/v20190725/models.go @@ -194,7 +194,7 @@ func (r *CreateDBInstanceHourResponse) FromJsonString(s string) error { type CreateDBInstanceRequest struct { *tchttp.BaseRequest - // Number of nodes in each replica set. Currently, the number of nodes per replica set is fixed at 3, while the number of slave nodes per shard is customizable. For more information, please see the parameter returned by the `DescribeSpecInfo` API. + // Number of nodes in each replica set. Currently, the number of nodes per replica set is fixed at 3, while the number of subordinate nodes per shard is customizable. For more information, please see the parameter returned by the `DescribeSpecInfo` API. NodeNum *uint64 `json:"NodeNum,omitempty" name:"NodeNum"` // Instance memory size in GB. @@ -730,7 +730,7 @@ type InquirePriceCreateDBInstancesRequest struct { // Instance region name in the format of ap-guangzhou-2. Zone *string `json:"Zone,omitempty" name:"Zone"` - // Number of nodes in each replica set. Currently, the number of nodes per replica set is fixed at 3, while the number of slave nodes per shard is customizable. For more information, please see the parameter returned by the `DescribeSpecInfo` API. + // Number of nodes in each replica set. Currently, the number of nodes per replica set is fixed at 3, while the number of subordinate nodes per shard is customizable. For more information, please see the parameter returned by the `DescribeSpecInfo` API. NodeNum *int64 `json:"NodeNum,omitempty" name:"NodeNum"` // Instance memory size in GB. @@ -947,7 +947,7 @@ type InstanceDetail struct { // Instance machine type MachineType *string `json:"MachineType,omitempty" name:"MachineType"` - // Number of slave nodes of an instance + // Number of subordinate nodes of an instance SecondaryNum *uint64 `json:"SecondaryNum,omitempty" name:"SecondaryNum"` // Number of instance shards @@ -977,7 +977,7 @@ type InstanceDetail struct { // Information of temp instances CloneInstances []*DBInstanceInfo `json:"CloneInstances,omitempty" name:"CloneInstances" list` - // Information of associated instances. For a promoted instance, this field represents information of its temp instance; for a temp instance, this field represents information of its promoted instance; and for a read-only/disaster recovery instance, this field represents information of its master instance + // Information of associated instances. For a promoted instance, this field represents information of its temp instance; for a temp instance, this field represents information of its promoted instance; and for a read-only/disaster recovery instance, this field represents information of its main instance RelatedInstance *DBInstanceInfo `json:"RelatedInstance,omitempty" name:"RelatedInstance"` // Instance tag information set @@ -1216,7 +1216,7 @@ type ShardInfo struct { // Shard oplog size in MB OplogSize *uint64 `json:"OplogSize,omitempty" name:"OplogSize"` - // Number of slave nodes of a shard + // Number of subordinate nodes of a shard SecondaryNum *uint64 `json:"SecondaryNum,omitempty" name:"SecondaryNum"` // Shard physical ID @@ -1282,10 +1282,10 @@ type SpecItem struct { // Cluster type. Valid values: 1 (sharding cluster), 0 (replica set cluster) ClusterType *uint64 `json:"ClusterType,omitempty" name:"ClusterType"` - // Minimum number of slave nodes in a replica set + // Minimum number of subordinate nodes in a replica set MinNodeNum *uint64 `json:"MinNodeNum,omitempty" name:"MinNodeNum"` - // Maximum number of slave nodes in a replica set + // Maximum number of subordinate nodes in a replica set MaxNodeNum *uint64 `json:"MaxNodeNum,omitempty" name:"MaxNodeNum"` // Minimum number of shards @@ -1294,10 +1294,10 @@ type SpecItem struct { // Maximum number of shards MaxReplicateSetNum *uint64 `json:"MaxReplicateSetNum,omitempty" name:"MaxReplicateSetNum"` - // Minimum number of slave nodes in a shard + // Minimum number of subordinate nodes in a shard MinReplicateSetNodeNum *uint64 `json:"MinReplicateSetNodeNum,omitempty" name:"MinReplicateSetNodeNum"` - // Maximum number of slave nodes in a shard + // Maximum number of subordinate nodes in a shard MaxReplicateSetNodeNum *uint64 `json:"MaxReplicateSetNodeNum,omitempty" name:"MaxReplicateSetNodeNum"` // Server type. Valid values: 0 (HIO), 4 (HIO10G) diff --git a/tencentcloud/mps/v20190612/models.go b/tencentcloud/mps/v20190612/models.go index de80920d..22c55735 100644 --- a/tencentcloud/mps/v20190612/models.go +++ b/tencentcloud/mps/v20190612/models.go @@ -6556,7 +6556,7 @@ type TranscodeTaskInput struct { // Note: This field may return null, indicating that no valid values can be obtained. OutputStorage *TaskOutputStorage `json:"OutputStorage,omitempty" name:"OutputStorage"` - // Path to a master output file, which can be a relative path or an absolute path. If this parameter is left empty, the following relative path will be used by default: `{inputName}_transcode_{definition}.{format}`. + // Path to a main output file, which can be a relative path or an absolute path. If this parameter is left empty, the following relative path will be used by default: `{inputName}_transcode_{definition}.{format}`. OutputObjectPath *string `json:"OutputObjectPath,omitempty" name:"OutputObjectPath"` // Path to an output file part (the path to ts during transcoding to HLS), which can only be a relative path. If this parameter is left empty, the following relative path will be used by default: `{inputName}_transcode_{definition}_{number}.{format}`. diff --git a/tencentcloud/postgres/v20170312/models.go b/tencentcloud/postgres/v20170312/models.go index 1ff48b13..21b0bc8a 100644 --- a/tencentcloud/postgres/v20170312/models.go +++ b/tencentcloud/postgres/v20170312/models.go @@ -243,10 +243,10 @@ type DBInstance struct { // Purchasable specification ID DBInstanceClass *string `json:"DBInstanceClass,omitempty" name:"DBInstanceClass"` - // Instance type. 1: primary (master instance), 2: readonly (read-only instance), 3: guard (disaster recovery instance), 4: temp (temp instance) + // Instance type. 1: primary (main instance), 2: readonly (read-only instance), 3: guard (disaster recovery instance), 4: temp (temp instance) DBInstanceType *string `json:"DBInstanceType,omitempty" name:"DBInstanceType"` - // Instance edition. Currently, only `standard` edition (dual-server high-availability one-master-one-slave edition) is supported + // Instance edition. Currently, only `standard` edition (dual-server high-availability one-main-one-subordinate edition) is supported DBInstanceVersion *string `json:"DBInstanceVersion,omitempty" name:"DBInstanceVersion"` // Instance database character set diff --git a/tencentcloud/redis/v20180412/models.go b/tencentcloud/redis/v20180412/models.go index eccf9b23..cbc9c8a6 100644 --- a/tencentcloud/redis/v20180412/models.go +++ b/tencentcloud/redis/v20180412/models.go @@ -38,7 +38,7 @@ type Account struct { // Note: This field may return null, indicating that no valid values can be obtained. Privilege *string `json:"Privilege,omitempty" name:"Privilege"` - // Routing policy. master: master node; replication: slave node + // Routing policy. main: main node; replication: subordinate node // Note: This field may return null, indicating that no valid values can be obtained. ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy" list` @@ -218,7 +218,7 @@ type CreateInstanceAccountRequest struct { // Sub-account password AccountPassword *string `json:"AccountPassword,omitempty" name:"AccountPassword"` - // Routing policy. Enter `master` for master node or `replication` for slave node + // Routing policy. Enter `main` for main node or `replication` for subordinate node ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy" list` // Read/write policy. Valid values: r (read-only), rw (read/write). @@ -306,7 +306,7 @@ type CreateInstancesRequest struct { // Number of replicas in an instance. Redis 2.8 standard edition and CKV standard edition support 1 replica. Standard/cluster edition 4.0 and 5.0 support 1-5 replicas. RedisReplicasNum *int64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` - // Whether to support read-only replicas. Neither Redis 2.8 standard edition nor CKV standard edition supports read-only replicas. Read/write separation will be automatically enabled for an instance after it enables read-only replicas. Write requests will be directed to the master node and read requests will be distributed on slave nodes. To enable read-only replicas, we recommend you create 2 or more replicas. + // Whether to support read-only replicas. Neither Redis 2.8 standard edition nor CKV standard edition supports read-only replicas. Read/write separation will be automatically enabled for an instance after it enables read-only replicas. Write requests will be directed to the main node and read requests will be distributed on subordinate nodes. To enable read-only replicas, we recommend you create 2 or more replicas. ReplicasReadonly *bool `json:"ReplicasReadonly,omitempty" name:"ReplicasReadonly"` // Instance name. It contains only letters, digits, underscores, and dashes with a length of up to 60 characters. @@ -1229,8 +1229,8 @@ type DescribeInstanceShardsRequest struct { // Instance ID InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` - // Whether to filter out the slave node information - FilterSlave *bool `json:"FilterSlave,omitempty" name:"FilterSlave"` + // Whether to filter out the subordinate node information + FilterSubordinate *bool `json:"FilterSubordinate,omitempty" name:"FilterSubordinate"` } func (r *DescribeInstanceShardsRequest) ToJsonString() string { @@ -1311,7 +1311,7 @@ type DescribeInstancesRequest struct { // Instance status. 0: to be initialized; 1: in process; 2: running; -2: isolated; -3: to be deleted Status []*int64 `json:"Status,omitempty" name:"Status" list` - // Type edition. 1: standalone edition; 2: master-slave edition; 3: cluster edition + // Type edition. 1: standalone edition; 2: main-subordinate edition; 3: cluster edition TypeVersion *int64 `json:"TypeVersion,omitempty" name:"TypeVersion"` // Engine information: Redis-2.8, Redis-4.0, CKV @@ -1323,7 +1323,7 @@ type DescribeInstancesRequest struct { // Billing method. postpaid: pay-as-you-go; prepaid: monthly subscription BillingMode *string `json:"BillingMode,omitempty" name:"BillingMode"` - // Instance type. 1: legacy Redis Cluster Edition, 2: Redis 2.8 Master-Slave Edition, 3: CKV Master-Slave Edition, 4: CKV Cluster Edition, 5: Redis 2.8 Standalone Edition, 6: Redis 4.0 Master-Slave Edition, 7: Redis 4.0 Cluster Edition, 8: Redis 5.0 Master-Slave Edition, 9: Redis 5.0 Cluster Edition, + // Instance type. 1: legacy Redis Cluster Edition, 2: Redis 2.8 Main-Subordinate Edition, 3: CKV Main-Subordinate Edition, 4: CKV Cluster Edition, 5: Redis 2.8 Standalone Edition, 6: Redis 4.0 Main-Subordinate Edition, 7: Redis 4.0 Cluster Edition, 8: Redis 5.0 Main-Subordinate Edition, 9: Redis 5.0 Cluster Edition, Type *int64 `json:"Type,omitempty" name:"Type"` // Search keywords, which can be instance ID, instance name, or complete IP @@ -1817,7 +1817,7 @@ type EnableReplicaReadonlyRequest struct { // Serial ID of an instance InstanceId *string `json:"InstanceId,omitempty" name:"InstanceId"` - // Account routing policy. If `master` or `replication` is entered, it means to route to the master or slave node; if this is left blank, it means to write into the master node and read from the slave node by default + // Account routing policy. If `main` or `replication` is entered, it means to route to the main or subordinate node; if this is left blank, it means to write into the main node and read from the subordinate node by default ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy" list` } @@ -1898,7 +1898,7 @@ type InstanceClusterNode struct { // ID of the runtime node of an instance RunId *string `json:"RunId,omitempty" name:"RunId"` - // Cluster role. 0: master; 1: slave + // Cluster role. 0: main; 1: subordinate Role *int64 `json:"Role,omitempty" name:"Role"` // Node status. 0: readwrite; 1: read; 2: backup @@ -2135,7 +2135,7 @@ type InstanceSet struct { // This field has been disused SizeUsed *float64 `json:"SizeUsed,omitempty" name:"SizeUsed"` - // Instance type. 1: Redis 2.8 cluster edition; 2: Redis 2.8 master-slave edition; 3: CKV master-slave edition (Redis 3.2); 4: CKV cluster edition (Redis 3.2); 5: Redis 2.8 standalone edition; 6: Redis 4.0 master-slave edition; 7: Redis 4.0 cluster edition + // Instance type. 1: Redis 2.8 cluster edition; 2: Redis 2.8 main-subordinate edition; 3: CKV main-subordinate edition (Redis 3.2); 4: CKV cluster edition (Redis 3.2); 5: Redis 2.8 standalone edition; 6: Redis 4.0 main-subordinate edition; 7: Redis 4.0 cluster edition Type *int64 `json:"Type,omitempty" name:"Type"` // Whether to set the auto-renewal flag for an instance. 1: auto-renewal set; 0: auto-renewal not set @@ -2147,7 +2147,7 @@ type InstanceSet struct { // Engine: Redis community edition, Tencent Cloud CKV Engine *string `json:"Engine,omitempty" name:"Engine"` - // Product type: Redis 2.8 cluster edition, Redis 2.8 master-slave edition, Redis 3.2 master-slave edition (CKV master-slave edition), Redis 3.2 cluster edition (CKV cluster edition), Redis 2.8 standalone edition, Redis 4.0 cluster edition + // Product type: Redis 2.8 cluster edition, Redis 2.8 main-subordinate edition, Redis 3.2 main-subordinate edition (CKV main-subordinate edition), Redis 3.2 cluster edition (CKV cluster edition), Redis 2.8 standalone edition, Redis 4.0 cluster edition ProductType *string `json:"ProductType,omitempty" name:"ProductType"` // VPC ID, such as vpc-fk33jsf43kgv @@ -2189,8 +2189,8 @@ type InstanceSet struct { // Isolation time CloseTime *string `json:"CloseTime,omitempty" name:"CloseTime"` - // Read weight of a slave node - SlaveReadWeight *int64 `json:"SlaveReadWeight,omitempty" name:"SlaveReadWeight"` + // Read weight of a subordinate node + SubordinateReadWeight *int64 `json:"SubordinateReadWeight,omitempty" name:"SubordinateReadWeight"` // Instance tag information // Note: This field may return null, indicating that no valid values can be obtained. @@ -2477,7 +2477,7 @@ type ModifyInstanceAccountRequest struct { // Sub-account description information Remark *string `json:"Remark,omitempty" name:"Remark"` - // Sub-account routing policy. Enter `master` to route to the master node or `slave` to route to the slave node + // Sub-account routing policy. Enter `main` to route to the main node or `subordinate` to route to the subordinate node ReadonlyPolicy []*string `json:"ReadonlyPolicy,omitempty" name:"ReadonlyPolicy" list` // Sub-account read/write policy. Enter `r` for read-only, `w` for write-only, or `rw` for read/write @@ -2702,10 +2702,10 @@ type Outbound struct { type ProductConf struct { - // Product type. 2: Redis master-slave edition; 3: CKV master-slave edition; 4: CKV cluster edition; 5: Redis standalone edition; 7: Redis cluster edition + // Product type. 2: Redis main-subordinate edition; 3: CKV main-subordinate edition; 4: CKV cluster edition; 5: Redis standalone edition; 7: Redis cluster edition Type *int64 `json:"Type,omitempty" name:"Type"` - // Product name: Redis master-slave edition, CKV master-slave edition, CKV cluster edition, Redis standalone edition, or Redis cluster edition + // Product name: Redis main-subordinate edition, CKV main-subordinate edition, CKV cluster edition, Redis standalone edition, or Redis cluster edition TypeName *string `json:"TypeName,omitempty" name:"TypeName"` // Minimum purchasable quantity @@ -3164,10 +3164,10 @@ type UpgradeInstanceRequest struct { // Shard size in MB MemSize *uint64 `json:"MemSize,omitempty" name:"MemSize"` - // Number of shards. This parameter can be left blank for Redis 2.8 master-slave edition, CKV master-slave edition, and Redis 2.8 standalone edition + // Number of shards. This parameter can be left blank for Redis 2.8 main-subordinate edition, CKV main-subordinate edition, and Redis 2.8 standalone edition RedisShardNum *uint64 `json:"RedisShardNum,omitempty" name:"RedisShardNum"` - // Number of replicas. This parameter can be left blank for Redis 2.8 master-slave edition, CKV master-slave edition, and Redis 2.8 standalone edition + // Number of replicas. This parameter can be left blank for Redis 2.8 main-subordinate edition, CKV main-subordinate edition, and Redis 2.8 standalone edition RedisReplicasNum *uint64 `json:"RedisReplicasNum,omitempty" name:"RedisReplicasNum"` } diff --git a/tencentcloud/scf/v20180416/client.go b/tencentcloud/scf/v20180416/client.go index 1592dcc1..ddb6a61f 100644 --- a/tencentcloud/scf/v20180416/client.go +++ b/tencentcloud/scf/v20180416/client.go @@ -90,7 +90,7 @@ func NewCreateAliasResponse() (response *CreateAliasResponse) { } // This API is used to create an alias for a function version. You can use the alias to mark a specific function version such as DEV/RELEASE. You can also modify the version pointed to by the alias at any time. -// An alias must point to a master version and can point to an additional version at the same time. If you specify an alias when invoking a function, the request will be sent to the versions pointed to by the alias. You can configure the ratio between the master version and additional version during request sending. +// An alias must point to a main version and can point to an additional version at the same time. If you specify an alias when invoking a function, the request will be sent to the versions pointed to by the alias. You can configure the ratio between the main version and additional version during request sending. func (c *Client) CreateAlias(request *CreateAliasRequest) (response *CreateAliasResponse, err error) { if request == nil { request = NewCreateAliasRequest() diff --git a/tencentcloud/sqlserver/v20180328/models.go b/tencentcloud/sqlserver/v20180328/models.go index dfffa479..6a5dff9a 100644 --- a/tencentcloud/sqlserver/v20180328/models.go +++ b/tencentcloud/sqlserver/v20180328/models.go @@ -450,7 +450,7 @@ type DBInstance struct { // Instance VPC subnet ID, which will be 0 if the basic network is used SubnetId *int64 `json:"SubnetId,omitempty" name:"SubnetId"` - // Instance status. Valid values:
  • 1: applying
  • 2: running
  • 3: restrictedly running (master/slave switching)
  • 4: isolated
  • 5: repossessing
  • 6: repossessed
  • 7: task running (e.g., backing up or rolling back the instance)
  • 8: decommissioned
  • 9: scaling
  • 10: migrating
  • 11: read-only
  • 12: restarting
  • + // Instance status. Valid values:
  • 1: applying
  • 2: running
  • 3: restrictedly running (main/subordinate switching)
  • 4: isolated
  • 5: repossessing
  • 6: repossessed
  • 7: task running (e.g., backing up or rolling back the instance)
  • 8: decommissioned
  • 9: scaling
  • 10: migrating
  • 11: read-only
  • 12: restarting
  • Status *int64 `json:"Status,omitempty" name:"Status"` // Instance access IP @@ -810,7 +810,7 @@ type DescribeDBInstancesRequest struct { // Instance status. Valid values: //
  • 1: applying
  • //
  • 2: running
  • - //
  • 3: running restrictedly (master/slave switching)
  • + //
  • 3: running restrictedly (main/subordinate switching)
  • //
  • 4: isolated
  • //
  • 5: repossessing
  • //
  • 6: repossessed
  • diff --git a/tencentcloud/tke/v20180525/models.go b/tencentcloud/tke/v20180525/models.go index 7ce779ac..7283151f 100644 --- a/tencentcloud/tke/v20180525/models.go +++ b/tencentcloud/tke/v20180525/models.go @@ -131,7 +131,7 @@ type Cluster struct { // Property *string `json:"Property,omitempty" name:"Property"` - // Number of master nodes currently in the cluster + // Number of main nodes currently in the cluster ClusterMaterNodeNum *uint64 `json:"ClusterMaterNodeNum,omitempty" name:"ClusterMaterNodeNum"` // ID of the image used by the cluster diff --git a/tencentcloud/vpc/v20170312/models.go b/tencentcloud/vpc/v20170312/models.go index a189868f..0fef0d26 100644 --- a/tencentcloud/vpc/v20170312/models.go +++ b/tencentcloud/vpc/v20170312/models.go @@ -7904,7 +7904,7 @@ type ModifyVpcAttributeRequest struct { // Whether multicast is enabled. `true`: Enabled. `false`: Off. EnableMulticast *string `json:"EnableMulticast,omitempty" name:"EnableMulticast"` - // DNS address. A maximum of 4 addresses is supported. The first one is master server by default, and the rest are slave servers. + // DNS address. A maximum of 4 addresses is supported. The first one is main server by default, and the rest are subordinate servers. DnsServers []*string `json:"DnsServers,omitempty" name:"DnsServers" list` // Domain name