_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; } }