@@ -7720,6 +7720,228 @@ def from_map(self, m: dict = None):
7720
7720
return self
7721
7721
7722
7722
7723
+ class ListPersistentAppInstancesRequest (TeaModel ):
7724
+ def __init__ (
7725
+ self ,
7726
+ app_instance_group_id : str = None ,
7727
+ app_instance_persistent_ids : List [str ] = None ,
7728
+ page_number : int = None ,
7729
+ page_size : int = None ,
7730
+ product_type : str = None ,
7731
+ ):
7732
+ # This parameter is required.
7733
+ self .app_instance_group_id = app_instance_group_id
7734
+ self .app_instance_persistent_ids = app_instance_persistent_ids
7735
+ self .page_number = page_number
7736
+ self .page_size = page_size
7737
+ # This parameter is required.
7738
+ self .product_type = product_type
7739
+
7740
+ def validate (self ):
7741
+ pass
7742
+
7743
+ def to_map (self ):
7744
+ _map = super ().to_map ()
7745
+ if _map is not None :
7746
+ return _map
7747
+
7748
+ result = dict ()
7749
+ if self .app_instance_group_id is not None :
7750
+ result ['AppInstanceGroupId' ] = self .app_instance_group_id
7751
+ if self .app_instance_persistent_ids is not None :
7752
+ result ['AppInstancePersistentIds' ] = self .app_instance_persistent_ids
7753
+ if self .page_number is not None :
7754
+ result ['PageNumber' ] = self .page_number
7755
+ if self .page_size is not None :
7756
+ result ['PageSize' ] = self .page_size
7757
+ if self .product_type is not None :
7758
+ result ['ProductType' ] = self .product_type
7759
+ return result
7760
+
7761
+ def from_map (self , m : dict = None ):
7762
+ m = m or dict ()
7763
+ if m .get ('AppInstanceGroupId' ) is not None :
7764
+ self .app_instance_group_id = m .get ('AppInstanceGroupId' )
7765
+ if m .get ('AppInstancePersistentIds' ) is not None :
7766
+ self .app_instance_persistent_ids = m .get ('AppInstancePersistentIds' )
7767
+ if m .get ('PageNumber' ) is not None :
7768
+ self .page_number = m .get ('PageNumber' )
7769
+ if m .get ('PageSize' ) is not None :
7770
+ self .page_size = m .get ('PageSize' )
7771
+ if m .get ('ProductType' ) is not None :
7772
+ self .product_type = m .get ('ProductType' )
7773
+ return self
7774
+
7775
+
7776
+ class ListPersistentAppInstancesResponseBodyPersistentAppInstanceModels (TeaModel ):
7777
+ def __init__ (
7778
+ self ,
7779
+ app_instance_group_id : str = None ,
7780
+ app_instance_id : str = None ,
7781
+ app_instance_persistent_id : str = None ,
7782
+ app_instance_persistent_name : str = None ,
7783
+ app_instance_persistent_status : str = None ,
7784
+ app_instance_status : str = None ,
7785
+ authorized_users : List [str ] = None ,
7786
+ gmt_create : str = None ,
7787
+ ):
7788
+ self .app_instance_group_id = app_instance_group_id
7789
+ self .app_instance_id = app_instance_id
7790
+ self .app_instance_persistent_id = app_instance_persistent_id
7791
+ self .app_instance_persistent_name = app_instance_persistent_name
7792
+ self .app_instance_persistent_status = app_instance_persistent_status
7793
+ self .app_instance_status = app_instance_status
7794
+ self .authorized_users = authorized_users
7795
+ self .gmt_create = gmt_create
7796
+
7797
+ def validate (self ):
7798
+ pass
7799
+
7800
+ def to_map (self ):
7801
+ _map = super ().to_map ()
7802
+ if _map is not None :
7803
+ return _map
7804
+
7805
+ result = dict ()
7806
+ if self .app_instance_group_id is not None :
7807
+ result ['AppInstanceGroupId' ] = self .app_instance_group_id
7808
+ if self .app_instance_id is not None :
7809
+ result ['AppInstanceId' ] = self .app_instance_id
7810
+ if self .app_instance_persistent_id is not None :
7811
+ result ['AppInstancePersistentId' ] = self .app_instance_persistent_id
7812
+ if self .app_instance_persistent_name is not None :
7813
+ result ['AppInstancePersistentName' ] = self .app_instance_persistent_name
7814
+ if self .app_instance_persistent_status is not None :
7815
+ result ['AppInstancePersistentStatus' ] = self .app_instance_persistent_status
7816
+ if self .app_instance_status is not None :
7817
+ result ['AppInstanceStatus' ] = self .app_instance_status
7818
+ if self .authorized_users is not None :
7819
+ result ['AuthorizedUsers' ] = self .authorized_users
7820
+ if self .gmt_create is not None :
7821
+ result ['GmtCreate' ] = self .gmt_create
7822
+ return result
7823
+
7824
+ def from_map (self , m : dict = None ):
7825
+ m = m or dict ()
7826
+ if m .get ('AppInstanceGroupId' ) is not None :
7827
+ self .app_instance_group_id = m .get ('AppInstanceGroupId' )
7828
+ if m .get ('AppInstanceId' ) is not None :
7829
+ self .app_instance_id = m .get ('AppInstanceId' )
7830
+ if m .get ('AppInstancePersistentId' ) is not None :
7831
+ self .app_instance_persistent_id = m .get ('AppInstancePersistentId' )
7832
+ if m .get ('AppInstancePersistentName' ) is not None :
7833
+ self .app_instance_persistent_name = m .get ('AppInstancePersistentName' )
7834
+ if m .get ('AppInstancePersistentStatus' ) is not None :
7835
+ self .app_instance_persistent_status = m .get ('AppInstancePersistentStatus' )
7836
+ if m .get ('AppInstanceStatus' ) is not None :
7837
+ self .app_instance_status = m .get ('AppInstanceStatus' )
7838
+ if m .get ('AuthorizedUsers' ) is not None :
7839
+ self .authorized_users = m .get ('AuthorizedUsers' )
7840
+ if m .get ('GmtCreate' ) is not None :
7841
+ self .gmt_create = m .get ('GmtCreate' )
7842
+ return self
7843
+
7844
+
7845
+ class ListPersistentAppInstancesResponseBody (TeaModel ):
7846
+ def __init__ (
7847
+ self ,
7848
+ page_number : int = None ,
7849
+ page_size : int = None ,
7850
+ persistent_app_instance_models : List [ListPersistentAppInstancesResponseBodyPersistentAppInstanceModels ] = None ,
7851
+ request_id : str = None ,
7852
+ total_count : int = None ,
7853
+ ):
7854
+ self .page_number = page_number
7855
+ self .page_size = page_size
7856
+ self .persistent_app_instance_models = persistent_app_instance_models
7857
+ self .request_id = request_id
7858
+ self .total_count = total_count
7859
+
7860
+ def validate (self ):
7861
+ if self .persistent_app_instance_models :
7862
+ for k in self .persistent_app_instance_models :
7863
+ if k :
7864
+ k .validate ()
7865
+
7866
+ def to_map (self ):
7867
+ _map = super ().to_map ()
7868
+ if _map is not None :
7869
+ return _map
7870
+
7871
+ result = dict ()
7872
+ if self .page_number is not None :
7873
+ result ['PageNumber' ] = self .page_number
7874
+ if self .page_size is not None :
7875
+ result ['PageSize' ] = self .page_size
7876
+ result ['PersistentAppInstanceModels' ] = []
7877
+ if self .persistent_app_instance_models is not None :
7878
+ for k in self .persistent_app_instance_models :
7879
+ result ['PersistentAppInstanceModels' ].append (k .to_map () if k else None )
7880
+ if self .request_id is not None :
7881
+ result ['RequestId' ] = self .request_id
7882
+ if self .total_count is not None :
7883
+ result ['TotalCount' ] = self .total_count
7884
+ return result
7885
+
7886
+ def from_map (self , m : dict = None ):
7887
+ m = m or dict ()
7888
+ if m .get ('PageNumber' ) is not None :
7889
+ self .page_number = m .get ('PageNumber' )
7890
+ if m .get ('PageSize' ) is not None :
7891
+ self .page_size = m .get ('PageSize' )
7892
+ self .persistent_app_instance_models = []
7893
+ if m .get ('PersistentAppInstanceModels' ) is not None :
7894
+ for k in m .get ('PersistentAppInstanceModels' ):
7895
+ temp_model = ListPersistentAppInstancesResponseBodyPersistentAppInstanceModels ()
7896
+ self .persistent_app_instance_models .append (temp_model .from_map (k ))
7897
+ if m .get ('RequestId' ) is not None :
7898
+ self .request_id = m .get ('RequestId' )
7899
+ if m .get ('TotalCount' ) is not None :
7900
+ self .total_count = m .get ('TotalCount' )
7901
+ return self
7902
+
7903
+
7904
+ class ListPersistentAppInstancesResponse (TeaModel ):
7905
+ def __init__ (
7906
+ self ,
7907
+ headers : Dict [str , str ] = None ,
7908
+ status_code : int = None ,
7909
+ body : ListPersistentAppInstancesResponseBody = None ,
7910
+ ):
7911
+ self .headers = headers
7912
+ self .status_code = status_code
7913
+ self .body = body
7914
+
7915
+ def validate (self ):
7916
+ if self .body :
7917
+ self .body .validate ()
7918
+
7919
+ def to_map (self ):
7920
+ _map = super ().to_map ()
7921
+ if _map is not None :
7922
+ return _map
7923
+
7924
+ result = dict ()
7925
+ if self .headers is not None :
7926
+ result ['headers' ] = self .headers
7927
+ if self .status_code is not None :
7928
+ result ['statusCode' ] = self .status_code
7929
+ if self .body is not None :
7930
+ result ['body' ] = self .body .to_map ()
7931
+ return result
7932
+
7933
+ def from_map (self , m : dict = None ):
7934
+ m = m or dict ()
7935
+ if m .get ('headers' ) is not None :
7936
+ self .headers = m .get ('headers' )
7937
+ if m .get ('statusCode' ) is not None :
7938
+ self .status_code = m .get ('statusCode' )
7939
+ if m .get ('body' ) is not None :
7940
+ temp_model = ListPersistentAppInstancesResponseBody ()
7941
+ self .body = temp_model .from_map (m ['body' ])
7942
+ return self
7943
+
7944
+
7723
7945
class ListRegionsRequest (TeaModel ):
7724
7946
def __init__ (
7725
7947
self ,
0 commit comments