@@ -71,6 +71,28 @@ def __init__(self, *, id: str = None, name: str = None, **kwargs) -> None:
71
71
self .name = name
72
72
73
73
74
+ class CacheInfo (Model ):
75
+ """A cache info object which notifies Teams how long an object should be cached for.
76
+
77
+ :param cache_type: Type of Cache Info
78
+ :type cache_type: str
79
+ :param cache_duration: Duration of the Cached Info.
80
+ :type cache_duration: int
81
+ """
82
+
83
+ _attribute_map = {
84
+ "cache_type" : {"key" : "cacheType" , "type" : "str" },
85
+ "cache_duration" : {"key" : "cacheDuration" , "type" : "int" },
86
+ }
87
+
88
+ def __init__ (
89
+ self , * , cache_type : str = None , cache_duration : int = None , ** kwargs
90
+ ) -> None :
91
+ super (CacheInfo , self ).__init__ (** kwargs )
92
+ self .cache_type = cache_type
93
+ self .cache_duration = cache_duration
94
+
95
+
74
96
class ConversationList (Model ):
75
97
"""List of channels under a team.
76
98
@@ -699,6 +721,8 @@ class MessagingExtensionActionResponse(Model):
699
721
:param compose_extension:
700
722
:type compose_extension:
701
723
~botframework.connector.teams.models.MessagingExtensionResult
724
+ :param cache_info: CacheInfo for this MessagingExtensionActionResponse.
725
+ :type cache_info: ~botframework.connector.teams.models.CacheInfo
702
726
"""
703
727
704
728
_attribute_map = {
@@ -707,12 +731,21 @@ class MessagingExtensionActionResponse(Model):
707
731
"key" : "composeExtension" ,
708
732
"type" : "MessagingExtensionResult" ,
709
733
},
734
+ "cache_info" : {"key" : "cacheInfo" , "type" : "CacheInfo" },
710
735
}
711
736
712
- def __init__ (self , * , task = None , compose_extension = None , ** kwargs ) -> None :
737
+ def __init__ (
738
+ self ,
739
+ * ,
740
+ task = None ,
741
+ compose_extension = None ,
742
+ cache_info : CacheInfo = None ,
743
+ ** kwargs
744
+ ) -> None :
713
745
super (MessagingExtensionActionResponse , self ).__init__ (** kwargs )
714
746
self .task = task
715
747
self .compose_extension = compose_extension
748
+ self .cache_info = cache_info
716
749
717
750
718
751
class MessagingExtensionAttachment (Attachment ):
@@ -849,20 +882,23 @@ class MessagingExtensionResponse(Model):
849
882
"""Messaging extension response.
850
883
851
884
:param compose_extension:
852
- :type compose_extension:
853
- ~botframework.connector.teams.models.MessagingExtensionResult
885
+ :type compose_extension: ~botframework.connector.teams.models.MessagingExtensionResult
886
+ :param cache_info: CacheInfo for this MessagingExtensionResponse.
887
+ :type cache_info: ~botframework.connector.teams.models.CacheInfo
854
888
"""
855
889
856
890
_attribute_map = {
857
891
"compose_extension" : {
858
892
"key" : "composeExtension" ,
859
893
"type" : "MessagingExtensionResult" ,
860
894
},
895
+ "cache_info" : {"key" : "cacheInfo" , "type" : CacheInfo },
861
896
}
862
897
863
- def __init__ (self , * , compose_extension = None , ** kwargs ) -> None :
898
+ def __init__ (self , * , compose_extension = None , cache_info = None , ** kwargs ) -> None :
864
899
super (MessagingExtensionResponse , self ).__init__ (** kwargs )
865
900
self .compose_extension = compose_extension
901
+ self .cache_info = cache_info
866
902
867
903
868
904
class MessagingExtensionResult (Model ):
@@ -1671,15 +1707,19 @@ class TaskModuleResponse(Model):
1671
1707
1672
1708
:param task: The JSON for the Adaptive card to appear in the task module.
1673
1709
:type task: ~botframework.connector.teams.models.TaskModuleResponseBase
1710
+ :param cache_info: CacheInfo for this TaskModuleResponse.
1711
+ :type cache_info: ~botframework.connector.teams.models.CacheInfo
1674
1712
"""
1675
1713
1676
1714
_attribute_map = {
1677
1715
"task" : {"key" : "task" , "type" : "TaskModuleResponseBase" },
1716
+ "cache_info" : {"key" : "cacheInfo" , "type" : "CacheInfo" },
1678
1717
}
1679
1718
1680
- def __init__ (self , * , task = None , ** kwargs ) -> None :
1719
+ def __init__ (self , * , task = None , cache_info = None , ** kwargs ) -> None :
1681
1720
super (TaskModuleResponse , self ).__init__ (** kwargs )
1682
1721
self .task = task
1722
+ self .cache_info = cache_info
1683
1723
1684
1724
1685
1725
class TaskModuleTaskInfo (Model ):
0 commit comments