alibabacloud-fc20230330 4.1.4__py3-none-any.whl → 4.1.5__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.
- alibabacloud_fc20230330/__init__.py +1 -1
- alibabacloud_fc20230330/models.py +77 -35
- {alibabacloud_fc20230330-4.1.4.dist-info → alibabacloud_fc20230330-4.1.5.dist-info}/METADATA +2 -2
- alibabacloud_fc20230330-4.1.5.dist-info/RECORD +8 -0
- alibabacloud_fc20230330-4.1.4.dist-info/RECORD +0 -8
- {alibabacloud_fc20230330-4.1.4.dist-info → alibabacloud_fc20230330-4.1.5.dist-info}/LICENSE +0 -0
- {alibabacloud_fc20230330-4.1.4.dist-info → alibabacloud_fc20230330-4.1.5.dist-info}/WHEEL +0 -0
- {alibabacloud_fc20230330-4.1.4.dist-info → alibabacloud_fc20230330-4.1.5.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = '4.1.
|
1
|
+
__version__ = '4.1.5'
|
@@ -1818,6 +1818,39 @@ class OSSMountConfig(TeaModel):
|
|
1818
1818
|
return self
|
1819
1819
|
|
1820
1820
|
|
1821
|
+
class Tag(TeaModel):
|
1822
|
+
def __init__(
|
1823
|
+
self,
|
1824
|
+
key: str = None,
|
1825
|
+
value: str = None,
|
1826
|
+
):
|
1827
|
+
self.key = key
|
1828
|
+
self.value = value
|
1829
|
+
|
1830
|
+
def validate(self):
|
1831
|
+
pass
|
1832
|
+
|
1833
|
+
def to_map(self):
|
1834
|
+
_map = super().to_map()
|
1835
|
+
if _map is not None:
|
1836
|
+
return _map
|
1837
|
+
|
1838
|
+
result = dict()
|
1839
|
+
if self.key is not None:
|
1840
|
+
result['Key'] = self.key
|
1841
|
+
if self.value is not None:
|
1842
|
+
result['Value'] = self.value
|
1843
|
+
return result
|
1844
|
+
|
1845
|
+
def from_map(self, m: dict = None):
|
1846
|
+
m = m or dict()
|
1847
|
+
if m.get('Key') is not None:
|
1848
|
+
self.key = m.get('Key')
|
1849
|
+
if m.get('Value') is not None:
|
1850
|
+
self.value = m.get('Value')
|
1851
|
+
return self
|
1852
|
+
|
1853
|
+
|
1821
1854
|
class TracingConfig(TeaModel):
|
1822
1855
|
def __init__(
|
1823
1856
|
self,
|
@@ -1920,6 +1953,7 @@ class CreateFunctionInput(TeaModel):
|
|
1920
1953
|
oss_mount_config: OSSMountConfig = None,
|
1921
1954
|
role: str = None,
|
1922
1955
|
runtime: str = None,
|
1956
|
+
tags: List[Tag] = None,
|
1923
1957
|
timeout: int = None,
|
1924
1958
|
tracing_config: TracingConfig = None,
|
1925
1959
|
vpc_config: VPCConfig = None,
|
@@ -1948,6 +1982,7 @@ class CreateFunctionInput(TeaModel):
|
|
1948
1982
|
self.role = role
|
1949
1983
|
# This parameter is required.
|
1950
1984
|
self.runtime = runtime
|
1985
|
+
self.tags = tags
|
1951
1986
|
self.timeout = timeout
|
1952
1987
|
self.tracing_config = tracing_config
|
1953
1988
|
self.vpc_config = vpc_config
|
@@ -1971,6 +2006,10 @@ class CreateFunctionInput(TeaModel):
|
|
1971
2006
|
self.nas_config.validate()
|
1972
2007
|
if self.oss_mount_config:
|
1973
2008
|
self.oss_mount_config.validate()
|
2009
|
+
if self.tags:
|
2010
|
+
for k in self.tags:
|
2011
|
+
if k:
|
2012
|
+
k.validate()
|
1974
2013
|
if self.tracing_config:
|
1975
2014
|
self.tracing_config.validate()
|
1976
2015
|
if self.vpc_config:
|
@@ -2024,6 +2063,10 @@ class CreateFunctionInput(TeaModel):
|
|
2024
2063
|
result['role'] = self.role
|
2025
2064
|
if self.runtime is not None:
|
2026
2065
|
result['runtime'] = self.runtime
|
2066
|
+
result['tags'] = []
|
2067
|
+
if self.tags is not None:
|
2068
|
+
for k in self.tags:
|
2069
|
+
result['tags'].append(k.to_map() if k else None)
|
2027
2070
|
if self.timeout is not None:
|
2028
2071
|
result['timeout'] = self.timeout
|
2029
2072
|
if self.tracing_config is not None:
|
@@ -2085,6 +2128,11 @@ class CreateFunctionInput(TeaModel):
|
|
2085
2128
|
self.role = m.get('role')
|
2086
2129
|
if m.get('runtime') is not None:
|
2087
2130
|
self.runtime = m.get('runtime')
|
2131
|
+
self.tags = []
|
2132
|
+
if m.get('tags') is not None:
|
2133
|
+
for k in m.get('tags'):
|
2134
|
+
temp_model = Tag()
|
2135
|
+
self.tags.append(temp_model.from_map(k))
|
2088
2136
|
if m.get('timeout') is not None:
|
2089
2137
|
self.timeout = m.get('timeout')
|
2090
2138
|
if m.get('tracingConfig') is not None:
|
@@ -3252,6 +3300,7 @@ class Function(TeaModel):
|
|
3252
3300
|
state: str = None,
|
3253
3301
|
state_reason: str = None,
|
3254
3302
|
state_reason_code: str = None,
|
3303
|
+
tags: List[Tag] = None,
|
3255
3304
|
timeout: int = None,
|
3256
3305
|
tracing_config: TracingConfig = None,
|
3257
3306
|
vpc_config: VPCConfig = None,
|
@@ -3288,6 +3337,7 @@ class Function(TeaModel):
|
|
3288
3337
|
self.state = state
|
3289
3338
|
self.state_reason = state_reason
|
3290
3339
|
self.state_reason_code = state_reason_code
|
3340
|
+
self.tags = tags
|
3291
3341
|
self.timeout = timeout
|
3292
3342
|
self.tracing_config = tracing_config
|
3293
3343
|
self.vpc_config = vpc_config
|
@@ -3313,6 +3363,10 @@ class Function(TeaModel):
|
|
3313
3363
|
self.nas_config.validate()
|
3314
3364
|
if self.oss_mount_config:
|
3315
3365
|
self.oss_mount_config.validate()
|
3366
|
+
if self.tags:
|
3367
|
+
for k in self.tags:
|
3368
|
+
if k:
|
3369
|
+
k.validate()
|
3316
3370
|
if self.tracing_config:
|
3317
3371
|
self.tracing_config.validate()
|
3318
3372
|
if self.vpc_config:
|
@@ -3390,6 +3444,10 @@ class Function(TeaModel):
|
|
3390
3444
|
result['stateReason'] = self.state_reason
|
3391
3445
|
if self.state_reason_code is not None:
|
3392
3446
|
result['stateReasonCode'] = self.state_reason_code
|
3447
|
+
result['tags'] = []
|
3448
|
+
if self.tags is not None:
|
3449
|
+
for k in self.tags:
|
3450
|
+
result['tags'].append(k.to_map() if k else None)
|
3393
3451
|
if self.timeout is not None:
|
3394
3452
|
result['timeout'] = self.timeout
|
3395
3453
|
if self.tracing_config is not None:
|
@@ -3475,6 +3533,11 @@ class Function(TeaModel):
|
|
3475
3533
|
self.state_reason = m.get('stateReason')
|
3476
3534
|
if m.get('stateReasonCode') is not None:
|
3477
3535
|
self.state_reason_code = m.get('stateReasonCode')
|
3536
|
+
self.tags = []
|
3537
|
+
if m.get('tags') is not None:
|
3538
|
+
for k in m.get('tags'):
|
3539
|
+
temp_model = Tag()
|
3540
|
+
self.tags.append(temp_model.from_map(k))
|
3478
3541
|
if m.get('timeout') is not None:
|
3479
3542
|
self.timeout = m.get('timeout')
|
3480
3543
|
if m.get('tracingConfig') is not None:
|
@@ -4296,6 +4359,7 @@ class ProvisionConfig(TeaModel):
|
|
4296
4359
|
always_allocate_gpu: bool = None,
|
4297
4360
|
current: int = None,
|
4298
4361
|
current_error: str = None,
|
4362
|
+
default_target: int = None,
|
4299
4363
|
function_arn: str = None,
|
4300
4364
|
scheduled_actions: List[ScheduledAction] = None,
|
4301
4365
|
target: int = None,
|
@@ -4305,6 +4369,7 @@ class ProvisionConfig(TeaModel):
|
|
4305
4369
|
self.always_allocate_gpu = always_allocate_gpu
|
4306
4370
|
self.current = current
|
4307
4371
|
self.current_error = current_error
|
4372
|
+
self.default_target = default_target
|
4308
4373
|
self.function_arn = function_arn
|
4309
4374
|
self.scheduled_actions = scheduled_actions
|
4310
4375
|
self.target = target
|
@@ -4334,6 +4399,8 @@ class ProvisionConfig(TeaModel):
|
|
4334
4399
|
result['current'] = self.current
|
4335
4400
|
if self.current_error is not None:
|
4336
4401
|
result['currentError'] = self.current_error
|
4402
|
+
if self.default_target is not None:
|
4403
|
+
result['defaultTarget'] = self.default_target
|
4337
4404
|
if self.function_arn is not None:
|
4338
4405
|
result['functionArn'] = self.function_arn
|
4339
4406
|
result['scheduledActions'] = []
|
@@ -4358,6 +4425,8 @@ class ProvisionConfig(TeaModel):
|
|
4358
4425
|
self.current = m.get('current')
|
4359
4426
|
if m.get('currentError') is not None:
|
4360
4427
|
self.current_error = m.get('currentError')
|
4428
|
+
if m.get('defaultTarget') is not None:
|
4429
|
+
self.default_target = m.get('defaultTarget')
|
4361
4430
|
if m.get('functionArn') is not None:
|
4362
4431
|
self.function_arn = m.get('functionArn')
|
4363
4432
|
self.scheduled_actions = []
|
@@ -5063,12 +5132,14 @@ class PutProvisionConfigInput(TeaModel):
|
|
5063
5132
|
self,
|
5064
5133
|
always_allocate_cpu: bool = None,
|
5065
5134
|
always_allocate_gpu: bool = None,
|
5135
|
+
default_target: int = None,
|
5066
5136
|
scheduled_actions: List[ScheduledAction] = None,
|
5067
5137
|
target: int = None,
|
5068
5138
|
target_tracking_policies: List[TargetTrackingPolicy] = None,
|
5069
5139
|
):
|
5070
5140
|
self.always_allocate_cpu = always_allocate_cpu
|
5071
5141
|
self.always_allocate_gpu = always_allocate_gpu
|
5142
|
+
self.default_target = default_target
|
5072
5143
|
self.scheduled_actions = scheduled_actions
|
5073
5144
|
# This parameter is required.
|
5074
5145
|
self.target = target
|
@@ -5094,6 +5165,8 @@ class PutProvisionConfigInput(TeaModel):
|
|
5094
5165
|
result['alwaysAllocateCPU'] = self.always_allocate_cpu
|
5095
5166
|
if self.always_allocate_gpu is not None:
|
5096
5167
|
result['alwaysAllocateGPU'] = self.always_allocate_gpu
|
5168
|
+
if self.default_target is not None:
|
5169
|
+
result['defaultTarget'] = self.default_target
|
5097
5170
|
result['scheduledActions'] = []
|
5098
5171
|
if self.scheduled_actions is not None:
|
5099
5172
|
for k in self.scheduled_actions:
|
@@ -5112,6 +5185,8 @@ class PutProvisionConfigInput(TeaModel):
|
|
5112
5185
|
self.always_allocate_cpu = m.get('alwaysAllocateCPU')
|
5113
5186
|
if m.get('alwaysAllocateGPU') is not None:
|
5114
5187
|
self.always_allocate_gpu = m.get('alwaysAllocateGPU')
|
5188
|
+
if m.get('defaultTarget') is not None:
|
5189
|
+
self.default_target = m.get('defaultTarget')
|
5115
5190
|
self.scheduled_actions = []
|
5116
5191
|
if m.get('scheduledActions') is not None:
|
5117
5192
|
for k in m.get('scheduledActions'):
|
@@ -5252,39 +5327,6 @@ class SLSTriggerConfig(TeaModel):
|
|
5252
5327
|
return self
|
5253
5328
|
|
5254
5329
|
|
5255
|
-
class Tag(TeaModel):
|
5256
|
-
def __init__(
|
5257
|
-
self,
|
5258
|
-
key: str = None,
|
5259
|
-
value: str = None,
|
5260
|
-
):
|
5261
|
-
self.key = key
|
5262
|
-
self.value = value
|
5263
|
-
|
5264
|
-
def validate(self):
|
5265
|
-
pass
|
5266
|
-
|
5267
|
-
def to_map(self):
|
5268
|
-
_map = super().to_map()
|
5269
|
-
if _map is not None:
|
5270
|
-
return _map
|
5271
|
-
|
5272
|
-
result = dict()
|
5273
|
-
if self.key is not None:
|
5274
|
-
result['Key'] = self.key
|
5275
|
-
if self.value is not None:
|
5276
|
-
result['Value'] = self.value
|
5277
|
-
return result
|
5278
|
-
|
5279
|
-
def from_map(self, m: dict = None):
|
5280
|
-
m = m or dict()
|
5281
|
-
if m.get('Key') is not None:
|
5282
|
-
self.key = m.get('Key')
|
5283
|
-
if m.get('Value') is not None:
|
5284
|
-
self.value = m.get('Value')
|
5285
|
-
return self
|
5286
|
-
|
5287
|
-
|
5288
5330
|
class TagResourceInput(TeaModel):
|
5289
5331
|
def __init__(
|
5290
5332
|
self,
|
@@ -7471,7 +7513,7 @@ class ListAsyncTasksRequest(TeaModel):
|
|
7471
7513
|
#
|
7472
7514
|
# > The `invocationPayload` parameter indicates the input parameters of an asynchronous task.
|
7473
7515
|
self.include_payload = include_payload
|
7474
|
-
# The number of asynchronous tasks to return. Valid values: [1,100].
|
7516
|
+
# The number of asynchronous tasks to return. The default value is 20. Valid values: [1,100].
|
7475
7517
|
self.limit = limit
|
7476
7518
|
# The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken.
|
7477
7519
|
self.next_token = next_token
|
@@ -8897,7 +8939,7 @@ class PutProvisionConfigRequest(TeaModel):
|
|
8897
8939
|
body: PutProvisionConfigInput = None,
|
8898
8940
|
qualifier: str = None,
|
8899
8941
|
):
|
8900
|
-
# The
|
8942
|
+
# The provisioned instance configurations.
|
8901
8943
|
#
|
8902
8944
|
# This parameter is required.
|
8903
8945
|
self.body = body
|
{alibabacloud_fc20230330-4.1.4.dist-info → alibabacloud_fc20230330-4.1.5.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: alibabacloud-fc20230330
|
3
|
-
Version: 4.1.
|
3
|
+
Version: 4.1.5
|
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
|
@@ -22,7 +22,7 @@ Requires-Python: >=3.6
|
|
22
22
|
Description-Content-Type: text/markdown
|
23
23
|
License-File: LICENSE
|
24
24
|
Requires-Dist: alibabacloud-endpoint-util (<1.0.0,>=0.0.3)
|
25
|
-
Requires-Dist: alibabacloud-openapi-util (<1.0.0,>=0.2.
|
25
|
+
Requires-Dist: alibabacloud-openapi-util (<1.0.0,>=0.2.2)
|
26
26
|
Requires-Dist: alibabacloud-tea-openapi (<1.0.0,>=0.3.12)
|
27
27
|
Requires-Dist: alibabacloud-tea-util (<1.0.0,>=0.3.13)
|
28
28
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
alibabacloud_fc20230330/__init__.py,sha256=q1H_4OhOEJo5ijiPmDL-j2mJbka9XTgaBnZLIZG4TN0,21
|
2
|
+
alibabacloud_fc20230330/client.py,sha256=FW-y7sqdkkmh2Vgf5b8V-84LC4RRI-673N8TCxLPD2g,211425
|
3
|
+
alibabacloud_fc20230330/models.py,sha256=EZDiM_tYFG7SKZpkwJWRUOARZFVtjdL7Bi1_4CDAHkQ,301947
|
4
|
+
alibabacloud_fc20230330-4.1.5.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
5
|
+
alibabacloud_fc20230330-4.1.5.dist-info/METADATA,sha256=lzLaX9mgPmk0uyLQyaYCHZXKx7bWYKm9CwkO4Io7x_o,2319
|
6
|
+
alibabacloud_fc20230330-4.1.5.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
7
|
+
alibabacloud_fc20230330-4.1.5.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
|
8
|
+
alibabacloud_fc20230330-4.1.5.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
alibabacloud_fc20230330/__init__.py,sha256=isN_taDDTcqTbfWnxMnmLdhepHhB0Doy_9yj6md1t9E,21
|
2
|
-
alibabacloud_fc20230330/client.py,sha256=FW-y7sqdkkmh2Vgf5b8V-84LC4RRI-673N8TCxLPD2g,211425
|
3
|
-
alibabacloud_fc20230330/models.py,sha256=1YHCukT_NtwG4K3RxZx9dYg0Z7cVZOMsPqu2JaukqX4,300351
|
4
|
-
alibabacloud_fc20230330-4.1.4.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
|
5
|
-
alibabacloud_fc20230330-4.1.4.dist-info/METADATA,sha256=rPb1o0CHF8HnxiS42SVOwzuwzuPg5fAwa53B2WHUn0I,2319
|
6
|
-
alibabacloud_fc20230330-4.1.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
7
|
-
alibabacloud_fc20230330-4.1.4.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
|
8
|
-
alibabacloud_fc20230330-4.1.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{alibabacloud_fc20230330-4.1.4.dist-info → alibabacloud_fc20230330-4.1.5.dist-info}/top_level.txt
RENAMED
File without changes
|