Skip to content

Add Subscription to SubscriptionCollection is missing the include_resource_data parameter #899

Open
@optimygmbh

Description

@optimygmbh

I am trying to add a new subscription with the function in this file: master/office365/subscriptions/collection.py

It misses the parameter include_resource_data. The parameter is there in the subscription itself, but missing in the constructor.

Can this be added, or is there another way on how to set this value to true?

`class SubscriptionCollection(EntityCollection[Subscription]):
def init(self, context, resource_path=None):
super(SubscriptionCollection, self).init(
context, Subscription, resource_path
)

def add(
    self,
    change_type,
    notification_url,
    resource_path,
    expiration,
    client_state=None,
    latest_supported_tls_version=None,
    include_resource_data=false,   <------ to be added
):
...
...
payload = {
        "changeType": change_type,
        "notificationUrl": notification_url,
        "resource": str(resource_path),
        "expirationDateTime": expiration.isoformat() + "Z",
        "clientState": client_state,
        "latestSupportedTlsVersion": latest_supported_tls_version,
        "includeResourceData": include_resource_data,  <------ to be added
    }

`

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions