# -*- coding: utf-8 -*- ''' # Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. # # This file was generated and any changes will be overwritten. ''' from __future__ import unicode_literals from ..collection_base import CollectionPageBase from ..model.item import Item class SpecialCollectionPage(CollectionPageBase): def __getitem__(self, index): """Get the Item at the index specified Args: index (int): The index of the item to get from the SpecialCollectionPage Returns: :class:`Item`: The Item at the index """ return Item(self._prop_list[index]) def special(self): """Get a generator of Item within the SpecialCollectionPage Yields: :class:`Item`: The next Item in the collection """ for item in self._prop_list: yield Item(item)