alibabacloud-fc20230330 4.1.6__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.
@@ -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:
@@ -5926,6 +5944,103 @@ class UpdateTriggerInput(TeaModel):
5926
5944
  return self
5927
5945
 
5928
5946
 
5947
+ class OpenStructDescribeRegionsOutputRegionsRegion(TeaModel):
5948
+ def __init__(
5949
+ self,
5950
+ local_name: str = None,
5951
+ region_id: str = None,
5952
+ ):
5953
+ self.local_name = local_name
5954
+ self.region_id = region_id
5955
+
5956
+ def validate(self):
5957
+ pass
5958
+
5959
+ def to_map(self):
5960
+ _map = super().to_map()
5961
+ if _map is not None:
5962
+ return _map
5963
+
5964
+ result = dict()
5965
+ if self.local_name is not None:
5966
+ result['LocalName'] = self.local_name
5967
+ if self.region_id is not None:
5968
+ result['RegionId'] = self.region_id
5969
+ return result
5970
+
5971
+ def from_map(self, m: dict = None):
5972
+ m = m or dict()
5973
+ if m.get('LocalName') is not None:
5974
+ self.local_name = m.get('LocalName')
5975
+ if m.get('RegionId') is not None:
5976
+ self.region_id = m.get('RegionId')
5977
+ return self
5978
+
5979
+
5980
+ class OpenStructDescribeRegionsOutputRegions(TeaModel):
5981
+ def __init__(
5982
+ self,
5983
+ region: List[OpenStructDescribeRegionsOutputRegionsRegion] = None,
5984
+ ):
5985
+ self.region = region
5986
+
5987
+ def validate(self):
5988
+ if self.region:
5989
+ for k in self.region:
5990
+ if k:
5991
+ k.validate()
5992
+
5993
+ def to_map(self):
5994
+ _map = super().to_map()
5995
+ if _map is not None:
5996
+ return _map
5997
+
5998
+ result = dict()
5999
+ result['Region'] = []
6000
+ if self.region is not None:
6001
+ for k in self.region:
6002
+ result['Region'].append(k.to_map() if k else None)
6003
+ return result
6004
+
6005
+ def from_map(self, m: dict = None):
6006
+ m = m or dict()
6007
+ self.region = []
6008
+ if m.get('Region') is not None:
6009
+ for k in m.get('Region'):
6010
+ temp_model = OpenStructDescribeRegionsOutputRegionsRegion()
6011
+ self.region.append(temp_model.from_map(k))
6012
+ return self
6013
+
6014
+
6015
+ class OpenStructDescribeRegionsOutput(TeaModel):
6016
+ def __init__(
6017
+ self,
6018
+ regions: OpenStructDescribeRegionsOutputRegions = None,
6019
+ ):
6020
+ self.regions = regions
6021
+
6022
+ def validate(self):
6023
+ if self.regions:
6024
+ self.regions.validate()
6025
+
6026
+ def to_map(self):
6027
+ _map = super().to_map()
6028
+ if _map is not None:
6029
+ return _map
6030
+
6031
+ result = dict()
6032
+ if self.regions is not None:
6033
+ result['Regions'] = self.regions.to_map()
6034
+ return result
6035
+
6036
+ def from_map(self, m: dict = None):
6037
+ m = m or dict()
6038
+ if m.get('Regions') is not None:
6039
+ temp_model = OpenStructDescribeRegionsOutputRegions()
6040
+ self.regions = temp_model.from_map(m['Regions'])
6041
+ return self
6042
+
6043
+
5929
6044
  class CreateAliasRequest(TeaModel):
5930
6045
  def __init__(
5931
6046
  self,
@@ -6620,7 +6735,7 @@ class DeleteProvisionConfigRequest(TeaModel):
6620
6735
  self,
6621
6736
  qualifier: str = None,
6622
6737
  ):
6623
- # The function alias or LATEST.
6738
+ # The function alias.
6624
6739
  self.qualifier = qualifier
6625
6740
 
6626
6741
  def validate(self):
@@ -7228,7 +7343,7 @@ class GetProvisionConfigRequest(TeaModel):
7228
7343
  self,
7229
7344
  qualifier: str = None,
7230
7345
  ):
7231
- # The function alias or LATEST.
7346
+ # The function alias.
7232
7347
  self.qualifier = qualifier
7233
7348
 
7234
7349
  def validate(self):
@@ -7662,14 +7777,15 @@ class ListAsyncTasksRequest(TeaModel):
7662
7777
  self.started_time_end = started_time_end
7663
7778
  # The state of asynchronous tasks. The following items list the states of an asynchronous task:
7664
7779
  #
7665
- # * 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.
7666
7783
  # * Succeeded: The invocation is successful.
7667
7784
  # * Failed: The invocation fails.
7668
- # * Running: The invocation is being executed.
7669
7785
  # * Stopped: The invocation is terminated.
7670
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.
7671
7788
  # * Invalid: The invocation is invalid and not executed due to specific reasons. For example, the function is deleted.
7672
- # * 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.
7673
7789
  # * Retrying: The asynchronous invocation is being retried due to an execution error.
7674
7790
  self.status = status
7675
7791
 
@@ -8022,8 +8138,72 @@ class ListFunctionsRequest(TeaModel):
8022
8138
  limit: int = None,
8023
8139
  next_token: str = None,
8024
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,
8025
8205
  ):
8026
- # 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.
8027
8207
  self.fc_version = fc_version
8028
8208
  # The number of functions to return. The minimum value is 1 and the maximum value is 100.
8029
8209
  self.limit = limit
@@ -8031,6 +8211,7 @@ class ListFunctionsRequest(TeaModel):
8031
8211
  self.next_token = next_token
8032
8212
  # The prefix of the function name.
8033
8213
  self.prefix = prefix
8214
+ self.tags_shrink = tags_shrink
8034
8215
 
8035
8216
  def validate(self):
8036
8217
  pass
@@ -8049,6 +8230,8 @@ class ListFunctionsRequest(TeaModel):
8049
8230
  result['nextToken'] = self.next_token
8050
8231
  if self.prefix is not None:
8051
8232
  result['prefix'] = self.prefix
8233
+ if self.tags_shrink is not None:
8234
+ result['tags'] = self.tags_shrink
8052
8235
  return result
8053
8236
 
8054
8237
  def from_map(self, m: dict = None):
@@ -8061,6 +8244,8 @@ class ListFunctionsRequest(TeaModel):
8061
8244
  self.next_token = m.get('nextToken')
8062
8245
  if m.get('prefix') is not None:
8063
8246
  self.prefix = m.get('prefix')
8247
+ if m.get('tags') is not None:
8248
+ self.tags_shrink = m.get('tags')
8064
8249
  return self
8065
8250
 
8066
8251
 
@@ -8598,7 +8783,7 @@ class ListTagResourcesRequest(TeaModel):
8598
8783
  self.next_token = next_token
8599
8784
  # The resource IDs.
8600
8785
  self.resource_id = resource_id
8601
- # The resource type.
8786
+ # The type of the resource.
8602
8787
  #
8603
8788
  # This parameter is required.
8604
8789
  self.resource_type = resource_type
@@ -8666,7 +8851,7 @@ class ListTagResourcesShrinkRequest(TeaModel):
8666
8851
  self.next_token = next_token
8667
8852
  # The resource IDs.
8668
8853
  self.resource_id_shrink = resource_id_shrink
8669
- # The resource type.
8854
+ # The type of the resource.
8670
8855
  #
8671
8856
  # This parameter is required.
8672
8857
  self.resource_type = resource_type
@@ -8955,7 +9140,7 @@ class PutAsyncInvokeConfigRequest(TeaModel):
8955
9140
  body: PutAsyncInvokeConfigInput = None,
8956
9141
  qualifier: str = None,
8957
9142
  ):
8958
- # The asynchronous invocation configurations.
9143
+ # The configurations of asynchronous function invocations.
8959
9144
  #
8960
9145
  # This parameter is required.
8961
9146
  self.body = body
@@ -9176,11 +9361,11 @@ class PutProvisionConfigRequest(TeaModel):
9176
9361
  body: PutProvisionConfigInput = None,
9177
9362
  qualifier: str = None,
9178
9363
  ):
9179
- # The provisioned instance configurations.
9364
+ # The provisioned configuration information.
9180
9365
  #
9181
9366
  # This parameter is required.
9182
9367
  self.body = body
9183
- # The function alias or LATEST.
9368
+ # The function alias.
9184
9369
  self.qualifier = qualifier
9185
9370
 
9186
9371
  def validate(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-fc20230330
3
- Version: 4.1.6
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=9wzlrxFApPQPuwvU-BiNEMEXX9YzxVeky11wjowNPV0,21
2
- alibabacloud_fc20230330/client.py,sha256=Yf-6IP78aGc0D18JCoXDPfOxJCnJfhvi0UZk0gM_oTg,213863
3
- alibabacloud_fc20230330/models.py,sha256=fWFU0X2m89tMNlmgvV9ziRbAM_JdHKiqO7DPWkkzA_I,310429
4
- alibabacloud_fc20230330-4.1.6.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_fc20230330-4.1.6.dist-info/METADATA,sha256=0KMXudVkbHzDtVJ1ElY9xRTw5FCt8PBjyz68QDw-ikE,2319
6
- alibabacloud_fc20230330-4.1.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_fc20230330-4.1.6.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
8
- alibabacloud_fc20230330-4.1.6.dist-info/RECORD,,