alibabacloud-fc20230330 4.1.9__py3-none-any.whl → 4.3.0__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.
@@ -1 +1 @@
1
- __version__ = '4.1.9'
1
+ __version__ = '4.3.0'
@@ -1809,6 +1809,356 @@ 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
+
1928
+ def disable_function_invocation_with_options(
1929
+ self,
1930
+ function_name: str,
1931
+ request: fc20230330_models.DisableFunctionInvocationRequest,
1932
+ headers: Dict[str, str],
1933
+ runtime: util_models.RuntimeOptions,
1934
+ ) -> fc20230330_models.DisableFunctionInvocationResponse:
1935
+ """
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.
1939
+
1940
+ @param request: DisableFunctionInvocationRequest
1941
+ @param headers: map
1942
+ @param runtime: runtime options for this request RuntimeOptions
1943
+ @return: DisableFunctionInvocationResponse
1944
+ """
1945
+ UtilClient.validate_model(request)
1946
+ body = {}
1947
+ if not UtilClient.is_unset(request.abort_ongoing_request):
1948
+ body['abortOngoingRequest'] = request.abort_ongoing_request
1949
+ if not UtilClient.is_unset(request.reason):
1950
+ body['reason'] = request.reason
1951
+ req = open_api_models.OpenApiRequest(
1952
+ headers=headers,
1953
+ body=OpenApiUtilClient.parse_to_map(body)
1954
+ )
1955
+ params = open_api_models.Params(
1956
+ action='DisableFunctionInvocation',
1957
+ version='2023-03-30',
1958
+ protocol='HTTPS',
1959
+ pathname=f'/2023-03-30/functions/{OpenApiUtilClient.get_encode_param(function_name)}/invoke/disable',
1960
+ method='POST',
1961
+ auth_type='AK',
1962
+ style='ROA',
1963
+ req_body_type='json',
1964
+ body_type='json'
1965
+ )
1966
+ if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1967
+ return TeaCore.from_map(
1968
+ fc20230330_models.DisableFunctionInvocationResponse(),
1969
+ self.call_api(params, req, runtime)
1970
+ )
1971
+ else:
1972
+ return TeaCore.from_map(
1973
+ fc20230330_models.DisableFunctionInvocationResponse(),
1974
+ self.execute(params, req, runtime)
1975
+ )
1976
+
1977
+ async def disable_function_invocation_with_options_async(
1978
+ self,
1979
+ function_name: str,
1980
+ request: fc20230330_models.DisableFunctionInvocationRequest,
1981
+ headers: Dict[str, str],
1982
+ runtime: util_models.RuntimeOptions,
1983
+ ) -> fc20230330_models.DisableFunctionInvocationResponse:
1984
+ """
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.
1988
+
1989
+ @param request: DisableFunctionInvocationRequest
1990
+ @param headers: map
1991
+ @param runtime: runtime options for this request RuntimeOptions
1992
+ @return: DisableFunctionInvocationResponse
1993
+ """
1994
+ UtilClient.validate_model(request)
1995
+ body = {}
1996
+ if not UtilClient.is_unset(request.abort_ongoing_request):
1997
+ body['abortOngoingRequest'] = request.abort_ongoing_request
1998
+ if not UtilClient.is_unset(request.reason):
1999
+ body['reason'] = request.reason
2000
+ req = open_api_models.OpenApiRequest(
2001
+ headers=headers,
2002
+ body=OpenApiUtilClient.parse_to_map(body)
2003
+ )
2004
+ params = open_api_models.Params(
2005
+ action='DisableFunctionInvocation',
2006
+ version='2023-03-30',
2007
+ protocol='HTTPS',
2008
+ pathname=f'/2023-03-30/functions/{OpenApiUtilClient.get_encode_param(function_name)}/invoke/disable',
2009
+ method='POST',
2010
+ auth_type='AK',
2011
+ style='ROA',
2012
+ req_body_type='json',
2013
+ body_type='json'
2014
+ )
2015
+ if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2016
+ return TeaCore.from_map(
2017
+ fc20230330_models.DisableFunctionInvocationResponse(),
2018
+ await self.call_api_async(params, req, runtime)
2019
+ )
2020
+ else:
2021
+ return TeaCore.from_map(
2022
+ fc20230330_models.DisableFunctionInvocationResponse(),
2023
+ await self.execute_async(params, req, runtime)
2024
+ )
2025
+
2026
+ def disable_function_invocation(
2027
+ self,
2028
+ function_name: str,
2029
+ request: fc20230330_models.DisableFunctionInvocationRequest,
2030
+ ) -> fc20230330_models.DisableFunctionInvocationResponse:
2031
+ """
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.
2035
+
2036
+ @param request: DisableFunctionInvocationRequest
2037
+ @return: DisableFunctionInvocationResponse
2038
+ """
2039
+ runtime = util_models.RuntimeOptions()
2040
+ headers = {}
2041
+ return self.disable_function_invocation_with_options(function_name, request, headers, runtime)
2042
+
2043
+ async def disable_function_invocation_async(
2044
+ self,
2045
+ function_name: str,
2046
+ request: fc20230330_models.DisableFunctionInvocationRequest,
2047
+ ) -> fc20230330_models.DisableFunctionInvocationResponse:
2048
+ """
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.
2052
+
2053
+ @param request: DisableFunctionInvocationRequest
2054
+ @return: DisableFunctionInvocationResponse
2055
+ """
2056
+ runtime = util_models.RuntimeOptions()
2057
+ headers = {}
2058
+ return await self.disable_function_invocation_with_options_async(function_name, request, headers, runtime)
2059
+
2060
+ def enable_function_invocation_with_options(
2061
+ self,
2062
+ function_name: str,
2063
+ headers: Dict[str, str],
2064
+ runtime: util_models.RuntimeOptions,
2065
+ ) -> fc20230330_models.EnableFunctionInvocationResponse:
2066
+ """
2067
+ @summary 允许函数调用
2068
+
2069
+ @param headers: map
2070
+ @param runtime: runtime options for this request RuntimeOptions
2071
+ @return: EnableFunctionInvocationResponse
2072
+ """
2073
+ req = open_api_models.OpenApiRequest(
2074
+ headers=headers
2075
+ )
2076
+ params = open_api_models.Params(
2077
+ action='EnableFunctionInvocation',
2078
+ version='2023-03-30',
2079
+ protocol='HTTPS',
2080
+ pathname=f'/2023-03-30/functions/{OpenApiUtilClient.get_encode_param(function_name)}/invoke/enable',
2081
+ method='POST',
2082
+ auth_type='AK',
2083
+ style='ROA',
2084
+ req_body_type='json',
2085
+ body_type='json'
2086
+ )
2087
+ if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2088
+ return TeaCore.from_map(
2089
+ fc20230330_models.EnableFunctionInvocationResponse(),
2090
+ self.call_api(params, req, runtime)
2091
+ )
2092
+ else:
2093
+ return TeaCore.from_map(
2094
+ fc20230330_models.EnableFunctionInvocationResponse(),
2095
+ self.execute(params, req, runtime)
2096
+ )
2097
+
2098
+ async def enable_function_invocation_with_options_async(
2099
+ self,
2100
+ function_name: str,
2101
+ headers: Dict[str, str],
2102
+ runtime: util_models.RuntimeOptions,
2103
+ ) -> fc20230330_models.EnableFunctionInvocationResponse:
2104
+ """
2105
+ @summary 允许函数调用
2106
+
2107
+ @param headers: map
2108
+ @param runtime: runtime options for this request RuntimeOptions
2109
+ @return: EnableFunctionInvocationResponse
2110
+ """
2111
+ req = open_api_models.OpenApiRequest(
2112
+ headers=headers
2113
+ )
2114
+ params = open_api_models.Params(
2115
+ action='EnableFunctionInvocation',
2116
+ version='2023-03-30',
2117
+ protocol='HTTPS',
2118
+ pathname=f'/2023-03-30/functions/{OpenApiUtilClient.get_encode_param(function_name)}/invoke/enable',
2119
+ method='POST',
2120
+ auth_type='AK',
2121
+ style='ROA',
2122
+ req_body_type='json',
2123
+ body_type='json'
2124
+ )
2125
+ if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2126
+ return TeaCore.from_map(
2127
+ fc20230330_models.EnableFunctionInvocationResponse(),
2128
+ await self.call_api_async(params, req, runtime)
2129
+ )
2130
+ else:
2131
+ return TeaCore.from_map(
2132
+ fc20230330_models.EnableFunctionInvocationResponse(),
2133
+ await self.execute_async(params, req, runtime)
2134
+ )
2135
+
2136
+ def enable_function_invocation(
2137
+ self,
2138
+ function_name: str,
2139
+ ) -> fc20230330_models.EnableFunctionInvocationResponse:
2140
+ """
2141
+ @summary 允许函数调用
2142
+
2143
+ @return: EnableFunctionInvocationResponse
2144
+ """
2145
+ runtime = util_models.RuntimeOptions()
2146
+ headers = {}
2147
+ return self.enable_function_invocation_with_options(function_name, headers, runtime)
2148
+
2149
+ async def enable_function_invocation_async(
2150
+ self,
2151
+ function_name: str,
2152
+ ) -> fc20230330_models.EnableFunctionInvocationResponse:
2153
+ """
2154
+ @summary 允许函数调用
2155
+
2156
+ @return: EnableFunctionInvocationResponse
2157
+ """
2158
+ runtime = util_models.RuntimeOptions()
2159
+ headers = {}
2160
+ return await self.enable_function_invocation_with_options_async(function_name, headers, runtime)
2161
+
1812
2162
  def get_alias_with_options(
1813
2163
  self,
1814
2164
  function_name: str,
@@ -3972,6 +4322,8 @@ class Client(OpenApiClient):
3972
4322
  """
3973
4323
  @summary 列出函数。
3974
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
+
3975
4327
  @param tmp_req: ListFunctionsRequest
3976
4328
  @param headers: map
3977
4329
  @param runtime: runtime options for this request RuntimeOptions
@@ -4034,6 +4386,8 @@ class Client(OpenApiClient):
4034
4386
  """
4035
4387
  @summary 列出函数。
4036
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
+
4037
4391
  @param tmp_req: ListFunctionsRequest
4038
4392
  @param headers: map
4039
4393
  @param runtime: runtime options for this request RuntimeOptions
@@ -4094,6 +4448,8 @@ class Client(OpenApiClient):
4094
4448
  """
4095
4449
  @summary 列出函数。
4096
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
+
4097
4453
  @param request: ListFunctionsRequest
4098
4454
  @return: ListFunctionsResponse
4099
4455
  """
@@ -4108,6 +4464,8 @@ class Client(OpenApiClient):
4108
4464
  """
4109
4465
  @summary 列出函数。
4110
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
+
4111
4469
  @param request: ListFunctionsRequest
4112
4470
  @return: ListFunctionsResponse
4113
4471
  """
@@ -3238,6 +3238,45 @@ class Filter(TeaModel):
3238
3238
  return self
3239
3239
 
3240
3240
 
3241
+ class OpenStructFunctionRestriction(TeaModel):
3242
+ def __init__(
3243
+ self,
3244
+ disable: bool = None,
3245
+ last_modified_time: str = None,
3246
+ reason: str = None,
3247
+ ):
3248
+ self.disable = disable
3249
+ self.last_modified_time = last_modified_time
3250
+ self.reason = reason
3251
+
3252
+ def validate(self):
3253
+ pass
3254
+
3255
+ def to_map(self):
3256
+ _map = super().to_map()
3257
+ if _map is not None:
3258
+ return _map
3259
+
3260
+ result = dict()
3261
+ if self.disable is not None:
3262
+ result['disable'] = self.disable
3263
+ if self.last_modified_time is not None:
3264
+ result['lastModifiedTime'] = self.last_modified_time
3265
+ if self.reason is not None:
3266
+ result['reason'] = self.reason
3267
+ return result
3268
+
3269
+ def from_map(self, m: dict = None):
3270
+ m = m or dict()
3271
+ if m.get('disable') is not None:
3272
+ self.disable = m.get('disable')
3273
+ if m.get('lastModifiedTime') is not None:
3274
+ self.last_modified_time = m.get('lastModifiedTime')
3275
+ if m.get('reason') is not None:
3276
+ self.reason = m.get('reason')
3277
+ return self
3278
+
3279
+
3241
3280
  class FunctionLayer(TeaModel):
3242
3281
  def __init__(
3243
3282
  self,
@@ -3293,6 +3332,7 @@ class Function(TeaModel):
3293
3332
  instance_concurrency: int = None,
3294
3333
  instance_lifecycle_config: InstanceLifecycleConfig = None,
3295
3334
  internet_access: bool = None,
3335
+ invocation_restriction: OpenStructFunctionRestriction = None,
3296
3336
  last_modified_time: str = None,
3297
3337
  last_update_status: str = None,
3298
3338
  last_update_status_reason: str = None,
@@ -3331,6 +3371,7 @@ class Function(TeaModel):
3331
3371
  self.instance_concurrency = instance_concurrency
3332
3372
  self.instance_lifecycle_config = instance_lifecycle_config
3333
3373
  self.internet_access = internet_access
3374
+ self.invocation_restriction = invocation_restriction
3334
3375
  self.last_modified_time = last_modified_time
3335
3376
  self.last_update_status = last_update_status
3336
3377
  self.last_update_status_reason = last_update_status_reason
@@ -3361,6 +3402,8 @@ class Function(TeaModel):
3361
3402
  self.gpu_config.validate()
3362
3403
  if self.instance_lifecycle_config:
3363
3404
  self.instance_lifecycle_config.validate()
3405
+ if self.invocation_restriction:
3406
+ self.invocation_restriction.validate()
3364
3407
  if self.layers:
3365
3408
  for k in self.layers:
3366
3409
  if k:
@@ -3424,6 +3467,8 @@ class Function(TeaModel):
3424
3467
  result['instanceLifecycleConfig'] = self.instance_lifecycle_config.to_map()
3425
3468
  if self.internet_access is not None:
3426
3469
  result['internetAccess'] = self.internet_access
3470
+ if self.invocation_restriction is not None:
3471
+ result['invocationRestriction'] = self.invocation_restriction.to_map()
3427
3472
  if self.last_modified_time is not None:
3428
3473
  result['lastModifiedTime'] = self.last_modified_time
3429
3474
  if self.last_update_status is not None:
@@ -3511,6 +3556,9 @@ class Function(TeaModel):
3511
3556
  self.instance_lifecycle_config = temp_model.from_map(m['instanceLifecycleConfig'])
3512
3557
  if m.get('internetAccess') is not None:
3513
3558
  self.internet_access = m.get('internetAccess')
3559
+ if m.get('invocationRestriction') is not None:
3560
+ temp_model = OpenStructFunctionRestriction()
3561
+ self.invocation_restriction = temp_model.from_map(m['invocationRestriction'])
3514
3562
  if m.get('lastModifiedTime') is not None:
3515
3563
  self.last_modified_time = m.get('lastModifiedTime')
3516
3564
  if m.get('lastUpdateStatus') is not None:
@@ -6857,6 +6905,246 @@ class DeleteVpcBindingResponse(TeaModel):
6857
6905
  return self
6858
6906
 
6859
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
+
6976
+ class DisableFunctionInvocationRequest(TeaModel):
6977
+ def __init__(
6978
+ self,
6979
+ abort_ongoing_request: bool = None,
6980
+ reason: str = None,
6981
+ ):
6982
+ # Specifies whether to immediately terminate all ongoing requests.
6983
+ self.abort_ongoing_request = abort_ongoing_request
6984
+ # The reason for disabling the function\\"s invocation.
6985
+ self.reason = reason
6986
+
6987
+ def validate(self):
6988
+ pass
6989
+
6990
+ def to_map(self):
6991
+ _map = super().to_map()
6992
+ if _map is not None:
6993
+ return _map
6994
+
6995
+ result = dict()
6996
+ if self.abort_ongoing_request is not None:
6997
+ result['abortOngoingRequest'] = self.abort_ongoing_request
6998
+ if self.reason is not None:
6999
+ result['reason'] = self.reason
7000
+ return result
7001
+
7002
+ def from_map(self, m: dict = None):
7003
+ m = m or dict()
7004
+ if m.get('abortOngoingRequest') is not None:
7005
+ self.abort_ongoing_request = m.get('abortOngoingRequest')
7006
+ if m.get('reason') is not None:
7007
+ self.reason = m.get('reason')
7008
+ return self
7009
+
7010
+
7011
+ class DisableFunctionInvocationResponseBody(TeaModel):
7012
+ def __init__(
7013
+ self,
7014
+ success: bool = None,
7015
+ ):
7016
+ # Indicates whether the request is successful.
7017
+ self.success = success
7018
+
7019
+ def validate(self):
7020
+ pass
7021
+
7022
+ def to_map(self):
7023
+ _map = super().to_map()
7024
+ if _map is not None:
7025
+ return _map
7026
+
7027
+ result = dict()
7028
+ if self.success is not None:
7029
+ result['success'] = self.success
7030
+ return result
7031
+
7032
+ def from_map(self, m: dict = None):
7033
+ m = m or dict()
7034
+ if m.get('success') is not None:
7035
+ self.success = m.get('success')
7036
+ return self
7037
+
7038
+
7039
+ class DisableFunctionInvocationResponse(TeaModel):
7040
+ def __init__(
7041
+ self,
7042
+ headers: Dict[str, str] = None,
7043
+ status_code: int = None,
7044
+ body: DisableFunctionInvocationResponseBody = None,
7045
+ ):
7046
+ self.headers = headers
7047
+ self.status_code = status_code
7048
+ self.body = body
7049
+
7050
+ def validate(self):
7051
+ if self.body:
7052
+ self.body.validate()
7053
+
7054
+ def to_map(self):
7055
+ _map = super().to_map()
7056
+ if _map is not None:
7057
+ return _map
7058
+
7059
+ result = dict()
7060
+ if self.headers is not None:
7061
+ result['headers'] = self.headers
7062
+ if self.status_code is not None:
7063
+ result['statusCode'] = self.status_code
7064
+ if self.body is not None:
7065
+ result['body'] = self.body.to_map()
7066
+ return result
7067
+
7068
+ def from_map(self, m: dict = None):
7069
+ m = m or dict()
7070
+ if m.get('headers') is not None:
7071
+ self.headers = m.get('headers')
7072
+ if m.get('statusCode') is not None:
7073
+ self.status_code = m.get('statusCode')
7074
+ if m.get('body') is not None:
7075
+ temp_model = DisableFunctionInvocationResponseBody()
7076
+ self.body = temp_model.from_map(m['body'])
7077
+ return self
7078
+
7079
+
7080
+ class EnableFunctionInvocationResponseBody(TeaModel):
7081
+ def __init__(
7082
+ self,
7083
+ success: bool = None,
7084
+ ):
7085
+ self.success = success
7086
+
7087
+ def validate(self):
7088
+ pass
7089
+
7090
+ def to_map(self):
7091
+ _map = super().to_map()
7092
+ if _map is not None:
7093
+ return _map
7094
+
7095
+ result = dict()
7096
+ if self.success is not None:
7097
+ result['success'] = self.success
7098
+ return result
7099
+
7100
+ def from_map(self, m: dict = None):
7101
+ m = m or dict()
7102
+ if m.get('success') is not None:
7103
+ self.success = m.get('success')
7104
+ return self
7105
+
7106
+
7107
+ class EnableFunctionInvocationResponse(TeaModel):
7108
+ def __init__(
7109
+ self,
7110
+ headers: Dict[str, str] = None,
7111
+ status_code: int = None,
7112
+ body: EnableFunctionInvocationResponseBody = None,
7113
+ ):
7114
+ self.headers = headers
7115
+ self.status_code = status_code
7116
+ self.body = body
7117
+
7118
+ def validate(self):
7119
+ if self.body:
7120
+ self.body.validate()
7121
+
7122
+ def to_map(self):
7123
+ _map = super().to_map()
7124
+ if _map is not None:
7125
+ return _map
7126
+
7127
+ result = dict()
7128
+ if self.headers is not None:
7129
+ result['headers'] = self.headers
7130
+ if self.status_code is not None:
7131
+ result['statusCode'] = self.status_code
7132
+ if self.body is not None:
7133
+ result['body'] = self.body.to_map()
7134
+ return result
7135
+
7136
+ def from_map(self, m: dict = None):
7137
+ m = m or dict()
7138
+ if m.get('headers') is not None:
7139
+ self.headers = m.get('headers')
7140
+ if m.get('statusCode') is not None:
7141
+ self.status_code = m.get('statusCode')
7142
+ if m.get('body') is not None:
7143
+ temp_model = EnableFunctionInvocationResponseBody()
7144
+ self.body = temp_model.from_map(m['body'])
7145
+ return self
7146
+
7147
+
6860
7148
  class GetAliasResponse(TeaModel):
6861
7149
  def __init__(
6862
7150
  self,
@@ -8143,9 +8431,16 @@ class ListFunctionsRequest(TeaModel):
8143
8431
  runtime: str = None,
8144
8432
  tags: List[Tag] = None,
8145
8433
  ):
8434
+ # The description of the functions to retrieve.
8146
8435
  self.description = description
8147
- # 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.
8148
8442
  self.fc_version = fc_version
8443
+ # The GPU type of the functions to retrieve.
8149
8444
  self.gpu_type = gpu_type
8150
8445
  # The number of functions to return. The minimum value is 1 and the maximum value is 100.
8151
8446
  self.limit = limit
@@ -8153,7 +8448,9 @@ class ListFunctionsRequest(TeaModel):
8153
8448
  self.next_token = next_token
8154
8449
  # The prefix of the function name.
8155
8450
  self.prefix = prefix
8451
+ # The runtime of the functions to retrieve.
8156
8452
  self.runtime = runtime
8453
+ # The tag of the functions to retrieve.
8157
8454
  self.tags = tags
8158
8455
 
8159
8456
  def validate(self):
@@ -8224,9 +8521,16 @@ class ListFunctionsShrinkRequest(TeaModel):
8224
8521
  runtime: str = None,
8225
8522
  tags_shrink: str = None,
8226
8523
  ):
8524
+ # The description of the functions to retrieve.
8227
8525
  self.description = description
8228
- # 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.
8229
8532
  self.fc_version = fc_version
8533
+ # The GPU type of the functions to retrieve.
8230
8534
  self.gpu_type = gpu_type
8231
8535
  # The number of functions to return. The minimum value is 1 and the maximum value is 100.
8232
8536
  self.limit = limit
@@ -8234,7 +8538,9 @@ class ListFunctionsShrinkRequest(TeaModel):
8234
8538
  self.next_token = next_token
8235
8539
  # The prefix of the function name.
8236
8540
  self.prefix = prefix
8541
+ # The runtime of the functions to retrieve.
8237
8542
  self.runtime = runtime
8543
+ # The tag of the functions to retrieve.
8238
8544
  self.tags_shrink = tags_shrink
8239
8545
 
8240
8546
  def validate(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-fc20230330
3
- Version: 4.1.9
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,8 @@
1
+ alibabacloud_fc20230330/__init__.py,sha256=y8JoTeT_XJHBkLPDHkagOZ5tayUYIaWASs4owPHVmPo,21
2
+ alibabacloud_fc20230330/client.py,sha256=fLJJzV4CIkDiceRlnvTT9nZ4CEaqwrSdNz1Hx_343YM,265335
3
+ alibabacloud_fc20230330/models.py,sha256=be6zqDSxSI9uqZwlXpaUu0UTBSPEbpkGHTq1_oCsxpU,326891
4
+ alibabacloud_fc20230330-4.3.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_fc20230330-4.3.0.dist-info/METADATA,sha256=ngzar-60Y-BjJa9XVhayQCxveqr2Ecy1nZZHpmpPKVM,2319
6
+ alibabacloud_fc20230330-4.3.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_fc20230330-4.3.0.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
8
+ alibabacloud_fc20230330-4.3.0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- alibabacloud_fc20230330/__init__.py,sha256=FuorTsOuqKLhJfPVSpybilrhpI3l6BAZBea-Q4nSr3o,21
2
- alibabacloud_fc20230330/client.py,sha256=NI0RAEZpif3365fQYYkL5ytgx0csX-_o_5dC9US0Roo,249043
3
- alibabacloud_fc20230330/models.py,sha256=ZwZl5z7mDt60wQ2oNQekC_14jejuXOZonWYFmqo_z2Q,318045
4
- alibabacloud_fc20230330-4.1.9.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_fc20230330-4.1.9.dist-info/METADATA,sha256=GA9vVta4ATwoigV5qpxaYbL7Nx_o0tjE49tQT6hWd14,2319
6
- alibabacloud_fc20230330-4.1.9.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_fc20230330-4.1.9.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
8
- alibabacloud_fc20230330-4.1.9.dist-info/RECORD,,