diff --git a/tencentcloud/batch/v20170312/models.py b/tencentcloud/batch/v20170312/models.py
index 086b5c9b..54647287 100644
--- a/tencentcloud/batch/v20170312/models.py
+++ b/tencentcloud/batch/v20170312/models.py
@@ -2785,7 +2785,7 @@ def _deserialize(self, params):
class Placement(AbstractModel):
- """Describes the location of an instance, including its availability zone, project, host (for CDH products only), master host IP, etc.
+ """Describes the location of an instance, including its availability zone, project, host (for CDH products only), main host IP, etc.
"""
@@ -2797,7 +2797,7 @@ def __init__(self):
:type ProjectId: int
:param HostIds: ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
:type HostIds: list of str
- :param HostIps: Master host IP used to create the CVM
+ :param HostIps: Main host IP used to create the CVM
:type HostIps: list of str
:param HostId:
:type HostId: str
diff --git a/tencentcloud/cdb/v20170320/cdb_client.py b/tencentcloud/cdb/v20170320/cdb_client.py
index a16ab18a..1b59e956 100644
--- a/tencentcloud/cdb/v20170320/cdb_client.py
+++ b/tencentcloud/cdb/v20170320/cdb_client.py
@@ -224,14 +224,14 @@ def CreateDBImportJob(self, request):
def CreateDBInstanceHour(self, request):
- """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.
:param request: Request instance for CreateDBInstanceHour.
@@ -936,7 +936,7 @@ def DescribeDBInstanceRebootTime(self, request):
def DescribeDBInstances(self, request):
- """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.
:param request: Request instance for DescribeDBInstances.
:type request: :class:`tencentcloud.cdb.v20170320.models.DescribeDBInstancesRequest`
@@ -2292,7 +2292,7 @@ def RestartDBInstances(self, request):
"""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.
:param request: Request instance for RestartDBInstances.
@@ -2377,7 +2377,7 @@ def StopDBImportJob(self, request):
def SwitchForUpgrade(self, request):
- """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.
:param request: Request instance for SwitchForUpgrade.
:type request: :class:`tencentcloud.cdb.v20170320.models.SwitchForUpgradeRequest`
@@ -2405,7 +2405,7 @@ def SwitchForUpgrade(self, request):
def UpgradeDBInstance(self, request):
- """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.
:param request: Request instance for UpgradeDBInstance.
:type request: :class:`tencentcloud.cdb.v20170320.models.UpgradeDBInstanceRequest`
@@ -2433,7 +2433,7 @@ def UpgradeDBInstance(self, request):
def UpgradeDBInstanceEngineVersion(self, request):
- """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.
:param request: Request instance for UpgradeDBInstanceEngineVersion.
:type request: :class:`tencentcloud.cdb.v20170320.models.UpgradeDBInstanceEngineVersionRequest`
diff --git a/tencentcloud/cdb/v20170320/models.py b/tencentcloud/cdb/v20170320/models.py
index 5dd3142c..eb049c9f 100644
--- a/tencentcloud/cdb/v20170320/models.py
+++ b/tencentcloud/cdb/v20170320/models.py
@@ -175,19 +175,19 @@ def _deserialize(self, params):
class BackupConfig(AbstractModel):
- """Configuration information of ECDB slave database 2. This field is only applicable to ECDB instances
+ """Configuration information of ECDB subordinate database 2. This field is only applicable to ECDB instances
"""
def __init__(self):
"""
- :param ReplicationMode: Replication mode of slave database 2. Value range: async, semi-sync
+ :param ReplicationMode: Replication mode of subordinate database 2. Value range: async, semi-sync
:type ReplicationMode: str
- :param Zone: Name of the AZ of slave database 2, such as ap-shanghai-1
+ :param Zone: Name of the AZ of subordinate database 2, such as ap-shanghai-1
:type Zone: str
- :param Vip: Private IP address of slave database 2
+ :param Vip: Private IP address of subordinate database 2
:type Vip: str
- :param Vport: Access port of slave database 2
+ :param Vport: Access port of subordinate database 2
:type Vport: int
"""
self.ReplicationMode = None
@@ -713,25 +713,25 @@ def __init__(self):
:type ProjectId: int
:param Zone: 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.
:type Zone: str
- :param MasterInstanceId: 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.
- :type MasterInstanceId: str
- :param InstanceRole: Instance type. Valid values: master (master instance), dr (disaster recovery instance), ro (read-only instance). Default value: master.
+ :param MainInstanceId: 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.
+ :type MainInstanceId: str
+ :param InstanceRole: Instance type. Valid values: main (main instance), dr (disaster recovery instance), ro (read-only instance). Default value: main.
:type InstanceRole: str
- :param MasterRegion: AZ information of the master instance, which is required for purchasing disaster recovery instances.
- :type MasterRegion: str
+ :param MainRegion: AZ information of the main instance, which is required for purchasing disaster recovery instances.
+ :type MainRegion: str
:param Port: Custom port. Value range: [1024-65535].
:type Port: int
- :param Password: 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.
+ :param Password: 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.
:type Password: str
:param ParamList: 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.
:type ParamList: list of ParamInfo
- :param ProtectMode: 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.
+ :param ProtectMode: 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.
:type ProtectMode: int
- :param DeployMode: 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.
+ :param DeployMode: 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.
:type DeployMode: int
- :param SlaveZone: 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.
- :type SlaveZone: str
- :param BackupZone: 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.
+ :param SubordinateZone: 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.
+ :type SubordinateZone: str
+ :param BackupZone: 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.
:type BackupZone: str
:param SecurityGroup: 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.
:type SecurityGroup: list of str
@@ -758,15 +758,15 @@ def __init__(self):
self.UniqSubnetId = None
self.ProjectId = None
self.Zone = None
- self.MasterInstanceId = None
+ self.MainInstanceId = None
self.InstanceRole = None
- self.MasterRegion = None
+ self.MainRegion = None
self.Port = None
self.Password = None
self.ParamList = None
self.ProtectMode = None
self.DeployMode = None
- self.SlaveZone = None
+ self.SubordinateZone = None
self.BackupZone = None
self.SecurityGroup = None
self.RoGroup = None
@@ -787,9 +787,9 @@ def _deserialize(self, params):
self.UniqSubnetId = params.get("UniqSubnetId")
self.ProjectId = params.get("ProjectId")
self.Zone = params.get("Zone")
- self.MasterInstanceId = params.get("MasterInstanceId")
+ self.MainInstanceId = params.get("MainInstanceId")
self.InstanceRole = params.get("InstanceRole")
- self.MasterRegion = params.get("MasterRegion")
+ self.MainRegion = params.get("MainRegion")
self.Port = params.get("Port")
self.Password = params.get("Password")
if params.get("ParamList") is not None:
@@ -800,7 +800,7 @@ def _deserialize(self, params):
self.ParamList.append(obj)
self.ProtectMode = params.get("ProtectMode")
self.DeployMode = params.get("DeployMode")
- self.SlaveZone = params.get("SlaveZone")
+ self.SubordinateZone = params.get("SubordinateZone")
self.BackupZone = params.get("BackupZone")
self.SecurityGroup = params.get("SecurityGroup")
if params.get("RoGroup") is not None:
@@ -966,7 +966,7 @@ def __init__(self):
"""
:param SwitchTime: Switch time in the format of yyyy-MM-dd HH:mm:ss, such as 2017-09-03 01:34:31
:type SwitchTime: str
- :param SwitchType: Switch type. Value range: TRANSFER (data migration), MASTER2SLAVE (master/slave switch), RECOVERY (master/slave recovery)
+ :param SwitchType: Switch type. Value range: TRANSFER (data migration), MASTER2SLAVE (main/subordinate switch), RECOVERY (main/subordinate recovery)
:type SwitchType: str
"""
self.SwitchTime = None
@@ -2007,15 +2007,15 @@ class DescribeDBInstanceConfigResponse(AbstractModel):
def __init__(self):
"""
- :param ProtectMode: Data protection mode of the master instance. Value range: 0 (async replication), 1 (semi-sync replication), 2 (strong sync replication).
+ :param ProtectMode: Data protection mode of the main instance. Value range: 0 (async replication), 1 (semi-sync replication), 2 (strong sync replication).
:type ProtectMode: int
- :param DeployMode: Master instance deployment mode. Value range: 0 (single-AZ), 1 (multi-AZ)
+ :param DeployMode: Main instance deployment mode. Value range: 0 (single-AZ), 1 (multi-AZ)
:type DeployMode: int
:param Zone: Instance AZ information in the format of "ap-shanghai-1".
:type Zone: str
- :param SlaveConfig: Configuration information of the slave database.
- :type SlaveConfig: :class:`tencentcloud.cdb.v20170320.models.SlaveConfig`
- :param BackupConfig: Configuration information of slave database 2 of a strong sync instance.
+ :param SubordinateConfig: Configuration information of the subordinate database.
+ :type SubordinateConfig: :class:`tencentcloud.cdb.v20170320.models.SubordinateConfig`
+ :param BackupConfig: Configuration information of subordinate database 2 of a strong sync instance.
:type BackupConfig: :class:`tencentcloud.cdb.v20170320.models.BackupConfig`
:param RequestId: The unique request ID, which is returned for each request. RequestId is required for locating a problem.
:type RequestId: str
@@ -2023,7 +2023,7 @@ def __init__(self):
self.ProtectMode = None
self.DeployMode = None
self.Zone = None
- self.SlaveConfig = None
+ self.SubordinateConfig = None
self.BackupConfig = None
self.RequestId = None
@@ -2032,9 +2032,9 @@ def _deserialize(self, params):
self.ProtectMode = params.get("ProtectMode")
self.DeployMode = params.get("DeployMode")
self.Zone = params.get("Zone")
- if params.get("SlaveConfig") is not None:
- self.SlaveConfig = SlaveConfig()
- self.SlaveConfig._deserialize(params.get("SlaveConfig"))
+ if params.get("SubordinateConfig") is not None:
+ self.SubordinateConfig = SubordinateConfig()
+ self.SubordinateConfig._deserialize(params.get("SubordinateConfig"))
if params.get("BackupConfig") is not None:
self.BackupConfig = BackupConfig()
self.BackupConfig._deserialize(params.get("BackupConfig"))
@@ -2191,7 +2191,7 @@ def __init__(self):
"""
:param ProjectId: Project ID. You can use the [project list querying API](https://cloud.tencent.com/document/product/378/4400) to query the project ID.
:type ProjectId: int
- :param InstanceTypes: Instance type. Value range: 1 (master), 2 (disaster recovery), 3 (read-only).
+ :param InstanceTypes: Instance type. Value range: 1 (main), 2 (disaster recovery), 3 (read-only).
:type InstanceTypes: list of int non-negative
:param Vips: Private IP address of the instance.
:type Vips: list of str
@@ -2207,7 +2207,7 @@ def __init__(self):
:type PayTypes: list of int non-negative
:param InstanceNames: Instance name.
:type InstanceNames: list of str
- :param TaskStatus: 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
+ :param TaskStatus: 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
:type TaskStatus: list of int non-negative
:param EngineVersions: Version of the instance database engine. Value range: 5.1, 5.5, 5.6, 5.7.
:type EngineVersions: list of str
@@ -2233,12 +2233,12 @@ def __init__(self):
:type InstanceIds: list of str
:param InitFlag: Initialization flag. Value range: 0 (not initialized), 1 (initialized).
:type InitFlag: int
- :param WithDr: 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.
+ :param WithDr: 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.
:type WithDr: int
:param WithRo: Whether read-only instances are included. Valid values: 0 (not included), 1 (included). Default value: 1.
:type WithRo: int
- :param WithMaster: Whether master instances are included. Valid values: 0 (not included), 1 (included). Default value: 1.
- :type WithMaster: int
+ :param WithMain: Whether main instances are included. Valid values: 0 (not included), 1 (included). Default value: 1.
+ :type WithMain: int
:param DeployGroupIds: Placement group ID list.
:type DeployGroupIds: list of str
"""
@@ -2266,7 +2266,7 @@ def __init__(self):
self.InitFlag = None
self.WithDr = None
self.WithRo = None
- self.WithMaster = None
+ self.WithMain = None
self.DeployGroupIds = None
@@ -2295,7 +2295,7 @@ def _deserialize(self, params):
self.InitFlag = params.get("InitFlag")
self.WithDr = params.get("WithDr")
self.WithRo = params.get("WithRo")
- self.WithMaster = params.get("WithMaster")
+ self.WithMain = params.get("WithMain")
self.DeployGroupIds = params.get("DeployGroupIds")
@@ -3529,7 +3529,7 @@ def __init__(self):
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.
:type TaskTypes: list of int
@@ -4132,9 +4132,9 @@ def __init__(self):
:type Status: int
:param VpcId: VPC ID, such as 51102
:type VpcId: int
- :param SlaveInfo: Information of a slave server
+ :param SubordinateInfo: Information of a subordinate server
Note: This field may return null, indicating that no valid values can be obtained.
- :type SlaveInfo: :class:`tencentcloud.cdb.v20170320.models.SlaveInfo`
+ :type SubordinateInfo: :class:`tencentcloud.cdb.v20170320.models.SubordinateInfo`
:param InstanceId: Instance ID
:type InstanceId: str
:param Volume: Disk capacity in GB
@@ -4148,7 +4148,7 @@ def __init__(self):
:type RoGroups: list of RoGroup
:param SubnetId: Subnet ID, such as 2333
:type SubnetId: int
- :param InstanceType: Instance type. Value range: 1 (master), 2 (disaster recovery), 3 (read-only)
+ :param InstanceType: Instance type. Value range: 1 (main), 2 (disaster recovery), 3 (read-only)
:type InstanceType: int
:param ProjectId: Project ID
:type ProjectId: int
@@ -4158,11 +4158,11 @@ def __init__(self):
:type DeadlineTime: str
:param DeployMode: AZ deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ)
:type DeployMode: int
- :param TaskStatus: 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
+ :param TaskStatus: 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
:type TaskStatus: int
- :param MasterInfo: Details of a master instance
+ :param MainInfo: Details of a main instance
Note: This field may return null, indicating that no valid values can be obtained.
- :type MasterInfo: :class:`tencentcloud.cdb.v20170320.models.MasterInfo`
+ :type MainInfo: :class:`tencentcloud.cdb.v20170320.models.MainInfo`
:param DeviceType: Instance type. Value range: HA (High-Availability Edition), FE (Finance Edition), BASIC (Basic Edition)
:type DeviceType: str
:param EngineVersion: Kernel version
@@ -4215,7 +4215,7 @@ def __init__(self):
self.Memory = None
self.Status = None
self.VpcId = None
- self.SlaveInfo = None
+ self.SubordinateInfo = None
self.InstanceId = None
self.Volume = None
self.AutoRenew = None
@@ -4228,7 +4228,7 @@ def __init__(self):
self.DeadlineTime = None
self.DeployMode = None
self.TaskStatus = None
- self.MasterInfo = None
+ self.MainInfo = None
self.DeviceType = None
self.EngineVersion = None
self.InstanceName = None
@@ -4261,9 +4261,9 @@ def _deserialize(self, params):
self.Memory = params.get("Memory")
self.Status = params.get("Status")
self.VpcId = params.get("VpcId")
- if params.get("SlaveInfo") is not None:
- self.SlaveInfo = SlaveInfo()
- self.SlaveInfo._deserialize(params.get("SlaveInfo"))
+ if params.get("SubordinateInfo") is not None:
+ self.SubordinateInfo = SubordinateInfo()
+ self.SubordinateInfo._deserialize(params.get("SubordinateInfo"))
self.InstanceId = params.get("InstanceId")
self.Volume = params.get("Volume")
self.AutoRenew = params.get("AutoRenew")
@@ -4281,9 +4281,9 @@ def _deserialize(self, params):
self.DeadlineTime = params.get("DeadlineTime")
self.DeployMode = params.get("DeployMode")
self.TaskStatus = params.get("TaskStatus")
- if params.get("MasterInfo") is not None:
- self.MasterInfo = MasterInfo()
- self.MasterInfo._deserialize(params.get("MasterInfo"))
+ if params.get("MainInfo") is not None:
+ self.MainInfo = MainInfo()
+ self.MainInfo._deserialize(params.get("MainInfo"))
self.DeviceType = params.get("DeviceType")
self.EngineVersion = params.get("EngineVersion")
self.InstanceName = params.get("InstanceName")
@@ -4405,8 +4405,8 @@ def _deserialize(self, params):
self.RequestId = params.get("RequestId")
-class MasterInfo(AbstractModel):
- """Master instance information
+class MainInfo(AbstractModel):
+ """Main instance information
"""
@@ -5685,7 +5685,7 @@ def __init__(self):
:type RoGroupId: str
:param RoGroupName: Read-only group name.
:type RoGroupName: str
- :param RoOfflineDelay: 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)
+ :param RoOfflineDelay: 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)
:type RoOfflineDelay: int
:param RoMaxDelayTime: Latency threshold
:type RoMaxDelayTime: int
@@ -5794,8 +5794,8 @@ class RoInstanceInfo(AbstractModel):
def __init__(self):
"""
- :param MasterInstanceId: Master instance ID corresponding to the RO group
- :type MasterInstanceId: str
+ :param MainInstanceId: Main instance ID corresponding to the RO group
+ :type MainInstanceId: str
:param RoStatus: RO instance status in the RO group. Value range: online, offline
:type RoStatus: str
:param OfflineTime: Last deactivation time of a RO instance in the RO group
@@ -5810,13 +5810,13 @@ def __init__(self):
:type InstanceId: str
:param Status: RO instance status. Value range: 0 (creating), 1 (running), 4 (deleting)
:type Status: int
- :param InstanceType: Instance type. Value range: 1 (master), 2 (disaster recovery), 3 (read-only)
+ :param InstanceType: Instance type. Value range: 1 (main), 2 (disaster recovery), 3 (read-only)
:type InstanceType: int
:param InstanceName: RO instance name
:type InstanceName: str
:param HourFeeStatus: Pay-as-you-go billing status. Value range: 1 (normal), 2 (in arrears)
:type HourFeeStatus: int
- :param TaskStatus: 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
+ :param TaskStatus: 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
:type TaskStatus: int
:param Memory: RO instance memory size in MB
:type Memory: int
@@ -5841,7 +5841,7 @@ def __init__(self):
:param PayType: RO instance billing method. Value range: 0 (monthly subscribed), 1 (pay-as-you-go), 2 (monthly postpaid)
:type PayType: int
"""
- self.MasterInstanceId = None
+ self.MainInstanceId = None
self.RoStatus = None
self.OfflineTime = None
self.Weight = None
@@ -5867,7 +5867,7 @@ def __init__(self):
def _deserialize(self, params):
- self.MasterInstanceId = params.get("MasterInstanceId")
+ self.MainInstanceId = params.get("MainInstanceId")
self.RoStatus = params.get("RoStatus")
self.OfflineTime = params.get("OfflineTime")
self.Weight = params.get("Weight")
@@ -6280,16 +6280,16 @@ def _deserialize(self, params):
self.Configs.append(obj)
-class SlaveConfig(AbstractModel):
+class SubordinateConfig(AbstractModel):
"""Configuration information of the salve database
"""
def __init__(self):
"""
- :param ReplicationMode: Replication mode of the slave database. Value range: async, semi-sync
+ :param ReplicationMode: Replication mode of the subordinate database. Value range: async, semi-sync
:type ReplicationMode: str
- :param Zone: AZ name of the slave database, such as ap-shanghai-1
+ :param Zone: AZ name of the subordinate database, such as ap-shanghai-1
:type Zone: str
"""
self.ReplicationMode = None
@@ -6301,18 +6301,18 @@ def _deserialize(self, params):
self.Zone = params.get("Zone")
-class SlaveInfo(AbstractModel):
- """Slave server information
+class SubordinateInfo(AbstractModel):
+ """Subordinate server information
"""
def __init__(self):
"""
- :param First: Information of slave server 1
- :type First: :class:`tencentcloud.cdb.v20170320.models.SlaveInstanceInfo`
- :param Second: Information of slave server 2
+ :param First: Information of subordinate server 1
+ :type First: :class:`tencentcloud.cdb.v20170320.models.SubordinateInstanceInfo`
+ :param Second: Information of subordinate server 2
Note: This field may return null, indicating that no valid values can be obtained.
- :type Second: :class:`tencentcloud.cdb.v20170320.models.SlaveInstanceInfo`
+ :type Second: :class:`tencentcloud.cdb.v20170320.models.SubordinateInstanceInfo`
"""
self.First = None
self.Second = None
@@ -6320,15 +6320,15 @@ def __init__(self):
def _deserialize(self, params):
if params.get("First") is not None:
- self.First = SlaveInstanceInfo()
+ self.First = SubordinateInstanceInfo()
self.First._deserialize(params.get("First"))
if params.get("Second") is not None:
- self.Second = SlaveInstanceInfo()
+ self.Second = SubordinateInstanceInfo()
self.Second._deserialize(params.get("Second"))
-class SlaveInstanceInfo(AbstractModel):
- """Slave server information
+class SubordinateInstanceInfo(AbstractModel):
+ """Subordinate server information
"""
@@ -6756,7 +6756,7 @@ def __init__(self):
"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.
:type TaskType: str
@@ -6804,7 +6804,7 @@ def __init__(self):
"""
:param InstanceId: 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.
:type InstanceId: str
- :param EngineVersion: Version of master instance database engine. Value range: 5.6, 5.7
+ :param EngineVersion: Version of main instance database engine. Value range: 5.6, 5.7
:type EngineVersion: str
:param WaitSwitch: 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.
:type WaitSwitch: int
@@ -6854,19 +6854,19 @@ def __init__(self):
:type Memory: int
:param Volume: 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.
:type Volume: int
- :param ProtectMode: 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.
+ :param ProtectMode: 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.
:type ProtectMode: int
- :param DeployMode: 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.
+ :param DeployMode: 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.
:type DeployMode: int
- :param SlaveZone: 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.
- :type SlaveZone: str
- :param EngineVersion: Version of master instance database engine. Valid values: 5.5, 5.6, 5.7.
+ :param SubordinateZone: 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.
+ :type SubordinateZone: str
+ :param EngineVersion: Version of main instance database engine. Valid values: 5.5, 5.6, 5.7.
:type EngineVersion: str
:param WaitSwitch: 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.
:type WaitSwitch: int
- :param BackupZone: 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.
+ :param BackupZone: 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.
:type BackupZone: str
- :param InstanceRole: Instance type. Valid values: master (master instance), dr (disaster recovery instance), ro (read-only instance). Default value: master.
+ :param InstanceRole: Instance type. Valid values: main (main instance), dr (disaster recovery instance), ro (read-only instance). Default value: main.
:type InstanceRole: str
"""
self.InstanceId = None
@@ -6874,7 +6874,7 @@ def __init__(self):
self.Volume = None
self.ProtectMode = None
self.DeployMode = None
- self.SlaveZone = None
+ self.SubordinateZone = None
self.EngineVersion = None
self.WaitSwitch = None
self.BackupZone = None
@@ -6887,7 +6887,7 @@ def _deserialize(self, params):
self.Volume = params.get("Volume")
self.ProtectMode = params.get("ProtectMode")
self.DeployMode = params.get("DeployMode")
- self.SlaveZone = params.get("SlaveZone")
+ self.SubordinateZone = params.get("SubordinateZone")
self.EngineVersion = params.get("EngineVersion")
self.WaitSwitch = params.get("WaitSwitch")
self.BackupZone = params.get("BackupZone")
@@ -6949,23 +6949,23 @@ def __init__(self):
"""
:param DeployMode: AZ deployment mode. Value range: 0 (single-AZ), 1 (multi-AZ)
:type DeployMode: list of int
- :param MasterZone: AZ where the master instance is located
- :type MasterZone: list of str
- :param SlaveZone: AZ where salve database 1 is located when the instance is deployed in multi-AZ mode
- :type SlaveZone: list of str
+ :param MainZone: AZ where the main instance is located
+ :type MainZone: list of str
+ :param SubordinateZone: AZ where salve database 1 is located when the instance is deployed in multi-AZ mode
+ :type SubordinateZone: list of str
:param BackupZone: AZ where salve database 2 is located when the instance is deployed in multi-AZ mode
:type BackupZone: list of str
"""
self.DeployMode = None
- self.MasterZone = None
- self.SlaveZone = None
+ self.MainZone = None
+ self.SubordinateZone = None
self.BackupZone = None
def _deserialize(self, params):
self.DeployMode = params.get("DeployMode")
- self.MasterZone = params.get("MasterZone")
- self.SlaveZone = params.get("SlaveZone")
+ self.MainZone = params.get("MainZone")
+ self.SubordinateZone = params.get("SubordinateZone")
self.BackupZone = params.get("BackupZone")
diff --git a/tencentcloud/cdn/v20180606/models.py b/tencentcloud/cdn/v20180606/models.py
index 3940df3a..1fce9eac 100644
--- a/tencentcloud/cdn/v20180606/models.py
+++ b/tencentcloud/cdn/v20180606/models.py
@@ -3058,13 +3058,13 @@ class DomainFilter(AbstractModel):
def __init__(self):
"""
:param Name: 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.
@@ -4377,11 +4377,11 @@ class Origin(AbstractModel):
def __init__(self):
"""
- :param Origins: Master origin server list
+ :param Origins: 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.
:type Origins: list of str
- :param OriginType: Master origin server type
+ :param OriginType: Main origin server type
The following types are supported for input parameters:
domain: domain name type
cos: COS origin
@@ -4395,7 +4395,7 @@ def __init__(self):
The IPv6 feature is not generally available yet. Please send in a whitelist application to use this feature.
Note: this field may return null, indicating that no valid values can be obtained.
:type OriginType: str
- :param ServerName: Host header used when accessing the master origin server. If left empty, the acceleration domain name will be used by default.
+ :param ServerName: 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.
:type ServerName: str
@@ -4419,7 +4419,7 @@ def __init__(self):
When modifying BackupOrigins, you need to enter the corresponding BackupOriginType.
Note: this field may return null, indicating that no valid values can be obtained.
:type BackupOriginType: str
- :param BackupServerName: Host header used when accessing the backup origin server. If left empty, the ServerName of master origin server will be used by default.
+ :param BackupServerName: 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.
:type BackupServerName: str
:param BasePath: Origin-pull path
diff --git a/tencentcloud/cvm/v20170312/models.py b/tencentcloud/cvm/v20170312/models.py
index 250a1d13..94465f93 100644
--- a/tencentcloud/cvm/v20170312/models.py
+++ b/tencentcloud/cvm/v20170312/models.py
@@ -3485,7 +3485,7 @@ def _deserialize(self, params):
class Placement(AbstractModel):
- """Describes the location of an instance, including its availability zone, project, host (for CDH products only), master host IP, etc.
+ """Describes the location of an instance, including its availability zone, project, host (for CDH products only), main host IP, etc.
"""
@@ -3497,7 +3497,7 @@ def __init__(self):
:type ProjectId: int
:param HostIds: ID list of CDHs from which the instance can be created. If you have purchased CDHs and specify this parameter, the instances you purchase will be randomly deployed on the CDHs.
:type HostIds: list of str
- :param HostIps: Master host IP used to create the CVM
+ :param HostIps: Main host IP used to create the CVM
:type HostIps: list of str
:param HostId:
:type HostId: str
diff --git a/tencentcloud/dcdb/v20180411/models.py b/tencentcloud/dcdb/v20180411/models.py
index b60b35dd..694f144e 100644
--- a/tencentcloud/dcdb/v20180411/models.py
+++ b/tencentcloud/dcdb/v20180411/models.py
@@ -210,11 +210,11 @@ def __init__(self):
:type Host: str
:param Password: Account password, which can contain 6–32 letters, digits, and common symbols but not semicolons, single quotation marks, and double quotation marks.
:type Password: str
- :param ReadOnly: 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.
+ :param ReadOnly: 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.
:type ReadOnly: int
:param Description: Account remarks, which can contain 0–256 letters, digits, and common symbols.
:type Description: str
- :param DelayThresh: If the slave delay exceeds the set value of this parameter, the slave will be deemed to have failed.
+ :param DelayThresh: 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.
:type DelayThresh: int
"""
@@ -287,9 +287,9 @@ def __init__(self):
:type CreateTime: str
:param UpdateTime: Last updated time
:type UpdateTime: str
- :param ReadOnly: 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.
+ :param ReadOnly: 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.
:type ReadOnly: int
- :param DelayThresh: If the slave delay exceeds the set value of this parameter, the slave will be deemed to have failed.
+ :param DelayThresh: 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.
:type DelayThresh: int
"""
@@ -382,7 +382,7 @@ def __init__(self):
:type Uin: str
:param ShardDetail: Shard details
:type ShardDetail: list of ShardInfo
- :param NodeCount: Number of nodes. 2: one master and one slave; 3: one master and two slaves
+ :param NodeCount: Number of nodes. 2: one main and one subordinate; 3: one main and two subordinates
:type NodeCount: int
:param IsTmp: Temporary instance flag. 0: non-temporary instance
:type IsTmp: int
@@ -543,7 +543,7 @@ def __init__(self):
:type Storage: int
:param PeriodEndTime: Expiration time
:type PeriodEndTime: str
- :param NodeCount: Number of nodes. 2: one master and one slave; 3: one master and two slaves
+ :param NodeCount: Number of nodes. 2: one main and one subordinate; 3: one main and two subordinates
:type NodeCount: int
:param StorageUsage: Storage utilization in %
:type StorageUsage: float
@@ -558,12 +558,12 @@ def __init__(self):
:param Paymode: Billing mode
Note: this field may return null, indicating that no valid values can be obtained.
:type Paymode: str
- :param ShardMasterZone: Master AZ of a shard
+ :param ShardMainZone: Main AZ of a shard
Note: this field may return null, indicating that no valid values can be obtained.
- :type ShardMasterZone: str
- :param ShardSlaveZones: List of slave AZs of a shard
+ :type ShardMainZone: str
+ :param ShardSubordinateZones: List of subordinate AZs of a shard
Note: this field may return null, indicating that no valid values can be obtained.
- :type ShardSlaveZones: list of str
+ :type ShardSubordinateZones: list of str
:param Cpu: Number of CPU cores
:type Cpu: int
"""
@@ -588,8 +588,8 @@ def __init__(self):
self.Pid = None
self.ProxyVersion = None
self.Paymode = None
- self.ShardMasterZone = None
- self.ShardSlaveZones = None
+ self.ShardMainZone = None
+ self.ShardSubordinateZones = None
self.Cpu = None
@@ -615,8 +615,8 @@ def _deserialize(self, params):
self.Pid = params.get("Pid")
self.ProxyVersion = params.get("ProxyVersion")
self.Paymode = params.get("Paymode")
- self.ShardMasterZone = params.get("ShardMasterZone")
- self.ShardSlaveZones = params.get("ShardSlaveZones")
+ self.ShardMainZone = params.get("ShardMainZone")
+ self.ShardSubordinateZones = params.get("ShardSubordinateZones")
self.Cpu = params.get("Cpu")
@@ -2010,7 +2010,7 @@ def __init__(self):
:type Storage: int
:param ShardId: Numeric ID of a shard
:type ShardId: int
- :param NodeCount: Number of nodes. 2: one master and one slave; 3: one master and two slaves
+ :param NodeCount: Number of nodes. 2: one main and one subordinate; 3: one main and two subordinates
:type NodeCount: int
:param Pid: Product type ID (this field is obsolete and should not be depended on)
:type Pid: int
diff --git a/tencentcloud/dts/v20180330/dts_client.py b/tencentcloud/dts/v20180330/dts_client.py
index f6567e21..245c8e61 100644
--- a/tencentcloud/dts/v20180330/dts_client.py
+++ b/tencentcloud/dts/v20180330/dts_client.py
@@ -860,20 +860,20 @@ def StopMigrateJob(self, request):
raise TencentCloudSDKException(e.message, e.message)
- def SwitchDrToMaster(self, request):
- """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.
+ def SwitchDrToMain(self, request):
+ """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.
- :param request: Request instance for SwitchDrToMaster.
- :type request: :class:`tencentcloud.dts.v20180330.models.SwitchDrToMasterRequest`
- :rtype: :class:`tencentcloud.dts.v20180330.models.SwitchDrToMasterResponse`
+ :param request: Request instance for SwitchDrToMain.
+ :type request: :class:`tencentcloud.dts.v20180330.models.SwitchDrToMainRequest`
+ :rtype: :class:`tencentcloud.dts.v20180330.models.SwitchDrToMainResponse`
"""
try:
params = request._serialize()
- body = self.call("SwitchDrToMaster", params)
+ body = self.call("SwitchDrToMain", params)
response = json.loads(body)
if "Error" not in response["Response"]:
- model = models.SwitchDrToMasterResponse()
+ model = models.SwitchDrToMainResponse()
model._deserialize(response["Response"])
return model
else:
diff --git a/tencentcloud/dts/v20180330/models.py b/tencentcloud/dts/v20180330/models.py
index 284cef70..d85043bd 100644
--- a/tencentcloud/dts/v20180330/models.py
+++ b/tencentcloud/dts/v20180330/models.py
@@ -1146,10 +1146,10 @@ def __init__(self):
:type Progress: str
:param CurrentStepProgress: Progress of current step, such as "1"
:type CurrentStepProgress: str
- :param MasterSlaveDistance: Master/slave lag in MB, which is valid during incremental sync and currently supported by TencentDB for Redis and MySQL
- :type MasterSlaveDistance: int
- :param SecondsBehindMaster: Master/slave lag in seconds, which is valid during incremental sync and currently supported by TencentDB for MySQL
- :type SecondsBehindMaster: int
+ :param MainSubordinateDistance: Main/subordinate lag in MB, which is valid during incremental sync and currently supported by TencentDB for Redis and MySQL
+ :type MainSubordinateDistance: int
+ :param SecondsBehindMain: Main/subordinate lag in seconds, which is valid during incremental sync and currently supported by TencentDB for MySQL
+ :type SecondsBehindMain: int
:param StepInfo: Step information
:type StepInfo: list of MigrateStepDetailInfo
"""
@@ -1157,8 +1157,8 @@ def __init__(self):
self.StepNow = None
self.Progress = None
self.CurrentStepProgress = None
- self.MasterSlaveDistance = None
- self.SecondsBehindMaster = None
+ self.MainSubordinateDistance = None
+ self.SecondsBehindMain = None
self.StepInfo = None
@@ -1167,8 +1167,8 @@ def _deserialize(self, params):
self.StepNow = params.get("StepNow")
self.Progress = params.get("Progress")
self.CurrentStepProgress = params.get("CurrentStepProgress")
- self.MasterSlaveDistance = params.get("MasterSlaveDistance")
- self.SecondsBehindMaster = params.get("SecondsBehindMaster")
+ self.MainSubordinateDistance = params.get("MainSubordinateDistance")
+ self.SecondsBehindMain = params.get("SecondsBehindMain")
if params.get("StepInfo") is not None:
self.StepInfo = []
for item in params.get("StepInfo"):
@@ -1289,9 +1289,9 @@ def __init__(self):
:param ExternParams: 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)
}
@@ -2072,8 +2072,8 @@ def _deserialize(self, params):
self.Status = params.get("Status")
-class SwitchDrToMasterRequest(AbstractModel):
- """SwitchDrToMaster request structure.
+class SwitchDrToMainRequest(AbstractModel):
+ """SwitchDrToMain request structure.
"""
@@ -2095,8 +2095,8 @@ def _deserialize(self, params):
self.DatabaseType = params.get("DatabaseType")
-class SwitchDrToMasterResponse(AbstractModel):
- """SwitchDrToMaster response structure.
+class SwitchDrToMainResponse(AbstractModel):
+ """SwitchDrToMain response structure.
"""
@@ -2160,10 +2160,10 @@ def __init__(self):
:type Progress: str
:param CurrentStepProgress: Progress of the current step
:type CurrentStepProgress: str
- :param MasterSlaveDistance: Master/slave delay in MB
- :type MasterSlaveDistance: int
- :param SecondsBehindMaster: Master/slave delay in seconds
- :type SecondsBehindMaster: int
+ :param MainSubordinateDistance: Main/subordinate delay in MB
+ :type MainSubordinateDistance: int
+ :param SecondsBehindMain: Main/subordinate delay in seconds
+ :type SecondsBehindMain: int
:param StepInfo: Step information
:type StepInfo: list of SyncStepDetailInfo
"""
@@ -2171,8 +2171,8 @@ def __init__(self):
self.StepNow = None
self.Progress = None
self.CurrentStepProgress = None
- self.MasterSlaveDistance = None
- self.SecondsBehindMaster = None
+ self.MainSubordinateDistance = None
+ self.SecondsBehindMain = None
self.StepInfo = None
@@ -2181,8 +2181,8 @@ def _deserialize(self, params):
self.StepNow = params.get("StepNow")
self.Progress = params.get("Progress")
self.CurrentStepProgress = params.get("CurrentStepProgress")
- self.MasterSlaveDistance = params.get("MasterSlaveDistance")
- self.SecondsBehindMaster = params.get("SecondsBehindMaster")
+ self.MainSubordinateDistance = params.get("MainSubordinateDistance")
+ self.SecondsBehindMain = params.get("SecondsBehindMain")
if params.get("StepInfo") is not None:
self.StepInfo = []
for item in params.get("StepInfo"):
@@ -2192,7 +2192,7 @@ def _deserialize(self, params):
class SyncInstanceInfo(AbstractModel):
- """Instance information of disaster recovery sync, which records the information of the master instance or disaster recovery instance
+ """Instance information of disaster recovery sync, which records the information of the main instance or disaster recovery instance
"""
diff --git a/tencentcloud/emr/v20190103/models.py b/tencentcloud/emr/v20190103/models.py
index cb8dbca3..f88fdcad 100644
--- a/tencentcloud/emr/v20190103/models.py
+++ b/tencentcloud/emr/v20190103/models.py
@@ -208,9 +208,9 @@ def __init__(self):
:param Config: Cluster product configuration information
Note: this field may return null, indicating that no valid values can be obtained.
:type Config: :class:`tencentcloud.emr.v20190103.models.EmrProductConfigOutter`
- :param MasterIp: Public IP of master node
+ :param MainIp: Public IP of main node
Note: this field may return null, indicating that no valid values can be obtained.
- :type MasterIp: str
+ :type MainIp: str
:param EmrVersion: EMR version
Note: this field may return null, indicating that no valid values can be obtained.
:type EmrVersion: str
@@ -266,7 +266,7 @@ def __init__(self):
self.AddTime = None
self.RunTime = None
self.Config = None
- self.MasterIp = None
+ self.MainIp = None
self.EmrVersion = None
self.ChargeType = None
self.TradeVersion = None
@@ -300,7 +300,7 @@ def _deserialize(self, params):
if params.get("Config") is not None:
self.Config = EmrProductConfigOutter()
self.Config._deserialize(params.get("Config"))
- self.MasterIp = params.get("MasterIp")
+ self.MainIp = params.get("MainIp")
self.EmrVersion = params.get("EmrVersion")
self.ChargeType = params.get("ChargeType")
self.TradeVersion = params.get("TradeVersion")
@@ -381,10 +381,10 @@ def __init__(self):
:type AutoRenew: int
:param ClientToken: Client token.
:type ClientToken: str
- :param NeedMasterWan: Whether to enable public IP access for master node. Valid values:
-