MCPcopy Index your code
hub / github.com/O365/python-o365 / any

Method any

O365/utils/utils.py:1188–1212  ·  view source on GitHub ↗

Performs a filter with the OData 'any' keyword on the collection For example: q.any(collection='email_addresses', attribute='address', operation='eq', word='george@best.com') will transform to a filter such as: emailAddresses/any(a:a/address eq 'george@bes

(self, *, collection, word, attribute=None, func=None, operation=None, negation=False)

Source from the content-addressed store, hash-verified

1186
1187 @fluent
1188 def any(self, *, collection, word, attribute=None, func=None, operation=None, negation=False):
1189 """ Performs a filter with the OData 'any' keyword on the collection
1190
1191 For example:
1192 q.any(collection='email_addresses', attribute='address',
1193 operation='eq', word='george@best.com')
1194
1195 will transform to a filter such as:
1196
1197 emailAddresses/any(a:a/address eq 'george@best.com')
1198
1199 :param str collection: the collection to apply the any keyword on
1200 :param str word: the word to check
1201 :param str attribute: the attribute of the collection to check
1202 :param str func: the logical function to apply to the attribute
1203 inside the collection
1204 :param str operation: the logical operation to apply to the
1205 attribute inside the collection
1206 :param bool negation: negates the funcion or operation inside the iterable
1207 :rtype: Query
1208 """
1209
1210 return self.iterable('any', collection=collection, word=word,
1211 attribute=attribute, func=func, operation=operation,
1212 negation=negation)
1213
1214 @fluent
1215 def all(self, *, collection, word, attribute=None, func=None, operation=None, negation=False):

Callers 1

get_contact_by_emailMethod · 0.80

Calls 1

iterableMethod · 0.95

Tested by

no test coverage detected