Warning: chmod(): Operation not permitted in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [0] in function chmod in /var/www/hopeinstoughton_www/wp-content/plugins/simple-universal-google-analytics/main.php on line 8 [1] in function include_once in /var/www/hopeinstoughton_www/wp-settings.php on line 560 [2] in function require_once in /var/www/hopeinstoughton_www/wp-config.php on line 85 [3] in function require_once in /var/www/hopeinstoughton_www/wp-load.php on line 50 [4] in function require_once in /var/www/hopeinstoughton_www/wp-blog-header.php on line 13 [5] in function require in /var/www/hopeinstoughton_www/index.php on line 17
| Server IP : 94.177.8.99 / Your IP : 216.73.217.165 Web Server : Apache/2.4.58 (Ubuntu) System : Linux aries 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/hopeinstoughton_www/vendor/microsoft/microsoft-graph/src/Model/ |
Upload File : |
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* OAuth2PermissionGrant 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 Microsoft\Graph\Model;
/**
* OAuth2PermissionGrant 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 OAuth2PermissionGrant extends Entity
{
/**
* Gets the clientId
* The object id (not appId) of the client service principal for the application which is authorized to act on behalf of a signed-in user when accessing an API. Required. Supports $filter (eq only).
*
* @return string|null The clientId
*/
public function getClientId()
{
if (array_key_exists("clientId", $this->_propDict)) {
return $this->_propDict["clientId"];
} else {
return null;
}
}
/**
* Sets the clientId
* The object id (not appId) of the client service principal for the application which is authorized to act on behalf of a signed-in user when accessing an API. Required. Supports $filter (eq only).
*
* @param string $val The clientId
*
* @return OAuth2PermissionGrant
*/
public function setClientId($val)
{
$this->_propDict["clientId"] = $val;
return $this;
}
/**
* Gets the consentType
* Indicates if authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Non-admin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required. Supports $filter (eq only).
*
* @return string|null The consentType
*/
public function getConsentType()
{
if (array_key_exists("consentType", $this->_propDict)) {
return $this->_propDict["consentType"];
} else {
return null;
}
}
/**
* Sets the consentType
* Indicates if authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Non-admin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required. Supports $filter (eq only).
*
* @param string $val The consentType
*
* @return OAuth2PermissionGrant
*/
public function setConsentType($val)
{
$this->_propDict["consentType"] = $val;
return $this;
}
/**
* Gets the principalId
* The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal. Supports $filter (eq only).
*
* @return string|null The principalId
*/
public function getPrincipalId()
{
if (array_key_exists("principalId", $this->_propDict)) {
return $this->_propDict["principalId"];
} else {
return null;
}
}
/**
* Sets the principalId
* The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal. Supports $filter (eq only).
*
* @param string $val The principalId
*
* @return OAuth2PermissionGrant
*/
public function setPrincipalId($val)
{
$this->_propDict["principalId"] = $val;
return $this;
}
/**
* Gets the resourceId
* The id of the resource service principal to which access is authorized. This identifies the API which the client is authorized to attempt to call on behalf of a signed-in user. Supports $filter (eq only).
*
* @return string|null The resourceId
*/
public function getResourceId()
{
if (array_key_exists("resourceId", $this->_propDict)) {
return $this->_propDict["resourceId"];
} else {
return null;
}
}
/**
* Sets the resourceId
* The id of the resource service principal to which access is authorized. This identifies the API which the client is authorized to attempt to call on behalf of a signed-in user. Supports $filter (eq only).
*
* @param string $val The resourceId
*
* @return OAuth2PermissionGrant
*/
public function setResourceId($val)
{
$this->_propDict["resourceId"] = $val;
return $this;
}
/**
* Gets the scope
* A space-separated list of the claim values for delegated permissions which should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the oauth2PermissionScopes property of the resource service principal. Must not exceed 3850 characters in length.
*
* @return string|null The scope
*/
public function getScope()
{
if (array_key_exists("scope", $this->_propDict)) {
return $this->_propDict["scope"];
} else {
return null;
}
}
/**
* Sets the scope
* A space-separated list of the claim values for delegated permissions which should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the oauth2PermissionScopes property of the resource service principal. Must not exceed 3850 characters in length.
*
* @param string $val The scope
*
* @return OAuth2PermissionGrant
*/
public function setScope($val)
{
$this->_propDict["scope"] = $val;
return $this;
}
}