alibabacloud-fc20230330 4.1.7__py3-none-any.whl → 4.1.8__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.7'
1
+ __version__ = '4.1.8'
@@ -1273,7 +1273,7 @@ class Client(OpenApiClient):
1273
1273
  runtime: util_models.RuntimeOptions,
1274
1274
  ) -> fc20230330_models.DeleteFunctionVersionResponse:
1275
1275
  """
1276
- @summary Deletes a function version.
1276
+ @summary http://pre.hhht/#vpc
1277
1277
 
1278
1278
  @param headers: map
1279
1279
  @param runtime: runtime options for this request RuntimeOptions
@@ -1312,7 +1312,7 @@ class Client(OpenApiClient):
1312
1312
  runtime: util_models.RuntimeOptions,
1313
1313
  ) -> fc20230330_models.DeleteFunctionVersionResponse:
1314
1314
  """
1315
- @summary Deletes a function version.
1315
+ @summary http://pre.hhht/#vpc
1316
1316
 
1317
1317
  @param headers: map
1318
1318
  @param runtime: runtime options for this request RuntimeOptions
@@ -1349,7 +1349,7 @@ class Client(OpenApiClient):
1349
1349
  version_id: str,
1350
1350
  ) -> fc20230330_models.DeleteFunctionVersionResponse:
1351
1351
  """
1352
- @summary Deletes a function version.
1352
+ @summary http://pre.hhht/#vpc
1353
1353
 
1354
1354
  @return: DeleteFunctionVersionResponse
1355
1355
  """
@@ -1363,7 +1363,7 @@ class Client(OpenApiClient):
1363
1363
  version_id: str,
1364
1364
  ) -> fc20230330_models.DeleteFunctionVersionResponse:
1365
1365
  """
1366
- @summary Deletes a function version.
1366
+ @summary http://pre.hhht/#vpc
1367
1367
 
1368
1368
  @return: DeleteFunctionVersionResponse
1369
1369
  """
@@ -3965,19 +3965,23 @@ class Client(OpenApiClient):
3965
3965
 
3966
3966
  def list_functions_with_options(
3967
3967
  self,
3968
- request: fc20230330_models.ListFunctionsRequest,
3968
+ tmp_req: fc20230330_models.ListFunctionsRequest,
3969
3969
  headers: Dict[str, str],
3970
3970
  runtime: util_models.RuntimeOptions,
3971
3971
  ) -> fc20230330_models.ListFunctionsResponse:
3972
3972
  """
3973
3973
  @summary 列出函数。
3974
3974
 
3975
- @param request: ListFunctionsRequest
3975
+ @param tmp_req: ListFunctionsRequest
3976
3976
  @param headers: map
3977
3977
  @param runtime: runtime options for this request RuntimeOptions
3978
3978
  @return: ListFunctionsResponse
3979
3979
  """
3980
- UtilClient.validate_model(request)
3980
+ UtilClient.validate_model(tmp_req)
3981
+ request = fc20230330_models.ListFunctionsShrinkRequest()
3982
+ OpenApiUtilClient.convert(tmp_req, request)
3983
+ if not UtilClient.is_unset(tmp_req.tags):
3984
+ request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'tags', 'json')
3981
3985
  query = {}
3982
3986
  if not UtilClient.is_unset(request.fc_version):
3983
3987
  query['fcVersion'] = request.fc_version
@@ -3987,6 +3991,8 @@ class Client(OpenApiClient):
3987
3991
  query['nextToken'] = request.next_token
3988
3992
  if not UtilClient.is_unset(request.prefix):
3989
3993
  query['prefix'] = request.prefix
3994
+ if not UtilClient.is_unset(request.tags_shrink):
3995
+ query['tags'] = request.tags_shrink
3990
3996
  req = open_api_models.OpenApiRequest(
3991
3997
  headers=headers,
3992
3998
  query=OpenApiUtilClient.query(query)
@@ -4015,19 +4021,23 @@ class Client(OpenApiClient):
4015
4021
 
4016
4022
  async def list_functions_with_options_async(
4017
4023
  self,
4018
- request: fc20230330_models.ListFunctionsRequest,
4024
+ tmp_req: fc20230330_models.ListFunctionsRequest,
4019
4025
  headers: Dict[str, str],
4020
4026
  runtime: util_models.RuntimeOptions,
4021
4027
  ) -> fc20230330_models.ListFunctionsResponse:
4022
4028
  """
4023
4029
  @summary 列出函数。
4024
4030
 
4025
- @param request: ListFunctionsRequest
4031
+ @param tmp_req: ListFunctionsRequest
4026
4032
  @param headers: map
4027
4033
  @param runtime: runtime options for this request RuntimeOptions
4028
4034
  @return: ListFunctionsResponse
4029
4035
  """
4030
- UtilClient.validate_model(request)
4036
+ UtilClient.validate_model(tmp_req)
4037
+ request = fc20230330_models.ListFunctionsShrinkRequest()
4038
+ OpenApiUtilClient.convert(tmp_req, request)
4039
+ if not UtilClient.is_unset(tmp_req.tags):
4040
+ request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'tags', 'json')
4031
4041
  query = {}
4032
4042
  if not UtilClient.is_unset(request.fc_version):
4033
4043
  query['fcVersion'] = request.fc_version
@@ -4037,6 +4047,8 @@ class Client(OpenApiClient):
4037
4047
  query['nextToken'] = request.next_token
4038
4048
  if not UtilClient.is_unset(request.prefix):
4039
4049
  query['prefix'] = request.prefix
4050
+ if not UtilClient.is_unset(request.tags_shrink):
4051
+ query['tags'] = request.tags_shrink
4040
4052
  req = open_api_models.OpenApiRequest(
4041
4053
  headers=headers,
4042
4054
  query=OpenApiUtilClient.query(query)
@@ -1938,6 +1938,7 @@ class CreateFunctionInput(TeaModel):
1938
1938
  custom_dns: CustomDNS = None,
1939
1939
  custom_runtime_config: CustomRuntimeConfig = None,
1940
1940
  description: str = None,
1941
+ disable_ondemand: bool = None,
1941
1942
  disk_size: int = None,
1942
1943
  environment_variables: Dict[str, str] = None,
1943
1944
  function_name: str = None,
@@ -1964,6 +1965,7 @@ class CreateFunctionInput(TeaModel):
1964
1965
  self.custom_dns = custom_dns
1965
1966
  self.custom_runtime_config = custom_runtime_config
1966
1967
  self.description = description
1968
+ self.disable_ondemand = disable_ondemand
1967
1969
  self.disk_size = disk_size
1968
1970
  self.environment_variables = environment_variables
1969
1971
  # This parameter is required.
@@ -2033,6 +2035,8 @@ class CreateFunctionInput(TeaModel):
2033
2035
  result['customRuntimeConfig'] = self.custom_runtime_config.to_map()
2034
2036
  if self.description is not None:
2035
2037
  result['description'] = self.description
2038
+ if self.disable_ondemand is not None:
2039
+ result['disableOndemand'] = self.disable_ondemand
2036
2040
  if self.disk_size is not None:
2037
2041
  result['diskSize'] = self.disk_size
2038
2042
  if self.environment_variables is not None:
@@ -2093,6 +2097,8 @@ class CreateFunctionInput(TeaModel):
2093
2097
  self.custom_runtime_config = temp_model.from_map(m['customRuntimeConfig'])
2094
2098
  if m.get('description') is not None:
2095
2099
  self.description = m.get('description')
2100
+ if m.get('disableOndemand') is not None:
2101
+ self.disable_ondemand = m.get('disableOndemand')
2096
2102
  if m.get('diskSize') is not None:
2097
2103
  self.disk_size = m.get('diskSize')
2098
2104
  if m.get('environmentVariables') is not None:
@@ -3276,6 +3282,7 @@ class Function(TeaModel):
3276
3282
  custom_dns: CustomDNS = None,
3277
3283
  custom_runtime_config: CustomRuntimeConfig = None,
3278
3284
  description: str = None,
3285
+ disable_ondemand: bool = None,
3279
3286
  disk_size: int = None,
3280
3287
  environment_variables: Dict[str, str] = None,
3281
3288
  function_arn: str = None,
@@ -3313,6 +3320,7 @@ class Function(TeaModel):
3313
3320
  self.custom_dns = custom_dns
3314
3321
  self.custom_runtime_config = custom_runtime_config
3315
3322
  self.description = description
3323
+ self.disable_ondemand = disable_ondemand
3316
3324
  self.disk_size = disk_size
3317
3325
  self.environment_variables = environment_variables
3318
3326
  self.function_arn = function_arn
@@ -3394,6 +3402,8 @@ class Function(TeaModel):
3394
3402
  result['customRuntimeConfig'] = self.custom_runtime_config.to_map()
3395
3403
  if self.description is not None:
3396
3404
  result['description'] = self.description
3405
+ if self.disable_ondemand is not None:
3406
+ result['disableOndemand'] = self.disable_ondemand
3397
3407
  if self.disk_size is not None:
3398
3408
  result['diskSize'] = self.disk_size
3399
3409
  if self.environment_variables is not None:
@@ -3477,6 +3487,8 @@ class Function(TeaModel):
3477
3487
  self.custom_runtime_config = temp_model.from_map(m['customRuntimeConfig'])
3478
3488
  if m.get('description') is not None:
3479
3489
  self.description = m.get('description')
3490
+ if m.get('disableOndemand') is not None:
3491
+ self.disable_ondemand = m.get('disableOndemand')
3480
3492
  if m.get('diskSize') is not None:
3481
3493
  self.disk_size = m.get('diskSize')
3482
3494
  if m.get('environmentVariables') is not None:
@@ -5699,6 +5711,7 @@ class UpdateFunctionInput(TeaModel):
5699
5711
  custom_dns: CustomDNS = None,
5700
5712
  custom_runtime_config: CustomRuntimeConfig = None,
5701
5713
  description: str = None,
5714
+ disable_ondemand: bool = None,
5702
5715
  disk_size: int = None,
5703
5716
  environment_variables: Dict[str, str] = None,
5704
5717
  gpu_config: GPUConfig = None,
@@ -5723,6 +5736,7 @@ class UpdateFunctionInput(TeaModel):
5723
5736
  self.custom_dns = custom_dns
5724
5737
  self.custom_runtime_config = custom_runtime_config
5725
5738
  self.description = description
5739
+ self.disable_ondemand = disable_ondemand
5726
5740
  self.disk_size = disk_size
5727
5741
  self.environment_variables = environment_variables
5728
5742
  self.gpu_config = gpu_config
@@ -5783,6 +5797,8 @@ class UpdateFunctionInput(TeaModel):
5783
5797
  result['customRuntimeConfig'] = self.custom_runtime_config.to_map()
5784
5798
  if self.description is not None:
5785
5799
  result['description'] = self.description
5800
+ if self.disable_ondemand is not None:
5801
+ result['disableOndemand'] = self.disable_ondemand
5786
5802
  if self.disk_size is not None:
5787
5803
  result['diskSize'] = self.disk_size
5788
5804
  if self.environment_variables is not None:
@@ -5837,6 +5853,8 @@ class UpdateFunctionInput(TeaModel):
5837
5853
  self.custom_runtime_config = temp_model.from_map(m['customRuntimeConfig'])
5838
5854
  if m.get('description') is not None:
5839
5855
  self.description = m.get('description')
5856
+ if m.get('disableOndemand') is not None:
5857
+ self.disable_ondemand = m.get('disableOndemand')
5840
5858
  if m.get('diskSize') is not None:
5841
5859
  self.disk_size = m.get('diskSize')
5842
5860
  if m.get('environmentVariables') is not None:
@@ -6717,7 +6735,7 @@ class DeleteProvisionConfigRequest(TeaModel):
6717
6735
  self,
6718
6736
  qualifier: str = None,
6719
6737
  ):
6720
- # The function alias or LATEST.
6738
+ # The function alias.
6721
6739
  self.qualifier = qualifier
6722
6740
 
6723
6741
  def validate(self):
@@ -7325,7 +7343,7 @@ class GetProvisionConfigRequest(TeaModel):
7325
7343
  self,
7326
7344
  qualifier: str = None,
7327
7345
  ):
7328
- # The function alias or LATEST.
7346
+ # The function alias.
7329
7347
  self.qualifier = qualifier
7330
7348
 
7331
7349
  def validate(self):
@@ -7759,14 +7777,15 @@ class ListAsyncTasksRequest(TeaModel):
7759
7777
  self.started_time_end = started_time_end
7760
7778
  # The state of asynchronous tasks. The following items list the states of an asynchronous task:
7761
7779
  #
7762
- # * Enqueued: The asynchronous invocation is enqueued and is waiting to be executed.
7780
+ # * Enqueued: The asynchronous invocation is enqueued and waiting to be executed.
7781
+ # * Dequeued: The asynchronous invocation is dequeued and waiting to be triggered.
7782
+ # * Running: The invocation is being executed.
7763
7783
  # * Succeeded: The invocation is successful.
7764
7784
  # * Failed: The invocation fails.
7765
- # * Running: The invocation is being executed.
7766
7785
  # * Stopped: The invocation is terminated.
7767
7786
  # * Stopping: The invocation is being terminated.
7787
+ # * Expired: The maximum validity period of messages is specified for asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages expires.
7768
7788
  # * Invalid: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.
7769
- # * Expired: The maximum validity period of messages is specified for asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period has elapsed.
7770
7789
  # * Retrying: The asynchronous invocation is being retried due to an execution error.
7771
7790
  self.status = status
7772
7791
 
@@ -8119,8 +8138,72 @@ class ListFunctionsRequest(TeaModel):
8119
8138
  limit: int = None,
8120
8139
  next_token: str = None,
8121
8140
  prefix: str = None,
8141
+ tags: List[Tag] = None,
8142
+ ):
8143
+ # 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.
8144
+ self.fc_version = fc_version
8145
+ # The number of functions to return. The minimum value is 1 and the maximum value is 100.
8146
+ self.limit = limit
8147
+ # The pagination token.
8148
+ self.next_token = next_token
8149
+ # The prefix of the function name.
8150
+ self.prefix = prefix
8151
+ self.tags = tags
8152
+
8153
+ def validate(self):
8154
+ if self.tags:
8155
+ for k in self.tags:
8156
+ if k:
8157
+ k.validate()
8158
+
8159
+ def to_map(self):
8160
+ _map = super().to_map()
8161
+ if _map is not None:
8162
+ return _map
8163
+
8164
+ result = dict()
8165
+ if self.fc_version is not None:
8166
+ result['fcVersion'] = self.fc_version
8167
+ if self.limit is not None:
8168
+ result['limit'] = self.limit
8169
+ if self.next_token is not None:
8170
+ result['nextToken'] = self.next_token
8171
+ if self.prefix is not None:
8172
+ result['prefix'] = self.prefix
8173
+ result['tags'] = []
8174
+ if self.tags is not None:
8175
+ for k in self.tags:
8176
+ result['tags'].append(k.to_map() if k else None)
8177
+ return result
8178
+
8179
+ def from_map(self, m: dict = None):
8180
+ m = m or dict()
8181
+ if m.get('fcVersion') is not None:
8182
+ self.fc_version = m.get('fcVersion')
8183
+ if m.get('limit') is not None:
8184
+ self.limit = m.get('limit')
8185
+ if m.get('nextToken') is not None:
8186
+ self.next_token = m.get('nextToken')
8187
+ if m.get('prefix') is not None:
8188
+ self.prefix = m.get('prefix')
8189
+ self.tags = []
8190
+ if m.get('tags') is not None:
8191
+ for k in m.get('tags'):
8192
+ temp_model = Tag()
8193
+ self.tags.append(temp_model.from_map(k))
8194
+ return self
8195
+
8196
+
8197
+ class ListFunctionsShrinkRequest(TeaModel):
8198
+ def __init__(
8199
+ self,
8200
+ fc_version: str = None,
8201
+ limit: int = None,
8202
+ next_token: str = None,
8203
+ prefix: str = None,
8204
+ tags_shrink: str = None,
8122
8205
  ):
8123
- # 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 2.0 and Function Compute 3.0 are listed.
8206
+ # 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.
8124
8207
  self.fc_version = fc_version
8125
8208
  # The number of functions to return. The minimum value is 1 and the maximum value is 100.
8126
8209
  self.limit = limit
@@ -8128,6 +8211,7 @@ class ListFunctionsRequest(TeaModel):
8128
8211
  self.next_token = next_token
8129
8212
  # The prefix of the function name.
8130
8213
  self.prefix = prefix
8214
+ self.tags_shrink = tags_shrink
8131
8215
 
8132
8216
  def validate(self):
8133
8217
  pass
@@ -8146,6 +8230,8 @@ class ListFunctionsRequest(TeaModel):
8146
8230
  result['nextToken'] = self.next_token
8147
8231
  if self.prefix is not None:
8148
8232
  result['prefix'] = self.prefix
8233
+ if self.tags_shrink is not None:
8234
+ result['tags'] = self.tags_shrink
8149
8235
  return result
8150
8236
 
8151
8237
  def from_map(self, m: dict = None):
@@ -8158,6 +8244,8 @@ class ListFunctionsRequest(TeaModel):
8158
8244
  self.next_token = m.get('nextToken')
8159
8245
  if m.get('prefix') is not None:
8160
8246
  self.prefix = m.get('prefix')
8247
+ if m.get('tags') is not None:
8248
+ self.tags_shrink = m.get('tags')
8161
8249
  return self
8162
8250
 
8163
8251
 
@@ -8695,7 +8783,7 @@ class ListTagResourcesRequest(TeaModel):
8695
8783
  self.next_token = next_token
8696
8784
  # The resource IDs.
8697
8785
  self.resource_id = resource_id
8698
- # The resource type.
8786
+ # The type of the resource.
8699
8787
  #
8700
8788
  # This parameter is required.
8701
8789
  self.resource_type = resource_type
@@ -8763,7 +8851,7 @@ class ListTagResourcesShrinkRequest(TeaModel):
8763
8851
  self.next_token = next_token
8764
8852
  # The resource IDs.
8765
8853
  self.resource_id_shrink = resource_id_shrink
8766
- # The resource type.
8854
+ # The type of the resource.
8767
8855
  #
8768
8856
  # This parameter is required.
8769
8857
  self.resource_type = resource_type
@@ -9052,7 +9140,7 @@ class PutAsyncInvokeConfigRequest(TeaModel):
9052
9140
  body: PutAsyncInvokeConfigInput = None,
9053
9141
  qualifier: str = None,
9054
9142
  ):
9055
- # The asynchronous invocation configurations.
9143
+ # The configurations of asynchronous function invocations.
9056
9144
  #
9057
9145
  # This parameter is required.
9058
9146
  self.body = body
@@ -9273,11 +9361,11 @@ class PutProvisionConfigRequest(TeaModel):
9273
9361
  body: PutProvisionConfigInput = None,
9274
9362
  qualifier: str = None,
9275
9363
  ):
9276
- # The provisioned instance configurations.
9364
+ # The provisioned configuration information.
9277
9365
  #
9278
9366
  # This parameter is required.
9279
9367
  self.body = body
9280
- # The function alias or LATEST.
9368
+ # The function alias.
9281
9369
  self.qualifier = qualifier
9282
9370
 
9283
9371
  def validate(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-fc20230330
3
- Version: 4.1.7
3
+ Version: 4.1.8
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=9uollicVmUfWLc0dxNsjqJlbiX5P3pAq5W-1mBU9mZk,21
2
+ alibabacloud_fc20230330/client.py,sha256=2rNjNHHwPXspo9hNrOTgZcYAeZzAF4tDCqmhVqE1n6g,248415
3
+ alibabacloud_fc20230330/models.py,sha256=9FiwVM4IWhMXoQixnBWiA3pBViBAAOjk-8NdONAGpMQ,316599
4
+ alibabacloud_fc20230330-4.1.8.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_fc20230330-4.1.8.dist-info/METADATA,sha256=PBuL_HIy58x42Lh829ym7CMcPpCReqvO6F_0OmWGB7E,2319
6
+ alibabacloud_fc20230330-4.1.8.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_fc20230330-4.1.8.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
8
+ alibabacloud_fc20230330-4.1.8.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- alibabacloud_fc20230330/__init__.py,sha256=B4ESOekrGxSxxkpgqOs0xMWV6rvGwUn2h-3eIQhRnDU,21
2
- alibabacloud_fc20230330/client.py,sha256=_nzY33AzTFtKebsCcEaB-I-Cbe8Hf26-0PtW8SbCcP8,247661
3
- alibabacloud_fc20230330/models.py,sha256=dT3THeRwxmjAe9UYHk6Wu23b7hqgHrqOFsymqqKzytM,313057
4
- alibabacloud_fc20230330-4.1.7.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_fc20230330-4.1.7.dist-info/METADATA,sha256=_1hpHgytVS1mSmpMOUpksUIWuoA7DtpCbrrIj4p6Vgk,2319
6
- alibabacloud_fc20230330-4.1.7.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_fc20230330-4.1.7.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
8
- alibabacloud_fc20230330-4.1.7.dist-info/RECORD,,