88 lines
3.3 KiB
PHP
88 lines
3.3 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
*
|
|
* ChangeNotificationCollection File
|
|
* PHP version 7
|
|
*
|
|
* @category Library
|
|
* @package Microsoft.Graph
|
|
* @copyright (c) Microsoft Corporation. All rights reserved.
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link https://graph.microsoft.com
|
|
*/
|
|
namespace Beta\Microsoft\Graph\Model;
|
|
/**
|
|
* ChangeNotificationCollection class
|
|
*
|
|
* @category Model
|
|
* @package Microsoft.Graph
|
|
* @copyright (c) Microsoft Corporation. All rights reserved.
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link https://graph.microsoft.com
|
|
*/
|
|
class ChangeNotificationCollection extends Entity
|
|
{
|
|
/**
|
|
* Gets the validationTokens
|
|
* Contains an array of JWT tokens generated by Microsoft Graph for the application to validate the origin of the notifications. Microsoft Graph generates a single token for each distinct app and tenant pair for an item if it exists in the value array. Keep in mind that notifications can contain a mix of items for various apps and tenants that subscribed using the same notification URL. Only provided for change notifications with resource data Optional.
|
|
*
|
|
* @return string|null The validationTokens
|
|
*/
|
|
public function getValidationTokens()
|
|
{
|
|
if (array_key_exists("validationTokens", $this->_propDict)) {
|
|
return $this->_propDict["validationTokens"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the validationTokens
|
|
* Contains an array of JWT tokens generated by Microsoft Graph for the application to validate the origin of the notifications. Microsoft Graph generates a single token for each distinct app and tenant pair for an item if it exists in the value array. Keep in mind that notifications can contain a mix of items for various apps and tenants that subscribed using the same notification URL. Only provided for change notifications with resource data Optional.
|
|
*
|
|
* @param string $val The value of the validationTokens
|
|
*
|
|
* @return ChangeNotificationCollection
|
|
*/
|
|
public function setValidationTokens($val)
|
|
{
|
|
$this->_propDict["validationTokens"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the value
|
|
* The set of notifications being sent to the notification URL. Required.
|
|
*
|
|
* @return ChangeNotification|null The value
|
|
*/
|
|
public function getValue()
|
|
{
|
|
if (array_key_exists("value", $this->_propDict)) {
|
|
if (is_a($this->_propDict["value"], "\Beta\Microsoft\Graph\Model\ChangeNotification") || is_null($this->_propDict["value"])) {
|
|
return $this->_propDict["value"];
|
|
} else {
|
|
$this->_propDict["value"] = new ChangeNotification($this->_propDict["value"]);
|
|
return $this->_propDict["value"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the value
|
|
* The set of notifications being sent to the notification URL. Required.
|
|
*
|
|
* @param ChangeNotification $val The value to assign to the value
|
|
*
|
|
* @return ChangeNotificationCollection The ChangeNotificationCollection
|
|
*/
|
|
public function setValue($val)
|
|
{
|
|
$this->_propDict["value"] = $val;
|
|
return $this;
|
|
}
|
|
}
|