@@ -17,7 +17,9 @@ def add(
17
17
expiration ,
18
18
client_state = None ,
19
19
latest_supported_tls_version = None ,
20
- include_resource_data = False ,
20
+ include_resource_data = None ,
21
+ encryption_certificate = None ,
22
+ encryption_certificate_id = None ,
21
23
):
22
24
"""
23
25
Subscribes a listener application to receive change notifications when the requested type of changes occur
@@ -35,6 +37,16 @@ def add(
35
37
:param str latest_supported_tls_version: Specifies the latest version of Transport Layer Security (TLS) that
36
38
the notification endpoint, specified by notificationUrl, supports.
37
39
The possible values are: v1_0, v1_1, v1_2, v1_3.
40
+ :param bool include_resource_data: Indicates whether the resource data for the resource that generated the
41
+ change notification should be included in the payload of the notification.
42
+ :param str encryption_certificate: Specifies the public key certificate which contains only the public key
43
+ that Microsoft Graph uses to encrypt the resource data it returns to your app. For security, Microsoft
44
+ Graph encrypts the resource data returned in a rich notification. You must provide a public encryption
45
+ key as part of creating the subscription.
46
+ :param str encryption_certificate_id: Specifies the identifier of the certificate used to encrypt the content
47
+ of the change notification. Use this ID to match in each change notification, which certificate to use
48
+ for decryption.
49
+ :return: Subscription
38
50
"""
39
51
return_type = Subscription (self .context )
40
52
self .add_child (return_type )
@@ -46,6 +58,8 @@ def add(
46
58
"clientState" : client_state ,
47
59
"latestSupportedTlsVersion" : latest_supported_tls_version ,
48
60
"includeResourceData" : include_resource_data ,
61
+ "encryptionCertificate" : encryption_certificate ,
62
+ "encryptionCertificateId" : encryption_certificate_id ,
49
63
}
50
64
qry = CreateEntityQuery (self , payload , return_type )
51
65
self .context .add_query (qry )
0 commit comments