@@ -1585,6 +1585,103 @@ def list_resources_with_http_info(self, body, **kwargs): # noqa: E501
15851585 _request_timeout = params .get ('_request_timeout' ),
15861586 collection_formats = collection_formats )
15871587
1588+ def list_tags_for_resources (self , body , ** kwargs ): # noqa: E501
1589+ """list_tags_for_resources # noqa: E501
1590+
1591+ This method makes a synchronous HTTP request by default. To make an
1592+ asynchronous HTTP request, please pass async_req=True
1593+ >>> thread = api.list_tags_for_resources(body, async_req=True)
1594+ >>> result = thread.get()
1595+
1596+ :param async_req bool
1597+ :param ListTagsForResourcesRequest body: (required)
1598+ :return: ListTagsForResourcesResponse
1599+ If the method is called asynchronously,
1600+ returns the request thread.
1601+ """
1602+ kwargs ['_return_http_data_only' ] = True
1603+ if kwargs .get ('async_req' ):
1604+ return self .list_tags_for_resources_with_http_info (body , ** kwargs ) # noqa: E501
1605+ else :
1606+ (data ) = self .list_tags_for_resources_with_http_info (body , ** kwargs ) # noqa: E501
1607+ return data
1608+
1609+ def list_tags_for_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
1610+ """list_tags_for_resources # noqa: E501
1611+
1612+ This method makes a synchronous HTTP request by default. To make an
1613+ asynchronous HTTP request, please pass async_req=True
1614+ >>> thread = api.list_tags_for_resources_with_http_info(body, async_req=True)
1615+ >>> result = thread.get()
1616+
1617+ :param async_req bool
1618+ :param ListTagsForResourcesRequest body: (required)
1619+ :return: ListTagsForResourcesResponse
1620+ If the method is called asynchronously,
1621+ returns the request thread.
1622+ """
1623+
1624+ all_params = ['body' ] # noqa: E501
1625+ all_params .append ('async_req' )
1626+ all_params .append ('_return_http_data_only' )
1627+ all_params .append ('_preload_content' )
1628+ all_params .append ('_request_timeout' )
1629+
1630+ params = locals ()
1631+ for key , val in six .iteritems (params ['kwargs' ]):
1632+ if key not in all_params :
1633+ raise TypeError (
1634+ "Got an unexpected keyword argument '%s'"
1635+ " to method list_tags_for_resources" % key
1636+ )
1637+ params [key ] = val
1638+ del params ['kwargs' ]
1639+ # verify the required parameter 'body' is set
1640+ if self .api_client .client_side_validation and ('body' not in params or
1641+ params ['body' ] is None ): # noqa: E501
1642+ raise ValueError ("Missing the required parameter `body` when calling `list_tags_for_resources`" ) # noqa: E501
1643+
1644+ collection_formats = {}
1645+
1646+ path_params = {}
1647+
1648+ query_params = []
1649+
1650+ header_params = {}
1651+
1652+ form_params = []
1653+ local_var_files = {}
1654+
1655+ body_params = None
1656+ if 'body' in params :
1657+ body_params = params ['body' ]
1658+ # HTTP header `Accept`
1659+ header_params ['Accept' ] = self .api_client .select_header_accept (
1660+ ['application/json' ]) # noqa: E501
1661+
1662+ # HTTP header `Content-Type`
1663+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1664+ ['text/plain' ]) # noqa: E501
1665+
1666+ # Authentication setting
1667+ auth_settings = ['volcengineSign' ] # noqa: E501
1668+
1669+ return self .api_client .call_api (
1670+ '/ListTagsForResources/2024-01-01/resource_share/get/text_plain/' , 'GET' ,
1671+ path_params ,
1672+ query_params ,
1673+ header_params ,
1674+ body = body_params ,
1675+ post_params = form_params ,
1676+ files = local_var_files ,
1677+ response_type = 'ListTagsForResourcesResponse' , # noqa: E501
1678+ auth_settings = auth_settings ,
1679+ async_req = params .get ('async_req' ),
1680+ _return_http_data_only = params .get ('_return_http_data_only' ),
1681+ _preload_content = params .get ('_preload_content' , True ),
1682+ _request_timeout = params .get ('_request_timeout' ),
1683+ collection_formats = collection_formats )
1684+
15881685 def reject_resource_share_invitation (self , body , ** kwargs ): # noqa: E501
15891686 """reject_resource_share_invitation # noqa: E501
15901687
@@ -1682,6 +1779,200 @@ def reject_resource_share_invitation_with_http_info(self, body, **kwargs): # no
16821779 _request_timeout = params .get ('_request_timeout' ),
16831780 collection_formats = collection_formats )
16841781
1782+ def tag_resources (self , body , ** kwargs ): # noqa: E501
1783+ """tag_resources # noqa: E501
1784+
1785+ This method makes a synchronous HTTP request by default. To make an
1786+ asynchronous HTTP request, please pass async_req=True
1787+ >>> thread = api.tag_resources(body, async_req=True)
1788+ >>> result = thread.get()
1789+
1790+ :param async_req bool
1791+ :param TagResourcesRequest body: (required)
1792+ :return: TagResourcesResponse
1793+ If the method is called asynchronously,
1794+ returns the request thread.
1795+ """
1796+ kwargs ['_return_http_data_only' ] = True
1797+ if kwargs .get ('async_req' ):
1798+ return self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
1799+ else :
1800+ (data ) = self .tag_resources_with_http_info (body , ** kwargs ) # noqa: E501
1801+ return data
1802+
1803+ def tag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
1804+ """tag_resources # noqa: E501
1805+
1806+ This method makes a synchronous HTTP request by default. To make an
1807+ asynchronous HTTP request, please pass async_req=True
1808+ >>> thread = api.tag_resources_with_http_info(body, async_req=True)
1809+ >>> result = thread.get()
1810+
1811+ :param async_req bool
1812+ :param TagResourcesRequest body: (required)
1813+ :return: TagResourcesResponse
1814+ If the method is called asynchronously,
1815+ returns the request thread.
1816+ """
1817+
1818+ all_params = ['body' ] # noqa: E501
1819+ all_params .append ('async_req' )
1820+ all_params .append ('_return_http_data_only' )
1821+ all_params .append ('_preload_content' )
1822+ all_params .append ('_request_timeout' )
1823+
1824+ params = locals ()
1825+ for key , val in six .iteritems (params ['kwargs' ]):
1826+ if key not in all_params :
1827+ raise TypeError (
1828+ "Got an unexpected keyword argument '%s'"
1829+ " to method tag_resources" % key
1830+ )
1831+ params [key ] = val
1832+ del params ['kwargs' ]
1833+ # verify the required parameter 'body' is set
1834+ if self .api_client .client_side_validation and ('body' not in params or
1835+ params ['body' ] is None ): # noqa: E501
1836+ raise ValueError ("Missing the required parameter `body` when calling `tag_resources`" ) # noqa: E501
1837+
1838+ collection_formats = {}
1839+
1840+ path_params = {}
1841+
1842+ query_params = []
1843+
1844+ header_params = {}
1845+
1846+ form_params = []
1847+ local_var_files = {}
1848+
1849+ body_params = None
1850+ if 'body' in params :
1851+ body_params = params ['body' ]
1852+ # HTTP header `Accept`
1853+ header_params ['Accept' ] = self .api_client .select_header_accept (
1854+ ['application/json' ]) # noqa: E501
1855+
1856+ # HTTP header `Content-Type`
1857+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1858+ ['text/plain' ]) # noqa: E501
1859+
1860+ # Authentication setting
1861+ auth_settings = ['volcengineSign' ] # noqa: E501
1862+
1863+ return self .api_client .call_api (
1864+ '/TagResources/2024-01-01/resource_share/get/text_plain/' , 'GET' ,
1865+ path_params ,
1866+ query_params ,
1867+ header_params ,
1868+ body = body_params ,
1869+ post_params = form_params ,
1870+ files = local_var_files ,
1871+ response_type = 'TagResourcesResponse' , # noqa: E501
1872+ auth_settings = auth_settings ,
1873+ async_req = params .get ('async_req' ),
1874+ _return_http_data_only = params .get ('_return_http_data_only' ),
1875+ _preload_content = params .get ('_preload_content' , True ),
1876+ _request_timeout = params .get ('_request_timeout' ),
1877+ collection_formats = collection_formats )
1878+
1879+ def untag_resources (self , body , ** kwargs ): # noqa: E501
1880+ """untag_resources # noqa: E501
1881+
1882+ This method makes a synchronous HTTP request by default. To make an
1883+ asynchronous HTTP request, please pass async_req=True
1884+ >>> thread = api.untag_resources(body, async_req=True)
1885+ >>> result = thread.get()
1886+
1887+ :param async_req bool
1888+ :param UntagResourcesRequest body: (required)
1889+ :return: UntagResourcesResponse
1890+ If the method is called asynchronously,
1891+ returns the request thread.
1892+ """
1893+ kwargs ['_return_http_data_only' ] = True
1894+ if kwargs .get ('async_req' ):
1895+ return self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
1896+ else :
1897+ (data ) = self .untag_resources_with_http_info (body , ** kwargs ) # noqa: E501
1898+ return data
1899+
1900+ def untag_resources_with_http_info (self , body , ** kwargs ): # noqa: E501
1901+ """untag_resources # noqa: E501
1902+
1903+ This method makes a synchronous HTTP request by default. To make an
1904+ asynchronous HTTP request, please pass async_req=True
1905+ >>> thread = api.untag_resources_with_http_info(body, async_req=True)
1906+ >>> result = thread.get()
1907+
1908+ :param async_req bool
1909+ :param UntagResourcesRequest body: (required)
1910+ :return: UntagResourcesResponse
1911+ If the method is called asynchronously,
1912+ returns the request thread.
1913+ """
1914+
1915+ all_params = ['body' ] # noqa: E501
1916+ all_params .append ('async_req' )
1917+ all_params .append ('_return_http_data_only' )
1918+ all_params .append ('_preload_content' )
1919+ all_params .append ('_request_timeout' )
1920+
1921+ params = locals ()
1922+ for key , val in six .iteritems (params ['kwargs' ]):
1923+ if key not in all_params :
1924+ raise TypeError (
1925+ "Got an unexpected keyword argument '%s'"
1926+ " to method untag_resources" % key
1927+ )
1928+ params [key ] = val
1929+ del params ['kwargs' ]
1930+ # verify the required parameter 'body' is set
1931+ if self .api_client .client_side_validation and ('body' not in params or
1932+ params ['body' ] is None ): # noqa: E501
1933+ raise ValueError ("Missing the required parameter `body` when calling `untag_resources`" ) # noqa: E501
1934+
1935+ collection_formats = {}
1936+
1937+ path_params = {}
1938+
1939+ query_params = []
1940+
1941+ header_params = {}
1942+
1943+ form_params = []
1944+ local_var_files = {}
1945+
1946+ body_params = None
1947+ if 'body' in params :
1948+ body_params = params ['body' ]
1949+ # HTTP header `Accept`
1950+ header_params ['Accept' ] = self .api_client .select_header_accept (
1951+ ['application/json' ]) # noqa: E501
1952+
1953+ # HTTP header `Content-Type`
1954+ header_params ['Content-Type' ] = self .api_client .select_header_content_type ( # noqa: E501
1955+ ['text/plain' ]) # noqa: E501
1956+
1957+ # Authentication setting
1958+ auth_settings = ['volcengineSign' ] # noqa: E501
1959+
1960+ return self .api_client .call_api (
1961+ '/UntagResources/2024-01-01/resource_share/get/text_plain/' , 'GET' ,
1962+ path_params ,
1963+ query_params ,
1964+ header_params ,
1965+ body = body_params ,
1966+ post_params = form_params ,
1967+ files = local_var_files ,
1968+ response_type = 'UntagResourcesResponse' , # noqa: E501
1969+ auth_settings = auth_settings ,
1970+ async_req = params .get ('async_req' ),
1971+ _return_http_data_only = params .get ('_return_http_data_only' ),
1972+ _preload_content = params .get ('_preload_content' , True ),
1973+ _request_timeout = params .get ('_request_timeout' ),
1974+ collection_formats = collection_formats )
1975+
16851976 def update_resource_share (self , body , ** kwargs ): # noqa: E501
16861977 """update_resource_share # noqa: E501
16871978
0 commit comments