tccli-intl-en 3.0.1274.1__py2.py3-none-any.whl → 3.0.1276.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tccli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.0.1274.1'
1
+ __version__ = '3.0.1276.1'
@@ -2461,6 +2461,58 @@ def doUpgradeProxy(args, parsed_globals):
2461
2461
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2462
2462
 
2463
2463
 
2464
+ def doInquirePriceMultiSpec(args, parsed_globals):
2465
+ g_param = parse_global_arg(parsed_globals)
2466
+
2467
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2468
+ cred = credential.CVMRoleCredential()
2469
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2470
+ cred = credential.STSAssumeRoleCredential(
2471
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2472
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2473
+ )
2474
+ 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):
2475
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2476
+ else:
2477
+ cred = credential.Credential(
2478
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2479
+ )
2480
+ http_profile = HttpProfile(
2481
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2482
+ reqMethod="POST",
2483
+ endpoint=g_param[OptionsDefine.Endpoint],
2484
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2485
+ )
2486
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2487
+ if g_param[OptionsDefine.Language]:
2488
+ profile.language = g_param[OptionsDefine.Language]
2489
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2490
+ client = mod.CynosdbClient(cred, g_param[OptionsDefine.Region], profile)
2491
+ client._sdkVersion += ("_CLI_" + __version__)
2492
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2493
+ model = models.InquirePriceMultiSpecRequest()
2494
+ model.from_json_string(json.dumps(args))
2495
+ start_time = time.time()
2496
+ while True:
2497
+ rsp = client.InquirePriceMultiSpec(model)
2498
+ result = rsp.to_json_string()
2499
+ try:
2500
+ json_obj = json.loads(result)
2501
+ except TypeError as e:
2502
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2503
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2504
+ break
2505
+ cur_time = time.time()
2506
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2507
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2508
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2509
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2510
+ else:
2511
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2512
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2513
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2514
+
2515
+
2464
2516
  def doDescribeClusters(args, parsed_globals):
2465
2517
  g_param = parse_global_arg(parsed_globals)
2466
2518
 
@@ -7355,6 +7407,7 @@ ACTION_MAP = {
7355
7407
  "DescribeInstancesWithinSameCluster": doDescribeInstancesWithinSameCluster,
7356
7408
  "RestartInstance": doRestartInstance,
7357
7409
  "UpgradeProxy": doUpgradeProxy,
7410
+ "InquirePriceMultiSpec": doInquirePriceMultiSpec,
7358
7411
  "DescribeClusters": doDescribeClusters,
7359
7412
  "CloseWan": doCloseWan,
7360
7413
  "DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
@@ -567,6 +567,13 @@
567
567
  "output": "InquirePriceModifyResponse",
568
568
  "status": "online"
569
569
  },
570
+ "InquirePriceMultiSpec": {
571
+ "document": "This API is used to inquire prices in batch.",
572
+ "input": "InquirePriceMultiSpecRequest",
573
+ "name": "Query multi-specification pricing",
574
+ "output": "InquirePriceMultiSpecResponse",
575
+ "status": "online"
576
+ },
570
577
  "InquirePriceRenew": {
571
578
  "document": "This API is used to query the renewal price of a cluster.",
572
579
  "input": "InquirePriceRenewRequest",
@@ -10722,6 +10729,136 @@
10722
10729
  ],
10723
10730
  "type": "object"
10724
10731
  },
10732
+ "GoodsPrice": {
10733
+ "document": "Item price.",
10734
+ "members": [
10735
+ {
10736
+ "disabled": false,
10737
+ "document": "Specifies the instance price.\nNote: This field may return null, indicating that no valid values can be obtained.",
10738
+ "example": "无",
10739
+ "member": "TradePrice",
10740
+ "name": "InstancePrice",
10741
+ "required": true,
10742
+ "type": "object",
10743
+ "value_allowed_null": true
10744
+ },
10745
+ {
10746
+ "disabled": false,
10747
+ "document": "Specifies the storage price.\nNote: This field may return null, indicating that no valid values can be obtained.",
10748
+ "example": "无",
10749
+ "member": "TradePrice",
10750
+ "name": "StoragePrice",
10751
+ "required": true,
10752
+ "type": "object",
10753
+ "value_allowed_null": true
10754
+ },
10755
+ {
10756
+ "disabled": false,
10757
+ "document": "Specifies the product specification.\nNote: This field may return null, indicating that no valid values can be obtained.",
10758
+ "example": "无",
10759
+ "member": "GoodsSpec",
10760
+ "name": "GoodsSpec",
10761
+ "required": true,
10762
+ "type": "object",
10763
+ "value_allowed_null": true
10764
+ }
10765
+ ],
10766
+ "usage": "out"
10767
+ },
10768
+ "GoodsSpec": {
10769
+ "document": "Product specification.",
10770
+ "members": [
10771
+ {
10772
+ "disabled": false,
10773
+ "document": "Number of products\nNote: This field may return null, indicating that no valid values can be obtained.",
10774
+ "example": "1",
10775
+ "member": "int64",
10776
+ "name": "GoodsNum",
10777
+ "output_required": false,
10778
+ "required": false,
10779
+ "type": "int",
10780
+ "value_allowed_null": true
10781
+ },
10782
+ {
10783
+ "disabled": false,
10784
+ "document": "Number of CPU cores. required for PREPAID and POSTPAID instance types.\nNote: This field may return null, indicating that no valid values can be obtained.",
10785
+ "example": "1",
10786
+ "member": "int64",
10787
+ "name": "Cpu",
10788
+ "output_required": false,
10789
+ "required": false,
10790
+ "type": "int",
10791
+ "value_allowed_null": true
10792
+ },
10793
+ {
10794
+ "disabled": false,
10795
+ "document": "Memory size in gb. required for PREPAID and POSTPAID instance types.\nNote: This field may return null, indicating that no valid values can be obtained.",
10796
+ "example": "2",
10797
+ "member": "int64",
10798
+ "name": "Memory",
10799
+ "output_required": false,
10800
+ "required": false,
10801
+ "type": "int",
10802
+ "value_allowed_null": true
10803
+ },
10804
+ {
10805
+ "disabled": false,
10806
+ "document": "Ccu size. required for serverless type.\nNote: This field may return null, indicating that no valid values can be obtained.",
10807
+ "example": "0.5",
10808
+ "member": "float",
10809
+ "name": "Ccu",
10810
+ "output_required": false,
10811
+ "required": false,
10812
+ "type": "float",
10813
+ "value_allowed_null": true
10814
+ },
10815
+ {
10816
+ "disabled": false,
10817
+ "document": "Storage size. required for PREPAID storage type.\nNote: This field may return null, indicating that no valid values can be obtained.",
10818
+ "example": "10",
10819
+ "member": "int64",
10820
+ "name": "StorageLimit",
10821
+ "output_required": false,
10822
+ "required": false,
10823
+ "type": "int",
10824
+ "value_allowed_null": true
10825
+ },
10826
+ {
10827
+ "disabled": false,
10828
+ "document": "Purchase duration.\nNote: This field may return null, indicating that no valid values can be obtained.",
10829
+ "example": "1",
10830
+ "member": "int64",
10831
+ "name": "TimeSpan",
10832
+ "output_required": false,
10833
+ "required": false,
10834
+ "type": "int",
10835
+ "value_allowed_null": true
10836
+ },
10837
+ {
10838
+ "disabled": false,
10839
+ "document": "Duration unit.\nNote: This field may return null, indicating that no valid values can be obtained.",
10840
+ "example": "m",
10841
+ "member": "string",
10842
+ "name": "TimeUnit",
10843
+ "output_required": false,
10844
+ "required": false,
10845
+ "type": "string",
10846
+ "value_allowed_null": true
10847
+ },
10848
+ {
10849
+ "disabled": false,
10850
+ "document": "Machine type.",
10851
+ "example": "common",
10852
+ "member": "string",
10853
+ "name": "DeviceType",
10854
+ "output_required": false,
10855
+ "required": false,
10856
+ "type": "string",
10857
+ "value_allowed_null": false
10858
+ }
10859
+ ],
10860
+ "usage": "both"
10861
+ },
10725
10862
  "InputAccount": {
10726
10863
  "document": "Account. Valid values: `accountName`, `host`.",
10727
10864
  "members": [
@@ -10984,6 +11121,70 @@
10984
11121
  ],
10985
11122
  "type": "object"
10986
11123
  },
11124
+ "InquirePriceMultiSpecRequest": {
11125
+ "document": "InquirePriceMultiSpec request structure.",
11126
+ "members": [
11127
+ {
11128
+ "disabled": false,
11129
+ "document": "Availability zone. specifies the best practice for region provision.",
11130
+ "example": "ap-guangzhou-2",
11131
+ "member": "string",
11132
+ "name": "Zone",
11133
+ "required": true,
11134
+ "type": "string"
11135
+ },
11136
+ {
11137
+ "disabled": false,
11138
+ "document": "Instance purchase type. available values are: PREPAID, POSTPAID, SERVERLESS.",
11139
+ "example": "PREPAID",
11140
+ "member": "string",
11141
+ "name": "InstancePayMode",
11142
+ "required": true,
11143
+ "type": "string"
11144
+ },
11145
+ {
11146
+ "disabled": false,
11147
+ "document": "Storage purchase type. available values are: PREPAID, POSTPAID.",
11148
+ "example": "POSTPAID",
11149
+ "member": "string",
11150
+ "name": "StoragePayMode",
11151
+ "required": true,
11152
+ "type": "string"
11153
+ },
11154
+ {
11155
+ "disabled": false,
11156
+ "document": "Specifies the product specification.",
11157
+ "example": "无",
11158
+ "member": "GoodsSpec",
11159
+ "name": "GoodsSpecs",
11160
+ "required": true,
11161
+ "type": "list"
11162
+ }
11163
+ ],
11164
+ "type": "object"
11165
+ },
11166
+ "InquirePriceMultiSpecResponse": {
11167
+ "document": "InquirePriceMultiSpec response structure.",
11168
+ "members": [
11169
+ {
11170
+ "disabled": false,
11171
+ "document": "Specifies the product price.",
11172
+ "example": "无",
11173
+ "member": "GoodsPrice",
11174
+ "name": "GoodsPrice",
11175
+ "output_required": true,
11176
+ "type": "list",
11177
+ "value_allowed_null": false
11178
+ },
11179
+ {
11180
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
11181
+ "member": "string",
11182
+ "name": "RequestId",
11183
+ "type": "string"
11184
+ }
11185
+ ],
11186
+ "type": "object"
11187
+ },
10987
11188
  "InquirePriceRenewRequest": {
10988
11189
  "document": "InquirePriceRenew request structure.",
10989
11190
  "members": [
@@ -660,6 +660,14 @@
660
660
  "title": "Query the Price for Resizing Prepaid Resources"
661
661
  }
662
662
  ],
663
+ "InquirePriceMultiSpec": [
664
+ {
665
+ "document": "",
666
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InquirePriceMultiSpec\n<Common request parameters>\n\n{\n \"Zone\": \"ap-guangzhou-4\",\n \"InstancePayMode\": \"PREPAID\",\n \"StoragePayMode\": \"POSTPAID\",\n \"GoodsSpecs\": [\n {\n \"GoodsNum\": 1,\n \"Cpu\": 1,\n \"Memory\": 1,\n \"TimeSpan\": 1,\n \"TimeUnit\": \"m\"\n }\n ]\n}",
667
+ "output": "{\n \"Response\": {\n \"GoodsPrice\": [\n {\n \"GoodsSpec\": {\n \"Ccu\": 0,\n \"Cpu\": 1,\n \"DeviceType\": \"\",\n \"GoodsNum\": 1,\n \"Memory\": 1,\n \"StorageLimit\": 0,\n \"TimeSpan\": 1,\n \"TimeUnit\": \"m\"\n },\n \"InstancePrice\": {\n \"ChargeUnit\": \"m\",\n \"Discount\": 100,\n \"TotalPrice\": 6000,\n \"TotalPriceDiscount\": 6000,\n \"UnitPrice\": 0,\n \"UnitPriceDiscount\": 0\n },\n \"StoragePrice\": {\n \"ChargeUnit\": \"\",\n \"Discount\": 0,\n \"TotalPrice\": 0,\n \"TotalPriceDiscount\": 0,\n \"UnitPrice\": 0,\n \"UnitPriceDiscount\": 0\n }\n }\n ],\n \"RequestId\": \"b30bbeef-370b-4176c085\"\n }\n}",
668
+ "title": "Querying Multi-Specification Pricing"
669
+ }
670
+ ],
663
671
  "InquirePriceRenew": [
664
672
  {
665
673
  "document": " ",
@@ -745,6 +745,58 @@ def doCreateStreamPackageHarvestJob(args, parsed_globals):
745
745
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
746
 
747
747
 
748
+ def doBindSSAICDNDomainWithChannel(args, parsed_globals):
749
+ g_param = parse_global_arg(parsed_globals)
750
+
751
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
752
+ cred = credential.CVMRoleCredential()
753
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
754
+ cred = credential.STSAssumeRoleCredential(
755
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
756
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
757
+ )
758
+ 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):
759
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
760
+ else:
761
+ cred = credential.Credential(
762
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
763
+ )
764
+ http_profile = HttpProfile(
765
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
766
+ reqMethod="POST",
767
+ endpoint=g_param[OptionsDefine.Endpoint],
768
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
769
+ )
770
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
771
+ if g_param[OptionsDefine.Language]:
772
+ profile.language = g_param[OptionsDefine.Language]
773
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
774
+ client = mod.MdpClient(cred, g_param[OptionsDefine.Region], profile)
775
+ client._sdkVersion += ("_CLI_" + __version__)
776
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
+ model = models.BindSSAICDNDomainWithChannelRequest()
778
+ model.from_json_string(json.dumps(args))
779
+ start_time = time.time()
780
+ while True:
781
+ rsp = client.BindSSAICDNDomainWithChannel(model)
782
+ result = rsp.to_json_string()
783
+ try:
784
+ json_obj = json.loads(result)
785
+ except TypeError as e:
786
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
787
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
788
+ break
789
+ cur_time = time.time()
790
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
791
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
792
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
793
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
794
+ else:
795
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
796
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
797
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
+
799
+
748
800
  def doDescribeLinearAssemblyCDNDomainWithChannel(args, parsed_globals):
749
801
  g_param = parse_global_arg(parsed_globals)
750
802
 
@@ -2045,6 +2097,58 @@ def doCreateStreamPackageLinearAssemblyProgram(args, parsed_globals):
2045
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2046
2098
 
2047
2099
 
2100
+ def doDescribeStreamPackageLinearAssemblyChannels(args, parsed_globals):
2101
+ g_param = parse_global_arg(parsed_globals)
2102
+
2103
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2104
+ cred = credential.CVMRoleCredential()
2105
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2106
+ cred = credential.STSAssumeRoleCredential(
2107
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2108
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2109
+ )
2110
+ 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):
2111
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2112
+ else:
2113
+ cred = credential.Credential(
2114
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2115
+ )
2116
+ http_profile = HttpProfile(
2117
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2118
+ reqMethod="POST",
2119
+ endpoint=g_param[OptionsDefine.Endpoint],
2120
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2121
+ )
2122
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2123
+ if g_param[OptionsDefine.Language]:
2124
+ profile.language = g_param[OptionsDefine.Language]
2125
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2126
+ client = mod.MdpClient(cred, g_param[OptionsDefine.Region], profile)
2127
+ client._sdkVersion += ("_CLI_" + __version__)
2128
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2129
+ model = models.DescribeStreamPackageLinearAssemblyChannelsRequest()
2130
+ model.from_json_string(json.dumps(args))
2131
+ start_time = time.time()
2132
+ while True:
2133
+ rsp = client.DescribeStreamPackageLinearAssemblyChannels(model)
2134
+ result = rsp.to_json_string()
2135
+ try:
2136
+ json_obj = json.loads(result)
2137
+ except TypeError as e:
2138
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2139
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2140
+ break
2141
+ cur_time = time.time()
2142
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2143
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2144
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2145
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2146
+ else:
2147
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2148
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2149
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2150
+
2151
+
2048
2152
  def doDeleteStreamPackageLinearAssemblyPrograms(args, parsed_globals):
2049
2153
  g_param = parse_global_arg(parsed_globals)
2050
2154
 
@@ -2617,7 +2721,7 @@ def doDescribeStreamPackageChannel(args, parsed_globals):
2617
2721
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
2722
 
2619
2723
 
2620
- def doDescribeStreamPackageLinearAssemblyChannels(args, parsed_globals):
2724
+ def doUnbindSSAICDNDomainWithChannel(args, parsed_globals):
2621
2725
  g_param = parse_global_arg(parsed_globals)
2622
2726
 
2623
2727
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -2646,11 +2750,11 @@ def doDescribeStreamPackageLinearAssemblyChannels(args, parsed_globals):
2646
2750
  client = mod.MdpClient(cred, g_param[OptionsDefine.Region], profile)
2647
2751
  client._sdkVersion += ("_CLI_" + __version__)
2648
2752
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
2649
- model = models.DescribeStreamPackageLinearAssemblyChannelsRequest()
2753
+ model = models.UnbindSSAICDNDomainWithChannelRequest()
2650
2754
  model.from_json_string(json.dumps(args))
2651
2755
  start_time = time.time()
2652
2756
  while True:
2653
- rsp = client.DescribeStreamPackageLinearAssemblyChannels(model)
2757
+ rsp = client.UnbindSSAICDNDomainWithChannel(model)
2654
2758
  result = rsp.to_json_string()
2655
2759
  try:
2656
2760
  json_obj = json.loads(result)
@@ -3162,6 +3266,7 @@ ACTION_MAP = {
3162
3266
  "ModifyStreamPackageLinearAssemblyProgram": doModifyStreamPackageLinearAssemblyProgram,
3163
3267
  "ModifyStreamPackageSource": doModifyStreamPackageSource,
3164
3268
  "CreateStreamPackageHarvestJob": doCreateStreamPackageHarvestJob,
3269
+ "BindSSAICDNDomainWithChannel": doBindSSAICDNDomainWithChannel,
3165
3270
  "DescribeLinearAssemblyCDNDomainWithChannel": doDescribeLinearAssemblyCDNDomainWithChannel,
3166
3271
  "ModifyStreamPackageChannelEndpoint": doModifyStreamPackageChannelEndpoint,
3167
3272
  "DescribeStreamPackageSSAIUsage": doDescribeStreamPackageSSAIUsage,
@@ -3187,6 +3292,7 @@ ACTION_MAP = {
3187
3292
  "DeleteStreamPackageSource": doDeleteStreamPackageSource,
3188
3293
  "ModifyStreamPackageLinearAssemblyChannel": doModifyStreamPackageLinearAssemblyChannel,
3189
3294
  "CreateStreamPackageLinearAssemblyProgram": doCreateStreamPackageLinearAssemblyProgram,
3295
+ "DescribeStreamPackageLinearAssemblyChannels": doDescribeStreamPackageLinearAssemblyChannels,
3190
3296
  "DeleteStreamPackageLinearAssemblyPrograms": doDeleteStreamPackageLinearAssemblyPrograms,
3191
3297
  "DescribeStreamPackageLinearAssemblyProgramSchedules": doDescribeStreamPackageLinearAssemblyProgramSchedules,
3192
3298
  "DeleteStreamPackageSourceLocation": doDeleteStreamPackageSourceLocation,
@@ -3198,7 +3304,7 @@ ACTION_MAP = {
3198
3304
  "DescribeStreamPackageSourceLocation": doDescribeStreamPackageSourceLocation,
3199
3305
  "DeleteStreamPackageLinearAssemblyChannels": doDeleteStreamPackageLinearAssemblyChannels,
3200
3306
  "DescribeStreamPackageChannel": doDescribeStreamPackageChannel,
3201
- "DescribeStreamPackageLinearAssemblyChannels": doDescribeStreamPackageLinearAssemblyChannels,
3307
+ "UnbindSSAICDNDomainWithChannel": doUnbindSSAICDNDomainWithChannel,
3202
3308
  "DeleteStreamPackageVodRemuxTasks": doDeleteStreamPackageVodRemuxTasks,
3203
3309
  "CreateStreamPackageChannel": doCreateStreamPackageChannel,
3204
3310
  "DescribeStreamPackageSourceLocationAlerts": doDescribeStreamPackageSourceLocationAlerts,
@@ -14,6 +14,13 @@
14
14
  "output": "BindNewLVBDomainWithChannelResponse",
15
15
  "status": "online"
16
16
  },
17
+ "BindSSAICDNDomainWithChannel": {
18
+ "document": "This API is used to bind a CDN playback domain to a channel.",
19
+ "input": "BindSSAICDNDomainWithChannelRequest",
20
+ "name": "Bind an SSAI channel to a CDN playback domain",
21
+ "output": "BindSSAICDNDomainWithChannelResponse",
22
+ "status": "online"
23
+ },
17
24
  "CreateStreamPackageChannel": {
18
25
  "document": "This API is used to create a StreamPackage channel.",
19
26
  "input": "CreateStreamPackageChannelRequest",
@@ -419,6 +426,13 @@
419
426
  "name": "UnbindLinearAssemblyCDNDomainWithChannel",
420
427
  "output": "UnbindLinearAssemblyCDNDomainWithChannelResponse",
421
428
  "status": "online"
429
+ },
430
+ "UnbindSSAICDNDomainWithChannel": {
431
+ "document": "This API is used to cancel the correlation between a channel and a CDN playback domain.",
432
+ "input": "UnbindSSAICDNDomainWithChannelRequest",
433
+ "name": "Unbind an SSAI channel and CDN domain",
434
+ "output": "UnbindSSAICDNDomainWithChannelResponse",
435
+ "status": "online"
422
436
  }
423
437
  },
424
438
  "metadata": {
@@ -629,6 +643,42 @@
629
643
  ],
630
644
  "type": "object"
631
645
  },
646
+ "BindSSAICDNDomainWithChannelRequest": {
647
+ "document": "BindSSAICDNDomainWithChannel request structure.",
648
+ "members": [
649
+ {
650
+ "disabled": false,
651
+ "document": "Channel Id.",
652
+ "example": "ChannelId",
653
+ "member": "string",
654
+ "name": "ChannelId",
655
+ "required": true,
656
+ "type": "string"
657
+ },
658
+ {
659
+ "disabled": false,
660
+ "document": "Specifies the playback domain of CDN.",
661
+ "example": "CdnDomain",
662
+ "member": "string",
663
+ "name": "CdnDomain",
664
+ "required": true,
665
+ "type": "string"
666
+ }
667
+ ],
668
+ "type": "object"
669
+ },
670
+ "BindSSAICDNDomainWithChannelResponse": {
671
+ "document": "BindSSAICDNDomainWithChannel response structure.",
672
+ "members": [
673
+ {
674
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
675
+ "member": "string",
676
+ "name": "RequestId",
677
+ "type": "string"
678
+ }
679
+ ],
680
+ "type": "object"
681
+ },
632
682
  "CacheInfo": {
633
683
  "document": "Cache configuration",
634
684
  "members": [
@@ -6613,6 +6663,42 @@
6613
6663
  ],
6614
6664
  "type": "object"
6615
6665
  },
6666
+ "UnbindSSAICDNDomainWithChannelRequest": {
6667
+ "document": "UnbindSSAICDNDomainWithChannel request structure.",
6668
+ "members": [
6669
+ {
6670
+ "disabled": false,
6671
+ "document": "Channel Id.",
6672
+ "example": "ChannelId",
6673
+ "member": "string",
6674
+ "name": "ChannelId",
6675
+ "required": true,
6676
+ "type": "string"
6677
+ },
6678
+ {
6679
+ "disabled": false,
6680
+ "document": "Specifies the playback domain of CDN.",
6681
+ "example": "CdnDomain",
6682
+ "member": "string",
6683
+ "name": "CdnDomain",
6684
+ "required": true,
6685
+ "type": "string"
6686
+ }
6687
+ ],
6688
+ "type": "object"
6689
+ },
6690
+ "UnbindSSAICDNDomainWithChannelResponse": {
6691
+ "document": "UnbindSSAICDNDomainWithChannel response structure.",
6692
+ "members": [
6693
+ {
6694
+ "document": "The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.",
6695
+ "member": "string",
6696
+ "name": "RequestId",
6697
+ "type": "string"
6698
+ }
6699
+ ],
6700
+ "type": "object"
6701
+ },
6616
6702
  "UsageDetail": {
6617
6703
  "document": "Ad insertion configuration and SSAI usage detail by advertisement type dimension.",
6618
6704
  "members": [
@@ -16,6 +16,14 @@
16
16
  "title": "Sample request"
17
17
  }
18
18
  ],
19
+ "BindSSAICDNDomainWithChannel": [
20
+ {
21
+ "document": "This example shows you how to bind a CDN playback domain to a channel.",
22
+ "input": "POST / HTTP/1.1\nHost: mdp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BindSSAICDNDomainWithChannel\n<Common request parameters>\n\n{\n \"ChannelId\": \"68F6FCCD00003FEF93DB\",\n \"CdnDomain\": \"abc\"\n}",
23
+ "output": "{\n \"Response\": {\n \"RequestId\": \"790d6787-6aa7-4f0e-b327-65e53c01949c\"\n }\n}",
24
+ "title": "Request Example"
25
+ }
26
+ ],
19
27
  "CreateStreamPackageChannel": [
20
28
  {
21
29
  "document": " ",
@@ -479,6 +487,14 @@
479
487
  "output": "{\n \"Response\": {\n \"RequestId\": \"XXXREQ\"\n }\n}",
480
488
  "title": "Sample request"
481
489
  }
490
+ ],
491
+ "UnbindSSAICDNDomainWithChannel": [
492
+ {
493
+ "document": "This example shows you how to cancel the correlation between a channel and a CDN playback domain.",
494
+ "input": "POST / HTTP/1.1\nHost: mdp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UnbindSSAICDNDomainWithChannel\n<Common request parameters>\n\n{\n \"ChannelId\": \"68F6FCCD00003FEF93DB\",\n \"CdnDomain\": \"abc\"\n}",
495
+ "output": "{\n \"Response\": {\n \"RequestId\": \"790d6787-68e7-4ace-b327-65e53c01949c\"\n }\n}",
496
+ "title": "Request Example"
497
+ }
482
498
  ]
483
499
  },
484
500
  "version": "1.0"