# -*- 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 ..model.identity import Identity from ..one_drive_object_base import OneDriveObjectBase class OpenWithApp(OneDriveObjectBase): def __init__(self, prop_dict=None): self._prop_dict = prop_dict if prop_dict is not None else {} @property def app(self): """ Gets and sets the app Returns: :class:`Identity`: The app """ if "app" in self._prop_dict: if isinstance(self._prop_dict["app"], OneDriveObjectBase): return self._prop_dict["app"] else : self._prop_dict["app"] = Identity(self._prop_dict["app"]) return self._prop_dict["app"] return None @app.setter def app(self, val): self._prop_dict["app"] = val @property def view_url(self): """Gets and sets the viewUrl Returns: str: The viewUrl """ if "viewUrl" in self._prop_dict: return self._prop_dict["viewUrl"] else: return None @view_url.setter def view_url(self, val): self._prop_dict["viewUrl"] = val @property def edit_url(self): """Gets and sets the editUrl Returns: str: The editUrl """ if "editUrl" in self._prop_dict: return self._prop_dict["editUrl"] else: return None @edit_url.setter def edit_url(self, val): self._prop_dict["editUrl"] = val @property def view_post_parameters(self): """Gets and sets the viewPostParameters Returns: str: The viewPostParameters """ if "viewPostParameters" in self._prop_dict: return self._prop_dict["viewPostParameters"] else: return None @view_post_parameters.setter def view_post_parameters(self, val): self._prop_dict["viewPostParameters"] = val @property def edit_post_parameters(self): """Gets and sets the editPostParameters Returns: str: The editPostParameters """ if "editPostParameters" in self._prop_dict: return self._prop_dict["editPostParameters"] else: return None @edit_post_parameters.setter def edit_post_parameters(self, val): self._prop_dict["editPostParameters"] = val