tccli 3.0.1142.1__py2.py3-none-any.whl → 3.0.1143.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1142.1'
1
+ __version__ = '3.0.1143.1'
@@ -69,6 +69,58 @@ def doSubmitTextToImageProJob(args, parsed_globals):
69
69
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
70
 
71
71
 
72
+ def doReplaceBackground(args, parsed_globals):
73
+ g_param = parse_global_arg(parsed_globals)
74
+
75
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
76
+ cred = credential.CVMRoleCredential()
77
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
78
+ cred = credential.STSAssumeRoleCredential(
79
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
80
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
81
+ )
82
+ elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
83
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
84
+ else:
85
+ cred = credential.Credential(
86
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
87
+ )
88
+ http_profile = HttpProfile(
89
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
90
+ reqMethod="POST",
91
+ endpoint=g_param[OptionsDefine.Endpoint],
92
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
93
+ )
94
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
95
+ if g_param[OptionsDefine.Language]:
96
+ profile.language = g_param[OptionsDefine.Language]
97
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
98
+ client = mod.AiartClient(cred, g_param[OptionsDefine.Region], profile)
99
+ client._sdkVersion += ("_CLI_" + __version__)
100
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
101
+ model = models.ReplaceBackgroundRequest()
102
+ model.from_json_string(json.dumps(args))
103
+ start_time = time.time()
104
+ while True:
105
+ rsp = client.ReplaceBackground(model)
106
+ result = rsp.to_json_string()
107
+ try:
108
+ json_obj = json.loads(result)
109
+ except TypeError as e:
110
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
111
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
112
+ break
113
+ cur_time = time.time()
114
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
115
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
116
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
117
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
118
+ else:
119
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
120
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
121
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
122
+
123
+
72
124
  def doSubmitTrainPortraitModelJob(args, parsed_globals):
73
125
  g_param = parse_global_arg(parsed_globals)
74
126
 
@@ -549,6 +601,7 @@ MODELS_MAP = {
549
601
 
550
602
  ACTION_MAP = {
551
603
  "SubmitTextToImageProJob": doSubmitTextToImageProJob,
604
+ "ReplaceBackground": doReplaceBackground,
552
605
  "SubmitTrainPortraitModelJob": doSubmitTrainPortraitModelJob,
553
606
  "QueryTextToImageProJob": doQueryTextToImageProJob,
554
607
  "GenerateAvatar": doGenerateAvatar,
@@ -35,6 +35,13 @@
35
35
  "output": "QueryTrainPortraitModelJobResponse",
36
36
  "status": "online"
37
37
  },
38
+ "ReplaceBackground": {
39
+ "document": "商品背景生成接口根据指定的背景描述 Prompt,将商品图中的原背景替换为自定义的新背景并保留商品主体形象,实现商品背景的自由生成与更换。\n\n商品背景生成默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
40
+ "input": "ReplaceBackgroundRequest",
41
+ "name": "商品背景生成",
42
+ "output": "ReplaceBackgroundResponse",
43
+ "status": "online"
44
+ },
38
45
  "SubmitDrawPortraitJob": {
39
46
  "document": "AI 写真提供 AI 写真形象照的训练与生成能力,分为上传训练图片、训练模型、生成图片3个环节,需要依次调用对应接口。\n每个写真模型自训练完成起1年内有效,有效期内可使用写真模型 ID 生成图片,期满后需要重新训练。\n生成图片分为提交任务和查询任务2个接口。\n- 提交生成写真图片任务:完成训练写真模型后,选择风格模板,提交一个生成写真图片异步任务,根据写真模型 ID 开始生成人物形象在指定风格上的写真图片,获得任务 ID。\n- 查询生成写真图片任务:根据任务 ID 查询生成图片任务的处理状态、处理结果。\n\n提交生成写真图片任务默认提供1个并发任务数。",
40
47
  "input": "SubmitDrawPortraitJobRequest",
@@ -653,6 +660,107 @@
653
660
  ],
654
661
  "type": "object"
655
662
  },
663
+ "ReplaceBackgroundRequest": {
664
+ "document": "ReplaceBackground请求参数结构体",
665
+ "members": [
666
+ {
667
+ "disabled": false,
668
+ "document": "商品原图 Url。\n图片限制:单边分辨率小于4000,长宽比在2:5 ~ 5:2之间,转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。",
669
+ "example": "无",
670
+ "member": "string",
671
+ "name": "ProductUrl",
672
+ "required": true,
673
+ "type": "string"
674
+ },
675
+ {
676
+ "disabled": false,
677
+ "document": "商品 Mask 图 Url,要求背景透明,保留商品主体。\n如果不传,将自动使用内置的商品分割算法得到 Mask。\n支持自定义上传 Mask,如果该参数不为空,则以实际上传的数据为准。\n图片限制:Mask 图必须和商品原图分辨率一致,转成 Base64 字符串后小于 6MB,格式仅支持 png。",
678
+ "example": "无",
679
+ "member": "string",
680
+ "name": "MaskUrl",
681
+ "required": false,
682
+ "type": "string"
683
+ },
684
+ {
685
+ "disabled": false,
686
+ "document": "对新背景的文本描述。\n最多支持256个 utf-8 字符,支持中、英文。",
687
+ "example": "无",
688
+ "member": "string",
689
+ "name": "Prompt",
690
+ "required": false,
691
+ "type": "string"
692
+ },
693
+ {
694
+ "disabled": false,
695
+ "document": "替换背景后生成的商品图分辨率。\n支持生成单边分辨率大于500且小于4000、长宽比在2:5 ~ 5:2之间的图片,不传默认生成1280:1280。\n建议图片比例为1:1、9:16、16:9,生成效果更佳,使用其他比例的生成效果可能不如建议比例。",
696
+ "example": "1280:1280",
697
+ "member": "string",
698
+ "name": "Resolution",
699
+ "required": false,
700
+ "type": "string"
701
+ },
702
+ {
703
+ "disabled": false,
704
+ "document": "为生成结果图添加标识的开关,默认为1。\n1:添加标识。\n0:不添加标识。\n其他数值:默认按1处理。\n建议您使用显著标识来提示结果图是 AI 生成的图片。",
705
+ "example": "无",
706
+ "member": "int64",
707
+ "name": "LogoAdd",
708
+ "required": false,
709
+ "type": "int"
710
+ },
711
+ {
712
+ "disabled": false,
713
+ "document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
714
+ "example": "无",
715
+ "member": "LogoParam",
716
+ "name": "LogoParam",
717
+ "required": false,
718
+ "type": "object"
719
+ },
720
+ {
721
+ "disabled": false,
722
+ "document": "返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。\n生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。",
723
+ "example": "base64",
724
+ "member": "string",
725
+ "name": "RspImgType",
726
+ "required": false,
727
+ "type": "string"
728
+ }
729
+ ],
730
+ "type": "object"
731
+ },
732
+ "ReplaceBackgroundResponse": {
733
+ "document": "ReplaceBackground返回参数结构体",
734
+ "members": [
735
+ {
736
+ "disabled": false,
737
+ "document": "根据入参 RspImgType 填入不同,返回不同的内容。\n如果传入 base64 则返回生成图 Base64 编码。\n如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。",
738
+ "example": "无",
739
+ "member": "string",
740
+ "name": "ResultImage",
741
+ "output_required": true,
742
+ "type": "string",
743
+ "value_allowed_null": false
744
+ },
745
+ {
746
+ "disabled": false,
747
+ "document": "如果 MaskUrl 未传,则返回使用内置商品分割算法得到的 Mask 结果。",
748
+ "example": "无",
749
+ "member": "string",
750
+ "name": "MaskImage",
751
+ "output_required": false,
752
+ "type": "string",
753
+ "value_allowed_null": false
754
+ },
755
+ {
756
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
757
+ "member": "string",
758
+ "name": "RequestId",
759
+ "type": "string"
760
+ }
761
+ ],
762
+ "type": "object"
763
+ },
656
764
  "ResultConfig": {
657
765
  "document": "返回结果配置",
658
766
  "members": [
@@ -40,6 +40,14 @@
40
40
  "title": "查询成功"
41
41
  }
42
42
  ],
43
+ "ReplaceBackground": [
44
+ {
45
+ "document": "成功调用并生成图片",
46
+ "input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ReplaceBackground\n<公共请求参数>\n\n{\n \"ProductUrl\": \"https://xxx.com/test.jpg\",\n \"MaskUrl\": \"https://xxx.com/test.jpg\",\n \"Prompt\": \"backpack,real picture quality, fabric texture, fine, cartoon\",\n \"RspImgType\": \"url\"\n}",
47
+ "output": "{\n \"Response\": {\n \"RequestId\": \"0d0728ed-f777-4861-aa4b-5a6167daa0b6\",\n \"ResultImage\": \"https://result.jpg\"\n }\n}",
48
+ "title": "成功调用并生成图片"
49
+ }
50
+ ],
43
51
  "SubmitDrawPortraitJob": [
44
52
  {
45
53
  "document": "调用成功",
@@ -1569,180 +1569,180 @@
1569
1569
  {
1570
1570
  "disabled": false,
1571
1571
  "document": "负载均衡监听器ID",
1572
- "example": "",
1572
+ "example": "",
1573
1573
  "member": "string",
1574
1574
  "name": "ListenerId",
1575
- "required": true,
1575
+ "output_required": true,
1576
1576
  "type": "string",
1577
1577
  "value_allowed_null": false
1578
1578
  },
1579
1579
  {
1580
1580
  "disabled": false,
1581
1581
  "document": "负载均衡监听器端口",
1582
- "example": "",
1582
+ "example": "",
1583
1583
  "member": "int64",
1584
1584
  "name": "ListenerPort",
1585
- "required": true,
1585
+ "output_required": true,
1586
1586
  "type": "int",
1587
1587
  "value_allowed_null": false
1588
1588
  },
1589
1589
  {
1590
1590
  "disabled": false,
1591
1591
  "document": "监听器后端转发端口",
1592
- "example": "",
1592
+ "example": "",
1593
1593
  "member": "int64",
1594
1594
  "name": "InstancePort",
1595
- "required": true,
1595
+ "output_required": true,
1596
1596
  "type": "int",
1597
1597
  "value_allowed_null": false
1598
1598
  },
1599
1599
  {
1600
1600
  "disabled": false,
1601
1601
  "document": "监听器名称",
1602
- "example": "",
1602
+ "example": "",
1603
1603
  "member": "string",
1604
1604
  "name": "ListenerName",
1605
- "required": true,
1605
+ "output_required": true,
1606
1606
  "type": "string",
1607
1607
  "value_allowed_null": false
1608
1608
  },
1609
1609
  {
1610
1610
  "disabled": false,
1611
1611
  "document": "监听器协议类型",
1612
- "example": "",
1612
+ "example": "",
1613
1613
  "member": "string",
1614
1614
  "name": "Protocol",
1615
- "required": true,
1615
+ "output_required": true,
1616
1616
  "type": "string",
1617
1617
  "value_allowed_null": false
1618
1618
  },
1619
1619
  {
1620
1620
  "disabled": false,
1621
1621
  "document": "会话保持时间",
1622
- "example": "",
1622
+ "example": "",
1623
1623
  "member": "int64",
1624
1624
  "name": "SessionExpire",
1625
- "required": true,
1625
+ "output_required": true,
1626
1626
  "type": "int",
1627
1627
  "value_allowed_null": false
1628
1628
  },
1629
1629
  {
1630
1630
  "disabled": false,
1631
1631
  "document": "是否开启了健康检查:1(开启)、0(关闭)",
1632
- "example": "",
1632
+ "example": "",
1633
1633
  "member": "int64",
1634
1634
  "name": "HealthSwitch",
1635
- "required": true,
1635
+ "output_required": true,
1636
1636
  "type": "int",
1637
1637
  "value_allowed_null": false
1638
1638
  },
1639
1639
  {
1640
1640
  "disabled": false,
1641
1641
  "document": "响应超时时间",
1642
- "example": "",
1642
+ "example": "",
1643
1643
  "member": "int64",
1644
1644
  "name": "TimeOut",
1645
- "required": true,
1645
+ "output_required": true,
1646
1646
  "type": "int",
1647
1647
  "value_allowed_null": false
1648
1648
  },
1649
1649
  {
1650
1650
  "disabled": false,
1651
1651
  "document": "检查间隔",
1652
- "example": "",
1652
+ "example": "",
1653
1653
  "member": "int64",
1654
1654
  "name": "IntervalTime",
1655
- "required": true,
1655
+ "output_required": true,
1656
1656
  "type": "int",
1657
1657
  "value_allowed_null": false
1658
1658
  },
1659
1659
  {
1660
1660
  "disabled": false,
1661
1661
  "document": "健康阈值",
1662
- "example": "",
1662
+ "example": "",
1663
1663
  "member": "int64",
1664
1664
  "name": "HealthNum",
1665
- "required": true,
1665
+ "output_required": true,
1666
1666
  "type": "int",
1667
1667
  "value_allowed_null": false
1668
1668
  },
1669
1669
  {
1670
1670
  "disabled": false,
1671
1671
  "document": "不健康阈值",
1672
- "example": "",
1672
+ "example": "",
1673
1673
  "member": "int64",
1674
1674
  "name": "UnhealthNum",
1675
- "required": true,
1675
+ "output_required": true,
1676
1676
  "type": "int",
1677
1677
  "value_allowed_null": false
1678
1678
  },
1679
1679
  {
1680
1680
  "disabled": false,
1681
- "document": "传统型公网负载均衡的 HTTP、HTTPS 监听器的请求均衡方法。wrr 表示按权重轮询,ip_hash 表示根据访问的源 IP 进行一致性哈希方式来分发",
1682
- "example": "",
1681
+ "document": "传统型公网负载均衡 监听器的请求均衡方法。空字符串或wrr 表示按权重轮询,ip_hash 表示根据访问的源 IP 进行一致性哈希方式来分发,least_conn表示按最小连接数。",
1682
+ "example": "",
1683
1683
  "member": "string",
1684
1684
  "name": "HttpHash",
1685
- "required": true,
1685
+ "output_required": true,
1686
1686
  "type": "string",
1687
1687
  "value_allowed_null": false
1688
1688
  },
1689
1689
  {
1690
1690
  "disabled": false,
1691
1691
  "document": "传统型公网负载均衡的 HTTP、HTTPS 监听器的健康检查返回码。具体可参考创建监听器中对该字段的解释",
1692
- "example": "",
1692
+ "example": "",
1693
1693
  "member": "int64",
1694
1694
  "name": "HttpCode",
1695
- "required": true,
1695
+ "output_required": true,
1696
1696
  "type": "int",
1697
1697
  "value_allowed_null": false
1698
1698
  },
1699
1699
  {
1700
1700
  "disabled": false,
1701
1701
  "document": "传统型公网负载均衡的 HTTP、HTTPS 监听器的健康检查路径",
1702
- "example": "",
1702
+ "example": "",
1703
1703
  "member": "string",
1704
1704
  "name": "HttpCheckPath",
1705
- "required": true,
1705
+ "output_required": true,
1706
1706
  "type": "string",
1707
1707
  "value_allowed_null": false
1708
1708
  },
1709
1709
  {
1710
1710
  "disabled": false,
1711
1711
  "document": "传统型公网负载均衡的 HTTPS 监听器的认证方式",
1712
- "example": "",
1712
+ "example": "",
1713
1713
  "member": "string",
1714
1714
  "name": "SSLMode",
1715
- "required": true,
1715
+ "output_required": true,
1716
1716
  "type": "string",
1717
1717
  "value_allowed_null": false
1718
1718
  },
1719
1719
  {
1720
1720
  "disabled": false,
1721
1721
  "document": "传统型公网负载均衡的 HTTPS 监听器的服务端证书 ID",
1722
- "example": "",
1722
+ "example": "",
1723
1723
  "member": "string",
1724
1724
  "name": "CertId",
1725
- "required": true,
1725
+ "output_required": true,
1726
1726
  "type": "string",
1727
1727
  "value_allowed_null": false
1728
1728
  },
1729
1729
  {
1730
1730
  "disabled": false,
1731
1731
  "document": "传统型公网负载均衡的 HTTPS 监听器的客户端证书 ID",
1732
- "example": "",
1732
+ "example": "",
1733
1733
  "member": "string",
1734
1734
  "name": "CertCaId",
1735
- "required": true,
1735
+ "output_required": true,
1736
1736
  "type": "string",
1737
1737
  "value_allowed_null": false
1738
1738
  },
1739
1739
  {
1740
1740
  "disabled": false,
1741
1741
  "document": "监听器的状态,0 表示创建中,1 表示运行中",
1742
- "example": "",
1742
+ "example": "",
1743
1743
  "member": "int64",
1744
1744
  "name": "Status",
1745
- "required": true,
1745
+ "output_required": true,
1746
1746
  "type": "int",
1747
1747
  "value_allowed_null": false
1748
1748
  }
@@ -11862,22 +11862,20 @@
11862
11862
  {
11863
11863
  "disabled": false,
11864
11864
  "document": "Base64编码后的文件内容",
11865
- "example": "",
11865
+ "example": "",
11866
11866
  "member": "string",
11867
11867
  "name": "FileBody",
11868
11868
  "required": true,
11869
- "type": "string",
11870
- "value_allowed_null": false
11869
+ "type": "string"
11871
11870
  },
11872
11871
  {
11873
11872
  "disabled": false,
11874
- "document": "文件名",
11875
- "example": "",
11873
+ "document": "文件名,最大长度不超过200字符",
11874
+ "example": "",
11876
11875
  "member": "string",
11877
11876
  "name": "FileName",
11878
11877
  "required": false,
11879
- "type": "string",
11880
- "value_allowed_null": false
11878
+ "type": "string"
11881
11879
  }
11882
11880
  ],
11883
11881
  "usage": "in"
@@ -997,7 +997,7 @@
997
997
  {
998
998
  "disabled": false,
999
999
  "document": "地域\n注意:此字段可能返回 null,表示取不到有效值。",
1000
- "example": "ap-hongkong",
1000
+ "example": "ap-guangzhou",
1001
1001
  "member": "string",
1002
1002
  "name": "Region",
1003
1003
  "output_required": false,
@@ -1007,7 +1007,7 @@
1007
1007
  {
1008
1008
  "disabled": false,
1009
1009
  "document": "可用区信息\n注意:此字段可能返回 null,表示取不到有效值。",
1010
- "example": "",
1010
+ "example": "ap-guangzhou-1",
1011
1011
  "member": "string",
1012
1012
  "name": "AvailableZones",
1013
1013
  "output_required": false,
@@ -1690,20 +1690,20 @@
1690
1690
  {
1691
1691
  "disabled": false,
1692
1692
  "document": "命令名。",
1693
- "example": "",
1693
+ "example": "ping",
1694
1694
  "member": "string",
1695
1695
  "name": "Cmd",
1696
- "required": true,
1696
+ "output_required": true,
1697
1697
  "type": "string",
1698
1698
  "value_allowed_null": false
1699
1699
  },
1700
1700
  {
1701
1701
  "disabled": false,
1702
- "document": "耗时时长。",
1703
- "example": "",
1702
+ "document": "耗时时长。单位:ms。",
1703
+ "example": "4688000",
1704
1704
  "member": "int64",
1705
1705
  "name": "Took",
1706
- "required": true,
1706
+ "output_required": true,
1707
1707
  "type": "int",
1708
1708
  "value_allowed_null": false
1709
1709
  }
@@ -3860,8 +3860,8 @@
3860
3860
  "members": [
3861
3861
  {
3862
3862
  "disabled": false,
3863
- "document": "实例Id",
3864
- "example": "",
3863
+ "document": "实例 ID。",
3864
+ "example": "crs-5a4py64p",
3865
3865
  "member": "string",
3866
3866
  "name": "InstanceId",
3867
3867
  "required": true,
@@ -3869,8 +3869,8 @@
3869
3869
  },
3870
3870
  {
3871
3871
  "disabled": false,
3872
- "document": "时间范围:1——实时,2——近30分钟,3——近6小时,4——近24小时",
3873
- "example": "",
3872
+ "document": "时间范围。\n- 1:实时。\n- 2:近30分钟。\n- 3:近6小时。\n- 4:近24小时。",
3873
+ "example": "4",
3874
3874
  "member": "int64",
3875
3875
  "name": "SpanType",
3876
3876
  "required": true,
@@ -3885,7 +3885,7 @@
3885
3885
  {
3886
3886
  "disabled": false,
3887
3887
  "document": "访问命令信息",
3888
- "example": "",
3888
+ "example": "",
3889
3889
  "member": "SourceCommand",
3890
3890
  "name": "Data",
3891
3891
  "output_required": true,
@@ -6408,8 +6408,8 @@
6408
6408
  "members": [
6409
6409
  {
6410
6410
  "disabled": false,
6411
- "document": "节点名称。",
6412
- "example": "",
6411
+ "document": "节点组名称。",
6412
+ "example": "ng-00",
6413
6413
  "member": "string",
6414
6414
  "name": "Name",
6415
6415
  "output_required": true,
@@ -9225,7 +9225,7 @@
9225
9225
  "example": "486489",
9226
9226
  "member": "int64",
9227
9227
  "name": "TaskId",
9228
- "required": true,
9228
+ "output_required": true,
9229
9229
  "type": "int",
9230
9230
  "value_allowed_null": false
9231
9231
  },
@@ -10831,20 +10831,20 @@
10831
10831
  {
10832
10832
  "disabled": false,
10833
10833
  "document": "命令名称。",
10834
- "example": "",
10834
+ "example": "ping",
10835
10835
  "member": "string",
10836
10836
  "name": "Cmd",
10837
- "required": true,
10837
+ "output_required": true,
10838
10838
  "type": "string",
10839
10839
  "value_allowed_null": false
10840
10840
  },
10841
10841
  {
10842
10842
  "disabled": false,
10843
10843
  "document": "执行次数。",
10844
- "example": "",
10844
+ "example": "179562",
10845
10845
  "member": "int64",
10846
10846
  "name": "Count",
10847
- "required": true,
10847
+ "output_required": true,
10848
10848
  "type": "int",
10849
10849
  "value_allowed_null": false
10850
10850
  }
@@ -11681,7 +11681,7 @@
11681
11681
  {
11682
11682
  "disabled": false,
11683
11683
  "document": "可用区ID:如ap-guangzhou-3",
11684
- "example": "",
11684
+ "example": "ap-guangzhou-3",
11685
11685
  "member": "string",
11686
11686
  "name": "ZoneId",
11687
11687
  "output_required": true,
@@ -11690,8 +11690,8 @@
11690
11690
  },
11691
11691
  {
11692
11692
  "disabled": false,
11693
- "document": "可用区名称",
11694
- "example": "",
11693
+ "document": "可用区名称。",
11694
+ "example": "广州三区",
11695
11695
  "member": "string",
11696
11696
  "name": "ZoneName",
11697
11697
  "output_required": true,
@@ -11700,8 +11700,8 @@
11700
11700
  },
11701
11701
  {
11702
11702
  "disabled": false,
11703
- "document": "可用区是否售罄",
11704
- "example": "",
11703
+ "document": "可用区是否售罄。",
11704
+ "example": "false",
11705
11705
  "member": "bool",
11706
11706
  "name": "IsSaleout",
11707
11707
  "output_required": true,
@@ -11710,8 +11710,8 @@
11710
11710
  },
11711
11711
  {
11712
11712
  "disabled": false,
11713
- "document": "是否为默认可用区",
11714
- "example": "",
11713
+ "document": "是否为默认可用区。",
11714
+ "example": "false",
11715
11715
  "member": "bool",
11716
11716
  "name": "IsDefault",
11717
11717
  "output_required": true,
@@ -11720,8 +11720,8 @@
11720
11720
  },
11721
11721
  {
11722
11722
  "disabled": false,
11723
- "document": "网络类型:basenet -- 基础网络;vpcnet -- VPC网络",
11724
- "example": "",
11723
+ "document": "网络类型。\n- basenet:基础网络。\n- vpcnet -- VPC网络。",
11724
+ "example": "vpcnet ",
11725
11725
  "member": "string",
11726
11726
  "name": "NetWorkType",
11727
11727
  "output_required": true,
@@ -11741,7 +11741,7 @@
11741
11741
  {
11742
11742
  "disabled": false,
11743
11743
  "document": "可用区ID:如100003",
11744
- "example": "",
11744
+ "example": "100003",
11745
11745
  "member": "int64",
11746
11746
  "name": "OldZoneId",
11747
11747
  "output_required": true,
@@ -705,7 +705,7 @@
705
705
  "OpenSSL": [
706
706
  {
707
707
  "document": "",
708
- "input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenSSL\n<公共请求参数>\n\n{\n \"InstanceId\": \"xx\"\n}",
708
+ "input": "POST / HTTP/1.1\nHost: redis.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenSSL\n<公共请求参数>\n\n{\n \"InstanceId\": \"crs-dvchdv5\"\n}",
709
709
  "output": "{\n \"Response\": {\n \"TaskId\": 329,\n \"RequestId\": \"e546784b-709c-401d-aba6-73037eb4e522\"\n }\n}",
710
710
  "title": "开启SSL请求示例"
711
711
  }