alibabacloud-ice20201109 6.4.3__py3-none-any.whl → 6.5.1__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.
- alibabacloud_ice20201109/__init__.py +1 -1
- alibabacloud_ice20201109/client.py +1478 -37
- alibabacloud_ice20201109/models.py +2960 -411
- {alibabacloud_ice20201109-6.4.3.dist-info → alibabacloud_ice20201109-6.5.1.dist-info}/METADATA +2 -2
- alibabacloud_ice20201109-6.5.1.dist-info/RECORD +8 -0
- alibabacloud_ice20201109-6.4.3.dist-info/RECORD +0 -8
- {alibabacloud_ice20201109-6.4.3.dist-info → alibabacloud_ice20201109-6.5.1.dist-info}/LICENSE +0 -0
- {alibabacloud_ice20201109-6.4.3.dist-info → alibabacloud_ice20201109-6.5.1.dist-info}/WHEEL +0 -0
- {alibabacloud_ice20201109-6.4.3.dist-info → alibabacloud_ice20201109-6.5.1.dist-info}/top_level.txt +0 -0
|
@@ -21,7 +21,6 @@ class Client(OpenApiClient):
|
|
|
21
21
|
config: open_api_models.Config,
|
|
22
22
|
):
|
|
23
23
|
super().__init__(config)
|
|
24
|
-
self._signature_algorithm = 'v2'
|
|
25
24
|
self._endpoint_rule = 'regional'
|
|
26
25
|
self._endpoint_map = {
|
|
27
26
|
'ap-northeast-1': 'ice.aliyuncs.com',
|
|
@@ -1676,6 +1675,298 @@ class Client(OpenApiClient):
|
|
|
1676
1675
|
runtime = util_models.RuntimeOptions()
|
|
1677
1676
|
return await self.cancel_favorite_public_media_with_options_async(request, runtime)
|
|
1678
1677
|
|
|
1678
|
+
def cancel_iproduction_job_with_options(
|
|
1679
|
+
self,
|
|
1680
|
+
request: ice20201109_models.CancelIProductionJobRequest,
|
|
1681
|
+
runtime: util_models.RuntimeOptions,
|
|
1682
|
+
) -> ice20201109_models.CancelIProductionJobResponse:
|
|
1683
|
+
"""
|
|
1684
|
+
@summary 取消智能生产任务
|
|
1685
|
+
|
|
1686
|
+
@param request: CancelIProductionJobRequest
|
|
1687
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1688
|
+
@return: CancelIProductionJobResponse
|
|
1689
|
+
"""
|
|
1690
|
+
UtilClient.validate_model(request)
|
|
1691
|
+
query = {}
|
|
1692
|
+
if not UtilClient.is_unset(request.client_token):
|
|
1693
|
+
query['ClientToken'] = request.client_token
|
|
1694
|
+
if not UtilClient.is_unset(request.job_id):
|
|
1695
|
+
query['JobId'] = request.job_id
|
|
1696
|
+
req = open_api_models.OpenApiRequest(
|
|
1697
|
+
query=OpenApiUtilClient.query(query)
|
|
1698
|
+
)
|
|
1699
|
+
params = open_api_models.Params(
|
|
1700
|
+
action='CancelIProductionJob',
|
|
1701
|
+
version='2020-11-09',
|
|
1702
|
+
protocol='HTTPS',
|
|
1703
|
+
pathname='/',
|
|
1704
|
+
method='POST',
|
|
1705
|
+
auth_type='AK',
|
|
1706
|
+
style='RPC',
|
|
1707
|
+
req_body_type='formData',
|
|
1708
|
+
body_type='json'
|
|
1709
|
+
)
|
|
1710
|
+
return TeaCore.from_map(
|
|
1711
|
+
ice20201109_models.CancelIProductionJobResponse(),
|
|
1712
|
+
self.call_api(params, req, runtime)
|
|
1713
|
+
)
|
|
1714
|
+
|
|
1715
|
+
async def cancel_iproduction_job_with_options_async(
|
|
1716
|
+
self,
|
|
1717
|
+
request: ice20201109_models.CancelIProductionJobRequest,
|
|
1718
|
+
runtime: util_models.RuntimeOptions,
|
|
1719
|
+
) -> ice20201109_models.CancelIProductionJobResponse:
|
|
1720
|
+
"""
|
|
1721
|
+
@summary 取消智能生产任务
|
|
1722
|
+
|
|
1723
|
+
@param request: CancelIProductionJobRequest
|
|
1724
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1725
|
+
@return: CancelIProductionJobResponse
|
|
1726
|
+
"""
|
|
1727
|
+
UtilClient.validate_model(request)
|
|
1728
|
+
query = {}
|
|
1729
|
+
if not UtilClient.is_unset(request.client_token):
|
|
1730
|
+
query['ClientToken'] = request.client_token
|
|
1731
|
+
if not UtilClient.is_unset(request.job_id):
|
|
1732
|
+
query['JobId'] = request.job_id
|
|
1733
|
+
req = open_api_models.OpenApiRequest(
|
|
1734
|
+
query=OpenApiUtilClient.query(query)
|
|
1735
|
+
)
|
|
1736
|
+
params = open_api_models.Params(
|
|
1737
|
+
action='CancelIProductionJob',
|
|
1738
|
+
version='2020-11-09',
|
|
1739
|
+
protocol='HTTPS',
|
|
1740
|
+
pathname='/',
|
|
1741
|
+
method='POST',
|
|
1742
|
+
auth_type='AK',
|
|
1743
|
+
style='RPC',
|
|
1744
|
+
req_body_type='formData',
|
|
1745
|
+
body_type='json'
|
|
1746
|
+
)
|
|
1747
|
+
return TeaCore.from_map(
|
|
1748
|
+
ice20201109_models.CancelIProductionJobResponse(),
|
|
1749
|
+
await self.call_api_async(params, req, runtime)
|
|
1750
|
+
)
|
|
1751
|
+
|
|
1752
|
+
def cancel_iproduction_job(
|
|
1753
|
+
self,
|
|
1754
|
+
request: ice20201109_models.CancelIProductionJobRequest,
|
|
1755
|
+
) -> ice20201109_models.CancelIProductionJobResponse:
|
|
1756
|
+
"""
|
|
1757
|
+
@summary 取消智能生产任务
|
|
1758
|
+
|
|
1759
|
+
@param request: CancelIProductionJobRequest
|
|
1760
|
+
@return: CancelIProductionJobResponse
|
|
1761
|
+
"""
|
|
1762
|
+
runtime = util_models.RuntimeOptions()
|
|
1763
|
+
return self.cancel_iproduction_job_with_options(request, runtime)
|
|
1764
|
+
|
|
1765
|
+
async def cancel_iproduction_job_async(
|
|
1766
|
+
self,
|
|
1767
|
+
request: ice20201109_models.CancelIProductionJobRequest,
|
|
1768
|
+
) -> ice20201109_models.CancelIProductionJobResponse:
|
|
1769
|
+
"""
|
|
1770
|
+
@summary 取消智能生产任务
|
|
1771
|
+
|
|
1772
|
+
@param request: CancelIProductionJobRequest
|
|
1773
|
+
@return: CancelIProductionJobResponse
|
|
1774
|
+
"""
|
|
1775
|
+
runtime = util_models.RuntimeOptions()
|
|
1776
|
+
return await self.cancel_iproduction_job_with_options_async(request, runtime)
|
|
1777
|
+
|
|
1778
|
+
def clear_aiagent_voiceprint_with_options(
|
|
1779
|
+
self,
|
|
1780
|
+
request: ice20201109_models.ClearAIAgentVoiceprintRequest,
|
|
1781
|
+
runtime: util_models.RuntimeOptions,
|
|
1782
|
+
) -> ice20201109_models.ClearAIAgentVoiceprintResponse:
|
|
1783
|
+
"""
|
|
1784
|
+
@summary 清除声纹ID对应的声纹
|
|
1785
|
+
|
|
1786
|
+
@param request: ClearAIAgentVoiceprintRequest
|
|
1787
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1788
|
+
@return: ClearAIAgentVoiceprintResponse
|
|
1789
|
+
"""
|
|
1790
|
+
UtilClient.validate_model(request)
|
|
1791
|
+
query = {}
|
|
1792
|
+
if not UtilClient.is_unset(request.voiceprint_id):
|
|
1793
|
+
query['VoiceprintId'] = request.voiceprint_id
|
|
1794
|
+
req = open_api_models.OpenApiRequest(
|
|
1795
|
+
query=OpenApiUtilClient.query(query)
|
|
1796
|
+
)
|
|
1797
|
+
params = open_api_models.Params(
|
|
1798
|
+
action='ClearAIAgentVoiceprint',
|
|
1799
|
+
version='2020-11-09',
|
|
1800
|
+
protocol='HTTPS',
|
|
1801
|
+
pathname='/',
|
|
1802
|
+
method='POST',
|
|
1803
|
+
auth_type='AK',
|
|
1804
|
+
style='RPC',
|
|
1805
|
+
req_body_type='formData',
|
|
1806
|
+
body_type='json'
|
|
1807
|
+
)
|
|
1808
|
+
return TeaCore.from_map(
|
|
1809
|
+
ice20201109_models.ClearAIAgentVoiceprintResponse(),
|
|
1810
|
+
self.call_api(params, req, runtime)
|
|
1811
|
+
)
|
|
1812
|
+
|
|
1813
|
+
async def clear_aiagent_voiceprint_with_options_async(
|
|
1814
|
+
self,
|
|
1815
|
+
request: ice20201109_models.ClearAIAgentVoiceprintRequest,
|
|
1816
|
+
runtime: util_models.RuntimeOptions,
|
|
1817
|
+
) -> ice20201109_models.ClearAIAgentVoiceprintResponse:
|
|
1818
|
+
"""
|
|
1819
|
+
@summary 清除声纹ID对应的声纹
|
|
1820
|
+
|
|
1821
|
+
@param request: ClearAIAgentVoiceprintRequest
|
|
1822
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1823
|
+
@return: ClearAIAgentVoiceprintResponse
|
|
1824
|
+
"""
|
|
1825
|
+
UtilClient.validate_model(request)
|
|
1826
|
+
query = {}
|
|
1827
|
+
if not UtilClient.is_unset(request.voiceprint_id):
|
|
1828
|
+
query['VoiceprintId'] = request.voiceprint_id
|
|
1829
|
+
req = open_api_models.OpenApiRequest(
|
|
1830
|
+
query=OpenApiUtilClient.query(query)
|
|
1831
|
+
)
|
|
1832
|
+
params = open_api_models.Params(
|
|
1833
|
+
action='ClearAIAgentVoiceprint',
|
|
1834
|
+
version='2020-11-09',
|
|
1835
|
+
protocol='HTTPS',
|
|
1836
|
+
pathname='/',
|
|
1837
|
+
method='POST',
|
|
1838
|
+
auth_type='AK',
|
|
1839
|
+
style='RPC',
|
|
1840
|
+
req_body_type='formData',
|
|
1841
|
+
body_type='json'
|
|
1842
|
+
)
|
|
1843
|
+
return TeaCore.from_map(
|
|
1844
|
+
ice20201109_models.ClearAIAgentVoiceprintResponse(),
|
|
1845
|
+
await self.call_api_async(params, req, runtime)
|
|
1846
|
+
)
|
|
1847
|
+
|
|
1848
|
+
def clear_aiagent_voiceprint(
|
|
1849
|
+
self,
|
|
1850
|
+
request: ice20201109_models.ClearAIAgentVoiceprintRequest,
|
|
1851
|
+
) -> ice20201109_models.ClearAIAgentVoiceprintResponse:
|
|
1852
|
+
"""
|
|
1853
|
+
@summary 清除声纹ID对应的声纹
|
|
1854
|
+
|
|
1855
|
+
@param request: ClearAIAgentVoiceprintRequest
|
|
1856
|
+
@return: ClearAIAgentVoiceprintResponse
|
|
1857
|
+
"""
|
|
1858
|
+
runtime = util_models.RuntimeOptions()
|
|
1859
|
+
return self.clear_aiagent_voiceprint_with_options(request, runtime)
|
|
1860
|
+
|
|
1861
|
+
async def clear_aiagent_voiceprint_async(
|
|
1862
|
+
self,
|
|
1863
|
+
request: ice20201109_models.ClearAIAgentVoiceprintRequest,
|
|
1864
|
+
) -> ice20201109_models.ClearAIAgentVoiceprintResponse:
|
|
1865
|
+
"""
|
|
1866
|
+
@summary 清除声纹ID对应的声纹
|
|
1867
|
+
|
|
1868
|
+
@param request: ClearAIAgentVoiceprintRequest
|
|
1869
|
+
@return: ClearAIAgentVoiceprintResponse
|
|
1870
|
+
"""
|
|
1871
|
+
runtime = util_models.RuntimeOptions()
|
|
1872
|
+
return await self.clear_aiagent_voiceprint_with_options_async(request, runtime)
|
|
1873
|
+
|
|
1874
|
+
def close_media_connect_flow_failover_with_options(
|
|
1875
|
+
self,
|
|
1876
|
+
request: ice20201109_models.CloseMediaConnectFlowFailoverRequest,
|
|
1877
|
+
runtime: util_models.RuntimeOptions,
|
|
1878
|
+
) -> ice20201109_models.CloseMediaConnectFlowFailoverResponse:
|
|
1879
|
+
"""
|
|
1880
|
+
@summary 关闭MediaConnect实例的双流灾备功能
|
|
1881
|
+
|
|
1882
|
+
@param request: CloseMediaConnectFlowFailoverRequest
|
|
1883
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1884
|
+
@return: CloseMediaConnectFlowFailoverResponse
|
|
1885
|
+
"""
|
|
1886
|
+
UtilClient.validate_model(request)
|
|
1887
|
+
query = {}
|
|
1888
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
1889
|
+
query['FlowId'] = request.flow_id
|
|
1890
|
+
req = open_api_models.OpenApiRequest(
|
|
1891
|
+
query=OpenApiUtilClient.query(query)
|
|
1892
|
+
)
|
|
1893
|
+
params = open_api_models.Params(
|
|
1894
|
+
action='CloseMediaConnectFlowFailover',
|
|
1895
|
+
version='2020-11-09',
|
|
1896
|
+
protocol='HTTPS',
|
|
1897
|
+
pathname='/',
|
|
1898
|
+
method='POST',
|
|
1899
|
+
auth_type='AK',
|
|
1900
|
+
style='RPC',
|
|
1901
|
+
req_body_type='formData',
|
|
1902
|
+
body_type='json'
|
|
1903
|
+
)
|
|
1904
|
+
return TeaCore.from_map(
|
|
1905
|
+
ice20201109_models.CloseMediaConnectFlowFailoverResponse(),
|
|
1906
|
+
self.call_api(params, req, runtime)
|
|
1907
|
+
)
|
|
1908
|
+
|
|
1909
|
+
async def close_media_connect_flow_failover_with_options_async(
|
|
1910
|
+
self,
|
|
1911
|
+
request: ice20201109_models.CloseMediaConnectFlowFailoverRequest,
|
|
1912
|
+
runtime: util_models.RuntimeOptions,
|
|
1913
|
+
) -> ice20201109_models.CloseMediaConnectFlowFailoverResponse:
|
|
1914
|
+
"""
|
|
1915
|
+
@summary 关闭MediaConnect实例的双流灾备功能
|
|
1916
|
+
|
|
1917
|
+
@param request: CloseMediaConnectFlowFailoverRequest
|
|
1918
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
1919
|
+
@return: CloseMediaConnectFlowFailoverResponse
|
|
1920
|
+
"""
|
|
1921
|
+
UtilClient.validate_model(request)
|
|
1922
|
+
query = {}
|
|
1923
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
1924
|
+
query['FlowId'] = request.flow_id
|
|
1925
|
+
req = open_api_models.OpenApiRequest(
|
|
1926
|
+
query=OpenApiUtilClient.query(query)
|
|
1927
|
+
)
|
|
1928
|
+
params = open_api_models.Params(
|
|
1929
|
+
action='CloseMediaConnectFlowFailover',
|
|
1930
|
+
version='2020-11-09',
|
|
1931
|
+
protocol='HTTPS',
|
|
1932
|
+
pathname='/',
|
|
1933
|
+
method='POST',
|
|
1934
|
+
auth_type='AK',
|
|
1935
|
+
style='RPC',
|
|
1936
|
+
req_body_type='formData',
|
|
1937
|
+
body_type='json'
|
|
1938
|
+
)
|
|
1939
|
+
return TeaCore.from_map(
|
|
1940
|
+
ice20201109_models.CloseMediaConnectFlowFailoverResponse(),
|
|
1941
|
+
await self.call_api_async(params, req, runtime)
|
|
1942
|
+
)
|
|
1943
|
+
|
|
1944
|
+
def close_media_connect_flow_failover(
|
|
1945
|
+
self,
|
|
1946
|
+
request: ice20201109_models.CloseMediaConnectFlowFailoverRequest,
|
|
1947
|
+
) -> ice20201109_models.CloseMediaConnectFlowFailoverResponse:
|
|
1948
|
+
"""
|
|
1949
|
+
@summary 关闭MediaConnect实例的双流灾备功能
|
|
1950
|
+
|
|
1951
|
+
@param request: CloseMediaConnectFlowFailoverRequest
|
|
1952
|
+
@return: CloseMediaConnectFlowFailoverResponse
|
|
1953
|
+
"""
|
|
1954
|
+
runtime = util_models.RuntimeOptions()
|
|
1955
|
+
return self.close_media_connect_flow_failover_with_options(request, runtime)
|
|
1956
|
+
|
|
1957
|
+
async def close_media_connect_flow_failover_async(
|
|
1958
|
+
self,
|
|
1959
|
+
request: ice20201109_models.CloseMediaConnectFlowFailoverRequest,
|
|
1960
|
+
) -> ice20201109_models.CloseMediaConnectFlowFailoverResponse:
|
|
1961
|
+
"""
|
|
1962
|
+
@summary 关闭MediaConnect实例的双流灾备功能
|
|
1963
|
+
|
|
1964
|
+
@param request: CloseMediaConnectFlowFailoverRequest
|
|
1965
|
+
@return: CloseMediaConnectFlowFailoverResponse
|
|
1966
|
+
"""
|
|
1967
|
+
runtime = util_models.RuntimeOptions()
|
|
1968
|
+
return await self.close_media_connect_flow_failover_with_options_async(request, runtime)
|
|
1969
|
+
|
|
1679
1970
|
def create_audit_with_options(
|
|
1680
1971
|
self,
|
|
1681
1972
|
request: ice20201109_models.CreateAuditRequest,
|
|
@@ -8146,6 +8437,8 @@ class Client(OpenApiClient):
|
|
|
8146
8437
|
query['MediaId'] = request.media_id
|
|
8147
8438
|
if not UtilClient.is_unset(request.msg_body):
|
|
8148
8439
|
query['MsgBody'] = request.msg_body
|
|
8440
|
+
if not UtilClient.is_unset(request.namespace):
|
|
8441
|
+
query['Namespace'] = request.namespace
|
|
8149
8442
|
if not UtilClient.is_unset(request.search_lib_name):
|
|
8150
8443
|
query['SearchLibName'] = request.search_lib_name
|
|
8151
8444
|
req = open_api_models.OpenApiRequest(
|
|
@@ -8185,6 +8478,8 @@ class Client(OpenApiClient):
|
|
|
8185
8478
|
query['MediaId'] = request.media_id
|
|
8186
8479
|
if not UtilClient.is_unset(request.msg_body):
|
|
8187
8480
|
query['MsgBody'] = request.msg_body
|
|
8481
|
+
if not UtilClient.is_unset(request.namespace):
|
|
8482
|
+
query['Namespace'] = request.namespace
|
|
8188
8483
|
if not UtilClient.is_unset(request.search_lib_name):
|
|
8189
8484
|
query['SearchLibName'] = request.search_lib_name
|
|
8190
8485
|
req = open_api_models.OpenApiRequest(
|
|
@@ -11408,6 +11703,206 @@ class Client(OpenApiClient):
|
|
|
11408
11703
|
runtime = util_models.RuntimeOptions()
|
|
11409
11704
|
return await self.drop_search_lib_with_options_async(request, runtime)
|
|
11410
11705
|
|
|
11706
|
+
def forbid_media_connect_flow_output_with_options(
|
|
11707
|
+
self,
|
|
11708
|
+
request: ice20201109_models.ForbidMediaConnectFlowOutputRequest,
|
|
11709
|
+
runtime: util_models.RuntimeOptions,
|
|
11710
|
+
) -> ice20201109_models.ForbidMediaConnectFlowOutputResponse:
|
|
11711
|
+
"""
|
|
11712
|
+
@summary 禁用某个MediaConnect实例的某个输出
|
|
11713
|
+
|
|
11714
|
+
@param request: ForbidMediaConnectFlowOutputRequest
|
|
11715
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11716
|
+
@return: ForbidMediaConnectFlowOutputResponse
|
|
11717
|
+
"""
|
|
11718
|
+
UtilClient.validate_model(request)
|
|
11719
|
+
query = {}
|
|
11720
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
11721
|
+
query['FlowId'] = request.flow_id
|
|
11722
|
+
if not UtilClient.is_unset(request.output_name):
|
|
11723
|
+
query['OutputName'] = request.output_name
|
|
11724
|
+
req = open_api_models.OpenApiRequest(
|
|
11725
|
+
query=OpenApiUtilClient.query(query)
|
|
11726
|
+
)
|
|
11727
|
+
params = open_api_models.Params(
|
|
11728
|
+
action='ForbidMediaConnectFlowOutput',
|
|
11729
|
+
version='2020-11-09',
|
|
11730
|
+
protocol='HTTPS',
|
|
11731
|
+
pathname='/',
|
|
11732
|
+
method='POST',
|
|
11733
|
+
auth_type='AK',
|
|
11734
|
+
style='RPC',
|
|
11735
|
+
req_body_type='formData',
|
|
11736
|
+
body_type='json'
|
|
11737
|
+
)
|
|
11738
|
+
return TeaCore.from_map(
|
|
11739
|
+
ice20201109_models.ForbidMediaConnectFlowOutputResponse(),
|
|
11740
|
+
self.call_api(params, req, runtime)
|
|
11741
|
+
)
|
|
11742
|
+
|
|
11743
|
+
async def forbid_media_connect_flow_output_with_options_async(
|
|
11744
|
+
self,
|
|
11745
|
+
request: ice20201109_models.ForbidMediaConnectFlowOutputRequest,
|
|
11746
|
+
runtime: util_models.RuntimeOptions,
|
|
11747
|
+
) -> ice20201109_models.ForbidMediaConnectFlowOutputResponse:
|
|
11748
|
+
"""
|
|
11749
|
+
@summary 禁用某个MediaConnect实例的某个输出
|
|
11750
|
+
|
|
11751
|
+
@param request: ForbidMediaConnectFlowOutputRequest
|
|
11752
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11753
|
+
@return: ForbidMediaConnectFlowOutputResponse
|
|
11754
|
+
"""
|
|
11755
|
+
UtilClient.validate_model(request)
|
|
11756
|
+
query = {}
|
|
11757
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
11758
|
+
query['FlowId'] = request.flow_id
|
|
11759
|
+
if not UtilClient.is_unset(request.output_name):
|
|
11760
|
+
query['OutputName'] = request.output_name
|
|
11761
|
+
req = open_api_models.OpenApiRequest(
|
|
11762
|
+
query=OpenApiUtilClient.query(query)
|
|
11763
|
+
)
|
|
11764
|
+
params = open_api_models.Params(
|
|
11765
|
+
action='ForbidMediaConnectFlowOutput',
|
|
11766
|
+
version='2020-11-09',
|
|
11767
|
+
protocol='HTTPS',
|
|
11768
|
+
pathname='/',
|
|
11769
|
+
method='POST',
|
|
11770
|
+
auth_type='AK',
|
|
11771
|
+
style='RPC',
|
|
11772
|
+
req_body_type='formData',
|
|
11773
|
+
body_type='json'
|
|
11774
|
+
)
|
|
11775
|
+
return TeaCore.from_map(
|
|
11776
|
+
ice20201109_models.ForbidMediaConnectFlowOutputResponse(),
|
|
11777
|
+
await self.call_api_async(params, req, runtime)
|
|
11778
|
+
)
|
|
11779
|
+
|
|
11780
|
+
def forbid_media_connect_flow_output(
|
|
11781
|
+
self,
|
|
11782
|
+
request: ice20201109_models.ForbidMediaConnectFlowOutputRequest,
|
|
11783
|
+
) -> ice20201109_models.ForbidMediaConnectFlowOutputResponse:
|
|
11784
|
+
"""
|
|
11785
|
+
@summary 禁用某个MediaConnect实例的某个输出
|
|
11786
|
+
|
|
11787
|
+
@param request: ForbidMediaConnectFlowOutputRequest
|
|
11788
|
+
@return: ForbidMediaConnectFlowOutputResponse
|
|
11789
|
+
"""
|
|
11790
|
+
runtime = util_models.RuntimeOptions()
|
|
11791
|
+
return self.forbid_media_connect_flow_output_with_options(request, runtime)
|
|
11792
|
+
|
|
11793
|
+
async def forbid_media_connect_flow_output_async(
|
|
11794
|
+
self,
|
|
11795
|
+
request: ice20201109_models.ForbidMediaConnectFlowOutputRequest,
|
|
11796
|
+
) -> ice20201109_models.ForbidMediaConnectFlowOutputResponse:
|
|
11797
|
+
"""
|
|
11798
|
+
@summary 禁用某个MediaConnect实例的某个输出
|
|
11799
|
+
|
|
11800
|
+
@param request: ForbidMediaConnectFlowOutputRequest
|
|
11801
|
+
@return: ForbidMediaConnectFlowOutputResponse
|
|
11802
|
+
"""
|
|
11803
|
+
runtime = util_models.RuntimeOptions()
|
|
11804
|
+
return await self.forbid_media_connect_flow_output_with_options_async(request, runtime)
|
|
11805
|
+
|
|
11806
|
+
def forward_aiagent_call_with_options(
|
|
11807
|
+
self,
|
|
11808
|
+
request: ice20201109_models.ForwardAIAgentCallRequest,
|
|
11809
|
+
runtime: util_models.RuntimeOptions,
|
|
11810
|
+
) -> ice20201109_models.ForwardAIAgentCallResponse:
|
|
11811
|
+
"""
|
|
11812
|
+
@summary 转呼通话到目标电话
|
|
11813
|
+
|
|
11814
|
+
@param request: ForwardAIAgentCallRequest
|
|
11815
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11816
|
+
@return: ForwardAIAgentCallResponse
|
|
11817
|
+
"""
|
|
11818
|
+
UtilClient.validate_model(request)
|
|
11819
|
+
query = {}
|
|
11820
|
+
if not UtilClient.is_unset(request.called_number):
|
|
11821
|
+
query['CalledNumber'] = request.called_number
|
|
11822
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
11823
|
+
query['InstanceId'] = request.instance_id
|
|
11824
|
+
req = open_api_models.OpenApiRequest(
|
|
11825
|
+
query=OpenApiUtilClient.query(query)
|
|
11826
|
+
)
|
|
11827
|
+
params = open_api_models.Params(
|
|
11828
|
+
action='ForwardAIAgentCall',
|
|
11829
|
+
version='2020-11-09',
|
|
11830
|
+
protocol='HTTPS',
|
|
11831
|
+
pathname='/',
|
|
11832
|
+
method='POST',
|
|
11833
|
+
auth_type='AK',
|
|
11834
|
+
style='RPC',
|
|
11835
|
+
req_body_type='formData',
|
|
11836
|
+
body_type='json'
|
|
11837
|
+
)
|
|
11838
|
+
return TeaCore.from_map(
|
|
11839
|
+
ice20201109_models.ForwardAIAgentCallResponse(),
|
|
11840
|
+
self.call_api(params, req, runtime)
|
|
11841
|
+
)
|
|
11842
|
+
|
|
11843
|
+
async def forward_aiagent_call_with_options_async(
|
|
11844
|
+
self,
|
|
11845
|
+
request: ice20201109_models.ForwardAIAgentCallRequest,
|
|
11846
|
+
runtime: util_models.RuntimeOptions,
|
|
11847
|
+
) -> ice20201109_models.ForwardAIAgentCallResponse:
|
|
11848
|
+
"""
|
|
11849
|
+
@summary 转呼通话到目标电话
|
|
11850
|
+
|
|
11851
|
+
@param request: ForwardAIAgentCallRequest
|
|
11852
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
11853
|
+
@return: ForwardAIAgentCallResponse
|
|
11854
|
+
"""
|
|
11855
|
+
UtilClient.validate_model(request)
|
|
11856
|
+
query = {}
|
|
11857
|
+
if not UtilClient.is_unset(request.called_number):
|
|
11858
|
+
query['CalledNumber'] = request.called_number
|
|
11859
|
+
if not UtilClient.is_unset(request.instance_id):
|
|
11860
|
+
query['InstanceId'] = request.instance_id
|
|
11861
|
+
req = open_api_models.OpenApiRequest(
|
|
11862
|
+
query=OpenApiUtilClient.query(query)
|
|
11863
|
+
)
|
|
11864
|
+
params = open_api_models.Params(
|
|
11865
|
+
action='ForwardAIAgentCall',
|
|
11866
|
+
version='2020-11-09',
|
|
11867
|
+
protocol='HTTPS',
|
|
11868
|
+
pathname='/',
|
|
11869
|
+
method='POST',
|
|
11870
|
+
auth_type='AK',
|
|
11871
|
+
style='RPC',
|
|
11872
|
+
req_body_type='formData',
|
|
11873
|
+
body_type='json'
|
|
11874
|
+
)
|
|
11875
|
+
return TeaCore.from_map(
|
|
11876
|
+
ice20201109_models.ForwardAIAgentCallResponse(),
|
|
11877
|
+
await self.call_api_async(params, req, runtime)
|
|
11878
|
+
)
|
|
11879
|
+
|
|
11880
|
+
def forward_aiagent_call(
|
|
11881
|
+
self,
|
|
11882
|
+
request: ice20201109_models.ForwardAIAgentCallRequest,
|
|
11883
|
+
) -> ice20201109_models.ForwardAIAgentCallResponse:
|
|
11884
|
+
"""
|
|
11885
|
+
@summary 转呼通话到目标电话
|
|
11886
|
+
|
|
11887
|
+
@param request: ForwardAIAgentCallRequest
|
|
11888
|
+
@return: ForwardAIAgentCallResponse
|
|
11889
|
+
"""
|
|
11890
|
+
runtime = util_models.RuntimeOptions()
|
|
11891
|
+
return self.forward_aiagent_call_with_options(request, runtime)
|
|
11892
|
+
|
|
11893
|
+
async def forward_aiagent_call_async(
|
|
11894
|
+
self,
|
|
11895
|
+
request: ice20201109_models.ForwardAIAgentCallRequest,
|
|
11896
|
+
) -> ice20201109_models.ForwardAIAgentCallResponse:
|
|
11897
|
+
"""
|
|
11898
|
+
@summary 转呼通话到目标电话
|
|
11899
|
+
|
|
11900
|
+
@param request: ForwardAIAgentCallRequest
|
|
11901
|
+
@return: ForwardAIAgentCallResponse
|
|
11902
|
+
"""
|
|
11903
|
+
runtime = util_models.RuntimeOptions()
|
|
11904
|
+
return await self.forward_aiagent_call_with_options_async(request, runtime)
|
|
11905
|
+
|
|
11411
11906
|
def generate_aiagent_call_with_options(
|
|
11412
11907
|
self,
|
|
11413
11908
|
tmp_req: ice20201109_models.GenerateAIAgentCallRequest,
|
|
@@ -14560,6 +15055,80 @@ class Client(OpenApiClient):
|
|
|
14560
15055
|
runtime = util_models.RuntimeOptions()
|
|
14561
15056
|
return await self.get_live_transcode_template_with_options_async(request, runtime)
|
|
14562
15057
|
|
|
15058
|
+
def get_media_connect_available_region_with_options(
|
|
15059
|
+
self,
|
|
15060
|
+
runtime: util_models.RuntimeOptions,
|
|
15061
|
+
) -> ice20201109_models.GetMediaConnectAvailableRegionResponse:
|
|
15062
|
+
"""
|
|
15063
|
+
@summary 获取MediaConnect可用的区域
|
|
15064
|
+
|
|
15065
|
+
@param request: GetMediaConnectAvailableRegionRequest
|
|
15066
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15067
|
+
@return: GetMediaConnectAvailableRegionResponse
|
|
15068
|
+
"""
|
|
15069
|
+
req = open_api_models.OpenApiRequest()
|
|
15070
|
+
params = open_api_models.Params(
|
|
15071
|
+
action='GetMediaConnectAvailableRegion',
|
|
15072
|
+
version='2020-11-09',
|
|
15073
|
+
protocol='HTTPS',
|
|
15074
|
+
pathname='/',
|
|
15075
|
+
method='POST',
|
|
15076
|
+
auth_type='AK',
|
|
15077
|
+
style='RPC',
|
|
15078
|
+
req_body_type='formData',
|
|
15079
|
+
body_type='json'
|
|
15080
|
+
)
|
|
15081
|
+
return TeaCore.from_map(
|
|
15082
|
+
ice20201109_models.GetMediaConnectAvailableRegionResponse(),
|
|
15083
|
+
self.call_api(params, req, runtime)
|
|
15084
|
+
)
|
|
15085
|
+
|
|
15086
|
+
async def get_media_connect_available_region_with_options_async(
|
|
15087
|
+
self,
|
|
15088
|
+
runtime: util_models.RuntimeOptions,
|
|
15089
|
+
) -> ice20201109_models.GetMediaConnectAvailableRegionResponse:
|
|
15090
|
+
"""
|
|
15091
|
+
@summary 获取MediaConnect可用的区域
|
|
15092
|
+
|
|
15093
|
+
@param request: GetMediaConnectAvailableRegionRequest
|
|
15094
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15095
|
+
@return: GetMediaConnectAvailableRegionResponse
|
|
15096
|
+
"""
|
|
15097
|
+
req = open_api_models.OpenApiRequest()
|
|
15098
|
+
params = open_api_models.Params(
|
|
15099
|
+
action='GetMediaConnectAvailableRegion',
|
|
15100
|
+
version='2020-11-09',
|
|
15101
|
+
protocol='HTTPS',
|
|
15102
|
+
pathname='/',
|
|
15103
|
+
method='POST',
|
|
15104
|
+
auth_type='AK',
|
|
15105
|
+
style='RPC',
|
|
15106
|
+
req_body_type='formData',
|
|
15107
|
+
body_type='json'
|
|
15108
|
+
)
|
|
15109
|
+
return TeaCore.from_map(
|
|
15110
|
+
ice20201109_models.GetMediaConnectAvailableRegionResponse(),
|
|
15111
|
+
await self.call_api_async(params, req, runtime)
|
|
15112
|
+
)
|
|
15113
|
+
|
|
15114
|
+
def get_media_connect_available_region(self) -> ice20201109_models.GetMediaConnectAvailableRegionResponse:
|
|
15115
|
+
"""
|
|
15116
|
+
@summary 获取MediaConnect可用的区域
|
|
15117
|
+
|
|
15118
|
+
@return: GetMediaConnectAvailableRegionResponse
|
|
15119
|
+
"""
|
|
15120
|
+
runtime = util_models.RuntimeOptions()
|
|
15121
|
+
return self.get_media_connect_available_region_with_options(runtime)
|
|
15122
|
+
|
|
15123
|
+
async def get_media_connect_available_region_async(self) -> ice20201109_models.GetMediaConnectAvailableRegionResponse:
|
|
15124
|
+
"""
|
|
15125
|
+
@summary 获取MediaConnect可用的区域
|
|
15126
|
+
|
|
15127
|
+
@return: GetMediaConnectAvailableRegionResponse
|
|
15128
|
+
"""
|
|
15129
|
+
runtime = util_models.RuntimeOptions()
|
|
15130
|
+
return await self.get_media_connect_available_region_with_options_async(runtime)
|
|
15131
|
+
|
|
14563
15132
|
def get_media_connect_flow_with_options(
|
|
14564
15133
|
self,
|
|
14565
15134
|
request: ice20201109_models.GetMediaConnectFlowRequest,
|
|
@@ -14668,6 +15237,102 @@ class Client(OpenApiClient):
|
|
|
14668
15237
|
runtime = util_models.RuntimeOptions()
|
|
14669
15238
|
return await self.get_media_connect_flow_with_options_async(request, runtime)
|
|
14670
15239
|
|
|
15240
|
+
def get_media_connect_flow_all_output_name_with_options(
|
|
15241
|
+
self,
|
|
15242
|
+
request: ice20201109_models.GetMediaConnectFlowAllOutputNameRequest,
|
|
15243
|
+
runtime: util_models.RuntimeOptions,
|
|
15244
|
+
) -> ice20201109_models.GetMediaConnectFlowAllOutputNameResponse:
|
|
15245
|
+
"""
|
|
15246
|
+
@summary 获取某个MediaConnect实例下的所有output的名字
|
|
15247
|
+
|
|
15248
|
+
@param request: GetMediaConnectFlowAllOutputNameRequest
|
|
15249
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15250
|
+
@return: GetMediaConnectFlowAllOutputNameResponse
|
|
15251
|
+
"""
|
|
15252
|
+
UtilClient.validate_model(request)
|
|
15253
|
+
query = {}
|
|
15254
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
15255
|
+
query['FlowId'] = request.flow_id
|
|
15256
|
+
req = open_api_models.OpenApiRequest(
|
|
15257
|
+
query=OpenApiUtilClient.query(query)
|
|
15258
|
+
)
|
|
15259
|
+
params = open_api_models.Params(
|
|
15260
|
+
action='GetMediaConnectFlowAllOutputName',
|
|
15261
|
+
version='2020-11-09',
|
|
15262
|
+
protocol='HTTPS',
|
|
15263
|
+
pathname='/',
|
|
15264
|
+
method='POST',
|
|
15265
|
+
auth_type='AK',
|
|
15266
|
+
style='RPC',
|
|
15267
|
+
req_body_type='formData',
|
|
15268
|
+
body_type='json'
|
|
15269
|
+
)
|
|
15270
|
+
return TeaCore.from_map(
|
|
15271
|
+
ice20201109_models.GetMediaConnectFlowAllOutputNameResponse(),
|
|
15272
|
+
self.call_api(params, req, runtime)
|
|
15273
|
+
)
|
|
15274
|
+
|
|
15275
|
+
async def get_media_connect_flow_all_output_name_with_options_async(
|
|
15276
|
+
self,
|
|
15277
|
+
request: ice20201109_models.GetMediaConnectFlowAllOutputNameRequest,
|
|
15278
|
+
runtime: util_models.RuntimeOptions,
|
|
15279
|
+
) -> ice20201109_models.GetMediaConnectFlowAllOutputNameResponse:
|
|
15280
|
+
"""
|
|
15281
|
+
@summary 获取某个MediaConnect实例下的所有output的名字
|
|
15282
|
+
|
|
15283
|
+
@param request: GetMediaConnectFlowAllOutputNameRequest
|
|
15284
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
15285
|
+
@return: GetMediaConnectFlowAllOutputNameResponse
|
|
15286
|
+
"""
|
|
15287
|
+
UtilClient.validate_model(request)
|
|
15288
|
+
query = {}
|
|
15289
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
15290
|
+
query['FlowId'] = request.flow_id
|
|
15291
|
+
req = open_api_models.OpenApiRequest(
|
|
15292
|
+
query=OpenApiUtilClient.query(query)
|
|
15293
|
+
)
|
|
15294
|
+
params = open_api_models.Params(
|
|
15295
|
+
action='GetMediaConnectFlowAllOutputName',
|
|
15296
|
+
version='2020-11-09',
|
|
15297
|
+
protocol='HTTPS',
|
|
15298
|
+
pathname='/',
|
|
15299
|
+
method='POST',
|
|
15300
|
+
auth_type='AK',
|
|
15301
|
+
style='RPC',
|
|
15302
|
+
req_body_type='formData',
|
|
15303
|
+
body_type='json'
|
|
15304
|
+
)
|
|
15305
|
+
return TeaCore.from_map(
|
|
15306
|
+
ice20201109_models.GetMediaConnectFlowAllOutputNameResponse(),
|
|
15307
|
+
await self.call_api_async(params, req, runtime)
|
|
15308
|
+
)
|
|
15309
|
+
|
|
15310
|
+
def get_media_connect_flow_all_output_name(
|
|
15311
|
+
self,
|
|
15312
|
+
request: ice20201109_models.GetMediaConnectFlowAllOutputNameRequest,
|
|
15313
|
+
) -> ice20201109_models.GetMediaConnectFlowAllOutputNameResponse:
|
|
15314
|
+
"""
|
|
15315
|
+
@summary 获取某个MediaConnect实例下的所有output的名字
|
|
15316
|
+
|
|
15317
|
+
@param request: GetMediaConnectFlowAllOutputNameRequest
|
|
15318
|
+
@return: GetMediaConnectFlowAllOutputNameResponse
|
|
15319
|
+
"""
|
|
15320
|
+
runtime = util_models.RuntimeOptions()
|
|
15321
|
+
return self.get_media_connect_flow_all_output_name_with_options(request, runtime)
|
|
15322
|
+
|
|
15323
|
+
async def get_media_connect_flow_all_output_name_async(
|
|
15324
|
+
self,
|
|
15325
|
+
request: ice20201109_models.GetMediaConnectFlowAllOutputNameRequest,
|
|
15326
|
+
) -> ice20201109_models.GetMediaConnectFlowAllOutputNameResponse:
|
|
15327
|
+
"""
|
|
15328
|
+
@summary 获取某个MediaConnect实例下的所有output的名字
|
|
15329
|
+
|
|
15330
|
+
@param request: GetMediaConnectFlowAllOutputNameRequest
|
|
15331
|
+
@return: GetMediaConnectFlowAllOutputNameResponse
|
|
15332
|
+
"""
|
|
15333
|
+
runtime = util_models.RuntimeOptions()
|
|
15334
|
+
return await self.get_media_connect_flow_all_output_name_with_options_async(request, runtime)
|
|
15335
|
+
|
|
14671
15336
|
def get_media_connect_flow_input_with_options(
|
|
14672
15337
|
self,
|
|
14673
15338
|
request: ice20201109_models.GetMediaConnectFlowInputRequest,
|
|
@@ -16240,7 +16905,7 @@ class Client(OpenApiClient):
|
|
|
16240
16905
|
)
|
|
16241
16906
|
return TeaCore.from_map(
|
|
16242
16907
|
ice20201109_models.GetPublicMediaInfoResponse(),
|
|
16243
|
-
self.
|
|
16908
|
+
self.do_rpcrequest(params.action, params.version, params.protocol, params.method, params.auth_type, params.body_type, req, runtime)
|
|
16244
16909
|
)
|
|
16245
16910
|
|
|
16246
16911
|
async def get_public_media_info_with_options_async(
|
|
@@ -16275,7 +16940,7 @@ class Client(OpenApiClient):
|
|
|
16275
16940
|
)
|
|
16276
16941
|
return TeaCore.from_map(
|
|
16277
16942
|
ice20201109_models.GetPublicMediaInfoResponse(),
|
|
16278
|
-
await self.
|
|
16943
|
+
await self.do_rpcrequest_async(params.action, params.version, params.protocol, params.method, params.auth_type, params.body_type, req, runtime)
|
|
16279
16944
|
)
|
|
16280
16945
|
|
|
16281
16946
|
def get_public_media_info(
|
|
@@ -18060,6 +18725,8 @@ class Client(OpenApiClient):
|
|
|
18060
18725
|
query['MediaType'] = request.media_type
|
|
18061
18726
|
if not UtilClient.is_unset(request.msg_body):
|
|
18062
18727
|
query['MsgBody'] = request.msg_body
|
|
18728
|
+
if not UtilClient.is_unset(request.namespace):
|
|
18729
|
+
query['Namespace'] = request.namespace
|
|
18063
18730
|
if not UtilClient.is_unset(request.search_lib_name):
|
|
18064
18731
|
query['SearchLibName'] = request.search_lib_name
|
|
18065
18732
|
req = open_api_models.OpenApiRequest(
|
|
@@ -18105,6 +18772,8 @@ class Client(OpenApiClient):
|
|
|
18105
18772
|
query['MediaType'] = request.media_type
|
|
18106
18773
|
if not UtilClient.is_unset(request.msg_body):
|
|
18107
18774
|
query['MsgBody'] = request.msg_body
|
|
18775
|
+
if not UtilClient.is_unset(request.namespace):
|
|
18776
|
+
query['Namespace'] = request.namespace
|
|
18108
18777
|
if not UtilClient.is_unset(request.search_lib_name):
|
|
18109
18778
|
query['SearchLibName'] = request.search_lib_name
|
|
18110
18779
|
req = open_api_models.OpenApiRequest(
|
|
@@ -18512,6 +19181,110 @@ class Client(OpenApiClient):
|
|
|
18512
19181
|
runtime = util_models.RuntimeOptions()
|
|
18513
19182
|
return await self.list_aiagent_phone_number_with_options_async(request, runtime)
|
|
18514
19183
|
|
|
19184
|
+
def list_aiagent_voiceprints_with_options(
|
|
19185
|
+
self,
|
|
19186
|
+
request: ice20201109_models.ListAIAgentVoiceprintsRequest,
|
|
19187
|
+
runtime: util_models.RuntimeOptions,
|
|
19188
|
+
) -> ice20201109_models.ListAIAgentVoiceprintsResponse:
|
|
19189
|
+
"""
|
|
19190
|
+
@summary 更新回调配置
|
|
19191
|
+
|
|
19192
|
+
@param request: ListAIAgentVoiceprintsRequest
|
|
19193
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
19194
|
+
@return: ListAIAgentVoiceprintsResponse
|
|
19195
|
+
"""
|
|
19196
|
+
UtilClient.validate_model(request)
|
|
19197
|
+
query = {}
|
|
19198
|
+
if not UtilClient.is_unset(request.page_number):
|
|
19199
|
+
query['PageNumber'] = request.page_number
|
|
19200
|
+
if not UtilClient.is_unset(request.page_size):
|
|
19201
|
+
query['PageSize'] = request.page_size
|
|
19202
|
+
if not UtilClient.is_unset(request.voiceprint_id):
|
|
19203
|
+
query['VoiceprintId'] = request.voiceprint_id
|
|
19204
|
+
req = open_api_models.OpenApiRequest(
|
|
19205
|
+
query=OpenApiUtilClient.query(query)
|
|
19206
|
+
)
|
|
19207
|
+
params = open_api_models.Params(
|
|
19208
|
+
action='ListAIAgentVoiceprints',
|
|
19209
|
+
version='2020-11-09',
|
|
19210
|
+
protocol='HTTPS',
|
|
19211
|
+
pathname='/',
|
|
19212
|
+
method='POST',
|
|
19213
|
+
auth_type='AK',
|
|
19214
|
+
style='RPC',
|
|
19215
|
+
req_body_type='formData',
|
|
19216
|
+
body_type='json'
|
|
19217
|
+
)
|
|
19218
|
+
return TeaCore.from_map(
|
|
19219
|
+
ice20201109_models.ListAIAgentVoiceprintsResponse(),
|
|
19220
|
+
self.call_api(params, req, runtime)
|
|
19221
|
+
)
|
|
19222
|
+
|
|
19223
|
+
async def list_aiagent_voiceprints_with_options_async(
|
|
19224
|
+
self,
|
|
19225
|
+
request: ice20201109_models.ListAIAgentVoiceprintsRequest,
|
|
19226
|
+
runtime: util_models.RuntimeOptions,
|
|
19227
|
+
) -> ice20201109_models.ListAIAgentVoiceprintsResponse:
|
|
19228
|
+
"""
|
|
19229
|
+
@summary 更新回调配置
|
|
19230
|
+
|
|
19231
|
+
@param request: ListAIAgentVoiceprintsRequest
|
|
19232
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
19233
|
+
@return: ListAIAgentVoiceprintsResponse
|
|
19234
|
+
"""
|
|
19235
|
+
UtilClient.validate_model(request)
|
|
19236
|
+
query = {}
|
|
19237
|
+
if not UtilClient.is_unset(request.page_number):
|
|
19238
|
+
query['PageNumber'] = request.page_number
|
|
19239
|
+
if not UtilClient.is_unset(request.page_size):
|
|
19240
|
+
query['PageSize'] = request.page_size
|
|
19241
|
+
if not UtilClient.is_unset(request.voiceprint_id):
|
|
19242
|
+
query['VoiceprintId'] = request.voiceprint_id
|
|
19243
|
+
req = open_api_models.OpenApiRequest(
|
|
19244
|
+
query=OpenApiUtilClient.query(query)
|
|
19245
|
+
)
|
|
19246
|
+
params = open_api_models.Params(
|
|
19247
|
+
action='ListAIAgentVoiceprints',
|
|
19248
|
+
version='2020-11-09',
|
|
19249
|
+
protocol='HTTPS',
|
|
19250
|
+
pathname='/',
|
|
19251
|
+
method='POST',
|
|
19252
|
+
auth_type='AK',
|
|
19253
|
+
style='RPC',
|
|
19254
|
+
req_body_type='formData',
|
|
19255
|
+
body_type='json'
|
|
19256
|
+
)
|
|
19257
|
+
return TeaCore.from_map(
|
|
19258
|
+
ice20201109_models.ListAIAgentVoiceprintsResponse(),
|
|
19259
|
+
await self.call_api_async(params, req, runtime)
|
|
19260
|
+
)
|
|
19261
|
+
|
|
19262
|
+
def list_aiagent_voiceprints(
|
|
19263
|
+
self,
|
|
19264
|
+
request: ice20201109_models.ListAIAgentVoiceprintsRequest,
|
|
19265
|
+
) -> ice20201109_models.ListAIAgentVoiceprintsResponse:
|
|
19266
|
+
"""
|
|
19267
|
+
@summary 更新回调配置
|
|
19268
|
+
|
|
19269
|
+
@param request: ListAIAgentVoiceprintsRequest
|
|
19270
|
+
@return: ListAIAgentVoiceprintsResponse
|
|
19271
|
+
"""
|
|
19272
|
+
runtime = util_models.RuntimeOptions()
|
|
19273
|
+
return self.list_aiagent_voiceprints_with_options(request, runtime)
|
|
19274
|
+
|
|
19275
|
+
async def list_aiagent_voiceprints_async(
|
|
19276
|
+
self,
|
|
19277
|
+
request: ice20201109_models.ListAIAgentVoiceprintsRequest,
|
|
19278
|
+
) -> ice20201109_models.ListAIAgentVoiceprintsResponse:
|
|
19279
|
+
"""
|
|
19280
|
+
@summary 更新回调配置
|
|
19281
|
+
|
|
19282
|
+
@param request: ListAIAgentVoiceprintsRequest
|
|
19283
|
+
@return: ListAIAgentVoiceprintsResponse
|
|
19284
|
+
"""
|
|
19285
|
+
runtime = util_models.RuntimeOptions()
|
|
19286
|
+
return await self.list_aiagent_voiceprints_with_options_async(request, runtime)
|
|
19287
|
+
|
|
18515
19288
|
def list_ad_insertions_with_options(
|
|
18516
19289
|
self,
|
|
18517
19290
|
request: ice20201109_models.ListAdInsertionsRequest,
|
|
@@ -18786,7 +19559,7 @@ class Client(OpenApiClient):
|
|
|
18786
19559
|
)
|
|
18787
19560
|
return TeaCore.from_map(
|
|
18788
19561
|
ice20201109_models.ListAllPublicMediaTagsResponse(),
|
|
18789
|
-
self.
|
|
19562
|
+
self.do_rpcrequest(params.action, params.version, params.protocol, params.method, params.auth_type, params.body_type, req, runtime)
|
|
18790
19563
|
)
|
|
18791
19564
|
|
|
18792
19565
|
async def list_all_public_media_tags_with_options_async(
|
|
@@ -18823,7 +19596,7 @@ class Client(OpenApiClient):
|
|
|
18823
19596
|
)
|
|
18824
19597
|
return TeaCore.from_map(
|
|
18825
19598
|
ice20201109_models.ListAllPublicMediaTagsResponse(),
|
|
18826
|
-
await self.
|
|
19599
|
+
await self.do_rpcrequest_async(params.action, params.version, params.protocol, params.method, params.auth_type, params.body_type, req, runtime)
|
|
18827
19600
|
)
|
|
18828
19601
|
|
|
18829
19602
|
def list_all_public_media_tags(
|
|
@@ -22928,7 +23701,7 @@ class Client(OpenApiClient):
|
|
|
22928
23701
|
)
|
|
22929
23702
|
return TeaCore.from_map(
|
|
22930
23703
|
ice20201109_models.ListPublicMediaBasicInfosResponse(),
|
|
22931
|
-
self.
|
|
23704
|
+
self.do_rpcrequest(params.action, params.version, params.protocol, params.method, params.auth_type, params.body_type, req, runtime)
|
|
22932
23705
|
)
|
|
22933
23706
|
|
|
22934
23707
|
async def list_public_media_basic_infos_with_options_async(
|
|
@@ -22975,7 +23748,7 @@ class Client(OpenApiClient):
|
|
|
22975
23748
|
)
|
|
22976
23749
|
return TeaCore.from_map(
|
|
22977
23750
|
ice20201109_models.ListPublicMediaBasicInfosResponse(),
|
|
22978
|
-
await self.
|
|
23751
|
+
await self.do_rpcrequest_async(params.action, params.version, params.protocol, params.method, params.auth_type, params.body_type, req, runtime)
|
|
22979
23752
|
)
|
|
22980
23753
|
|
|
22981
23754
|
def list_public_media_basic_infos(
|
|
@@ -25052,6 +25825,222 @@ class Client(OpenApiClient):
|
|
|
25052
25825
|
runtime = util_models.RuntimeOptions()
|
|
25053
25826
|
return await self.list_vod_packaging_groups_with_options_async(request, runtime)
|
|
25054
25827
|
|
|
25828
|
+
def list_workflow_tasks_with_options(
|
|
25829
|
+
self,
|
|
25830
|
+
request: ice20201109_models.ListWorkflowTasksRequest,
|
|
25831
|
+
runtime: util_models.RuntimeOptions,
|
|
25832
|
+
) -> ice20201109_models.ListWorkflowTasksResponse:
|
|
25833
|
+
"""
|
|
25834
|
+
@summary 工作流任务实例列表
|
|
25835
|
+
|
|
25836
|
+
@param request: ListWorkflowTasksRequest
|
|
25837
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
25838
|
+
@return: ListWorkflowTasksResponse
|
|
25839
|
+
"""
|
|
25840
|
+
UtilClient.validate_model(request)
|
|
25841
|
+
query = {}
|
|
25842
|
+
if not UtilClient.is_unset(request.end_of_create_time):
|
|
25843
|
+
query['EndOfCreateTime'] = request.end_of_create_time
|
|
25844
|
+
if not UtilClient.is_unset(request.key_text):
|
|
25845
|
+
query['KeyText'] = request.key_text
|
|
25846
|
+
if not UtilClient.is_unset(request.max_results):
|
|
25847
|
+
query['MaxResults'] = request.max_results
|
|
25848
|
+
if not UtilClient.is_unset(request.next_token):
|
|
25849
|
+
query['NextToken'] = request.next_token
|
|
25850
|
+
if not UtilClient.is_unset(request.start_of_create_time):
|
|
25851
|
+
query['StartOfCreateTime'] = request.start_of_create_time
|
|
25852
|
+
if not UtilClient.is_unset(request.workflow_id):
|
|
25853
|
+
query['WorkflowId'] = request.workflow_id
|
|
25854
|
+
if not UtilClient.is_unset(request.workflow_name):
|
|
25855
|
+
query['WorkflowName'] = request.workflow_name
|
|
25856
|
+
req = open_api_models.OpenApiRequest(
|
|
25857
|
+
query=OpenApiUtilClient.query(query)
|
|
25858
|
+
)
|
|
25859
|
+
params = open_api_models.Params(
|
|
25860
|
+
action='ListWorkflowTasks',
|
|
25861
|
+
version='2020-11-09',
|
|
25862
|
+
protocol='HTTPS',
|
|
25863
|
+
pathname='/',
|
|
25864
|
+
method='POST',
|
|
25865
|
+
auth_type='AK',
|
|
25866
|
+
style='RPC',
|
|
25867
|
+
req_body_type='formData',
|
|
25868
|
+
body_type='json'
|
|
25869
|
+
)
|
|
25870
|
+
return TeaCore.from_map(
|
|
25871
|
+
ice20201109_models.ListWorkflowTasksResponse(),
|
|
25872
|
+
self.call_api(params, req, runtime)
|
|
25873
|
+
)
|
|
25874
|
+
|
|
25875
|
+
async def list_workflow_tasks_with_options_async(
|
|
25876
|
+
self,
|
|
25877
|
+
request: ice20201109_models.ListWorkflowTasksRequest,
|
|
25878
|
+
runtime: util_models.RuntimeOptions,
|
|
25879
|
+
) -> ice20201109_models.ListWorkflowTasksResponse:
|
|
25880
|
+
"""
|
|
25881
|
+
@summary 工作流任务实例列表
|
|
25882
|
+
|
|
25883
|
+
@param request: ListWorkflowTasksRequest
|
|
25884
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
25885
|
+
@return: ListWorkflowTasksResponse
|
|
25886
|
+
"""
|
|
25887
|
+
UtilClient.validate_model(request)
|
|
25888
|
+
query = {}
|
|
25889
|
+
if not UtilClient.is_unset(request.end_of_create_time):
|
|
25890
|
+
query['EndOfCreateTime'] = request.end_of_create_time
|
|
25891
|
+
if not UtilClient.is_unset(request.key_text):
|
|
25892
|
+
query['KeyText'] = request.key_text
|
|
25893
|
+
if not UtilClient.is_unset(request.max_results):
|
|
25894
|
+
query['MaxResults'] = request.max_results
|
|
25895
|
+
if not UtilClient.is_unset(request.next_token):
|
|
25896
|
+
query['NextToken'] = request.next_token
|
|
25897
|
+
if not UtilClient.is_unset(request.start_of_create_time):
|
|
25898
|
+
query['StartOfCreateTime'] = request.start_of_create_time
|
|
25899
|
+
if not UtilClient.is_unset(request.workflow_id):
|
|
25900
|
+
query['WorkflowId'] = request.workflow_id
|
|
25901
|
+
if not UtilClient.is_unset(request.workflow_name):
|
|
25902
|
+
query['WorkflowName'] = request.workflow_name
|
|
25903
|
+
req = open_api_models.OpenApiRequest(
|
|
25904
|
+
query=OpenApiUtilClient.query(query)
|
|
25905
|
+
)
|
|
25906
|
+
params = open_api_models.Params(
|
|
25907
|
+
action='ListWorkflowTasks',
|
|
25908
|
+
version='2020-11-09',
|
|
25909
|
+
protocol='HTTPS',
|
|
25910
|
+
pathname='/',
|
|
25911
|
+
method='POST',
|
|
25912
|
+
auth_type='AK',
|
|
25913
|
+
style='RPC',
|
|
25914
|
+
req_body_type='formData',
|
|
25915
|
+
body_type='json'
|
|
25916
|
+
)
|
|
25917
|
+
return TeaCore.from_map(
|
|
25918
|
+
ice20201109_models.ListWorkflowTasksResponse(),
|
|
25919
|
+
await self.call_api_async(params, req, runtime)
|
|
25920
|
+
)
|
|
25921
|
+
|
|
25922
|
+
def list_workflow_tasks(
|
|
25923
|
+
self,
|
|
25924
|
+
request: ice20201109_models.ListWorkflowTasksRequest,
|
|
25925
|
+
) -> ice20201109_models.ListWorkflowTasksResponse:
|
|
25926
|
+
"""
|
|
25927
|
+
@summary 工作流任务实例列表
|
|
25928
|
+
|
|
25929
|
+
@param request: ListWorkflowTasksRequest
|
|
25930
|
+
@return: ListWorkflowTasksResponse
|
|
25931
|
+
"""
|
|
25932
|
+
runtime = util_models.RuntimeOptions()
|
|
25933
|
+
return self.list_workflow_tasks_with_options(request, runtime)
|
|
25934
|
+
|
|
25935
|
+
async def list_workflow_tasks_async(
|
|
25936
|
+
self,
|
|
25937
|
+
request: ice20201109_models.ListWorkflowTasksRequest,
|
|
25938
|
+
) -> ice20201109_models.ListWorkflowTasksResponse:
|
|
25939
|
+
"""
|
|
25940
|
+
@summary 工作流任务实例列表
|
|
25941
|
+
|
|
25942
|
+
@param request: ListWorkflowTasksRequest
|
|
25943
|
+
@return: ListWorkflowTasksResponse
|
|
25944
|
+
"""
|
|
25945
|
+
runtime = util_models.RuntimeOptions()
|
|
25946
|
+
return await self.list_workflow_tasks_with_options_async(request, runtime)
|
|
25947
|
+
|
|
25948
|
+
def open_media_connect_flow_failover_with_options(
|
|
25949
|
+
self,
|
|
25950
|
+
request: ice20201109_models.OpenMediaConnectFlowFailoverRequest,
|
|
25951
|
+
runtime: util_models.RuntimeOptions,
|
|
25952
|
+
) -> ice20201109_models.OpenMediaConnectFlowFailoverResponse:
|
|
25953
|
+
"""
|
|
25954
|
+
@summary 开启MediaConnect双流灾备
|
|
25955
|
+
|
|
25956
|
+
@param request: OpenMediaConnectFlowFailoverRequest
|
|
25957
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
25958
|
+
@return: OpenMediaConnectFlowFailoverResponse
|
|
25959
|
+
"""
|
|
25960
|
+
UtilClient.validate_model(request)
|
|
25961
|
+
query = {}
|
|
25962
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
25963
|
+
query['FlowId'] = request.flow_id
|
|
25964
|
+
req = open_api_models.OpenApiRequest(
|
|
25965
|
+
query=OpenApiUtilClient.query(query)
|
|
25966
|
+
)
|
|
25967
|
+
params = open_api_models.Params(
|
|
25968
|
+
action='OpenMediaConnectFlowFailover',
|
|
25969
|
+
version='2020-11-09',
|
|
25970
|
+
protocol='HTTPS',
|
|
25971
|
+
pathname='/',
|
|
25972
|
+
method='POST',
|
|
25973
|
+
auth_type='AK',
|
|
25974
|
+
style='RPC',
|
|
25975
|
+
req_body_type='formData',
|
|
25976
|
+
body_type='json'
|
|
25977
|
+
)
|
|
25978
|
+
return TeaCore.from_map(
|
|
25979
|
+
ice20201109_models.OpenMediaConnectFlowFailoverResponse(),
|
|
25980
|
+
self.call_api(params, req, runtime)
|
|
25981
|
+
)
|
|
25982
|
+
|
|
25983
|
+
async def open_media_connect_flow_failover_with_options_async(
|
|
25984
|
+
self,
|
|
25985
|
+
request: ice20201109_models.OpenMediaConnectFlowFailoverRequest,
|
|
25986
|
+
runtime: util_models.RuntimeOptions,
|
|
25987
|
+
) -> ice20201109_models.OpenMediaConnectFlowFailoverResponse:
|
|
25988
|
+
"""
|
|
25989
|
+
@summary 开启MediaConnect双流灾备
|
|
25990
|
+
|
|
25991
|
+
@param request: OpenMediaConnectFlowFailoverRequest
|
|
25992
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
25993
|
+
@return: OpenMediaConnectFlowFailoverResponse
|
|
25994
|
+
"""
|
|
25995
|
+
UtilClient.validate_model(request)
|
|
25996
|
+
query = {}
|
|
25997
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
25998
|
+
query['FlowId'] = request.flow_id
|
|
25999
|
+
req = open_api_models.OpenApiRequest(
|
|
26000
|
+
query=OpenApiUtilClient.query(query)
|
|
26001
|
+
)
|
|
26002
|
+
params = open_api_models.Params(
|
|
26003
|
+
action='OpenMediaConnectFlowFailover',
|
|
26004
|
+
version='2020-11-09',
|
|
26005
|
+
protocol='HTTPS',
|
|
26006
|
+
pathname='/',
|
|
26007
|
+
method='POST',
|
|
26008
|
+
auth_type='AK',
|
|
26009
|
+
style='RPC',
|
|
26010
|
+
req_body_type='formData',
|
|
26011
|
+
body_type='json'
|
|
26012
|
+
)
|
|
26013
|
+
return TeaCore.from_map(
|
|
26014
|
+
ice20201109_models.OpenMediaConnectFlowFailoverResponse(),
|
|
26015
|
+
await self.call_api_async(params, req, runtime)
|
|
26016
|
+
)
|
|
26017
|
+
|
|
26018
|
+
def open_media_connect_flow_failover(
|
|
26019
|
+
self,
|
|
26020
|
+
request: ice20201109_models.OpenMediaConnectFlowFailoverRequest,
|
|
26021
|
+
) -> ice20201109_models.OpenMediaConnectFlowFailoverResponse:
|
|
26022
|
+
"""
|
|
26023
|
+
@summary 开启MediaConnect双流灾备
|
|
26024
|
+
|
|
26025
|
+
@param request: OpenMediaConnectFlowFailoverRequest
|
|
26026
|
+
@return: OpenMediaConnectFlowFailoverResponse
|
|
26027
|
+
"""
|
|
26028
|
+
runtime = util_models.RuntimeOptions()
|
|
26029
|
+
return self.open_media_connect_flow_failover_with_options(request, runtime)
|
|
26030
|
+
|
|
26031
|
+
async def open_media_connect_flow_failover_async(
|
|
26032
|
+
self,
|
|
26033
|
+
request: ice20201109_models.OpenMediaConnectFlowFailoverRequest,
|
|
26034
|
+
) -> ice20201109_models.OpenMediaConnectFlowFailoverResponse:
|
|
26035
|
+
"""
|
|
26036
|
+
@summary 开启MediaConnect双流灾备
|
|
26037
|
+
|
|
26038
|
+
@param request: OpenMediaConnectFlowFailoverRequest
|
|
26039
|
+
@return: OpenMediaConnectFlowFailoverResponse
|
|
26040
|
+
"""
|
|
26041
|
+
runtime = util_models.RuntimeOptions()
|
|
26042
|
+
return await self.open_media_connect_flow_failover_with_options_async(request, runtime)
|
|
26043
|
+
|
|
25055
26044
|
def query_copyright_extract_job_with_options(
|
|
25056
26045
|
self,
|
|
25057
26046
|
request: ice20201109_models.QueryCopyrightExtractJobRequest,
|
|
@@ -26468,6 +27457,118 @@ class Client(OpenApiClient):
|
|
|
26468
27457
|
runtime = util_models.RuntimeOptions()
|
|
26469
27458
|
return await self.query_trace_m3u_8job_list_with_options_async(request, runtime)
|
|
26470
27459
|
|
|
27460
|
+
def query_video_cognition_job_with_options(
|
|
27461
|
+
self,
|
|
27462
|
+
tmp_req: ice20201109_models.QueryVideoCognitionJobRequest,
|
|
27463
|
+
runtime: util_models.RuntimeOptions,
|
|
27464
|
+
) -> ice20201109_models.QueryVideoCognitionJobResponse:
|
|
27465
|
+
"""
|
|
27466
|
+
@summary 查询视频理解任务结果
|
|
27467
|
+
|
|
27468
|
+
@param tmp_req: QueryVideoCognitionJobRequest
|
|
27469
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27470
|
+
@return: QueryVideoCognitionJobResponse
|
|
27471
|
+
"""
|
|
27472
|
+
UtilClient.validate_model(tmp_req)
|
|
27473
|
+
request = ice20201109_models.QueryVideoCognitionJobShrinkRequest()
|
|
27474
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
27475
|
+
if not UtilClient.is_unset(tmp_req.include_results):
|
|
27476
|
+
request.include_results_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.include_results, 'IncludeResults', 'json')
|
|
27477
|
+
query = {}
|
|
27478
|
+
if not UtilClient.is_unset(request.include_results_shrink):
|
|
27479
|
+
query['IncludeResults'] = request.include_results_shrink
|
|
27480
|
+
if not UtilClient.is_unset(request.job_id):
|
|
27481
|
+
query['JobId'] = request.job_id
|
|
27482
|
+
if not UtilClient.is_unset(request.params):
|
|
27483
|
+
query['Params'] = request.params
|
|
27484
|
+
req = open_api_models.OpenApiRequest(
|
|
27485
|
+
query=OpenApiUtilClient.query(query)
|
|
27486
|
+
)
|
|
27487
|
+
params = open_api_models.Params(
|
|
27488
|
+
action='QueryVideoCognitionJob',
|
|
27489
|
+
version='2020-11-09',
|
|
27490
|
+
protocol='HTTPS',
|
|
27491
|
+
pathname='/',
|
|
27492
|
+
method='POST',
|
|
27493
|
+
auth_type='AK',
|
|
27494
|
+
style='RPC',
|
|
27495
|
+
req_body_type='formData',
|
|
27496
|
+
body_type='json'
|
|
27497
|
+
)
|
|
27498
|
+
return TeaCore.from_map(
|
|
27499
|
+
ice20201109_models.QueryVideoCognitionJobResponse(),
|
|
27500
|
+
self.call_api(params, req, runtime)
|
|
27501
|
+
)
|
|
27502
|
+
|
|
27503
|
+
async def query_video_cognition_job_with_options_async(
|
|
27504
|
+
self,
|
|
27505
|
+
tmp_req: ice20201109_models.QueryVideoCognitionJobRequest,
|
|
27506
|
+
runtime: util_models.RuntimeOptions,
|
|
27507
|
+
) -> ice20201109_models.QueryVideoCognitionJobResponse:
|
|
27508
|
+
"""
|
|
27509
|
+
@summary 查询视频理解任务结果
|
|
27510
|
+
|
|
27511
|
+
@param tmp_req: QueryVideoCognitionJobRequest
|
|
27512
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27513
|
+
@return: QueryVideoCognitionJobResponse
|
|
27514
|
+
"""
|
|
27515
|
+
UtilClient.validate_model(tmp_req)
|
|
27516
|
+
request = ice20201109_models.QueryVideoCognitionJobShrinkRequest()
|
|
27517
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
27518
|
+
if not UtilClient.is_unset(tmp_req.include_results):
|
|
27519
|
+
request.include_results_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.include_results, 'IncludeResults', 'json')
|
|
27520
|
+
query = {}
|
|
27521
|
+
if not UtilClient.is_unset(request.include_results_shrink):
|
|
27522
|
+
query['IncludeResults'] = request.include_results_shrink
|
|
27523
|
+
if not UtilClient.is_unset(request.job_id):
|
|
27524
|
+
query['JobId'] = request.job_id
|
|
27525
|
+
if not UtilClient.is_unset(request.params):
|
|
27526
|
+
query['Params'] = request.params
|
|
27527
|
+
req = open_api_models.OpenApiRequest(
|
|
27528
|
+
query=OpenApiUtilClient.query(query)
|
|
27529
|
+
)
|
|
27530
|
+
params = open_api_models.Params(
|
|
27531
|
+
action='QueryVideoCognitionJob',
|
|
27532
|
+
version='2020-11-09',
|
|
27533
|
+
protocol='HTTPS',
|
|
27534
|
+
pathname='/',
|
|
27535
|
+
method='POST',
|
|
27536
|
+
auth_type='AK',
|
|
27537
|
+
style='RPC',
|
|
27538
|
+
req_body_type='formData',
|
|
27539
|
+
body_type='json'
|
|
27540
|
+
)
|
|
27541
|
+
return TeaCore.from_map(
|
|
27542
|
+
ice20201109_models.QueryVideoCognitionJobResponse(),
|
|
27543
|
+
await self.call_api_async(params, req, runtime)
|
|
27544
|
+
)
|
|
27545
|
+
|
|
27546
|
+
def query_video_cognition_job(
|
|
27547
|
+
self,
|
|
27548
|
+
request: ice20201109_models.QueryVideoCognitionJobRequest,
|
|
27549
|
+
) -> ice20201109_models.QueryVideoCognitionJobResponse:
|
|
27550
|
+
"""
|
|
27551
|
+
@summary 查询视频理解任务结果
|
|
27552
|
+
|
|
27553
|
+
@param request: QueryVideoCognitionJobRequest
|
|
27554
|
+
@return: QueryVideoCognitionJobResponse
|
|
27555
|
+
"""
|
|
27556
|
+
runtime = util_models.RuntimeOptions()
|
|
27557
|
+
return self.query_video_cognition_job_with_options(request, runtime)
|
|
27558
|
+
|
|
27559
|
+
async def query_video_cognition_job_async(
|
|
27560
|
+
self,
|
|
27561
|
+
request: ice20201109_models.QueryVideoCognitionJobRequest,
|
|
27562
|
+
) -> ice20201109_models.QueryVideoCognitionJobResponse:
|
|
27563
|
+
"""
|
|
27564
|
+
@summary 查询视频理解任务结果
|
|
27565
|
+
|
|
27566
|
+
@param request: QueryVideoCognitionJobRequest
|
|
27567
|
+
@return: QueryVideoCognitionJobResponse
|
|
27568
|
+
"""
|
|
27569
|
+
runtime = util_models.RuntimeOptions()
|
|
27570
|
+
return await self.query_video_cognition_job_with_options_async(request, runtime)
|
|
27571
|
+
|
|
26471
27572
|
def refresh_upload_media_with_options(
|
|
26472
27573
|
self,
|
|
26473
27574
|
request: ice20201109_models.RefreshUploadMediaRequest,
|
|
@@ -26752,6 +27853,51 @@ class Client(OpenApiClient):
|
|
|
26752
27853
|
query['InputURL'] = request.input_url
|
|
26753
27854
|
if not UtilClient.is_unset(request.media_id):
|
|
26754
27855
|
query['MediaId'] = request.media_id
|
|
27856
|
+
if not UtilClient.is_unset(request.stream_tags):
|
|
27857
|
+
query['StreamTags'] = request.stream_tags
|
|
27858
|
+
if not UtilClient.is_unset(request.user_data):
|
|
27859
|
+
query['UserData'] = request.user_data
|
|
27860
|
+
req = open_api_models.OpenApiRequest(
|
|
27861
|
+
query=OpenApiUtilClient.query(query)
|
|
27862
|
+
)
|
|
27863
|
+
params = open_api_models.Params(
|
|
27864
|
+
action='RegisterMediaStream',
|
|
27865
|
+
version='2020-11-09',
|
|
27866
|
+
protocol='HTTPS',
|
|
27867
|
+
pathname='/',
|
|
27868
|
+
method='POST',
|
|
27869
|
+
auth_type='AK',
|
|
27870
|
+
style='RPC',
|
|
27871
|
+
req_body_type='formData',
|
|
27872
|
+
body_type='json'
|
|
27873
|
+
)
|
|
27874
|
+
return TeaCore.from_map(
|
|
27875
|
+
ice20201109_models.RegisterMediaStreamResponse(),
|
|
27876
|
+
self.call_api(params, req, runtime)
|
|
27877
|
+
)
|
|
27878
|
+
|
|
27879
|
+
async def register_media_stream_with_options_async(
|
|
27880
|
+
self,
|
|
27881
|
+
request: ice20201109_models.RegisterMediaStreamRequest,
|
|
27882
|
+
runtime: util_models.RuntimeOptions,
|
|
27883
|
+
) -> ice20201109_models.RegisterMediaStreamResponse:
|
|
27884
|
+
"""
|
|
27885
|
+
@summary Registers a media stream.
|
|
27886
|
+
|
|
27887
|
+
@description You can call this operation to register a media stream file in an Object Storage Service (OSS) bucket with Intelligent Media Services (IMS) and associate the media stream with the specified media asset ID.
|
|
27888
|
+
|
|
27889
|
+
@param request: RegisterMediaStreamRequest
|
|
27890
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27891
|
+
@return: RegisterMediaStreamResponse
|
|
27892
|
+
"""
|
|
27893
|
+
UtilClient.validate_model(request)
|
|
27894
|
+
query = {}
|
|
27895
|
+
if not UtilClient.is_unset(request.input_url):
|
|
27896
|
+
query['InputURL'] = request.input_url
|
|
27897
|
+
if not UtilClient.is_unset(request.media_id):
|
|
27898
|
+
query['MediaId'] = request.media_id
|
|
27899
|
+
if not UtilClient.is_unset(request.stream_tags):
|
|
27900
|
+
query['StreamTags'] = request.stream_tags
|
|
26755
27901
|
if not UtilClient.is_unset(request.user_data):
|
|
26756
27902
|
query['UserData'] = request.user_data
|
|
26757
27903
|
req = open_api_models.OpenApiRequest(
|
|
@@ -26770,13 +27916,12 @@ class Client(OpenApiClient):
|
|
|
26770
27916
|
)
|
|
26771
27917
|
return TeaCore.from_map(
|
|
26772
27918
|
ice20201109_models.RegisterMediaStreamResponse(),
|
|
26773
|
-
self.
|
|
27919
|
+
await self.call_api_async(params, req, runtime)
|
|
26774
27920
|
)
|
|
26775
27921
|
|
|
26776
|
-
|
|
27922
|
+
def register_media_stream(
|
|
26777
27923
|
self,
|
|
26778
27924
|
request: ice20201109_models.RegisterMediaStreamRequest,
|
|
26779
|
-
runtime: util_models.RuntimeOptions,
|
|
26780
27925
|
) -> ice20201109_models.RegisterMediaStreamResponse:
|
|
26781
27926
|
"""
|
|
26782
27927
|
@summary Registers a media stream.
|
|
@@ -26784,22 +27929,49 @@ class Client(OpenApiClient):
|
|
|
26784
27929
|
@description You can call this operation to register a media stream file in an Object Storage Service (OSS) bucket with Intelligent Media Services (IMS) and associate the media stream with the specified media asset ID.
|
|
26785
27930
|
|
|
26786
27931
|
@param request: RegisterMediaStreamRequest
|
|
26787
|
-
@param runtime: runtime options for this request RuntimeOptions
|
|
26788
27932
|
@return: RegisterMediaStreamResponse
|
|
26789
27933
|
"""
|
|
27934
|
+
runtime = util_models.RuntimeOptions()
|
|
27935
|
+
return self.register_media_stream_with_options(request, runtime)
|
|
27936
|
+
|
|
27937
|
+
async def register_media_stream_async(
|
|
27938
|
+
self,
|
|
27939
|
+
request: ice20201109_models.RegisterMediaStreamRequest,
|
|
27940
|
+
) -> ice20201109_models.RegisterMediaStreamResponse:
|
|
27941
|
+
"""
|
|
27942
|
+
@summary Registers a media stream.
|
|
27943
|
+
|
|
27944
|
+
@description You can call this operation to register a media stream file in an Object Storage Service (OSS) bucket with Intelligent Media Services (IMS) and associate the media stream with the specified media asset ID.
|
|
27945
|
+
|
|
27946
|
+
@param request: RegisterMediaStreamRequest
|
|
27947
|
+
@return: RegisterMediaStreamResponse
|
|
27948
|
+
"""
|
|
27949
|
+
runtime = util_models.RuntimeOptions()
|
|
27950
|
+
return await self.register_media_stream_with_options_async(request, runtime)
|
|
27951
|
+
|
|
27952
|
+
def resume_media_connect_flow_output_with_options(
|
|
27953
|
+
self,
|
|
27954
|
+
request: ice20201109_models.ResumeMediaConnectFlowOutputRequest,
|
|
27955
|
+
runtime: util_models.RuntimeOptions,
|
|
27956
|
+
) -> ice20201109_models.ResumeMediaConnectFlowOutputResponse:
|
|
27957
|
+
"""
|
|
27958
|
+
@summary 恢复某个MediaConnect实例的某个输出
|
|
27959
|
+
|
|
27960
|
+
@param request: ResumeMediaConnectFlowOutputRequest
|
|
27961
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27962
|
+
@return: ResumeMediaConnectFlowOutputResponse
|
|
27963
|
+
"""
|
|
26790
27964
|
UtilClient.validate_model(request)
|
|
26791
27965
|
query = {}
|
|
26792
|
-
if not UtilClient.is_unset(request.
|
|
26793
|
-
query['
|
|
26794
|
-
if not UtilClient.is_unset(request.
|
|
26795
|
-
query['
|
|
26796
|
-
if not UtilClient.is_unset(request.user_data):
|
|
26797
|
-
query['UserData'] = request.user_data
|
|
27966
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
27967
|
+
query['FlowId'] = request.flow_id
|
|
27968
|
+
if not UtilClient.is_unset(request.output_name):
|
|
27969
|
+
query['OutputName'] = request.output_name
|
|
26798
27970
|
req = open_api_models.OpenApiRequest(
|
|
26799
27971
|
query=OpenApiUtilClient.query(query)
|
|
26800
27972
|
)
|
|
26801
27973
|
params = open_api_models.Params(
|
|
26802
|
-
action='
|
|
27974
|
+
action='ResumeMediaConnectFlowOutput',
|
|
26803
27975
|
version='2020-11-09',
|
|
26804
27976
|
protocol='HTTPS',
|
|
26805
27977
|
pathname='/',
|
|
@@ -26810,39 +27982,72 @@ class Client(OpenApiClient):
|
|
|
26810
27982
|
body_type='json'
|
|
26811
27983
|
)
|
|
26812
27984
|
return TeaCore.from_map(
|
|
26813
|
-
ice20201109_models.
|
|
26814
|
-
|
|
27985
|
+
ice20201109_models.ResumeMediaConnectFlowOutputResponse(),
|
|
27986
|
+
self.call_api(params, req, runtime)
|
|
26815
27987
|
)
|
|
26816
27988
|
|
|
26817
|
-
def
|
|
27989
|
+
async def resume_media_connect_flow_output_with_options_async(
|
|
26818
27990
|
self,
|
|
26819
|
-
request: ice20201109_models.
|
|
26820
|
-
|
|
27991
|
+
request: ice20201109_models.ResumeMediaConnectFlowOutputRequest,
|
|
27992
|
+
runtime: util_models.RuntimeOptions,
|
|
27993
|
+
) -> ice20201109_models.ResumeMediaConnectFlowOutputResponse:
|
|
26821
27994
|
"""
|
|
26822
|
-
@summary
|
|
27995
|
+
@summary 恢复某个MediaConnect实例的某个输出
|
|
26823
27996
|
|
|
26824
|
-
@
|
|
27997
|
+
@param request: ResumeMediaConnectFlowOutputRequest
|
|
27998
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
27999
|
+
@return: ResumeMediaConnectFlowOutputResponse
|
|
28000
|
+
"""
|
|
28001
|
+
UtilClient.validate_model(request)
|
|
28002
|
+
query = {}
|
|
28003
|
+
if not UtilClient.is_unset(request.flow_id):
|
|
28004
|
+
query['FlowId'] = request.flow_id
|
|
28005
|
+
if not UtilClient.is_unset(request.output_name):
|
|
28006
|
+
query['OutputName'] = request.output_name
|
|
28007
|
+
req = open_api_models.OpenApiRequest(
|
|
28008
|
+
query=OpenApiUtilClient.query(query)
|
|
28009
|
+
)
|
|
28010
|
+
params = open_api_models.Params(
|
|
28011
|
+
action='ResumeMediaConnectFlowOutput',
|
|
28012
|
+
version='2020-11-09',
|
|
28013
|
+
protocol='HTTPS',
|
|
28014
|
+
pathname='/',
|
|
28015
|
+
method='POST',
|
|
28016
|
+
auth_type='AK',
|
|
28017
|
+
style='RPC',
|
|
28018
|
+
req_body_type='formData',
|
|
28019
|
+
body_type='json'
|
|
28020
|
+
)
|
|
28021
|
+
return TeaCore.from_map(
|
|
28022
|
+
ice20201109_models.ResumeMediaConnectFlowOutputResponse(),
|
|
28023
|
+
await self.call_api_async(params, req, runtime)
|
|
28024
|
+
)
|
|
28025
|
+
|
|
28026
|
+
def resume_media_connect_flow_output(
|
|
28027
|
+
self,
|
|
28028
|
+
request: ice20201109_models.ResumeMediaConnectFlowOutputRequest,
|
|
28029
|
+
) -> ice20201109_models.ResumeMediaConnectFlowOutputResponse:
|
|
28030
|
+
"""
|
|
28031
|
+
@summary 恢复某个MediaConnect实例的某个输出
|
|
26825
28032
|
|
|
26826
|
-
@param request:
|
|
26827
|
-
@return:
|
|
28033
|
+
@param request: ResumeMediaConnectFlowOutputRequest
|
|
28034
|
+
@return: ResumeMediaConnectFlowOutputResponse
|
|
26828
28035
|
"""
|
|
26829
28036
|
runtime = util_models.RuntimeOptions()
|
|
26830
|
-
return self.
|
|
28037
|
+
return self.resume_media_connect_flow_output_with_options(request, runtime)
|
|
26831
28038
|
|
|
26832
|
-
async def
|
|
28039
|
+
async def resume_media_connect_flow_output_async(
|
|
26833
28040
|
self,
|
|
26834
|
-
request: ice20201109_models.
|
|
26835
|
-
) -> ice20201109_models.
|
|
28041
|
+
request: ice20201109_models.ResumeMediaConnectFlowOutputRequest,
|
|
28042
|
+
) -> ice20201109_models.ResumeMediaConnectFlowOutputResponse:
|
|
26836
28043
|
"""
|
|
26837
|
-
@summary
|
|
26838
|
-
|
|
26839
|
-
@description You can call this operation to register a media stream file in an Object Storage Service (OSS) bucket with Intelligent Media Services (IMS) and associate the media stream with the specified media asset ID.
|
|
28044
|
+
@summary 恢复某个MediaConnect实例的某个输出
|
|
26840
28045
|
|
|
26841
|
-
@param request:
|
|
26842
|
-
@return:
|
|
28046
|
+
@param request: ResumeMediaConnectFlowOutputRequest
|
|
28047
|
+
@return: ResumeMediaConnectFlowOutputResponse
|
|
26843
28048
|
"""
|
|
26844
28049
|
runtime = util_models.RuntimeOptions()
|
|
26845
|
-
return await self.
|
|
28050
|
+
return await self.resume_media_connect_flow_output_with_options_async(request, runtime)
|
|
26846
28051
|
|
|
26847
28052
|
def search_editing_project_with_options(
|
|
26848
28053
|
self,
|
|
@@ -26988,6 +28193,8 @@ class Client(OpenApiClient):
|
|
|
26988
28193
|
query = {}
|
|
26989
28194
|
if not UtilClient.is_unset(request.media_ids):
|
|
26990
28195
|
query['MediaIds'] = request.media_ids
|
|
28196
|
+
if not UtilClient.is_unset(request.namespace):
|
|
28197
|
+
query['Namespace'] = request.namespace
|
|
26991
28198
|
if not UtilClient.is_unset(request.search_lib_name):
|
|
26992
28199
|
query['SearchLibName'] = request.search_lib_name
|
|
26993
28200
|
if not UtilClient.is_unset(request.task):
|
|
@@ -27027,6 +28234,8 @@ class Client(OpenApiClient):
|
|
|
27027
28234
|
query = {}
|
|
27028
28235
|
if not UtilClient.is_unset(request.media_ids):
|
|
27029
28236
|
query['MediaIds'] = request.media_ids
|
|
28237
|
+
if not UtilClient.is_unset(request.namespace):
|
|
28238
|
+
query['Namespace'] = request.namespace
|
|
27030
28239
|
if not UtilClient.is_unset(request.search_lib_name):
|
|
27031
28240
|
query['SearchLibName'] = request.search_lib_name
|
|
27032
28241
|
if not UtilClient.is_unset(request.task):
|
|
@@ -28620,6 +29829,114 @@ class Client(OpenApiClient):
|
|
|
28620
29829
|
runtime = util_models.RuntimeOptions()
|
|
28621
29830
|
return await self.send_message_chat_text_with_options_async(request, runtime)
|
|
28622
29831
|
|
|
29832
|
+
def set_aiagent_voiceprint_with_options(
|
|
29833
|
+
self,
|
|
29834
|
+
tmp_req: ice20201109_models.SetAIAgentVoiceprintRequest,
|
|
29835
|
+
runtime: util_models.RuntimeOptions,
|
|
29836
|
+
) -> ice20201109_models.SetAIAgentVoiceprintResponse:
|
|
29837
|
+
"""
|
|
29838
|
+
@summary 设置声纹
|
|
29839
|
+
|
|
29840
|
+
@param tmp_req: SetAIAgentVoiceprintRequest
|
|
29841
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29842
|
+
@return: SetAIAgentVoiceprintResponse
|
|
29843
|
+
"""
|
|
29844
|
+
UtilClient.validate_model(tmp_req)
|
|
29845
|
+
request = ice20201109_models.SetAIAgentVoiceprintShrinkRequest()
|
|
29846
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
29847
|
+
if not UtilClient.is_unset(tmp_req.input):
|
|
29848
|
+
request.input_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.input, 'Input', 'json')
|
|
29849
|
+
query = {}
|
|
29850
|
+
if not UtilClient.is_unset(request.input_shrink):
|
|
29851
|
+
query['Input'] = request.input_shrink
|
|
29852
|
+
if not UtilClient.is_unset(request.voiceprint_id):
|
|
29853
|
+
query['VoiceprintId'] = request.voiceprint_id
|
|
29854
|
+
req = open_api_models.OpenApiRequest(
|
|
29855
|
+
query=OpenApiUtilClient.query(query)
|
|
29856
|
+
)
|
|
29857
|
+
params = open_api_models.Params(
|
|
29858
|
+
action='SetAIAgentVoiceprint',
|
|
29859
|
+
version='2020-11-09',
|
|
29860
|
+
protocol='HTTPS',
|
|
29861
|
+
pathname='/',
|
|
29862
|
+
method='POST',
|
|
29863
|
+
auth_type='AK',
|
|
29864
|
+
style='RPC',
|
|
29865
|
+
req_body_type='formData',
|
|
29866
|
+
body_type='json'
|
|
29867
|
+
)
|
|
29868
|
+
return TeaCore.from_map(
|
|
29869
|
+
ice20201109_models.SetAIAgentVoiceprintResponse(),
|
|
29870
|
+
self.call_api(params, req, runtime)
|
|
29871
|
+
)
|
|
29872
|
+
|
|
29873
|
+
async def set_aiagent_voiceprint_with_options_async(
|
|
29874
|
+
self,
|
|
29875
|
+
tmp_req: ice20201109_models.SetAIAgentVoiceprintRequest,
|
|
29876
|
+
runtime: util_models.RuntimeOptions,
|
|
29877
|
+
) -> ice20201109_models.SetAIAgentVoiceprintResponse:
|
|
29878
|
+
"""
|
|
29879
|
+
@summary 设置声纹
|
|
29880
|
+
|
|
29881
|
+
@param tmp_req: SetAIAgentVoiceprintRequest
|
|
29882
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
29883
|
+
@return: SetAIAgentVoiceprintResponse
|
|
29884
|
+
"""
|
|
29885
|
+
UtilClient.validate_model(tmp_req)
|
|
29886
|
+
request = ice20201109_models.SetAIAgentVoiceprintShrinkRequest()
|
|
29887
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
29888
|
+
if not UtilClient.is_unset(tmp_req.input):
|
|
29889
|
+
request.input_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.input, 'Input', 'json')
|
|
29890
|
+
query = {}
|
|
29891
|
+
if not UtilClient.is_unset(request.input_shrink):
|
|
29892
|
+
query['Input'] = request.input_shrink
|
|
29893
|
+
if not UtilClient.is_unset(request.voiceprint_id):
|
|
29894
|
+
query['VoiceprintId'] = request.voiceprint_id
|
|
29895
|
+
req = open_api_models.OpenApiRequest(
|
|
29896
|
+
query=OpenApiUtilClient.query(query)
|
|
29897
|
+
)
|
|
29898
|
+
params = open_api_models.Params(
|
|
29899
|
+
action='SetAIAgentVoiceprint',
|
|
29900
|
+
version='2020-11-09',
|
|
29901
|
+
protocol='HTTPS',
|
|
29902
|
+
pathname='/',
|
|
29903
|
+
method='POST',
|
|
29904
|
+
auth_type='AK',
|
|
29905
|
+
style='RPC',
|
|
29906
|
+
req_body_type='formData',
|
|
29907
|
+
body_type='json'
|
|
29908
|
+
)
|
|
29909
|
+
return TeaCore.from_map(
|
|
29910
|
+
ice20201109_models.SetAIAgentVoiceprintResponse(),
|
|
29911
|
+
await self.call_api_async(params, req, runtime)
|
|
29912
|
+
)
|
|
29913
|
+
|
|
29914
|
+
def set_aiagent_voiceprint(
|
|
29915
|
+
self,
|
|
29916
|
+
request: ice20201109_models.SetAIAgentVoiceprintRequest,
|
|
29917
|
+
) -> ice20201109_models.SetAIAgentVoiceprintResponse:
|
|
29918
|
+
"""
|
|
29919
|
+
@summary 设置声纹
|
|
29920
|
+
|
|
29921
|
+
@param request: SetAIAgentVoiceprintRequest
|
|
29922
|
+
@return: SetAIAgentVoiceprintResponse
|
|
29923
|
+
"""
|
|
29924
|
+
runtime = util_models.RuntimeOptions()
|
|
29925
|
+
return self.set_aiagent_voiceprint_with_options(request, runtime)
|
|
29926
|
+
|
|
29927
|
+
async def set_aiagent_voiceprint_async(
|
|
29928
|
+
self,
|
|
29929
|
+
request: ice20201109_models.SetAIAgentVoiceprintRequest,
|
|
29930
|
+
) -> ice20201109_models.SetAIAgentVoiceprintResponse:
|
|
29931
|
+
"""
|
|
29932
|
+
@summary 设置声纹
|
|
29933
|
+
|
|
29934
|
+
@param request: SetAIAgentVoiceprintRequest
|
|
29935
|
+
@return: SetAIAgentVoiceprintResponse
|
|
29936
|
+
"""
|
|
29937
|
+
runtime = util_models.RuntimeOptions()
|
|
29938
|
+
return await self.set_aiagent_voiceprint_with_options_async(request, runtime)
|
|
29939
|
+
|
|
28623
29940
|
def set_content_analyze_config_with_options(
|
|
28624
29941
|
self,
|
|
28625
29942
|
request: ice20201109_models.SetContentAnalyzeConfigRequest,
|
|
@@ -35076,6 +36393,126 @@ class Client(OpenApiClient):
|
|
|
35076
36393
|
runtime = util_models.RuntimeOptions()
|
|
35077
36394
|
return await self.submit_transcode_job_with_options_async(request, runtime)
|
|
35078
36395
|
|
|
36396
|
+
def submit_video_cognition_job_with_options(
|
|
36397
|
+
self,
|
|
36398
|
+
tmp_req: ice20201109_models.SubmitVideoCognitionJobRequest,
|
|
36399
|
+
runtime: util_models.RuntimeOptions,
|
|
36400
|
+
) -> ice20201109_models.SubmitVideoCognitionJobResponse:
|
|
36401
|
+
"""
|
|
36402
|
+
@summary 提交视频理解任务
|
|
36403
|
+
|
|
36404
|
+
@param tmp_req: SubmitVideoCognitionJobRequest
|
|
36405
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
36406
|
+
@return: SubmitVideoCognitionJobResponse
|
|
36407
|
+
"""
|
|
36408
|
+
UtilClient.validate_model(tmp_req)
|
|
36409
|
+
request = ice20201109_models.SubmitVideoCognitionJobShrinkRequest()
|
|
36410
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
36411
|
+
if not UtilClient.is_unset(tmp_req.input):
|
|
36412
|
+
request.input_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.input, 'Input', 'json')
|
|
36413
|
+
query = {}
|
|
36414
|
+
if not UtilClient.is_unset(request.input_shrink):
|
|
36415
|
+
query['Input'] = request.input_shrink
|
|
36416
|
+
if not UtilClient.is_unset(request.params):
|
|
36417
|
+
query['Params'] = request.params
|
|
36418
|
+
if not UtilClient.is_unset(request.template_id):
|
|
36419
|
+
query['TemplateId'] = request.template_id
|
|
36420
|
+
if not UtilClient.is_unset(request.title):
|
|
36421
|
+
query['Title'] = request.title
|
|
36422
|
+
if not UtilClient.is_unset(request.user_data):
|
|
36423
|
+
query['UserData'] = request.user_data
|
|
36424
|
+
req = open_api_models.OpenApiRequest(
|
|
36425
|
+
query=OpenApiUtilClient.query(query)
|
|
36426
|
+
)
|
|
36427
|
+
params = open_api_models.Params(
|
|
36428
|
+
action='SubmitVideoCognitionJob',
|
|
36429
|
+
version='2020-11-09',
|
|
36430
|
+
protocol='HTTPS',
|
|
36431
|
+
pathname='/',
|
|
36432
|
+
method='POST',
|
|
36433
|
+
auth_type='AK',
|
|
36434
|
+
style='RPC',
|
|
36435
|
+
req_body_type='formData',
|
|
36436
|
+
body_type='json'
|
|
36437
|
+
)
|
|
36438
|
+
return TeaCore.from_map(
|
|
36439
|
+
ice20201109_models.SubmitVideoCognitionJobResponse(),
|
|
36440
|
+
self.call_api(params, req, runtime)
|
|
36441
|
+
)
|
|
36442
|
+
|
|
36443
|
+
async def submit_video_cognition_job_with_options_async(
|
|
36444
|
+
self,
|
|
36445
|
+
tmp_req: ice20201109_models.SubmitVideoCognitionJobRequest,
|
|
36446
|
+
runtime: util_models.RuntimeOptions,
|
|
36447
|
+
) -> ice20201109_models.SubmitVideoCognitionJobResponse:
|
|
36448
|
+
"""
|
|
36449
|
+
@summary 提交视频理解任务
|
|
36450
|
+
|
|
36451
|
+
@param tmp_req: SubmitVideoCognitionJobRequest
|
|
36452
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
36453
|
+
@return: SubmitVideoCognitionJobResponse
|
|
36454
|
+
"""
|
|
36455
|
+
UtilClient.validate_model(tmp_req)
|
|
36456
|
+
request = ice20201109_models.SubmitVideoCognitionJobShrinkRequest()
|
|
36457
|
+
OpenApiUtilClient.convert(tmp_req, request)
|
|
36458
|
+
if not UtilClient.is_unset(tmp_req.input):
|
|
36459
|
+
request.input_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.input, 'Input', 'json')
|
|
36460
|
+
query = {}
|
|
36461
|
+
if not UtilClient.is_unset(request.input_shrink):
|
|
36462
|
+
query['Input'] = request.input_shrink
|
|
36463
|
+
if not UtilClient.is_unset(request.params):
|
|
36464
|
+
query['Params'] = request.params
|
|
36465
|
+
if not UtilClient.is_unset(request.template_id):
|
|
36466
|
+
query['TemplateId'] = request.template_id
|
|
36467
|
+
if not UtilClient.is_unset(request.title):
|
|
36468
|
+
query['Title'] = request.title
|
|
36469
|
+
if not UtilClient.is_unset(request.user_data):
|
|
36470
|
+
query['UserData'] = request.user_data
|
|
36471
|
+
req = open_api_models.OpenApiRequest(
|
|
36472
|
+
query=OpenApiUtilClient.query(query)
|
|
36473
|
+
)
|
|
36474
|
+
params = open_api_models.Params(
|
|
36475
|
+
action='SubmitVideoCognitionJob',
|
|
36476
|
+
version='2020-11-09',
|
|
36477
|
+
protocol='HTTPS',
|
|
36478
|
+
pathname='/',
|
|
36479
|
+
method='POST',
|
|
36480
|
+
auth_type='AK',
|
|
36481
|
+
style='RPC',
|
|
36482
|
+
req_body_type='formData',
|
|
36483
|
+
body_type='json'
|
|
36484
|
+
)
|
|
36485
|
+
return TeaCore.from_map(
|
|
36486
|
+
ice20201109_models.SubmitVideoCognitionJobResponse(),
|
|
36487
|
+
await self.call_api_async(params, req, runtime)
|
|
36488
|
+
)
|
|
36489
|
+
|
|
36490
|
+
def submit_video_cognition_job(
|
|
36491
|
+
self,
|
|
36492
|
+
request: ice20201109_models.SubmitVideoCognitionJobRequest,
|
|
36493
|
+
) -> ice20201109_models.SubmitVideoCognitionJobResponse:
|
|
36494
|
+
"""
|
|
36495
|
+
@summary 提交视频理解任务
|
|
36496
|
+
|
|
36497
|
+
@param request: SubmitVideoCognitionJobRequest
|
|
36498
|
+
@return: SubmitVideoCognitionJobResponse
|
|
36499
|
+
"""
|
|
36500
|
+
runtime = util_models.RuntimeOptions()
|
|
36501
|
+
return self.submit_video_cognition_job_with_options(request, runtime)
|
|
36502
|
+
|
|
36503
|
+
async def submit_video_cognition_job_async(
|
|
36504
|
+
self,
|
|
36505
|
+
request: ice20201109_models.SubmitVideoCognitionJobRequest,
|
|
36506
|
+
) -> ice20201109_models.SubmitVideoCognitionJobResponse:
|
|
36507
|
+
"""
|
|
36508
|
+
@summary 提交视频理解任务
|
|
36509
|
+
|
|
36510
|
+
@param request: SubmitVideoCognitionJobRequest
|
|
36511
|
+
@return: SubmitVideoCognitionJobResponse
|
|
36512
|
+
"""
|
|
36513
|
+
runtime = util_models.RuntimeOptions()
|
|
36514
|
+
return await self.submit_video_cognition_job_with_options_async(request, runtime)
|
|
36515
|
+
|
|
35079
36516
|
def submit_video_translation_job_with_options(
|
|
35080
36517
|
self,
|
|
35081
36518
|
request: ice20201109_models.SubmitVideoTranslationJobRequest,
|
|
@@ -38434,6 +39871,8 @@ class Client(OpenApiClient):
|
|
|
38434
39871
|
query['MediaId'] = request.media_id
|
|
38435
39872
|
if not UtilClient.is_unset(request.msg_body):
|
|
38436
39873
|
query['MsgBody'] = request.msg_body
|
|
39874
|
+
if not UtilClient.is_unset(request.namespace):
|
|
39875
|
+
query['Namespace'] = request.namespace
|
|
38437
39876
|
if not UtilClient.is_unset(request.search_lib_name):
|
|
38438
39877
|
query['SearchLibName'] = request.search_lib_name
|
|
38439
39878
|
req = open_api_models.OpenApiRequest(
|
|
@@ -38473,6 +39912,8 @@ class Client(OpenApiClient):
|
|
|
38473
39912
|
query['MediaId'] = request.media_id
|
|
38474
39913
|
if not UtilClient.is_unset(request.msg_body):
|
|
38475
39914
|
query['MsgBody'] = request.msg_body
|
|
39915
|
+
if not UtilClient.is_unset(request.namespace):
|
|
39916
|
+
query['Namespace'] = request.namespace
|
|
38476
39917
|
if not UtilClient.is_unset(request.search_lib_name):
|
|
38477
39918
|
query['SearchLibName'] = request.search_lib_name
|
|
38478
39919
|
req = open_api_models.OpenApiRequest(
|