alibabacloud-fc20230330 4.2.0__tar.gz → 4.3.0__tar.gz

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.
Files changed (17) hide show
  1. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/ChangeLog.md +5 -0
  2. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/PKG-INFO +1 -1
  3. alibabacloud_fc20230330-4.3.0/alibabacloud_fc20230330/__init__.py +1 -0
  4. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/alibabacloud_fc20230330/client.py +136 -4
  5. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/alibabacloud_fc20230330/models.py +91 -2
  6. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/alibabacloud_fc20230330.egg-info/PKG-INFO +1 -1
  7. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/setup.py +1 -1
  8. alibabacloud_fc20230330-4.2.0/alibabacloud_fc20230330/__init__.py +0 -1
  9. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/LICENSE +0 -0
  10. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/MANIFEST.in +0 -0
  11. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/README-CN.md +0 -0
  12. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/README.md +0 -0
  13. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/alibabacloud_fc20230330.egg-info/SOURCES.txt +0 -0
  14. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/alibabacloud_fc20230330.egg-info/dependency_links.txt +0 -0
  15. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/alibabacloud_fc20230330.egg-info/requires.txt +0 -0
  16. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/alibabacloud_fc20230330.egg-info/top_level.txt +0 -0
  17. {alibabacloud_fc20230330-4.2.0 → alibabacloud_fc20230330-4.3.0}/setup.cfg +0 -0
@@ -1,3 +1,8 @@
1
+ 2025-04-01 Version: 4.2.0
2
+ - Support API DisableFunctionInvocation.
3
+ - Support API EnableFunctionInvocation.
4
+
5
+
1
6
  2025-03-31 Version: 4.1.9
2
7
  - Update API ListFunctions: add request parameters description.
3
8
  - Update API ListFunctions: add request parameters gpuType.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud_fc20230330
3
- Version: 4.2.0
3
+ Version: 4.3.0
4
4
  Summary: Alibaba Cloud Function Compute (20230330) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -0,0 +1 @@
1
+ __version__ = '4.3.0'
@@ -1809,6 +1809,122 @@ class Client(OpenApiClient):
1809
1809
  headers = {}
1810
1810
  return await self.delete_vpc_binding_with_options_async(function_name, vpc_id, headers, runtime)
1811
1811
 
1812
+ def describe_regions_with_options(
1813
+ self,
1814
+ request: fc20230330_models.DescribeRegionsRequest,
1815
+ headers: Dict[str, str],
1816
+ runtime: util_models.RuntimeOptions,
1817
+ ) -> fc20230330_models.DescribeRegionsResponse:
1818
+ """
1819
+ @summary 查询产品的地域信息列表
1820
+
1821
+ @param request: DescribeRegionsRequest
1822
+ @param headers: map
1823
+ @param runtime: runtime options for this request RuntimeOptions
1824
+ @return: DescribeRegionsResponse
1825
+ """
1826
+ UtilClient.validate_model(request)
1827
+ query = {}
1828
+ if not UtilClient.is_unset(request.accept_language):
1829
+ query['AcceptLanguage'] = request.accept_language
1830
+ req = open_api_models.OpenApiRequest(
1831
+ headers=headers,
1832
+ query=OpenApiUtilClient.query(query)
1833
+ )
1834
+ params = open_api_models.Params(
1835
+ action='DescribeRegions',
1836
+ version='2023-03-30',
1837
+ protocol='HTTPS',
1838
+ pathname=f'/2023-03-30/regions',
1839
+ method='GET',
1840
+ auth_type='AK',
1841
+ style='ROA',
1842
+ req_body_type='json',
1843
+ body_type='json'
1844
+ )
1845
+ if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1846
+ return TeaCore.from_map(
1847
+ fc20230330_models.DescribeRegionsResponse(),
1848
+ self.call_api(params, req, runtime)
1849
+ )
1850
+ else:
1851
+ return TeaCore.from_map(
1852
+ fc20230330_models.DescribeRegionsResponse(),
1853
+ self.execute(params, req, runtime)
1854
+ )
1855
+
1856
+ async def describe_regions_with_options_async(
1857
+ self,
1858
+ request: fc20230330_models.DescribeRegionsRequest,
1859
+ headers: Dict[str, str],
1860
+ runtime: util_models.RuntimeOptions,
1861
+ ) -> fc20230330_models.DescribeRegionsResponse:
1862
+ """
1863
+ @summary 查询产品的地域信息列表
1864
+
1865
+ @param request: DescribeRegionsRequest
1866
+ @param headers: map
1867
+ @param runtime: runtime options for this request RuntimeOptions
1868
+ @return: DescribeRegionsResponse
1869
+ """
1870
+ UtilClient.validate_model(request)
1871
+ query = {}
1872
+ if not UtilClient.is_unset(request.accept_language):
1873
+ query['AcceptLanguage'] = request.accept_language
1874
+ req = open_api_models.OpenApiRequest(
1875
+ headers=headers,
1876
+ query=OpenApiUtilClient.query(query)
1877
+ )
1878
+ params = open_api_models.Params(
1879
+ action='DescribeRegions',
1880
+ version='2023-03-30',
1881
+ protocol='HTTPS',
1882
+ pathname=f'/2023-03-30/regions',
1883
+ method='GET',
1884
+ auth_type='AK',
1885
+ style='ROA',
1886
+ req_body_type='json',
1887
+ body_type='json'
1888
+ )
1889
+ if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1890
+ return TeaCore.from_map(
1891
+ fc20230330_models.DescribeRegionsResponse(),
1892
+ await self.call_api_async(params, req, runtime)
1893
+ )
1894
+ else:
1895
+ return TeaCore.from_map(
1896
+ fc20230330_models.DescribeRegionsResponse(),
1897
+ await self.execute_async(params, req, runtime)
1898
+ )
1899
+
1900
+ def describe_regions(
1901
+ self,
1902
+ request: fc20230330_models.DescribeRegionsRequest,
1903
+ ) -> fc20230330_models.DescribeRegionsResponse:
1904
+ """
1905
+ @summary 查询产品的地域信息列表
1906
+
1907
+ @param request: DescribeRegionsRequest
1908
+ @return: DescribeRegionsResponse
1909
+ """
1910
+ runtime = util_models.RuntimeOptions()
1911
+ headers = {}
1912
+ return self.describe_regions_with_options(request, headers, runtime)
1913
+
1914
+ async def describe_regions_async(
1915
+ self,
1916
+ request: fc20230330_models.DescribeRegionsRequest,
1917
+ ) -> fc20230330_models.DescribeRegionsResponse:
1918
+ """
1919
+ @summary 查询产品的地域信息列表
1920
+
1921
+ @param request: DescribeRegionsRequest
1922
+ @return: DescribeRegionsResponse
1923
+ """
1924
+ runtime = util_models.RuntimeOptions()
1925
+ headers = {}
1926
+ return await self.describe_regions_with_options_async(request, headers, runtime)
1927
+
1812
1928
  def disable_function_invocation_with_options(
1813
1929
  self,
1814
1930
  function_name: str,
@@ -1817,7 +1933,9 @@ class Client(OpenApiClient):
1817
1933
  runtime: util_models.RuntimeOptions,
1818
1934
  ) -> fc20230330_models.DisableFunctionInvocationResponse:
1819
1935
  """
1820
- @summary 禁止函数调用
1936
+ @summary The DisableFunctionInvocation operation prevents a function from being invoked and optionally terminates all requests that are being processed. Once a function\\"s invocation is disabled, no new instances can be created, and the existing provisioned instances are destroyed. This operation is currently in private preview.
1937
+
1938
+ @description Exercise caution when you call this operation on a function in a production environment, as improper deactivation may lead to business disruptions.
1821
1939
 
1822
1940
  @param request: DisableFunctionInvocationRequest
1823
1941
  @param headers: map
@@ -1864,7 +1982,9 @@ class Client(OpenApiClient):
1864
1982
  runtime: util_models.RuntimeOptions,
1865
1983
  ) -> fc20230330_models.DisableFunctionInvocationResponse:
1866
1984
  """
1867
- @summary 禁止函数调用
1985
+ @summary The DisableFunctionInvocation operation prevents a function from being invoked and optionally terminates all requests that are being processed. Once a function\\"s invocation is disabled, no new instances can be created, and the existing provisioned instances are destroyed. This operation is currently in private preview.
1986
+
1987
+ @description Exercise caution when you call this operation on a function in a production environment, as improper deactivation may lead to business disruptions.
1868
1988
 
1869
1989
  @param request: DisableFunctionInvocationRequest
1870
1990
  @param headers: map
@@ -1909,7 +2029,9 @@ class Client(OpenApiClient):
1909
2029
  request: fc20230330_models.DisableFunctionInvocationRequest,
1910
2030
  ) -> fc20230330_models.DisableFunctionInvocationResponse:
1911
2031
  """
1912
- @summary 禁止函数调用
2032
+ @summary The DisableFunctionInvocation operation prevents a function from being invoked and optionally terminates all requests that are being processed. Once a function\\"s invocation is disabled, no new instances can be created, and the existing provisioned instances are destroyed. This operation is currently in private preview.
2033
+
2034
+ @description Exercise caution when you call this operation on a function in a production environment, as improper deactivation may lead to business disruptions.
1913
2035
 
1914
2036
  @param request: DisableFunctionInvocationRequest
1915
2037
  @return: DisableFunctionInvocationResponse
@@ -1924,7 +2046,9 @@ class Client(OpenApiClient):
1924
2046
  request: fc20230330_models.DisableFunctionInvocationRequest,
1925
2047
  ) -> fc20230330_models.DisableFunctionInvocationResponse:
1926
2048
  """
1927
- @summary 禁止函数调用
2049
+ @summary The DisableFunctionInvocation operation prevents a function from being invoked and optionally terminates all requests that are being processed. Once a function\\"s invocation is disabled, no new instances can be created, and the existing provisioned instances are destroyed. This operation is currently in private preview.
2050
+
2051
+ @description Exercise caution when you call this operation on a function in a production environment, as improper deactivation may lead to business disruptions.
1928
2052
 
1929
2053
  @param request: DisableFunctionInvocationRequest
1930
2054
  @return: DisableFunctionInvocationResponse
@@ -4198,6 +4322,8 @@ class Client(OpenApiClient):
4198
4322
  """
4199
4323
  @summary 列出函数。
4200
4324
 
4325
+ @description ListFunctions returns only a subset of a function\\"s attribute fields. To obtain the additional fields, which include state, stateReasonCode, stateReason, lastUpdateStatus, lastUpdateStatusReasonCode, and lastUpdateStatusReason, use [GetFunction](https://help.aliyun.com/document_detail/2618610.html).
4326
+
4201
4327
  @param tmp_req: ListFunctionsRequest
4202
4328
  @param headers: map
4203
4329
  @param runtime: runtime options for this request RuntimeOptions
@@ -4260,6 +4386,8 @@ class Client(OpenApiClient):
4260
4386
  """
4261
4387
  @summary 列出函数。
4262
4388
 
4389
+ @description ListFunctions returns only a subset of a function\\"s attribute fields. To obtain the additional fields, which include state, stateReasonCode, stateReason, lastUpdateStatus, lastUpdateStatusReasonCode, and lastUpdateStatusReason, use [GetFunction](https://help.aliyun.com/document_detail/2618610.html).
4390
+
4263
4391
  @param tmp_req: ListFunctionsRequest
4264
4392
  @param headers: map
4265
4393
  @param runtime: runtime options for this request RuntimeOptions
@@ -4320,6 +4448,8 @@ class Client(OpenApiClient):
4320
4448
  """
4321
4449
  @summary 列出函数。
4322
4450
 
4451
+ @description ListFunctions returns only a subset of a function\\"s attribute fields. To obtain the additional fields, which include state, stateReasonCode, stateReason, lastUpdateStatus, lastUpdateStatusReasonCode, and lastUpdateStatusReason, use [GetFunction](https://help.aliyun.com/document_detail/2618610.html).
4452
+
4323
4453
  @param request: ListFunctionsRequest
4324
4454
  @return: ListFunctionsResponse
4325
4455
  """
@@ -4334,6 +4464,8 @@ class Client(OpenApiClient):
4334
4464
  """
4335
4465
  @summary 列出函数。
4336
4466
 
4467
+ @description ListFunctions returns only a subset of a function\\"s attribute fields. To obtain the additional fields, which include state, stateReasonCode, stateReason, lastUpdateStatus, lastUpdateStatusReasonCode, and lastUpdateStatusReason, use [GetFunction](https://help.aliyun.com/document_detail/2618610.html).
4468
+
4337
4469
  @param request: ListFunctionsRequest
4338
4470
  @return: ListFunctionsResponse
4339
4471
  """
@@ -6905,13 +6905,83 @@ class DeleteVpcBindingResponse(TeaModel):
6905
6905
  return self
6906
6906
 
6907
6907
 
6908
+ class DescribeRegionsRequest(TeaModel):
6909
+ def __init__(
6910
+ self,
6911
+ accept_language: str = None,
6912
+ ):
6913
+ self.accept_language = accept_language
6914
+
6915
+ def validate(self):
6916
+ pass
6917
+
6918
+ def to_map(self):
6919
+ _map = super().to_map()
6920
+ if _map is not None:
6921
+ return _map
6922
+
6923
+ result = dict()
6924
+ if self.accept_language is not None:
6925
+ result['AcceptLanguage'] = self.accept_language
6926
+ return result
6927
+
6928
+ def from_map(self, m: dict = None):
6929
+ m = m or dict()
6930
+ if m.get('AcceptLanguage') is not None:
6931
+ self.accept_language = m.get('AcceptLanguage')
6932
+ return self
6933
+
6934
+
6935
+ class DescribeRegionsResponse(TeaModel):
6936
+ def __init__(
6937
+ self,
6938
+ headers: Dict[str, str] = None,
6939
+ status_code: int = None,
6940
+ body: OpenStructDescribeRegionsOutput = None,
6941
+ ):
6942
+ self.headers = headers
6943
+ self.status_code = status_code
6944
+ self.body = body
6945
+
6946
+ def validate(self):
6947
+ if self.body:
6948
+ self.body.validate()
6949
+
6950
+ def to_map(self):
6951
+ _map = super().to_map()
6952
+ if _map is not None:
6953
+ return _map
6954
+
6955
+ result = dict()
6956
+ if self.headers is not None:
6957
+ result['headers'] = self.headers
6958
+ if self.status_code is not None:
6959
+ result['statusCode'] = self.status_code
6960
+ if self.body is not None:
6961
+ result['body'] = self.body.to_map()
6962
+ return result
6963
+
6964
+ def from_map(self, m: dict = None):
6965
+ m = m or dict()
6966
+ if m.get('headers') is not None:
6967
+ self.headers = m.get('headers')
6968
+ if m.get('statusCode') is not None:
6969
+ self.status_code = m.get('statusCode')
6970
+ if m.get('body') is not None:
6971
+ temp_model = OpenStructDescribeRegionsOutput()
6972
+ self.body = temp_model.from_map(m['body'])
6973
+ return self
6974
+
6975
+
6908
6976
  class DisableFunctionInvocationRequest(TeaModel):
6909
6977
  def __init__(
6910
6978
  self,
6911
6979
  abort_ongoing_request: bool = None,
6912
6980
  reason: str = None,
6913
6981
  ):
6982
+ # Specifies whether to immediately terminate all ongoing requests.
6914
6983
  self.abort_ongoing_request = abort_ongoing_request
6984
+ # The reason for disabling the function\\"s invocation.
6915
6985
  self.reason = reason
6916
6986
 
6917
6987
  def validate(self):
@@ -6943,6 +7013,7 @@ class DisableFunctionInvocationResponseBody(TeaModel):
6943
7013
  self,
6944
7014
  success: bool = None,
6945
7015
  ):
7016
+ # Indicates whether the request is successful.
6946
7017
  self.success = success
6947
7018
 
6948
7019
  def validate(self):
@@ -8360,9 +8431,16 @@ class ListFunctionsRequest(TeaModel):
8360
8431
  runtime: str = None,
8361
8432
  tags: List[Tag] = None,
8362
8433
  ):
8434
+ # The description of the functions to retrieve.
8363
8435
  self.description = description
8364
- # The version of Function Compute to which the functions belong. Valid values: v3 and v2. v3: only lists functions of Function Compute 3.0. v2: only lists functions of Function Compute 2.0. By default, this parameter is left empty and functions in both Function Compute 3.0 and Function Compute 2.0 are listed.
8436
+ # The version of Function Compute to which the functions belong.
8437
+ #
8438
+ # * v3: Only lists functions of Function Compute 3.0.
8439
+ # * v2: Only lists functions of Function Compute 2.0.
8440
+ #
8441
+ # By default, this parameter is left empty and functions in both Function Compute 3.0 and Function Compute 2.0 are listed.
8365
8442
  self.fc_version = fc_version
8443
+ # The GPU type of the functions to retrieve.
8366
8444
  self.gpu_type = gpu_type
8367
8445
  # The number of functions to return. The minimum value is 1 and the maximum value is 100.
8368
8446
  self.limit = limit
@@ -8370,7 +8448,9 @@ class ListFunctionsRequest(TeaModel):
8370
8448
  self.next_token = next_token
8371
8449
  # The prefix of the function name.
8372
8450
  self.prefix = prefix
8451
+ # The runtime of the functions to retrieve.
8373
8452
  self.runtime = runtime
8453
+ # The tag of the functions to retrieve.
8374
8454
  self.tags = tags
8375
8455
 
8376
8456
  def validate(self):
@@ -8441,9 +8521,16 @@ class ListFunctionsShrinkRequest(TeaModel):
8441
8521
  runtime: str = None,
8442
8522
  tags_shrink: str = None,
8443
8523
  ):
8524
+ # The description of the functions to retrieve.
8444
8525
  self.description = description
8445
- # The version of Function Compute to which the functions belong. Valid values: v3 and v2. v3: only lists functions of Function Compute 3.0. v2: only lists functions of Function Compute 2.0. By default, this parameter is left empty and functions in both Function Compute 3.0 and Function Compute 2.0 are listed.
8526
+ # The version of Function Compute to which the functions belong.
8527
+ #
8528
+ # * v3: Only lists functions of Function Compute 3.0.
8529
+ # * v2: Only lists functions of Function Compute 2.0.
8530
+ #
8531
+ # By default, this parameter is left empty and functions in both Function Compute 3.0 and Function Compute 2.0 are listed.
8446
8532
  self.fc_version = fc_version
8533
+ # The GPU type of the functions to retrieve.
8447
8534
  self.gpu_type = gpu_type
8448
8535
  # The number of functions to return. The minimum value is 1 and the maximum value is 100.
8449
8536
  self.limit = limit
@@ -8451,7 +8538,9 @@ class ListFunctionsShrinkRequest(TeaModel):
8451
8538
  self.next_token = next_token
8452
8539
  # The prefix of the function name.
8453
8540
  self.prefix = prefix
8541
+ # The runtime of the functions to retrieve.
8454
8542
  self.runtime = runtime
8543
+ # The tag of the functions to retrieve.
8455
8544
  self.tags_shrink = tags_shrink
8456
8545
 
8457
8546
  def validate(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-fc20230330
3
- Version: 4.2.0
3
+ Version: 4.3.0
4
4
  Summary: Alibaba Cloud Function Compute (20230330) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
24
24
  """
25
25
  setup module for alibabacloud_fc20230330.
26
26
 
27
- Created on 01/04/2025
27
+ Created on 11/04/2025
28
28
 
29
29
  @author: Alibaba Cloud SDK
30
30
  """
@@ -1 +0,0 @@
1
- __version__ = '4.2.0'