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: -
  • 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. - :type NeedMasterWan: str + :param NeedMainWan: 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. + :type NeedMainWan: str :param RemoteLoginAtCreate: Whether to enable remote public network login, i.e., port 22. When `SgId` is not empty, this parameter does not take effect. :type RemoteLoginAtCreate: int :param CheckSecurity: Whether to enable secure cluster. 0: no; other values: yes. @@ -423,7 +423,7 @@ def __init__(self): self.PreExecutedFileSettings = None self.AutoRenew = None self.ClientToken = None - self.NeedMasterWan = None + self.NeedMainWan = None self.RemoteLoginAtCreate = None self.CheckSecurity = None self.ExtendFsField = None @@ -467,7 +467,7 @@ def _deserialize(self, params): self.PreExecutedFileSettings.append(obj) self.AutoRenew = params.get("AutoRenew") self.ClientToken = params.get("ClientToken") - self.NeedMasterWan = params.get("NeedMasterWan") + self.NeedMainWan = params.get("NeedMainWan") self.RemoteLoginAtCreate = params.get("RemoteLoginAtCreate") self.CheckSecurity = params.get("CheckSecurity") self.ExtendFsField = params.get("ExtendFsField") @@ -539,7 +539,7 @@ def __init__(self): :type InstanceId: str :param NodeFlag: 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.
  • @@ -696,9 +696,9 @@ def __init__(self): :param SoftInfo: Software information Note: this field may return null, indicating that no valid values can be obtained. :type SoftInfo: list of str - :param MasterNodeSize: Number of master nodes + :param MainNodeSize: Number of main nodes Note: this field may return null, indicating that no valid values can be obtained. - :type MasterNodeSize: int + :type MainNodeSize: int :param CoreNodeSize: Number of core nodes Note: this field may return null, indicating that no valid values can be obtained. :type CoreNodeSize: int @@ -708,9 +708,9 @@ def __init__(self): :param ComNodeSize: Number of common nodes Note: this field may return null, indicating that no valid values can be obtained. :type ComNodeSize: int - :param MasterResource: Master node resource + :param MainResource: Main node resource Note: this field may return null, indicating that no valid values can be obtained. - :type MasterResource: :class:`tencentcloud.emr.v20190103.models.OutterResource` + :type MainResource: :class:`tencentcloud.emr.v20190103.models.OutterResource` :param CoreResource: Core node resource Note: this field may return null, indicating that no valid values can be obtained. :type CoreResource: :class:`tencentcloud.emr.v20190103.models.OutterResource` @@ -743,11 +743,11 @@ def __init__(self): :type CbsEncrypt: int """ self.SoftInfo = None - self.MasterNodeSize = None + self.MainNodeSize = None self.CoreNodeSize = None self.TaskNodeSize = None self.ComNodeSize = None - self.MasterResource = None + self.MainResource = None self.CoreResource = None self.TaskResource = None self.ComResource = None @@ -762,13 +762,13 @@ def __init__(self): def _deserialize(self, params): self.SoftInfo = params.get("SoftInfo") - self.MasterNodeSize = params.get("MasterNodeSize") + self.MainNodeSize = params.get("MainNodeSize") self.CoreNodeSize = params.get("CoreNodeSize") self.TaskNodeSize = params.get("TaskNodeSize") self.ComNodeSize = params.get("ComNodeSize") - if params.get("MasterResource") is not None: - self.MasterResource = OutterResource() - self.MasterResource._deserialize(params.get("MasterResource")) + if params.get("MainResource") is not None: + self.MainResource = OutterResource() + self.MainResource._deserialize(params.get("MainResource")) if params.get("CoreResource") is not None: self.CoreResource = OutterResource() self.CoreResource._deserialize(params.get("CoreResource")) @@ -1246,14 +1246,14 @@ class NewResourceSpec(AbstractModel): def __init__(self): """ - :param MasterResourceSpec: Describes master node resource - :type MasterResourceSpec: :class:`tencentcloud.emr.v20190103.models.Resource` + :param MainResourceSpec: Describes main node resource + :type MainResourceSpec: :class:`tencentcloud.emr.v20190103.models.Resource` :param CoreResourceSpec: Describes core node resource :type CoreResourceSpec: :class:`tencentcloud.emr.v20190103.models.Resource` :param TaskResourceSpec: Describes task node resource :type TaskResourceSpec: :class:`tencentcloud.emr.v20190103.models.Resource` - :param MasterCount: Number of master nodes - :type MasterCount: int + :param MainCount: Number of main nodes + :type MainCount: int :param CoreCount: Number of core nodes :type CoreCount: int :param TaskCount: Number of task nodes @@ -1263,10 +1263,10 @@ def __init__(self): :param CommonCount: Number of common nodes :type CommonCount: int """ - self.MasterResourceSpec = None + self.MainResourceSpec = None self.CoreResourceSpec = None self.TaskResourceSpec = None - self.MasterCount = None + self.MainCount = None self.CoreCount = None self.TaskCount = None self.CommonResourceSpec = None @@ -1274,16 +1274,16 @@ def __init__(self): def _deserialize(self, params): - if params.get("MasterResourceSpec") is not None: - self.MasterResourceSpec = Resource() - self.MasterResourceSpec._deserialize(params.get("MasterResourceSpec")) + if params.get("MainResourceSpec") is not None: + self.MainResourceSpec = Resource() + self.MainResourceSpec._deserialize(params.get("MainResourceSpec")) if params.get("CoreResourceSpec") is not None: self.CoreResourceSpec = Resource() self.CoreResourceSpec._deserialize(params.get("CoreResourceSpec")) if params.get("TaskResourceSpec") is not None: self.TaskResourceSpec = Resource() self.TaskResourceSpec._deserialize(params.get("TaskResourceSpec")) - self.MasterCount = params.get("MasterCount") + self.MainCount = params.get("MainCount") self.CoreCount = params.get("CoreCount") self.TaskCount = params.get("TaskCount") if params.get("CommonResourceSpec") is not None: @@ -1308,7 +1308,7 @@ def __init__(self): :param OrderNo: Machine instance ID Note: this field may return null, indicating that no valid values can be obtained. :type OrderNo: str - :param WanIp: Public IP bound to master node + :param WanIp: Public IP bound to main node Note: this field may return null, indicating that no valid values can be obtained. :type WanIp: str :param Flag: Node type diff --git a/tencentcloud/es/v20180416/es_client.py b/tencentcloud/es/v20180416/es_client.py index b535ce22..41658771 100644 --- a/tencentcloud/es/v20180416/es_client.py +++ b/tencentcloud/es/v20180416/es_client.py @@ -196,7 +196,7 @@ def RestartInstance(self, request): def UpdateInstance(self, request): """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.py b/tencentcloud/es/v20180416/models.py index 55cc19aa..d223962d 100644 --- a/tencentcloud/es/v20180416/models.py +++ b/tencentcloud/es/v20180416/models.py @@ -80,18 +80,18 @@ def __init__(self): :type AutoVoucher: int :param VoucherIds: List of voucher IDs (only one voucher can be specified at a time currently) :type VoucherIds: list of str - :param EnableDedicatedMaster: This parameter has been disused. Please use `NodeInfoList` -Whether to create a dedicated master node
  • true: yes
  • false: no
  • Default value: false - :type EnableDedicatedMaster: bool - :param MasterNodeNum: 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`) - :type MasterNodeNum: int - :param MasterNodeType: 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
  • - :type MasterNodeType: str - :param MasterNodeDiskSize: 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 - :type MasterNodeDiskSize: int + :param EnableDedicatedMain: This parameter has been disused. Please use `NodeInfoList` +Whether to create a dedicated main node
  • true: yes
  • false: no
  • Default value: false + :type EnableDedicatedMain: bool + :param MainNodeNum: This parameter has been disused. Please use `NodeInfoList` +Number of dedicated main nodes (only 3 and 5 are supported. This value must be passed in if `EnableDedicatedMain` is `true`) + :type MainNodeNum: int + :param MainNodeType: This parameter has been disused. Please use `NodeInfoList` +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
  • + :type MainNodeType: str + :param MainNodeDiskSize: This parameter has been disused. Please use `NodeInfoList` +Dedicated main node disk size in GB, which is optional. If passed in, it can only be 50 and cannot be customized currently + :type MainNodeDiskSize: int :param ClusterNameInConf: ClusterName in the cluster configuration file, which is the instance ID by default and currently cannot be customized :type ClusterNameInConf: str :param DeployMode: Cluster deployment mode
  • 0: single-AZ deployment
  • 1: multi-AZ deployment
  • Default value: 0 @@ -123,10 +123,10 @@ def __init__(self): self.TimeUnit = None self.AutoVoucher = None self.VoucherIds = None - self.EnableDedicatedMaster = None - self.MasterNodeNum = None - self.MasterNodeType = None - self.MasterNodeDiskSize = None + self.EnableDedicatedMain = None + self.MainNodeNum = None + self.MainNodeType = None + self.MainNodeDiskSize = None self.ClusterNameInConf = None self.DeployMode = None self.MultiZoneInfo = None @@ -153,10 +153,10 @@ def _deserialize(self, params): self.TimeUnit = params.get("TimeUnit") self.AutoVoucher = params.get("AutoVoucher") self.VoucherIds = params.get("VoucherIds") - self.EnableDedicatedMaster = params.get("EnableDedicatedMaster") - self.MasterNodeNum = params.get("MasterNodeNum") - self.MasterNodeType = params.get("MasterNodeType") - self.MasterNodeDiskSize = params.get("MasterNodeDiskSize") + self.EnableDedicatedMain = params.get("EnableDedicatedMain") + self.MainNodeNum = params.get("MainNodeNum") + self.MainNodeType = params.get("MainNodeType") + self.MainNodeDiskSize = params.get("MainNodeDiskSize") self.ClusterNameInConf = params.get("ClusterNameInConf") self.DeployMode = params.get("DeployMode") if params.get("MultiZoneInfo") is not None: @@ -246,7 +246,7 @@ def __init__(self): :param InstanceId: Cluster instance ID :type InstanceId: str :param LogType: Log type. Default value: 1 -
  • 1: master log
  • +
  • 1: main log
  • 2: search slow log
  • 3: index slow log
  • 4: GC log
  • @@ -629,8 +629,8 @@ def __init__(self): :type InstanceType: int :param IkConfig: IK analyzer configuration :type IkConfig: :class:`tencentcloud.es.v20180416.models.EsDictionaryInfo` - :param MasterNodeInfo: Dedicated master node configuration - :type MasterNodeInfo: :class:`tencentcloud.es.v20180416.models.MasterNodeInfo` + :param MainNodeInfo: Dedicated main node configuration + :type MainNodeInfo: :class:`tencentcloud.es.v20180416.models.MainNodeInfo` :param CosBackup: Auto-backup to COS configuration :type CosBackup: :class:`tencentcloud.es.v20180416.models.CosBackup` :param AllowCosBackup: Whether to allow auto-backup to COS @@ -720,7 +720,7 @@ def __init__(self): self.Deadline = None self.InstanceType = None self.IkConfig = None - self.MasterNodeInfo = None + self.MainNodeInfo = None self.CosBackup = None self.AllowCosBackup = None self.TagList = None @@ -779,9 +779,9 @@ def _deserialize(self, params): if params.get("IkConfig") is not None: self.IkConfig = EsDictionaryInfo() self.IkConfig._deserialize(params.get("IkConfig")) - if params.get("MasterNodeInfo") is not None: - self.MasterNodeInfo = MasterNodeInfo() - self.MasterNodeInfo._deserialize(params.get("MasterNodeInfo")) + if params.get("MainNodeInfo") is not None: + self.MainNodeInfo = MainNodeInfo() + self.MainNodeInfo._deserialize(params.get("MainNodeInfo")) if params.get("CosBackup") is not None: self.CosBackup = CosBackup() self.CosBackup._deserialize(params.get("CosBackup")) @@ -899,49 +899,49 @@ def _deserialize(self, params): self.LocalDiskCount = params.get("LocalDiskCount") -class MasterNodeInfo(AbstractModel): - """Information of the dedicated master node in an instance +class MainNodeInfo(AbstractModel): + """Information of the dedicated main node in an instance """ def __init__(self): """ - :param EnableDedicatedMaster: Whether to enable the dedicated master node - :type EnableDedicatedMaster: bool - :param MasterNodeType: 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
  • - :type MasterNodeType: str - :param MasterNodeNum: Number of dedicated master nodes - :type MasterNodeNum: int - :param MasterNodeCpuNum: Number of CPU cores of the dedicated master node - :type MasterNodeCpuNum: int - :param MasterNodeMemSize: Memory size of the dedicated master node in GB - :type MasterNodeMemSize: int - :param MasterNodeDiskSize: Disk size of the dedicated master node in GB - :type MasterNodeDiskSize: int - :param MasterNodeDiskType: Disk type of the dedicated master node - :type MasterNodeDiskType: str - """ - self.EnableDedicatedMaster = None - self.MasterNodeType = None - self.MasterNodeNum = None - self.MasterNodeCpuNum = None - self.MasterNodeMemSize = None - self.MasterNodeDiskSize = None - self.MasterNodeDiskType = None + :param EnableDedicatedMain: Whether to enable the dedicated main node + :type EnableDedicatedMain: bool + :param MainNodeType: 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
  • + :type MainNodeType: str + :param MainNodeNum: Number of dedicated main nodes + :type MainNodeNum: int + :param MainNodeCpuNum: Number of CPU cores of the dedicated main node + :type MainNodeCpuNum: int + :param MainNodeMemSize: Memory size of the dedicated main node in GB + :type MainNodeMemSize: int + :param MainNodeDiskSize: Disk size of the dedicated main node in GB + :type MainNodeDiskSize: int + :param MainNodeDiskType: Disk type of the dedicated main node + :type MainNodeDiskType: str + """ + self.EnableDedicatedMain = None + self.MainNodeType = None + self.MainNodeNum = None + self.MainNodeCpuNum = None + self.MainNodeMemSize = None + self.MainNodeDiskSize = None + self.MainNodeDiskType = None def _deserialize(self, params): - self.EnableDedicatedMaster = params.get("EnableDedicatedMaster") - self.MasterNodeType = params.get("MasterNodeType") - self.MasterNodeNum = params.get("MasterNodeNum") - self.MasterNodeCpuNum = params.get("MasterNodeCpuNum") - self.MasterNodeMemSize = params.get("MasterNodeMemSize") - self.MasterNodeDiskSize = params.get("MasterNodeDiskSize") - self.MasterNodeDiskType = params.get("MasterNodeDiskType") + self.EnableDedicatedMain = params.get("EnableDedicatedMain") + self.MainNodeType = params.get("MainNodeType") + self.MainNodeNum = params.get("MainNodeNum") + self.MainNodeCpuNum = params.get("MainNodeCpuNum") + self.MainNodeMemSize = params.get("MainNodeMemSize") + self.MainNodeDiskSize = params.get("MainNodeDiskSize") + self.MainNodeDiskType = params.get("MainNodeDiskType") class NodeInfo(AbstractModel): - """Specification information of a node type in the cluster (such as hot data node, warm data node, or dedicated master node), including node type, number of nodes, node specification, disk type, and disk size. If `Type` is not specified, it will be a hot data node by default; if the node is a master node, then the `DiskType` and `DiskSize` parameters will be ignored (as a master node has no data disks) + """Specification information of a node type in the cluster (such as hot data node, warm data node, or dedicated main node), including node type, number of nodes, node specification, disk type, and disk size. If `Type` is not specified, it will be a hot data node by default; if the node is a main node, then the `DiskType` and `DiskSize` parameters will be ignored (as a main node has no data disks) """ @@ -953,7 +953,7 @@ def __init__(self): :type NodeType: str :param Type: Node type
  • hotData: hot data node
  • warmData: warm data node
  • -
  • dedicatedMaster: dedicated master node
  • +
  • dedicatedMain: dedicated main node
  • Default value: hotData :type Type: str :param DiskType: Node disk type
  • CLOUD_SSD: SSD cloud storage
  • CLOUD_PREMIUM: Premium cloud disk
  • Default value: CLOUD_SSD @@ -1230,15 +1230,15 @@ def __init__(self): :param NodeType: This parameter has been disused. Please use `NodeInfoList` 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
  • :type NodeType: str - :param MasterNodeNum: This parameter has been disused. Please use `NodeInfoList` -Number of dedicated master nodes (only 3 and 5 are supported) - :type MasterNodeNum: int - :param MasterNodeType: 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
  • - :type MasterNodeType: str - :param MasterNodeDiskSize: 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 - :type MasterNodeDiskSize: int + :param MainNodeNum: This parameter has been disused. Please use `NodeInfoList` +Number of dedicated main nodes (only 3 and 5 are supported) + :type MainNodeNum: int + :param MainNodeType: This parameter has been disused. Please use `NodeInfoList` +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
  • + :type MainNodeType: str + :param MainNodeDiskSize: This parameter has been disused. Please use `NodeInfoList` +Dedicated main node disk size in GB. This is 50 GB by default and currently cannot be customized + :type MainNodeDiskSize: int :param ForceRestart: Whether to force restart during configuration update
  • true: Yes
  • false: No
  • This needs to be set only for EsConfig. Default value: false :type ForceRestart: bool :param CosBackup: Auto-backup to COS @@ -1266,9 +1266,9 @@ def __init__(self): self.EsAcl = None self.DiskSize = None self.NodeType = None - self.MasterNodeNum = None - self.MasterNodeType = None - self.MasterNodeDiskSize = None + self.MainNodeNum = None + self.MainNodeType = None + self.MainNodeDiskSize = None self.ForceRestart = None self.CosBackup = None self.NodeInfoList = None @@ -1291,9 +1291,9 @@ def _deserialize(self, params): self.EsAcl._deserialize(params.get("EsAcl")) self.DiskSize = params.get("DiskSize") self.NodeType = params.get("NodeType") - self.MasterNodeNum = params.get("MasterNodeNum") - self.MasterNodeType = params.get("MasterNodeType") - self.MasterNodeDiskSize = params.get("MasterNodeDiskSize") + self.MainNodeNum = params.get("MainNodeNum") + self.MainNodeType = params.get("MainNodeType") + self.MainNodeDiskSize = params.get("MainNodeDiskSize") self.ForceRestart = params.get("ForceRestart") if params.get("CosBackup") is not None: self.CosBackup = CosBackup() diff --git a/tencentcloud/gme/v20180711/gme_client.py b/tencentcloud/gme/v20180711/gme_client.py index f356f07c..8d4d8762 100644 --- a/tencentcloud/gme/v20180711/gme_client.py +++ b/tencentcloud/gme/v20180711/gme_client.py @@ -111,7 +111,7 @@ def DescribeScanResultList(self, request): def ModifyAppStatus(self, request): - """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. :param request: Request instance for ModifyAppStatus. :type request: :class:`tencentcloud.gme.v20180711.models.ModifyAppStatusRequest` diff --git a/tencentcloud/kms/v20190118/kms_client.py b/tencentcloud/kms/v20190118/kms_client.py index 92b82d04..fa2aa46b 100644 --- a/tencentcloud/kms/v20190118/kms_client.py +++ b/tencentcloud/kms/v20190118/kms_client.py @@ -110,7 +110,7 @@ def CancelKeyDeletion(self, request): def CreateKey(self, request): - """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 :param request: Request instance for CreateKey. :type request: :class:`tencentcloud.kms.v20190118.models.CreateKeyRequest` @@ -446,7 +446,7 @@ def DescribeWhiteBoxServiceStatus(self, request): def DisableKey(self, request): - """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. :param request: Request instance for DisableKey. :type request: :class:`tencentcloud.kms.v20190118.models.DisableKeyRequest` @@ -1007,7 +1007,7 @@ def ListAlgorithms(self, request): def ListKeyDetail(self, request): - """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. :param request: Request instance for ListKeyDetail. :type request: :class:`tencentcloud.kms.v20190118.models.ListKeyDetailRequest` diff --git a/tencentcloud/mariadb/v20170312/models.py b/tencentcloud/mariadb/v20170312/models.py index 1db10120..ff98d390 100644 --- a/tencentcloud/mariadb/v20170312/models.py +++ b/tencentcloud/mariadb/v20170312/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. + :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. :type ReadOnly: int :param Description: Account remarks, which can contain 0–256 letters, digits, and common symbols. :type Description: str - :param DelayThresh: Determines whether the slave is unavailable based on the passed-in time + :param DelayThresh: Determines whether the subordinate is unavailable based on the passed-in time :type DelayThresh: int """ self.InstanceId = None @@ -286,9 +286,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: This field is meaningful for read-only accounts, indicating to select a slave where the master/slave delay is below this value + :param DelayThresh: 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. :type DelayThresh: int """ @@ -393,7 +393,7 @@ def __init__(self): :type UniqueSubnetId: str :param OriginSerialId: Original ID of instance (this field is obsolete and should not be depended on) :type OriginSerialId: 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 IsTmp: Whether it is a temp instance. 0: no, non-zero value: yes :type IsTmp: int @@ -987,7 +987,7 @@ def __init__(self): :type StartTime: str :param EndTime: End date in the format of `yyyy-mm-dd` :type EndTime: str - :param MetricName: 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 + :param MetricName: 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 :type MetricName: str """ self.InstanceId = None @@ -1010,33 +1010,33 @@ class DescribeDBPerformanceDetailsResponse(AbstractModel): def __init__(self): """ - :param Master: Master node performance monitoring data - :type Master: :class:`tencentcloud.mariadb.v20170312.models.PerformanceMonitorSet` - :param Slave1: Slave 1 performance monitoring data + :param Main: Main node performance monitoring data + :type Main: :class:`tencentcloud.mariadb.v20170312.models.PerformanceMonitorSet` + :param Subordinate1: Subordinate 1 performance monitoring data Note: this field may return null, indicating that no valid values can be obtained. - :type Slave1: :class:`tencentcloud.mariadb.v20170312.models.PerformanceMonitorSet` - :param Slave2: Slave 2 performance monitoring data. If the instance is one-master-one-slave, it does not have this field + :type Subordinate1: :class:`tencentcloud.mariadb.v20170312.models.PerformanceMonitorSet` + :param Subordinate2: 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. - :type Slave2: :class:`tencentcloud.mariadb.v20170312.models.PerformanceMonitorSet` + :type Subordinate2: :class:`tencentcloud.mariadb.v20170312.models.PerformanceMonitorSet` :param RequestId: The unique request ID, which is returned for each request. RequestId is required for locating a problem. :type RequestId: str """ - self.Master = None - self.Slave1 = None - self.Slave2 = None + self.Main = None + self.Subordinate1 = None + self.Subordinate2 = None self.RequestId = None def _deserialize(self, params): - if params.get("Master") is not None: - self.Master = PerformanceMonitorSet() - self.Master._deserialize(params.get("Master")) - if params.get("Slave1") is not None: - self.Slave1 = PerformanceMonitorSet() - self.Slave1._deserialize(params.get("Slave1")) - if params.get("Slave2") is not None: - self.Slave2 = PerformanceMonitorSet() - self.Slave2._deserialize(params.get("Slave2")) + if params.get("Main") is not None: + self.Main = PerformanceMonitorSet() + self.Main._deserialize(params.get("Main")) + if params.get("Subordinate1") is not None: + self.Subordinate1 = PerformanceMonitorSet() + self.Subordinate1._deserialize(params.get("Subordinate1")) + if params.get("Subordinate2") is not None: + self.Subordinate2 = PerformanceMonitorSet() + self.Subordinate2._deserialize(params.get("Subordinate2")) self.RequestId = params.get("RequestId") @@ -1053,7 +1053,7 @@ def __init__(self): :type StartTime: str :param EndTime: End date in the format of `yyyy-mm-dd` :type EndTime: str - :param MetricName: 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 + :param MetricName: 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 :type MetricName: str """ self.InstanceId = None @@ -1092,10 +1092,10 @@ def __init__(self): :type DiskIops: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` :param ConnActive: Number of active connections :type ConnActive: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` - :param IsMasterSwitched: Whether master/slave switch occurred. 1: yes, 0: no - :type IsMasterSwitched: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` - :param SlaveDelay: Master/slave delay - :type SlaveDelay: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` + :param IsMainSwitched: Whether main/subordinate switch occurred. 1: yes, 0: no + :type IsMainSwitched: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` + :param SubordinateDelay: Main/subordinate delay + :type SubordinateDelay: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` :param RequestId: The unique request ID, which is returned for each request. RequestId is required for locating a problem. :type RequestId: str """ @@ -1107,8 +1107,8 @@ def __init__(self): self.MemHitRate = None self.DiskIops = None self.ConnActive = None - self.IsMasterSwitched = None - self.SlaveDelay = None + self.IsMainSwitched = None + self.SubordinateDelay = None self.RequestId = None @@ -1137,12 +1137,12 @@ def _deserialize(self, params): if params.get("ConnActive") is not None: self.ConnActive = MonitorData() self.ConnActive._deserialize(params.get("ConnActive")) - if params.get("IsMasterSwitched") is not None: - self.IsMasterSwitched = MonitorData() - self.IsMasterSwitched._deserialize(params.get("IsMasterSwitched")) - if params.get("SlaveDelay") is not None: - self.SlaveDelay = MonitorData() - self.SlaveDelay._deserialize(params.get("SlaveDelay")) + if params.get("IsMainSwitched") is not None: + self.IsMainSwitched = MonitorData() + self.IsMainSwitched._deserialize(params.get("IsMainSwitched")) + if params.get("SubordinateDelay") is not None: + self.SubordinateDelay = MonitorData() + self.SubordinateDelay._deserialize(params.get("SubordinateDelay")) self.RequestId = params.get("RequestId") @@ -1182,33 +1182,33 @@ class DescribeDBResourceUsageDetailsResponse(AbstractModel): def __init__(self): """ - :param Master: Master node resource usage monitoring node - :type Master: :class:`tencentcloud.mariadb.v20170312.models.ResourceUsageMonitorSet` - :param Slave1: Slave 1 resource usage monitoring node + :param Main: Main node resource usage monitoring node + :type Main: :class:`tencentcloud.mariadb.v20170312.models.ResourceUsageMonitorSet` + :param Subordinate1: Subordinate 1 resource usage monitoring node Note: this field may return null, indicating that no valid values can be obtained. - :type Slave1: :class:`tencentcloud.mariadb.v20170312.models.ResourceUsageMonitorSet` - :param Slave2: Slave 2 resource usage monitoring node + :type Subordinate1: :class:`tencentcloud.mariadb.v20170312.models.ResourceUsageMonitorSet` + :param Subordinate2: Subordinate 2 resource usage monitoring node Note: this field may return null, indicating that no valid values can be obtained. - :type Slave2: :class:`tencentcloud.mariadb.v20170312.models.ResourceUsageMonitorSet` + :type Subordinate2: :class:`tencentcloud.mariadb.v20170312.models.ResourceUsageMonitorSet` :param RequestId: The unique request ID, which is returned for each request. RequestId is required for locating a problem. :type RequestId: str """ - self.Master = None - self.Slave1 = None - self.Slave2 = None + self.Main = None + self.Subordinate1 = None + self.Subordinate2 = None self.RequestId = None def _deserialize(self, params): - if params.get("Master") is not None: - self.Master = ResourceUsageMonitorSet() - self.Master._deserialize(params.get("Master")) - if params.get("Slave1") is not None: - self.Slave1 = ResourceUsageMonitorSet() - self.Slave1._deserialize(params.get("Slave1")) - if params.get("Slave2") is not None: - self.Slave2 = ResourceUsageMonitorSet() - self.Slave2._deserialize(params.get("Slave2")) + if params.get("Main") is not None: + self.Main = ResourceUsageMonitorSet() + self.Main._deserialize(params.get("Main")) + if params.get("Subordinate1") is not None: + self.Subordinate1 = ResourceUsageMonitorSet() + self.Subordinate1._deserialize(params.get("Subordinate1")) + if params.get("Subordinate2") is not None: + self.Subordinate2 = ResourceUsageMonitorSet() + self.Subordinate2._deserialize(params.get("Subordinate2")) self.RequestId = params.get("RequestId") @@ -1305,8 +1305,8 @@ def __init__(self): :type OrderBy: str :param OrderByType: Sorting order. Valid values: desc, asc :type OrderByType: str - :param Slave: Whether to query slow queries of the slave. 0: master, 1: slave - :type Slave: int + :param Subordinate: Whether to query slow queries of the subordinate. 0: main, 1: subordinate + :type Subordinate: int """ self.InstanceId = None self.Offset = None @@ -1316,7 +1316,7 @@ def __init__(self): self.Db = None self.OrderBy = None self.OrderByType = None - self.Slave = None + self.Subordinate = None def _deserialize(self, params): @@ -1328,7 +1328,7 @@ def _deserialize(self, params): self.Db = params.get("Db") self.OrderBy = params.get("OrderBy") self.OrderByType = params.get("OrderByType") - self.Slave = params.get("Slave") + self.Subordinate = params.get("Subordinate") class DescribeDBSlowLogsResponse(AbstractModel): @@ -2091,8 +2091,8 @@ def __init__(self): :type ConnActive: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` :param MemHitRate: Cache hit rate :type MemHitRate: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` - :param SlaveDelay: Master/slave delay - :type SlaveDelay: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` + :param SubordinateDelay: Main/subordinate delay + :type SubordinateDelay: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` :param SelectTotal: Number of SELECT operations :type SelectTotal: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` :param LongQuery: Number of slow queries @@ -2101,19 +2101,19 @@ def __init__(self): :type DeleteTotal: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` :param InsertTotal: Number of INSERT operations :type InsertTotal: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` - :param IsMasterSwitched: Whether master/slave switch occurred. 1: yes, 0: no - :type IsMasterSwitched: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` + :param IsMainSwitched: Whether main/subordinate switch occurred. 1: yes, 0: no + :type IsMainSwitched: :class:`tencentcloud.mariadb.v20170312.models.MonitorData` """ self.UpdateTotal = None self.DiskIops = None self.ConnActive = None self.MemHitRate = None - self.SlaveDelay = None + self.SubordinateDelay = None self.SelectTotal = None self.LongQuery = None self.DeleteTotal = None self.InsertTotal = None - self.IsMasterSwitched = None + self.IsMainSwitched = None def _deserialize(self, params): @@ -2129,9 +2129,9 @@ def _deserialize(self, params): if params.get("MemHitRate") is not None: self.MemHitRate = MonitorData() self.MemHitRate._deserialize(params.get("MemHitRate")) - if params.get("SlaveDelay") is not None: - self.SlaveDelay = MonitorData() - self.SlaveDelay._deserialize(params.get("SlaveDelay")) + if params.get("SubordinateDelay") is not None: + self.SubordinateDelay = MonitorData() + self.SubordinateDelay._deserialize(params.get("SubordinateDelay")) if params.get("SelectTotal") is not None: self.SelectTotal = MonitorData() self.SelectTotal._deserialize(params.get("SelectTotal")) @@ -2144,9 +2144,9 @@ def _deserialize(self, params): if params.get("InsertTotal") is not None: self.InsertTotal = MonitorData() self.InsertTotal._deserialize(params.get("InsertTotal")) - if params.get("IsMasterSwitched") is not None: - self.IsMasterSwitched = MonitorData() - self.IsMasterSwitched._deserialize(params.get("IsMasterSwitched")) + if params.get("IsMainSwitched") is not None: + self.IsMainSwitched = MonitorData() + self.IsMainSwitched._deserialize(params.get("IsMainSwitched")) class ResetAccountPasswordRequest(AbstractModel): diff --git a/tencentcloud/mongodb/v20190725/models.py b/tencentcloud/mongodb/v20190725/models.py index 61f187db..d4d8ab2a 100644 --- a/tencentcloud/mongodb/v20190725/models.py +++ b/tencentcloud/mongodb/v20190725/models.py @@ -259,7 +259,7 @@ class CreateDBInstanceRequest(AbstractModel): def __init__(self): """ - :param NodeNum: 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. + :param NodeNum: 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. :type NodeNum: int :param Memory: Instance memory size in GB. :type Memory: int @@ -911,7 +911,7 @@ def __init__(self): """ :param Zone: Instance region name in the format of ap-guangzhou-2. :type Zone: str - :param NodeNum: 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. + :param NodeNum: 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. :type NodeNum: int :param Memory: Instance memory size in GB. :type Memory: int @@ -1145,7 +1145,7 @@ def __init__(self): :type CpuNum: int :param MachineType: Instance machine type :type MachineType: str - :param SecondaryNum: Number of slave nodes of an instance + :param SecondaryNum: Number of subordinate nodes of an instance :type SecondaryNum: int :param ReplicationSetNum: Number of instance shards :type ReplicationSetNum: int @@ -1165,7 +1165,7 @@ def __init__(self): :type StandbyInstances: list of DBInstanceInfo :param CloneInstances: Information of temp instances :type CloneInstances: list of DBInstanceInfo - :param RelatedInstance: 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 + :param RelatedInstance: 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 :type RelatedInstance: :class:`tencentcloud.mongodb.v20190725.models.DBInstanceInfo` :param Tags: Instance tag information set :type Tags: list of TagInfo @@ -1513,7 +1513,7 @@ def __init__(self): :type Volume: int :param OplogSize: Shard oplog size in MB :type OplogSize: int - :param SecondaryNum: Number of slave nodes of a shard + :param SecondaryNum: Number of subordinate nodes of a shard :type SecondaryNum: int :param RealReplicaSetId: Shard physical ID :type RealReplicaSetId: str @@ -1603,17 +1603,17 @@ def __init__(self): :type EngineName: str :param ClusterType: Cluster type. Valid values: 1 (sharding cluster), 0 (replica set cluster) :type ClusterType: int - :param MinNodeNum: Minimum number of slave nodes in a replica set + :param MinNodeNum: Minimum number of subordinate nodes in a replica set :type MinNodeNum: int - :param MaxNodeNum: Maximum number of slave nodes in a replica set + :param MaxNodeNum: Maximum number of subordinate nodes in a replica set :type MaxNodeNum: int :param MinReplicateSetNum: Minimum number of shards :type MinReplicateSetNum: int :param MaxReplicateSetNum: Maximum number of shards :type MaxReplicateSetNum: int - :param MinReplicateSetNodeNum: Minimum number of slave nodes in a shard + :param MinReplicateSetNodeNum: Minimum number of subordinate nodes in a shard :type MinReplicateSetNodeNum: int - :param MaxReplicateSetNodeNum: Maximum number of slave nodes in a shard + :param MaxReplicateSetNodeNum: Maximum number of subordinate nodes in a shard :type MaxReplicateSetNodeNum: int :param MachineType: Server type. Valid values: 0 (HIO), 4 (HIO10G) :type MachineType: str diff --git a/tencentcloud/mongodb/v20190725/mongodb_client.py b/tencentcloud/mongodb/v20190725/mongodb_client.py index a9af1d62..bb15b361 100644 --- a/tencentcloud/mongodb/v20190725/mongodb_client.py +++ b/tencentcloud/mongodb/v20190725/mongodb_client.py @@ -222,7 +222,7 @@ def DescribeDBInstanceDeal(self, request): def DescribeDBInstances(self, request): - """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. :param request: Request instance for DescribeDBInstances. :type request: :class:`tencentcloud.mongodb.v20190725.models.DescribeDBInstancesRequest` diff --git a/tencentcloud/mps/v20190612/models.py b/tencentcloud/mps/v20190612/models.py index 4b58a317..5dff4da9 100644 --- a/tencentcloud/mps/v20190612/models.py +++ b/tencentcloud/mps/v20190612/models.py @@ -10232,7 +10232,7 @@ def __init__(self): :param OutputStorage: Target bucket of an output file. If this parameter is left empty, the `OutputStorage` value of the upper folder will be inherited. Note: This field may return null, indicating that no valid values can be obtained. :type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage` - :param OutputObjectPath: 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}`. + :param OutputObjectPath: 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}`. :type OutputObjectPath: str :param SegmentObjectName: 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}`. :type SegmentObjectName: str diff --git a/tencentcloud/postgres/v20170312/models.py b/tencentcloud/postgres/v20170312/models.py index 8e83a6f3..997e0b73 100644 --- a/tencentcloud/postgres/v20170312/models.py +++ b/tencentcloud/postgres/v20170312/models.py @@ -289,9 +289,9 @@ def __init__(self): :type DBInstanceCpu: int :param DBInstanceClass: Purchasable specification ID :type DBInstanceClass: str - :param DBInstanceType: Instance type. 1: primary (master instance), 2: readonly (read-only instance), 3: guard (disaster recovery instance), 4: temp (temp instance) + :param DBInstanceType: Instance type. 1: primary (main instance), 2: readonly (read-only instance), 3: guard (disaster recovery instance), 4: temp (temp instance) :type DBInstanceType: str - :param DBInstanceVersion: Instance edition. Currently, only `standard` edition (dual-server high-availability one-master-one-slave edition) is supported + :param DBInstanceVersion: Instance edition. Currently, only `standard` edition (dual-server high-availability one-main-one-subordinate edition) is supported :type DBInstanceVersion: str :param DBCharset: Instance database character set :type DBCharset: str diff --git a/tencentcloud/redis/v20180412/models.py b/tencentcloud/redis/v20180412/models.py index 677d0981..bed17905 100644 --- a/tencentcloud/redis/v20180412/models.py +++ b/tencentcloud/redis/v20180412/models.py @@ -35,7 +35,7 @@ def __init__(self): :param Privilege: Read/write policy. r: read-only; w: write-only; rw: read/write Note: This field may return null, indicating that no valid values can be obtained. :type Privilege: str - :param ReadonlyPolicy: Routing policy. master: master node; replication: slave node + :param ReadonlyPolicy: Routing policy. main: main node; replication: subordinate node Note: This field may return null, indicating that no valid values can be obtained. :type ReadonlyPolicy: list of str :param Status: Sub-account status. 1: account is being changed; 2: account is valid; -4: account has been deleted @@ -277,7 +277,7 @@ def __init__(self): :type AccountName: str :param AccountPassword: Sub-account password :type AccountPassword: str - :param ReadonlyPolicy: Routing policy. Enter `master` for master node or `replication` for slave node + :param ReadonlyPolicy: Routing policy. Enter `main` for main node or `replication` for subordinate node :type ReadonlyPolicy: list of str :param Privilege: Read/write policy. Valid values: r (read-only), rw (read/write). :type Privilege: str @@ -359,7 +359,7 @@ def __init__(self): :type RedisShardNum: int :param RedisReplicasNum: 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. :type RedisReplicasNum: int - :param ReplicasReadonly: 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. + :param ReplicasReadonly: 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. :type ReplicasReadonly: bool :param InstanceName: Instance name. It contains only letters, digits, underscores, and dashes with a length of up to 60 characters. :type InstanceName: str @@ -1497,16 +1497,16 @@ def __init__(self): """ :param InstanceId: Instance ID :type InstanceId: str - :param FilterSlave: Whether to filter out the slave node information - :type FilterSlave: bool + :param FilterSubordinate: Whether to filter out the subordinate node information + :type FilterSubordinate: bool """ self.InstanceId = None - self.FilterSlave = None + self.FilterSubordinate = None def _deserialize(self, params): self.InstanceId = params.get("InstanceId") - self.FilterSlave = params.get("FilterSlave") + self.FilterSubordinate = params.get("FilterSubordinate") class DescribeInstanceShardsResponse(AbstractModel): @@ -1574,7 +1574,7 @@ def __init__(self): :type RegionIds: list of int :param Status: Instance status. 0: to be initialized; 1: in process; 2: running; -2: isolated; -3: to be deleted :type Status: list of int - :param TypeVersion: Type edition. 1: standalone edition; 2: master-slave edition; 3: cluster edition + :param TypeVersion: Type edition. 1: standalone edition; 2: main-subordinate edition; 3: cluster edition :type TypeVersion: int :param EngineName: Engine information: Redis-2.8, Redis-4.0, CKV :type EngineName: str @@ -1582,7 +1582,7 @@ def __init__(self): :type AutoRenew: list of int :param BillingMode: Billing method. postpaid: pay-as-you-go; prepaid: monthly subscription :type BillingMode: str - :param Type: 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, + :param Type: 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 Type: int :param SearchKeys: Search keywords, which can be instance ID, instance name, or complete IP :type SearchKeys: list of str @@ -2173,7 +2173,7 @@ def __init__(self): """ :param InstanceId: Serial ID of an instance :type InstanceId: str - :param ReadonlyPolicy: 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 + :param ReadonlyPolicy: 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 :type ReadonlyPolicy: list of str """ self.InstanceId = None @@ -2287,7 +2287,7 @@ def __init__(self): :type Name: str :param RunId: ID of the runtime node of an instance :type RunId: str - :param Role: Cluster role. 0: master; 1: slave + :param Role: Cluster role. 0: main; 1: subordinate :type Role: int :param Status: Node status. 0: readwrite; 1: read; 2: backup :type Status: int @@ -2670,7 +2670,7 @@ def __init__(self): :type Size: float :param SizeUsed: This field has been disused :type SizeUsed: float - :param Type: 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 + :param Type: 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 Type: int :param AutoRenewFlag: Whether to set the auto-renewal flag for an instance. 1: auto-renewal set; 0: auto-renewal not set :type AutoRenewFlag: int @@ -2678,7 +2678,7 @@ def __init__(self): :type DeadlineTime: str :param Engine: Engine: Redis community edition, Tencent Cloud CKV :type Engine: str - :param ProductType: 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 + :param ProductType: 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 :type ProductType: str :param UniqVpcId: VPC ID, such as vpc-fk33jsf43kgv :type UniqVpcId: str @@ -2706,8 +2706,8 @@ def __init__(self): :type PriceId: int :param CloseTime: Isolation time :type CloseTime: str - :param SlaveReadWeight: Read weight of a slave node - :type SlaveReadWeight: int + :param SubordinateReadWeight: Read weight of a subordinate node + :type SubordinateReadWeight: int :param InstanceTags: Instance tag information Note: This field may return null, indicating that no valid values can be obtained. :type InstanceTags: list of InstanceTagInfo @@ -2771,7 +2771,7 @@ def __init__(self): self.RedisReplicasNum = None self.PriceId = None self.CloseTime = None - self.SlaveReadWeight = None + self.SubordinateReadWeight = None self.InstanceTags = None self.ProjectName = None self.NoAuth = None @@ -2822,7 +2822,7 @@ def _deserialize(self, params): self.RedisReplicasNum = params.get("RedisReplicasNum") self.PriceId = params.get("PriceId") self.CloseTime = params.get("CloseTime") - self.SlaveReadWeight = params.get("SlaveReadWeight") + self.SubordinateReadWeight = params.get("SubordinateReadWeight") if params.get("InstanceTags") is not None: self.InstanceTags = [] for item in params.get("InstanceTags"): @@ -3142,7 +3142,7 @@ def __init__(self): :type AccountPassword: str :param Remark: Sub-account description information :type Remark: str - :param ReadonlyPolicy: Sub-account routing policy. Enter `master` to route to the master node or `slave` to route to the slave node + :param ReadonlyPolicy: Sub-account routing policy. Enter `main` to route to the main node or `subordinate` to route to the subordinate node :type ReadonlyPolicy: list of str :param Privilege: Sub-account read/write policy. Enter `r` for read-only, `w` for write-only, or `rw` for read/write :type Privilege: str @@ -3420,9 +3420,9 @@ class ProductConf(AbstractModel): def __init__(self): """ - :param Type: Product type. 2: Redis master-slave edition; 3: CKV master-slave edition; 4: CKV cluster edition; 5: Redis standalone edition; 7: Redis cluster edition + :param Type: 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 Type: int - :param TypeName: Product name: Redis master-slave edition, CKV master-slave edition, CKV cluster edition, Redis standalone edition, or Redis cluster edition + :param TypeName: Product name: Redis main-subordinate edition, CKV main-subordinate edition, CKV cluster edition, Redis standalone edition, or Redis cluster edition :type TypeName: str :param MinBuyNum: Minimum purchasable quantity :type MinBuyNum: int @@ -4086,9 +4086,9 @@ def __init__(self): :type InstanceId: str :param MemSize: Shard size in MB :type MemSize: int - :param RedisShardNum: 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 + :param RedisShardNum: 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 :type RedisShardNum: int - :param RedisReplicasNum: 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 + :param RedisReplicasNum: 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 :type RedisReplicasNum: int """ self.InstanceId = None diff --git a/tencentcloud/scf/v20180416/scf_client.py b/tencentcloud/scf/v20180416/scf_client.py index d2313082..6fea5fae 100644 --- a/tencentcloud/scf/v20180416/scf_client.py +++ b/tencentcloud/scf/v20180416/scf_client.py @@ -61,7 +61,7 @@ def CopyFunction(self, request): def CreateAlias(self, request): """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. :param request: Request instance for CreateAlias. :type request: :class:`tencentcloud.scf.v20180416.models.CreateAliasRequest` diff --git a/tencentcloud/sqlserver/v20180328/models.py b/tencentcloud/sqlserver/v20180328/models.py index 959bb5fa..1660006a 100644 --- a/tencentcloud/sqlserver/v20180328/models.py +++ b/tencentcloud/sqlserver/v20180328/models.py @@ -648,7 +648,7 @@ def __init__(self): :type VpcId: int :param SubnetId: Instance VPC subnet ID, which will be 0 if the basic network is used :type SubnetId: int - :param Status: 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
  • + :param Status: 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
  • :type Status: int :param Vip: Instance access IP :type Vip: str @@ -1145,7 +1145,7 @@ def __init__(self): :param Status: 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.py b/tencentcloud/tke/v20180525/models.py index f3837ce6..a918433b 100644 --- a/tencentcloud/tke/v20180525/models.py +++ b/tencentcloud/tke/v20180525/models.py @@ -147,7 +147,7 @@ def __init__(self): :type ClusterStatus: str :param Property: :type Property: str - :param ClusterMaterNodeNum: Number of master nodes currently in the cluster + :param ClusterMaterNodeNum: Number of main nodes currently in the cluster :type ClusterMaterNodeNum: int :param ImageId: ID of the image used by the cluster Note: this field may return null, indicating that no valid value is obtained. @@ -505,7 +505,7 @@ def _deserialize(self, params): class ClusterExtraArgs(AbstractModel): - """Cluster master custom parameter + """Cluster main custom parameter """ diff --git a/tencentcloud/vpc/v20170312/models.py b/tencentcloud/vpc/v20170312/models.py index fb1ac89f..029d8bc8 100644 --- a/tencentcloud/vpc/v20170312/models.py +++ b/tencentcloud/vpc/v20170312/models.py @@ -9576,7 +9576,7 @@ def __init__(self): :type VpcName: str :param EnableMulticast: Whether multicast is enabled. `true`: Enabled. `false`: Off. :type EnableMulticast: str - :param DnsServers: DNS address. A maximum of 4 addresses is supported. The first one is master server by default, and the rest are slave servers. + :param DnsServers: DNS address. A maximum of 4 addresses is supported. The first one is main server by default, and the rest are subordinate servers. :type DnsServers: list of str :param DomainName: Domain name :type DomainName: str