alibabacloud-fc20230330 4.2.0__py3-none-any.whl → 4.2.3__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.
@@ -2458,6 +2458,103 @@ class DeliveryOption(TeaModel):
2458
2458
  return self
2459
2459
 
2460
2460
 
2461
+ class DescribeRegionsOutputRegionsRegion(TeaModel):
2462
+ def __init__(
2463
+ self,
2464
+ local_name: str = None,
2465
+ region_id: str = None,
2466
+ ):
2467
+ self.local_name = local_name
2468
+ self.region_id = region_id
2469
+
2470
+ def validate(self):
2471
+ pass
2472
+
2473
+ def to_map(self):
2474
+ _map = super().to_map()
2475
+ if _map is not None:
2476
+ return _map
2477
+
2478
+ result = dict()
2479
+ if self.local_name is not None:
2480
+ result['LocalName'] = self.local_name
2481
+ if self.region_id is not None:
2482
+ result['RegionId'] = self.region_id
2483
+ return result
2484
+
2485
+ def from_map(self, m: dict = None):
2486
+ m = m or dict()
2487
+ if m.get('LocalName') is not None:
2488
+ self.local_name = m.get('LocalName')
2489
+ if m.get('RegionId') is not None:
2490
+ self.region_id = m.get('RegionId')
2491
+ return self
2492
+
2493
+
2494
+ class DescribeRegionsOutputRegions(TeaModel):
2495
+ def __init__(
2496
+ self,
2497
+ region: List[DescribeRegionsOutputRegionsRegion] = None,
2498
+ ):
2499
+ self.region = region
2500
+
2501
+ def validate(self):
2502
+ if self.region:
2503
+ for k in self.region:
2504
+ if k:
2505
+ k.validate()
2506
+
2507
+ def to_map(self):
2508
+ _map = super().to_map()
2509
+ if _map is not None:
2510
+ return _map
2511
+
2512
+ result = dict()
2513
+ result['Region'] = []
2514
+ if self.region is not None:
2515
+ for k in self.region:
2516
+ result['Region'].append(k.to_map() if k else None)
2517
+ return result
2518
+
2519
+ def from_map(self, m: dict = None):
2520
+ m = m or dict()
2521
+ self.region = []
2522
+ if m.get('Region') is not None:
2523
+ for k in m.get('Region'):
2524
+ temp_model = DescribeRegionsOutputRegionsRegion()
2525
+ self.region.append(temp_model.from_map(k))
2526
+ return self
2527
+
2528
+
2529
+ class DescribeRegionsOutput(TeaModel):
2530
+ def __init__(
2531
+ self,
2532
+ regions: DescribeRegionsOutputRegions = None,
2533
+ ):
2534
+ self.regions = regions
2535
+
2536
+ def validate(self):
2537
+ if self.regions:
2538
+ self.regions.validate()
2539
+
2540
+ def to_map(self):
2541
+ _map = super().to_map()
2542
+ if _map is not None:
2543
+ return _map
2544
+
2545
+ result = dict()
2546
+ if self.regions is not None:
2547
+ result['Regions'] = self.regions.to_map()
2548
+ return result
2549
+
2550
+ def from_map(self, m: dict = None):
2551
+ m = m or dict()
2552
+ if m.get('Regions') is not None:
2553
+ temp_model = DescribeRegionsOutputRegions()
2554
+ self.regions = temp_model.from_map(m['Regions'])
2555
+ return self
2556
+
2557
+
2461
2558
  class Error(TeaModel):
2462
2559
  def __init__(
2463
2560
  self,
@@ -3238,7 +3335,7 @@ class Filter(TeaModel):
3238
3335
  return self
3239
3336
 
3240
3337
 
3241
- class OpenStructFunctionRestriction(TeaModel):
3338
+ class FunctionRestriction(TeaModel):
3242
3339
  def __init__(
3243
3340
  self,
3244
3341
  disable: bool = None,
@@ -3332,7 +3429,7 @@ class Function(TeaModel):
3332
3429
  instance_concurrency: int = None,
3333
3430
  instance_lifecycle_config: InstanceLifecycleConfig = None,
3334
3431
  internet_access: bool = None,
3335
- invocation_restriction: OpenStructFunctionRestriction = None,
3432
+ invocation_restriction: FunctionRestriction = None,
3336
3433
  last_modified_time: str = None,
3337
3434
  last_update_status: str = None,
3338
3435
  last_update_status_reason: str = None,
@@ -3557,7 +3654,7 @@ class Function(TeaModel):
3557
3654
  if m.get('internetAccess') is not None:
3558
3655
  self.internet_access = m.get('internetAccess')
3559
3656
  if m.get('invocationRestriction') is not None:
3560
- temp_model = OpenStructFunctionRestriction()
3657
+ temp_model = FunctionRestriction()
3561
3658
  self.invocation_restriction = temp_model.from_map(m['invocationRestriction'])
3562
3659
  if m.get('lastModifiedTime') is not None:
3563
3660
  self.last_modified_time = m.get('lastModifiedTime')
@@ -5992,103 +6089,6 @@ class UpdateTriggerInput(TeaModel):
5992
6089
  return self
5993
6090
 
5994
6091
 
5995
- class OpenStructDescribeRegionsOutputRegionsRegion(TeaModel):
5996
- def __init__(
5997
- self,
5998
- local_name: str = None,
5999
- region_id: str = None,
6000
- ):
6001
- self.local_name = local_name
6002
- self.region_id = region_id
6003
-
6004
- def validate(self):
6005
- pass
6006
-
6007
- def to_map(self):
6008
- _map = super().to_map()
6009
- if _map is not None:
6010
- return _map
6011
-
6012
- result = dict()
6013
- if self.local_name is not None:
6014
- result['LocalName'] = self.local_name
6015
- if self.region_id is not None:
6016
- result['RegionId'] = self.region_id
6017
- return result
6018
-
6019
- def from_map(self, m: dict = None):
6020
- m = m or dict()
6021
- if m.get('LocalName') is not None:
6022
- self.local_name = m.get('LocalName')
6023
- if m.get('RegionId') is not None:
6024
- self.region_id = m.get('RegionId')
6025
- return self
6026
-
6027
-
6028
- class OpenStructDescribeRegionsOutputRegions(TeaModel):
6029
- def __init__(
6030
- self,
6031
- region: List[OpenStructDescribeRegionsOutputRegionsRegion] = None,
6032
- ):
6033
- self.region = region
6034
-
6035
- def validate(self):
6036
- if self.region:
6037
- for k in self.region:
6038
- if k:
6039
- k.validate()
6040
-
6041
- def to_map(self):
6042
- _map = super().to_map()
6043
- if _map is not None:
6044
- return _map
6045
-
6046
- result = dict()
6047
- result['Region'] = []
6048
- if self.region is not None:
6049
- for k in self.region:
6050
- result['Region'].append(k.to_map() if k else None)
6051
- return result
6052
-
6053
- def from_map(self, m: dict = None):
6054
- m = m or dict()
6055
- self.region = []
6056
- if m.get('Region') is not None:
6057
- for k in m.get('Region'):
6058
- temp_model = OpenStructDescribeRegionsOutputRegionsRegion()
6059
- self.region.append(temp_model.from_map(k))
6060
- return self
6061
-
6062
-
6063
- class OpenStructDescribeRegionsOutput(TeaModel):
6064
- def __init__(
6065
- self,
6066
- regions: OpenStructDescribeRegionsOutputRegions = None,
6067
- ):
6068
- self.regions = regions
6069
-
6070
- def validate(self):
6071
- if self.regions:
6072
- self.regions.validate()
6073
-
6074
- def to_map(self):
6075
- _map = super().to_map()
6076
- if _map is not None:
6077
- return _map
6078
-
6079
- result = dict()
6080
- if self.regions is not None:
6081
- result['Regions'] = self.regions.to_map()
6082
- return result
6083
-
6084
- def from_map(self, m: dict = None):
6085
- m = m or dict()
6086
- if m.get('Regions') is not None:
6087
- temp_model = OpenStructDescribeRegionsOutputRegions()
6088
- self.regions = temp_model.from_map(m['Regions'])
6089
- return self
6090
-
6091
-
6092
6092
  class CreateAliasRequest(TeaModel):
6093
6093
  def __init__(
6094
6094
  self,
@@ -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: DescribeRegionsOutput = 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 = DescribeRegionsOutput()
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.2.3
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
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
  License-File: LICENSE
24
24
  Requires-Dist: alibabacloud-endpoint-util (<1.0.0,>=0.0.3)
25
25
  Requires-Dist: alibabacloud-openapi-util (<1.0.0,>=0.2.2)
26
- Requires-Dist: alibabacloud-tea-openapi (<1.0.0,>=0.3.12)
26
+ Requires-Dist: alibabacloud-tea-openapi (<1.0.0,>=0.3.14)
27
27
  Requires-Dist: alibabacloud-tea-util (<1.0.0,>=0.3.13)
28
28
 
29
29
  English | [简体中文](README-CN.md)
@@ -0,0 +1,8 @@
1
+ alibabacloud_fc20230330/__init__.py,sha256=WmroxoLwfRM27zXif3m-N1VjZqMAwqUo4ADmMXegQn4,21
2
+ alibabacloud_fc20230330/client.py,sha256=QMfAQcGtndNLuTapzeV8knejJz9imN3ZZKA2-0Yrhzs,229591
3
+ alibabacloud_fc20230330/models.py,sha256=373LpA_sDp2MfJE4u5h71DxLpthB3kC1IpLg8QRBmec,326771
4
+ alibabacloud_fc20230330-4.2.3.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
+ alibabacloud_fc20230330-4.2.3.dist-info/METADATA,sha256=PCjEPMhcb_57y7beXYE6ZcsPUFFjex9ZB5J-I_bIfHs,2319
6
+ alibabacloud_fc20230330-4.2.3.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
+ alibabacloud_fc20230330-4.2.3.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
8
+ alibabacloud_fc20230330-4.2.3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- alibabacloud_fc20230330/__init__.py,sha256=gTh6GZub1Gxz539cnDJUpjnkqBuxLByN9jyLxdgyuVM,21
2
- alibabacloud_fc20230330/client.py,sha256=YG47WAXlbRCdFZPUq9PFr-5CnVnWR52PvNfIxCAW-7E,257809
3
- alibabacloud_fc20230330/models.py,sha256=zRAgj-l9k6ptFn1nfLMTF_QDoNUr7hQGTIqBwtaWxBU,324341
4
- alibabacloud_fc20230330-4.2.0.dist-info/LICENSE,sha256=0CFItL6bHvxqS44T6vlLoW2R4Zaic304OO3WxN0oXF0,600
5
- alibabacloud_fc20230330-4.2.0.dist-info/METADATA,sha256=bU4PAQoSBAs9PYa-KB83wcSVcTGlpCz7zoIZtCy2G4M,2319
6
- alibabacloud_fc20230330-4.2.0.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
7
- alibabacloud_fc20230330-4.2.0.dist-info/top_level.txt,sha256=baV3-L5IvxdXABZELkVnoxSffqdCcj44u4zGA8yQ-Ek,24
8
- alibabacloud_fc20230330-4.2.0.dist-info/RECORD,,