1
0
Fork 0

Update libs

master
Brie Bruns 2022-09-19 10:34:57 -06:00
parent ce812b88d4
commit 7c7d2531cc
714 changed files with 23765 additions and 3002 deletions

12
composer.lock generated
View File

@ -339,16 +339,16 @@
},
{
"name": "microsoft/microsoft-graph",
"version": "1.73.0",
"version": "1.75.0",
"source": {
"type": "git",
"url": "https://github.com/microsoftgraph/msgraph-sdk-php.git",
"reference": "a867c548899436d5279d191d5163a831ac9ea672"
"reference": "e14d68d8e78f217ab0c303169c389c4ebf5d9e11"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/a867c548899436d5279d191d5163a831ac9ea672",
"reference": "a867c548899436d5279d191d5163a831ac9ea672",
"url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/e14d68d8e78f217ab0c303169c389c4ebf5d9e11",
"reference": "e14d68d8e78f217ab0c303169c389c4ebf5d9e11",
"shasum": ""
},
"require": {
@ -384,9 +384,9 @@
"homepage": "https://developer.microsoft.com/en-us/graph",
"support": {
"issues": "https://github.com/microsoftgraph/msgraph-sdk-php/issues",
"source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/1.73.0"
"source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/1.75.0"
},
"time": "2022-07-20T14:56:50+00:00"
"time": "2022-09-15T14:43:49+00:00"
},
{
"name": "psr/http-client",

View File

@ -342,17 +342,17 @@
},
{
"name": "microsoft/microsoft-graph",
"version": "1.73.0",
"version_normalized": "1.73.0.0",
"version": "1.75.0",
"version_normalized": "1.75.0.0",
"source": {
"type": "git",
"url": "https://github.com/microsoftgraph/msgraph-sdk-php.git",
"reference": "a867c548899436d5279d191d5163a831ac9ea672"
"reference": "e14d68d8e78f217ab0c303169c389c4ebf5d9e11"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/a867c548899436d5279d191d5163a831ac9ea672",
"reference": "a867c548899436d5279d191d5163a831ac9ea672",
"url": "https://api.github.com/repos/microsoftgraph/msgraph-sdk-php/zipball/e14d68d8e78f217ab0c303169c389c4ebf5d9e11",
"reference": "e14d68d8e78f217ab0c303169c389c4ebf5d9e11",
"shasum": ""
},
"require": {
@ -366,7 +366,7 @@
"phpstan/phpstan": "^0.12.90 || ^1.0.0",
"phpunit/phpunit": "^8.0 || ^9.0"
},
"time": "2022-07-20T14:56:50+00:00",
"time": "2022-09-15T14:43:49+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
@ -390,7 +390,7 @@
"homepage": "https://developer.microsoft.com/en-us/graph",
"support": {
"issues": "https://github.com/microsoftgraph/msgraph-sdk-php/issues",
"source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/1.73.0"
"source": "https://github.com/microsoftgraph/msgraph-sdk-php/tree/1.75.0"
},
"install-path": "../microsoft/microsoft-graph"
},

View File

@ -5,7 +5,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => 'b14cdaeaa0d5b54c6f00ec27f4f0fb99a3da8cb4',
'reference' => 'ce812b88d43d2329cab304d7f25f91b2cef8515f',
'name' => '__root__',
'dev' => true,
),
@ -16,7 +16,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'reference' => 'b14cdaeaa0d5b54c6f00ec27f4f0fb99a3da8cb4',
'reference' => 'ce812b88d43d2329cab304d7f25f91b2cef8515f',
'dev_requirement' => false,
),
'guzzlehttp/guzzle' => array(
@ -47,12 +47,12 @@
'dev_requirement' => false,
),
'microsoft/microsoft-graph' => array(
'pretty_version' => '1.73.0',
'version' => '1.73.0.0',
'pretty_version' => '1.75.0',
'version' => '1.75.0.0',
'type' => 'library',
'install_path' => __DIR__ . '/../microsoft/microsoft-graph',
'aliases' => array(),
'reference' => 'a867c548899436d5279d191d5163a831ac9ea672',
'reference' => 'e14d68d8e78f217ab0c303169c389c4ebf5d9e11',
'dev_requirement' => false,
),
'psr/http-client' => array(

View File

@ -27,18 +27,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Git config user
run: |
git config --global user.email "GraphTooling@service.microsoft.com"
git config --global user.name "Microsoft Graph DevX Tooling"
- name: Run increment script
run: php scripts/IncrementMinorVersion.php
run: php scripts/BumpStableSdkVersion.php
- name: Commit and push changes if any
run: if git commit -am "Bump up minor version"; then git push origin $GITHUB_REF; fi
create-pull-request:
needs: bump-minor-version
# The type of runner that the job will run on

View File

@ -0,0 +1,67 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# This action will automatically create a pull request against feat/kiota-preview if the pushed branch
# has a branch path spec like kiota/v1.0/pipelinebuild/*. Configure this action by updating the
# environment variable values[0].
name: "create Kiota Preview pull request"
# Controls when the action will run. Triggers the workflow on push
# events but only for branches with the following branch spec: kiota/v1.0/pipelinebuild/*
on:
push:
branches:
- "kiota/v1.0/pipelinebuild/*"
paths:
- 'src/Generated/**'
defaults:
run:
shell: bash
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
bump-sdk-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Git config user
run: |
git config --global user.email "GraphTooling@service.microsoft.com"
git config --global user.name "Microsoft Graph DevX Tooling"
- name: Run increment script
run: php scripts/BumpPreviewSdkVersion.php
- name: Commit and push changes if any
run: if git commit -am "Bump SDK version"; then git push origin $GITHUB_REF; fi
create-pull-request:
needs: bump-sdk-version
# The type of runner that the job will run on
runs-on: ubuntu-latest
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Create a pull request [1]
- name: Create PR using the GitHub REST API via hub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE_TITLE: Generated models and request builders using Kiota
MESSAGE_BODY: "This pull request was automatically created by the GitHub Action, **${{github.workflow}}**. \n\n The commit hash is _${{github.sha}}_. \n\n **Important** Check for unexpected deletions or changes in this PR. See [v1.0 openapi.yml](https://github.com/microsoftgraph/msgraph-metadata/blob/master/openapi/v1.0/openapi.yaml) for metadata changes. \n\n Make sure the version number is incremented in /src/GraphConstants.php. Compare the version against the latest Release Candidate on [packagist.org](https://packagist.org/packages/microsoft/microsoft-graph) and update the version in src/GraphConstants."
LABELS: generated
BASE: feat/kiota-preview
run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
bin/hub pull-request -b "$BASE" -h "$GITHUB_REF" -m "$MESSAGE_TITLE" -m "$MESSAGE_BODY" -r "$REVIEWERS" -l "$LABELS"
# References
# [0] https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables
# [1] https://hub.github.com/hub-pull-request.1.html
# https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token

View File

@ -29,21 +29,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Git config user
run: |
git config --global user.email "GraphTooling@service.microsoft.com"
git config --global user.name "Microsoft Graph DevX Tooling"
- name: Run increment script
run: php scripts/IncrementMinorVersion.php
run: php scripts/BumpStableSdkVersion.php
- name: Commit and push changes if any
run: if git commit -am "Bump up minor version"; then git push origin $GITHUB_REF; fi
create-pull-request:
needs: bump-minor-version
# The type of runner that the job will run on
runs-on: ubuntu-latest
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md

View File

@ -11,7 +11,7 @@ You can install the PHP SDK with Composer, either run `composer require microsof
```
{
"require": {
"microsoft/microsoft-graph": "^1.73.0"
"microsoft/microsoft-graph": "^1.75.0"
}
}
```

View File

@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.8 BLOCK -->
## Security
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
## Reporting Security Issues
**Please do not report security vulnerabilities through public GitHub issues.**
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
This information will help us triage your report more quickly.
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
## Preferred Languages
We prefer all communications to be in English.
## Policy
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
<!-- END MICROSOFT SECURITY.MD BLOCK -->

View File

@ -0,0 +1,15 @@
<?php
include_once 'SdkVersionUtils.php';
const GRAPH_CONSTANTS_FILEPATH = "./src/GraphConstants.php";
$packagistVersion = getLatestPackagistVersion(false);
if (!$packagistVersion) {
echo "Failed to fetch latest preview sdk version";
return;
}
$bumpedSdkVersion = incrementVersion($packagistVersion);
echo "Version after increment: {$bumpedSdkVersion}\n";
updateGraphConstants(GRAPH_CONSTANTS_FILEPATH, $bumpedSdkVersion);
updateReadme($bumpedSdkVersion);

View File

@ -0,0 +1,15 @@
<?php
include_once 'SdkVersionUtils.php';
const GRAPH_CONSTANTS_FILEPATH = "./src/Core/GraphConstants.php";
$packagistVersion = getLatestPackagistVersion();
if (!$packagistVersion) {
echo "Failed to fetch latest stable sdk version";
return;
}
$bumpedSdkVersion = incrementVersion($packagistVersion);
echo "Version after increment: {$bumpedSdkVersion}\n";
updateGraphConstants(GRAPH_CONSTANTS_FILEPATH, $bumpedSdkVersion);
updateReadme($bumpedSdkVersion);

View File

@ -1,107 +0,0 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved.
* Licensed under the MIT License. See License in the project root
* for license information.
*
* Bumps up the minor version in src/Core/GraphConstants.php & README based on the latest published package version on Packagist
*
* Assumptions:
* - Script is run from the repo root
* - Script is run on a Unix environment (affects file path separator to files)
* - Packagist returns tagged versions in descending order (latest release first)
*/
const GRAPH_CONSTANTS_FILEPATH = "./src/Core/GraphConstants.php";
const SDK_VERSION_VAR_NAME = "SDK_VERSION"; # Name of version variable in GraphConstants.php
const PACKAGIST_ENDPOINT = "https://packagist.org/packages/microsoft/microsoft-graph.json";
const README_FILEPATH = "./README.md";
const DOCS_FILEPATH = "./docs/classes/Microsoft-Graph-Core-GraphConstants.html";
$filePathsToUpdate = [GRAPH_CONSTANTS_FILEPATH, README_FILEPATH, DOCS_FILEPATH];
function getLatestMinorPackagistVersion(string $majorVersion): string
{
$handle = curl_init();
curl_setopt($handle, CURLOPT_URL, PACKAGIST_ENDPOINT);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_TIMEOUT, 100);
curl_setopt($handle, CURLOPT_FAILONERROR, true);
echo "Fetching latest SDK version from " . PACKAGIST_ENDPOINT . "\n";
$response = curl_exec($handle);
if (curl_error($handle)) {
throw new Exception("Failed to get latest packagist version: ". curl_error($handle));
}
curl_close($handle);
$responseJson = json_decode($response, true);
if (!array_key_exists("package", $responseJson)
|| !array_key_exists("versions", $responseJson["package"])
|| empty($responseJson["package"]["versions"])) {
throw new Exception("Unable to find versions in the packagist response JSON: ". $responseJson);
}
$versions = $responseJson["package"]["versions"];
foreach ($versions as $version => $versionMetadata) {
# Ignore branch versions
if (!preg_match('/^dev-.*|.*-dev$/', $version)) {
$split = explode('.', $version);
if (!empty($split) && $split[0] === $majorVersion) {
# Non-branch versions are returned in descending order.
echo "Latest packagist version: {$version}\n";
return $version;
}
}
}
return '';
}
function getCurrentSdkVersion()
{
$fileContents = file_get_contents(GRAPH_CONSTANTS_FILEPATH);
if ($fileContents) {
$pattern = '/'. SDK_VERSION_VAR_NAME . '\s+=\s+".+"/';
$regexMatches = [];
preg_match($pattern, $fileContents, $regexMatches);
if ($regexMatches && $regexMatches[0]) {
$split = explode('"', $regexMatches[0]);
return $split[1];
}
}
}
function incrementMinorVersion(string $version): string
{
$splitVersion = explode(".", $version);
# Increment minor version
$splitVersion[1] = strval(intval($splitVersion[1]) + 1);
# Set patch to 0
$splitVersion[2] = preg_replace('/[0-9]+/', "0", $splitVersion[2]);
return implode(".", $splitVersion);
}
function updateFiles(string $filePath, string $currentVersion, string $bumpedVersion)
{
$fileContents = file_get_contents($filePath);
if ($fileContents) {
$pattern = '/'.$currentVersion.'/';
if (!file_put_contents($filePath, preg_replace($pattern, $bumpedVersion, $fileContents))) {
throw new Exception("Unable to find and replace SDK version");
}
echo "Successfully updated {$filePath}\n";
return;
}
throw new Exception("Could not read contents at " . $filePath);
}
$currentSdkVersion = getCurrentSdkVersion();
$currentMajorVersion = explode('.', $currentSdkVersion)[0];
$bumpedSdkVersion = incrementMinorVersion(getLatestMinorPackagistVersion($currentMajorVersion));
echo "Version after minor increment: {$bumpedSdkVersion}\n";
foreach ($filePathsToUpdate as $path) {
updateFiles($path, $currentSdkVersion, $bumpedSdkVersion);
}

View File

@ -0,0 +1,139 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved.
* Licensed under the MIT License. See License in the project root
* for license information.
*
* Bumps up the SDK version in $filePathsToUpdate based on the latest published package version on Packagist
*
* Assumptions:
* - Script is run from the repo root
* - Script is run on a Unix environment (affects file path separator to files)
* - Packagist returns tagged versions in descending order (latest release first)
*/
const SDK_VERSION_VAR_NAME = "SDK_VERSION"; # Name of version variable in GraphConstants.php
const PACKAGE_NAME = "microsoft/microsoft-graph";
const PACKAGIST_ENDPOINT = "https://packagist.org/packages/".PACKAGE_NAME.".json";
const README_FILEPATH = "./README.md";
/**
* Gets latest stable packagist version if $stable == true, else gets the latest Release Candidate
*
* @param boolean $stable
* @return string
*/
function getLatestPackagistVersion(bool $stable = true): string
{
$handle = curl_init();
curl_setopt($handle, CURLOPT_URL, PACKAGIST_ENDPOINT);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_TIMEOUT, 100);
curl_setopt($handle, CURLOPT_FAILONERROR, true);
echo "Fetching latest SDK version from " . PACKAGIST_ENDPOINT . "\n";
$response = curl_exec($handle);
if (curl_error($handle)) {
throw new Exception("Failed to get latest packagist version: ". curl_error($handle));
}
curl_close($handle);
$responseJson = json_decode($response, true);
if (!array_key_exists("package", $responseJson)
|| !array_key_exists("versions", $responseJson["package"])
|| empty($responseJson["package"]["versions"])) {
throw new Exception("Unable to find versions in the packagist response JSON: ". $responseJson);
}
$versions = $responseJson["package"]["versions"];
foreach (array_keys($versions) as $version) {
# Ignore branch versions
if (stripos($version, "dev") === false) {
if ($stable) {
if (stripos($version, "RC") === false) {
echo "Latest packagist version: {$version}\n";
return $version;
}
continue;
}
if (stripos($version, "RC")) {
echo "Latest packagist version: {$version}\n";
return $version;
}
}
}
return '';
}
function getGraphConstantsSdkVersion()
{
$fileContents = file_get_contents(GRAPH_CONSTANTS_FILEPATH);
if ($fileContents) {
$pattern = '/'. SDK_VERSION_VAR_NAME . '\s+=\s+".+"/';
$regexMatches = [];
preg_match($pattern, $fileContents, $regexMatches);
if ($regexMatches && $regexMatches[0]) {
$split = explode('"', $regexMatches[0]);
return $split[1];
}
}
}
function incrementVersion(string $version): string
{
$splitVersion = explode('.', $version);
$rcMatches = explode('RC', $splitVersion[2]);
if ($rcMatches && sizeof($rcMatches) > 1) {
# Increment release candidate
$rcVersion = ($rcMatches[1]) ? intval($rcMatches[1]) + 1 : 2;
$splitVersion[2] = "0-RC{$rcVersion}";
} else {
# Increment minor version
$splitVersion[1] = strval(intval($splitVersion[1]) + 1);
# Set patch
$splitVersion[2] = '0';
}
return implode(".", $splitVersion);
}
function updateReadme(string $bumpedVersion)
{
echo "Reading contents at ".README_FILEPATH."...\n";
$fileContents = file_get_contents(README_FILEPATH);
if ($fileContents) {
$package = str_replace('/', '\/', PACKAGE_NAME);
$pattern = '/"'.$package.'"\s*:\s*".+"/';
$replacement = '"'.PACKAGE_NAME.'": "^'.$bumpedVersion.'"';
$numReplacements = 0;
$updatedContents = preg_replace($pattern, $replacement, $fileContents, -1, $numReplacements);
if (!$numReplacements) {
echo "Unable to find and replace SDK version\n";
return;
}
echo file_put_contents(README_FILEPATH, $updatedContents) ? "Successfully updated ".README_FILEPATH. "\n" : "Failed to update ".README_FILEPATH."\n";
return;
}
echo "Could not read contents at ".README_FILEPATH."\n";
}
function updateGraphConstants(string $filePath, string $bumpedVersion)
{
echo "Reading contents at {$filePath}...\n";
$fileContents = file_get_contents($filePath);
if ($fileContents) {
$pattern = '/'. SDK_VERSION_VAR_NAME . '\s+=\s+".+"/';
$replacement = SDK_VERSION_VAR_NAME . " = \"{$bumpedVersion}\"";
$numReplacements = 0;
$updatedContents = preg_replace($pattern, $replacement, $fileContents, -1, $numReplacements);
if (!$numReplacements) {
echo "Unable to find and replace SDK version\n";
return;
}
echo file_put_contents($filePath, $updatedContents) ? "Successfully updated {$filePath}\n" : "Failed to update {$filePath}\n";
return;
}
echo "Could not read contents at {$filePath}\n";
}

View File

@ -23,6 +23,62 @@ namespace Beta\Microsoft\Graph\CallRecords\Model;
*/
class ClientUserAgent extends UserAgent
{
/**
* Gets the azureADAppId
* The unique identifier of the Azure AD application used by this endpoint.
*
* @return string|null The azureADAppId
*/
public function getAzureADAppId()
{
if (array_key_exists("azureADAppId", $this->_propDict)) {
return $this->_propDict["azureADAppId"];
} else {
return null;
}
}
/**
* Sets the azureADAppId
* The unique identifier of the Azure AD application used by this endpoint.
*
* @param string $val The value of the azureADAppId
*
* @return ClientUserAgent
*/
public function setAzureADAppId($val)
{
$this->_propDict["azureADAppId"] = $val;
return $this;
}
/**
* Gets the communicationServiceId
* Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs.
*
* @return string|null The communicationServiceId
*/
public function getCommunicationServiceId()
{
if (array_key_exists("communicationServiceId", $this->_propDict)) {
return $this->_propDict["communicationServiceId"];
} else {
return null;
}
}
/**
* Sets the communicationServiceId
* Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs.
*
* @param string $val The value of the communicationServiceId
*
* @return ClientUserAgent
*/
public function setCommunicationServiceId($val)
{
$this->_propDict["communicationServiceId"] = $val;
return $this;
}
/**
* Gets the platform

View File

@ -0,0 +1,37 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AggregationType 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\DeviceManagementNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* AggregationType 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 AggregationType extends Enum
{
/**
* The Enum AggregationType
*/
const COUNT = "count";
const PERCENTAGE = "percentage";
const AFFECTED_CLOUD_PC_COUNT = "affectedCloudPcCount";
const AFFECTED_CLOUD_PC_PERCENTAGE = "affectedCloudPcPercentage";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,83 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AlertImpact 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\DeviceManagementNamespace\Model;
/**
* AlertImpact 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 AlertImpact extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the aggregationType
*
* @return AggregationType|null The aggregationType
*/
public function getAggregationType()
{
if (array_key_exists("aggregationType", $this->_propDict)) {
if (is_a($this->_propDict["aggregationType"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\AggregationType") || is_null($this->_propDict["aggregationType"])) {
return $this->_propDict["aggregationType"];
} else {
$this->_propDict["aggregationType"] = new AggregationType($this->_propDict["aggregationType"]);
return $this->_propDict["aggregationType"];
}
}
return null;
}
/**
* Sets the aggregationType
*
* @param AggregationType $val The value to assign to the aggregationType
*
* @return AlertImpact The AlertImpact
*/
public function setAggregationType($val)
{
$this->_propDict["aggregationType"] = $val;
return $this;
}
/**
* Gets the value
*
* @return int|null The value
*/
public function getValue()
{
if (array_key_exists("value", $this->_propDict)) {
return $this->_propDict["value"];
} else {
return null;
}
}
/**
* Sets the value
*
* @param int $val The value of the value
*
* @return AlertImpact
*/
public function setValue($val)
{
$this->_propDict["value"] = $val;
return $this;
}
}

View File

@ -0,0 +1,298 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AlertRecord 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\DeviceManagementNamespace\Model;
/**
* AlertRecord 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 AlertRecord extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the alertImpact
*
* @return AlertImpact|null The alertImpact
*/
public function getAlertImpact()
{
if (array_key_exists("alertImpact", $this->_propDict)) {
if (is_a($this->_propDict["alertImpact"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\AlertImpact") || is_null($this->_propDict["alertImpact"])) {
return $this->_propDict["alertImpact"];
} else {
$this->_propDict["alertImpact"] = new AlertImpact($this->_propDict["alertImpact"]);
return $this->_propDict["alertImpact"];
}
}
return null;
}
/**
* Sets the alertImpact
*
* @param AlertImpact $val The alertImpact
*
* @return AlertRecord
*/
public function setAlertImpact($val)
{
$this->_propDict["alertImpact"] = $val;
return $this;
}
/**
* Gets the alertRuleId
*
* @return string|null The alertRuleId
*/
public function getAlertRuleId()
{
if (array_key_exists("alertRuleId", $this->_propDict)) {
return $this->_propDict["alertRuleId"];
} else {
return null;
}
}
/**
* Sets the alertRuleId
*
* @param string $val The alertRuleId
*
* @return AlertRecord
*/
public function setAlertRuleId($val)
{
$this->_propDict["alertRuleId"] = $val;
return $this;
}
/**
* Gets the alertRuleTemplate
*
* @return AlertRuleTemplate|null The alertRuleTemplate
*/
public function getAlertRuleTemplate()
{
if (array_key_exists("alertRuleTemplate", $this->_propDict)) {
if (is_a($this->_propDict["alertRuleTemplate"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\AlertRuleTemplate") || is_null($this->_propDict["alertRuleTemplate"])) {
return $this->_propDict["alertRuleTemplate"];
} else {
$this->_propDict["alertRuleTemplate"] = new AlertRuleTemplate($this->_propDict["alertRuleTemplate"]);
return $this->_propDict["alertRuleTemplate"];
}
}
return null;
}
/**
* Sets the alertRuleTemplate
*
* @param AlertRuleTemplate $val The alertRuleTemplate
*
* @return AlertRecord
*/
public function setAlertRuleTemplate($val)
{
$this->_propDict["alertRuleTemplate"] = $val;
return $this;
}
/**
* Gets the detectedDateTime
*
* @return \DateTime|null The detectedDateTime
*/
public function getDetectedDateTime()
{
if (array_key_exists("detectedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["detectedDateTime"], "\DateTime") || is_null($this->_propDict["detectedDateTime"])) {
return $this->_propDict["detectedDateTime"];
} else {
$this->_propDict["detectedDateTime"] = new \DateTime($this->_propDict["detectedDateTime"]);
return $this->_propDict["detectedDateTime"];
}
}
return null;
}
/**
* Sets the detectedDateTime
*
* @param \DateTime $val The detectedDateTime
*
* @return AlertRecord
*/
public function setDetectedDateTime($val)
{
$this->_propDict["detectedDateTime"] = $val;
return $this;
}
/**
* Gets the displayName
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
*
* @param string $val The displayName
*
* @return AlertRecord
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the lastUpdatedDateTime
*
* @return \DateTime|null The lastUpdatedDateTime
*/
public function getLastUpdatedDateTime()
{
if (array_key_exists("lastUpdatedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastUpdatedDateTime"], "\DateTime") || is_null($this->_propDict["lastUpdatedDateTime"])) {
return $this->_propDict["lastUpdatedDateTime"];
} else {
$this->_propDict["lastUpdatedDateTime"] = new \DateTime($this->_propDict["lastUpdatedDateTime"]);
return $this->_propDict["lastUpdatedDateTime"];
}
}
return null;
}
/**
* Sets the lastUpdatedDateTime
*
* @param \DateTime $val The lastUpdatedDateTime
*
* @return AlertRecord
*/
public function setLastUpdatedDateTime($val)
{
$this->_propDict["lastUpdatedDateTime"] = $val;
return $this;
}
/**
* Gets the resolvedDateTime
*
* @return \DateTime|null The resolvedDateTime
*/
public function getResolvedDateTime()
{
if (array_key_exists("resolvedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["resolvedDateTime"], "\DateTime") || is_null($this->_propDict["resolvedDateTime"])) {
return $this->_propDict["resolvedDateTime"];
} else {
$this->_propDict["resolvedDateTime"] = new \DateTime($this->_propDict["resolvedDateTime"]);
return $this->_propDict["resolvedDateTime"];
}
}
return null;
}
/**
* Sets the resolvedDateTime
*
* @param \DateTime $val The resolvedDateTime
*
* @return AlertRecord
*/
public function setResolvedDateTime($val)
{
$this->_propDict["resolvedDateTime"] = $val;
return $this;
}
/**
* Gets the severity
*
* @return RuleSeverityType|null The severity
*/
public function getSeverity()
{
if (array_key_exists("severity", $this->_propDict)) {
if (is_a($this->_propDict["severity"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\RuleSeverityType") || is_null($this->_propDict["severity"])) {
return $this->_propDict["severity"];
} else {
$this->_propDict["severity"] = new RuleSeverityType($this->_propDict["severity"]);
return $this->_propDict["severity"];
}
}
return null;
}
/**
* Sets the severity
*
* @param RuleSeverityType $val The severity
*
* @return AlertRecord
*/
public function setSeverity($val)
{
$this->_propDict["severity"] = $val;
return $this;
}
/**
* Gets the status
*
* @return AlertStatusType|null The status
*/
public function getStatus()
{
if (array_key_exists("status", $this->_propDict)) {
if (is_a($this->_propDict["status"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\AlertStatusType") || is_null($this->_propDict["status"])) {
return $this->_propDict["status"];
} else {
$this->_propDict["status"] = new AlertStatusType($this->_propDict["status"]);
return $this->_propDict["status"];
}
}
return null;
}
/**
* Sets the status
*
* @param AlertStatusType $val The status
*
* @return AlertRecord
*/
public function setStatus($val)
{
$this->_propDict["status"] = $val;
return $this;
}
}

View File

@ -0,0 +1,256 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AlertRule 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\DeviceManagementNamespace\Model;
/**
* AlertRule 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 AlertRule extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the alertRuleTemplate
*
* @return AlertRuleTemplate|null The alertRuleTemplate
*/
public function getAlertRuleTemplate()
{
if (array_key_exists("alertRuleTemplate", $this->_propDict)) {
if (is_a($this->_propDict["alertRuleTemplate"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\AlertRuleTemplate") || is_null($this->_propDict["alertRuleTemplate"])) {
return $this->_propDict["alertRuleTemplate"];
} else {
$this->_propDict["alertRuleTemplate"] = new AlertRuleTemplate($this->_propDict["alertRuleTemplate"]);
return $this->_propDict["alertRuleTemplate"];
}
}
return null;
}
/**
* Sets the alertRuleTemplate
*
* @param AlertRuleTemplate $val The alertRuleTemplate
*
* @return AlertRule
*/
public function setAlertRuleTemplate($val)
{
$this->_propDict["alertRuleTemplate"] = $val;
return $this;
}
/**
* Gets the description
*
* @return string|null The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
*
* @param string $val The description
*
* @return AlertRule
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
*
* @param string $val The displayName
*
* @return AlertRule
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the enabled
*
* @return bool|null The enabled
*/
public function getEnabled()
{
if (array_key_exists("enabled", $this->_propDict)) {
return $this->_propDict["enabled"];
} else {
return null;
}
}
/**
* Sets the enabled
*
* @param bool $val The enabled
*
* @return AlertRule
*/
public function setEnabled($val)
{
$this->_propDict["enabled"] = boolval($val);
return $this;
}
/**
* Gets the isSystemRule
*
* @return bool|null The isSystemRule
*/
public function getIsSystemRule()
{
if (array_key_exists("isSystemRule", $this->_propDict)) {
return $this->_propDict["isSystemRule"];
} else {
return null;
}
}
/**
* Sets the isSystemRule
*
* @param bool $val The isSystemRule
*
* @return AlertRule
*/
public function setIsSystemRule($val)
{
$this->_propDict["isSystemRule"] = boolval($val);
return $this;
}
/**
* Gets the notificationChannels
*
* @return array|null The notificationChannels
*/
public function getNotificationChannels()
{
if (array_key_exists("notificationChannels", $this->_propDict)) {
return $this->_propDict["notificationChannels"];
} else {
return null;
}
}
/**
* Sets the notificationChannels
*
* @param NotificationChannel[] $val The notificationChannels
*
* @return AlertRule
*/
public function setNotificationChannels($val)
{
$this->_propDict["notificationChannels"] = $val;
return $this;
}
/**
* Gets the severity
*
* @return RuleSeverityType|null The severity
*/
public function getSeverity()
{
if (array_key_exists("severity", $this->_propDict)) {
if (is_a($this->_propDict["severity"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\RuleSeverityType") || is_null($this->_propDict["severity"])) {
return $this->_propDict["severity"];
} else {
$this->_propDict["severity"] = new RuleSeverityType($this->_propDict["severity"]);
return $this->_propDict["severity"];
}
}
return null;
}
/**
* Sets the severity
*
* @param RuleSeverityType $val The severity
*
* @return AlertRule
*/
public function setSeverity($val)
{
$this->_propDict["severity"] = $val;
return $this;
}
/**
* Gets the threshold
*
* @return RuleThreshold|null The threshold
*/
public function getThreshold()
{
if (array_key_exists("threshold", $this->_propDict)) {
if (is_a($this->_propDict["threshold"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\RuleThreshold") || is_null($this->_propDict["threshold"])) {
return $this->_propDict["threshold"];
} else {
$this->_propDict["threshold"] = new RuleThreshold($this->_propDict["threshold"]);
return $this->_propDict["threshold"];
}
}
return null;
}
/**
* Sets the threshold
*
* @param RuleThreshold $val The threshold
*
* @return AlertRule
*/
public function setThreshold($val)
{
$this->_propDict["threshold"] = $val;
return $this;
}
}

View File

@ -0,0 +1,36 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AlertRuleTemplate 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\DeviceManagementNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* AlertRuleTemplate 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 AlertRuleTemplate extends Enum
{
/**
* The Enum AlertRuleTemplate
*/
const CLOUD_PC_PROVISION_SCENARIO = "cloudPcProvisionScenario";
const CLOUD_PC_IMAGE_UPLOAD_SCENARIO = "cloudPcImageUploadScenario";
const CLOUD_PC_ON_PREMISE_NETWORK_CONNECTION_CHECK_SCENARIO = "cloudPcOnPremiseNetworkConnectionCheckScenario";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,35 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AlertStatusType 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\DeviceManagementNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* AlertStatusType 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 AlertStatusType extends Enum
{
/**
* The Enum AlertStatusType
*/
const ACTIVE = "active";
const RESOLVED = "resolved";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,83 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Monitoring 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\DeviceManagementNamespace\Model;
/**
* Monitoring 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 Monitoring extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the alertRecords
*
* @return array|null The alertRecords
*/
public function getAlertRecords()
{
if (array_key_exists("alertRecords", $this->_propDict)) {
return $this->_propDict["alertRecords"];
} else {
return null;
}
}
/**
* Sets the alertRecords
*
* @param AlertRecord[] $val The alertRecords
*
* @return Monitoring
*/
public function setAlertRecords($val)
{
$this->_propDict["alertRecords"] = $val;
return $this;
}
/**
* Gets the alertRules
*
* @return array|null The alertRules
*/
public function getAlertRules()
{
if (array_key_exists("alertRules", $this->_propDict)) {
return $this->_propDict["alertRules"];
} else {
return null;
}
}
/**
* Sets the alertRules
*
* @param AlertRule[] $val The alertRules
*
* @return Monitoring
*/
public function setAlertRules($val)
{
$this->_propDict["alertRules"] = $val;
return $this;
}
}

View File

@ -0,0 +1,114 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* NotificationChannel 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\DeviceManagementNamespace\Model;
/**
* NotificationChannel 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 NotificationChannel extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the notificationChannelType
*
* @return NotificationChannelType|null The notificationChannelType
*/
public function getNotificationChannelType()
{
if (array_key_exists("notificationChannelType", $this->_propDict)) {
if (is_a($this->_propDict["notificationChannelType"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\NotificationChannelType") || is_null($this->_propDict["notificationChannelType"])) {
return $this->_propDict["notificationChannelType"];
} else {
$this->_propDict["notificationChannelType"] = new NotificationChannelType($this->_propDict["notificationChannelType"]);
return $this->_propDict["notificationChannelType"];
}
}
return null;
}
/**
* Sets the notificationChannelType
*
* @param NotificationChannelType $val The value to assign to the notificationChannelType
*
* @return NotificationChannel The NotificationChannel
*/
public function setNotificationChannelType($val)
{
$this->_propDict["notificationChannelType"] = $val;
return $this;
}
/**
* Gets the notificationReceivers
*
* @return NotificationReceiver|null The notificationReceivers
*/
public function getNotificationReceivers()
{
if (array_key_exists("notificationReceivers", $this->_propDict)) {
if (is_a($this->_propDict["notificationReceivers"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\NotificationReceiver") || is_null($this->_propDict["notificationReceivers"])) {
return $this->_propDict["notificationReceivers"];
} else {
$this->_propDict["notificationReceivers"] = new NotificationReceiver($this->_propDict["notificationReceivers"]);
return $this->_propDict["notificationReceivers"];
}
}
return null;
}
/**
* Sets the notificationReceivers
*
* @param NotificationReceiver $val The value to assign to the notificationReceivers
*
* @return NotificationChannel The NotificationChannel
*/
public function setNotificationReceivers($val)
{
$this->_propDict["notificationReceivers"] = $val;
return $this;
}
/**
* Gets the receivers
*
* @return string|null The receivers
*/
public function getReceivers()
{
if (array_key_exists("receivers", $this->_propDict)) {
return $this->_propDict["receivers"];
} else {
return null;
}
}
/**
* Sets the receivers
*
* @param string $val The value of the receivers
*
* @return NotificationChannel
*/
public function setReceivers($val)
{
$this->_propDict["receivers"] = $val;
return $this;
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* NotificationChannelType 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\DeviceManagementNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* NotificationChannelType 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 NotificationChannelType extends Enum
{
/**
* The Enum NotificationChannelType
*/
const PORTAL = "portal";
const EMAIL = "email";
const PHONE_CALL = "phoneCall";
const SMS = "sms";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,78 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* NotificationReceiver 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\DeviceManagementNamespace\Model;
/**
* NotificationReceiver 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 NotificationReceiver extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the contactInformation
*
* @return string|null The contactInformation
*/
public function getContactInformation()
{
if (array_key_exists("contactInformation", $this->_propDict)) {
return $this->_propDict["contactInformation"];
} else {
return null;
}
}
/**
* Sets the contactInformation
*
* @param string $val The value of the contactInformation
*
* @return NotificationReceiver
*/
public function setContactInformation($val)
{
$this->_propDict["contactInformation"] = $val;
return $this;
}
/**
* Gets the locale
*
* @return string|null The locale
*/
public function getLocale()
{
if (array_key_exists("locale", $this->_propDict)) {
return $this->_propDict["locale"];
} else {
return null;
}
}
/**
* Sets the locale
*
* @param string $val The value of the locale
*
* @return NotificationReceiver
*/
public function setLocale($val)
{
$this->_propDict["locale"] = $val;
return $this;
}
}

View File

@ -0,0 +1,39 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* OperatorType 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\DeviceManagementNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* OperatorType 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 OperatorType extends Enum
{
/**
* The Enum OperatorType
*/
const GREATER_OR_EQUAL = "greaterOrEqual";
const EQUAL = "equal";
const GREATER = "greater";
const LESS = "less";
const LESS_OR_EQUAL = "lessOrEqual";
const NOT_EQUAL = "notEqual";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,249 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* PortalNotification 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\DeviceManagementNamespace\Model;
/**
* PortalNotification 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 PortalNotification extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the alertImpact
*
* @return AlertImpact|null The alertImpact
*/
public function getAlertImpact()
{
if (array_key_exists("alertImpact", $this->_propDict)) {
if (is_a($this->_propDict["alertImpact"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\AlertImpact") || is_null($this->_propDict["alertImpact"])) {
return $this->_propDict["alertImpact"];
} else {
$this->_propDict["alertImpact"] = new AlertImpact($this->_propDict["alertImpact"]);
return $this->_propDict["alertImpact"];
}
}
return null;
}
/**
* Sets the alertImpact
*
* @param AlertImpact $val The value to assign to the alertImpact
*
* @return PortalNotification The PortalNotification
*/
public function setAlertImpact($val)
{
$this->_propDict["alertImpact"] = $val;
return $this;
}
/**
* Gets the alertRecordId
*
* @return string|null The alertRecordId
*/
public function getAlertRecordId()
{
if (array_key_exists("alertRecordId", $this->_propDict)) {
return $this->_propDict["alertRecordId"];
} else {
return null;
}
}
/**
* Sets the alertRecordId
*
* @param string $val The value of the alertRecordId
*
* @return PortalNotification
*/
public function setAlertRecordId($val)
{
$this->_propDict["alertRecordId"] = $val;
return $this;
}
/**
* Gets the alertRuleId
*
* @return string|null The alertRuleId
*/
public function getAlertRuleId()
{
if (array_key_exists("alertRuleId", $this->_propDict)) {
return $this->_propDict["alertRuleId"];
} else {
return null;
}
}
/**
* Sets the alertRuleId
*
* @param string $val The value of the alertRuleId
*
* @return PortalNotification
*/
public function setAlertRuleId($val)
{
$this->_propDict["alertRuleId"] = $val;
return $this;
}
/**
* Gets the alertRuleName
*
* @return string|null The alertRuleName
*/
public function getAlertRuleName()
{
if (array_key_exists("alertRuleName", $this->_propDict)) {
return $this->_propDict["alertRuleName"];
} else {
return null;
}
}
/**
* Sets the alertRuleName
*
* @param string $val The value of the alertRuleName
*
* @return PortalNotification
*/
public function setAlertRuleName($val)
{
$this->_propDict["alertRuleName"] = $val;
return $this;
}
/**
* Gets the alertRuleTemplate
*
* @return AlertRuleTemplate|null The alertRuleTemplate
*/
public function getAlertRuleTemplate()
{
if (array_key_exists("alertRuleTemplate", $this->_propDict)) {
if (is_a($this->_propDict["alertRuleTemplate"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\AlertRuleTemplate") || is_null($this->_propDict["alertRuleTemplate"])) {
return $this->_propDict["alertRuleTemplate"];
} else {
$this->_propDict["alertRuleTemplate"] = new AlertRuleTemplate($this->_propDict["alertRuleTemplate"]);
return $this->_propDict["alertRuleTemplate"];
}
}
return null;
}
/**
* Sets the alertRuleTemplate
*
* @param AlertRuleTemplate $val The value to assign to the alertRuleTemplate
*
* @return PortalNotification The PortalNotification
*/
public function setAlertRuleTemplate($val)
{
$this->_propDict["alertRuleTemplate"] = $val;
return $this;
}
/**
* Gets the id
*
* @return string|null The id
*/
public function getId()
{
if (array_key_exists("id", $this->_propDict)) {
return $this->_propDict["id"];
} else {
return null;
}
}
/**
* Sets the id
*
* @param string $val The value of the id
*
* @return PortalNotification
*/
public function setId($val)
{
$this->_propDict["id"] = $val;
return $this;
}
/**
* Gets the isPortalNotificationSent
*
* @return bool|null The isPortalNotificationSent
*/
public function getIsPortalNotificationSent()
{
if (array_key_exists("isPortalNotificationSent", $this->_propDict)) {
return $this->_propDict["isPortalNotificationSent"];
} else {
return null;
}
}
/**
* Sets the isPortalNotificationSent
*
* @param bool $val The value of the isPortalNotificationSent
*
* @return PortalNotification
*/
public function setIsPortalNotificationSent($val)
{
$this->_propDict["isPortalNotificationSent"] = $val;
return $this;
}
/**
* Gets the severity
*
* @return RuleSeverityType|null The severity
*/
public function getSeverity()
{
if (array_key_exists("severity", $this->_propDict)) {
if (is_a($this->_propDict["severity"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\RuleSeverityType") || is_null($this->_propDict["severity"])) {
return $this->_propDict["severity"];
} else {
$this->_propDict["severity"] = new RuleSeverityType($this->_propDict["severity"]);
return $this->_propDict["severity"];
}
}
return null;
}
/**
* Sets the severity
*
* @param RuleSeverityType $val The value to assign to the severity
*
* @return PortalNotification The PortalNotification
*/
public function setSeverity($val)
{
$this->_propDict["severity"] = $val;
return $this;
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* RuleSeverityType 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\DeviceManagementNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* RuleSeverityType 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 RuleSeverityType extends Enum
{
/**
* The Enum RuleSeverityType
*/
const UNKNOWN = "unknown";
const INFORMATIONAL = "informational";
const WARNING = "warning";
const CRITICAL = "critical";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,114 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* RuleThreshold 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\DeviceManagementNamespace\Model;
/**
* RuleThreshold 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 RuleThreshold extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the aggregation
*
* @return AggregationType|null The aggregation
*/
public function getAggregation()
{
if (array_key_exists("aggregation", $this->_propDict)) {
if (is_a($this->_propDict["aggregation"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\AggregationType") || is_null($this->_propDict["aggregation"])) {
return $this->_propDict["aggregation"];
} else {
$this->_propDict["aggregation"] = new AggregationType($this->_propDict["aggregation"]);
return $this->_propDict["aggregation"];
}
}
return null;
}
/**
* Sets the aggregation
*
* @param AggregationType $val The value to assign to the aggregation
*
* @return RuleThreshold The RuleThreshold
*/
public function setAggregation($val)
{
$this->_propDict["aggregation"] = $val;
return $this;
}
/**
* Gets the operator
*
* @return OperatorType|null The operator
*/
public function getOperator()
{
if (array_key_exists("operator", $this->_propDict)) {
if (is_a($this->_propDict["operator"], "\Beta\Microsoft\Graph\DeviceManagementNamespace\Model\OperatorType") || is_null($this->_propDict["operator"])) {
return $this->_propDict["operator"];
} else {
$this->_propDict["operator"] = new OperatorType($this->_propDict["operator"]);
return $this->_propDict["operator"];
}
}
return null;
}
/**
* Sets the operator
*
* @param OperatorType $val The value to assign to the operator
*
* @return RuleThreshold The RuleThreshold
*/
public function setOperator($val)
{
$this->_propDict["operator"] = $val;
return $this;
}
/**
* Gets the target
*
* @return int|null The target
*/
public function getTarget()
{
if (array_key_exists("target", $this->_propDict)) {
return $this->_propDict["target"];
} else {
return null;
}
}
/**
* Sets the target
*
* @param int $val The value of the target
*
* @return RuleThreshold
*/
public function setTarget($val)
{
$this->_propDict["target"] = $val;
return $this;
}
}

View File

@ -0,0 +1,59 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ActivitySettings 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\ExternalConnectors\Model;
/**
* ActivitySettings 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 ActivitySettings extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the urlToItemResolvers
* Specifies configurations to identify an externalItem based on a shared URL.
*
* @return UrlToItemResolverBase|null The urlToItemResolvers
*/
public function getUrlToItemResolvers()
{
if (array_key_exists("urlToItemResolvers", $this->_propDict)) {
if (is_a($this->_propDict["urlToItemResolvers"], "\Beta\Microsoft\Graph\ExternalConnectors\Model\UrlToItemResolverBase") || is_null($this->_propDict["urlToItemResolvers"])) {
return $this->_propDict["urlToItemResolvers"];
} else {
$this->_propDict["urlToItemResolvers"] = new UrlToItemResolverBase($this->_propDict["urlToItemResolvers"]);
return $this->_propDict["urlToItemResolvers"];
}
}
return null;
}
/**
* Sets the urlToItemResolvers
* Specifies configurations to identify an externalItem based on a shared URL.
*
* @param UrlToItemResolverBase $val The value to assign to the urlToItemResolvers
*
* @return ActivitySettings The ActivitySettings
*/
public function setUrlToItemResolvers($val)
{
$this->_propDict["urlToItemResolvers"] = $val;
return $this;
}
}

View File

@ -0,0 +1,126 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ExternalActivity 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\ExternalConnectors\Model;
/**
* ExternalActivity 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 ExternalActivity extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the startDateTime
* When the particular activity occurred.
*
* @return \DateTime|null The startDateTime
*/
public function getStartDateTime()
{
if (array_key_exists("startDateTime", $this->_propDict)) {
if (is_a($this->_propDict["startDateTime"], "\DateTime") || is_null($this->_propDict["startDateTime"])) {
return $this->_propDict["startDateTime"];
} else {
$this->_propDict["startDateTime"] = new \DateTime($this->_propDict["startDateTime"]);
return $this->_propDict["startDateTime"];
}
}
return null;
}
/**
* Sets the startDateTime
* When the particular activity occurred.
*
* @param \DateTime $val The startDateTime
*
* @return ExternalActivity
*/
public function setStartDateTime($val)
{
$this->_propDict["startDateTime"] = $val;
return $this;
}
/**
* Gets the type
* The type of activity performed. The possible values are: viewed, modified, created, commented, unknownFutureValue.
*
* @return ExternalActivityType|null The type
*/
public function getType()
{
if (array_key_exists("type", $this->_propDict)) {
if (is_a($this->_propDict["type"], "\Beta\Microsoft\Graph\ExternalConnectors\Model\ExternalActivityType") || is_null($this->_propDict["type"])) {
return $this->_propDict["type"];
} else {
$this->_propDict["type"] = new ExternalActivityType($this->_propDict["type"]);
return $this->_propDict["type"];
}
}
return null;
}
/**
* Sets the type
* The type of activity performed. The possible values are: viewed, modified, created, commented, unknownFutureValue.
*
* @param ExternalActivityType $val The type
*
* @return ExternalActivity
*/
public function setType($val)
{
$this->_propDict["type"] = $val;
return $this;
}
/**
* Gets the performedBy
* Represents an identity used to identify who is responsible for the activity.
*
* @return Identity|null The performedBy
*/
public function getPerformedBy()
{
if (array_key_exists("performedBy", $this->_propDict)) {
if (is_a($this->_propDict["performedBy"], "\Beta\Microsoft\Graph\ExternalConnectors\Model\Identity") || is_null($this->_propDict["performedBy"])) {
return $this->_propDict["performedBy"];
} else {
$this->_propDict["performedBy"] = new Identity($this->_propDict["performedBy"]);
return $this->_propDict["performedBy"];
}
}
return null;
}
/**
* Sets the performedBy
* Represents an identity used to identify who is responsible for the activity.
*
* @param Identity $val The performedBy
*
* @return ExternalActivity
*/
public function setPerformedBy($val)
{
$this->_propDict["performedBy"] = $val;
return $this;
}
}

View File

@ -0,0 +1,60 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ExternalActivityResult 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\ExternalConnectors\Model;
/**
* ExternalActivityResult 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 ExternalActivityResult extends ExternalActivity
{
/**
* Gets the error
* Error information explaining failure to process external activity.
*
* @return \Beta\Microsoft\Graph\Model\PublicError|null The error
*/
public function getError()
{
if (array_key_exists("error", $this->_propDict)) {
if (is_a($this->_propDict["error"], "\Beta\Microsoft\Graph\Model\PublicError") || is_null($this->_propDict["error"])) {
return $this->_propDict["error"];
} else {
$this->_propDict["error"] = new \Beta\Microsoft\Graph\Model\PublicError($this->_propDict["error"]);
return $this->_propDict["error"];
}
}
return null;
}
/**
* Sets the error
* Error information explaining failure to process external activity.
*
* @param \Beta\Microsoft\Graph\Model\PublicError $val The error
*
* @return ExternalActivityResult
*/
public function setError($val)
{
$this->_propDict["error"] = $val;
return $this;
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ExternalActivityType 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\ExternalConnectors\Model;
use Microsoft\Graph\Core\Enum;
/**
* ExternalActivityType 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 ExternalActivityType extends Enum
{
/**
* The Enum ExternalActivityType
*/
const VIEWED = "viewed";
const MODIFIED = "modified";
const CREATED = "created";
const COMMENTED = "commented";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -24,6 +24,39 @@ namespace Beta\Microsoft\Graph\ExternalConnectors\Model;
*/
class ExternalConnection extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the activitySettings
* Collects configurable settings related to activities involving connector content.
*
* @return ActivitySettings|null The activitySettings
*/
public function getActivitySettings()
{
if (array_key_exists("activitySettings", $this->_propDict)) {
if (is_a($this->_propDict["activitySettings"], "\Beta\Microsoft\Graph\ExternalConnectors\Model\ActivitySettings") || is_null($this->_propDict["activitySettings"])) {
return $this->_propDict["activitySettings"];
} else {
$this->_propDict["activitySettings"] = new ActivitySettings($this->_propDict["activitySettings"]);
return $this->_propDict["activitySettings"];
}
}
return null;
}
/**
* Sets the activitySettings
* Collects configurable settings related to activities involving connector content.
*
* @param ActivitySettings $val The activitySettings
*
* @return ExternalConnection
*/
public function setActivitySettings($val)
{
$this->_propDict["activitySettings"] = $val;
return $this;
}
/**
* Gets the complianceSettings
*

View File

@ -56,7 +56,7 @@ class ExternalItem extends \Beta\Microsoft\Graph\Model\Entity
/**
* Gets the content
* A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.
* A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.
*
* @return ExternalItemContent|null The content
*/
@ -75,7 +75,7 @@ class ExternalItem extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the content
* A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.
* A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.
*
* @param ExternalItemContent $val The content
*
@ -120,4 +120,34 @@ class ExternalItem extends \Beta\Microsoft\Graph\Model\Entity
return $this;
}
/**
* Gets the activities
* Write-only property. Returns results.
*
* @return array|null The activities
*/
public function getActivities()
{
if (array_key_exists("activities", $this->_propDict)) {
return $this->_propDict["activities"];
} else {
return null;
}
}
/**
* Sets the activities
* Write-only property. Returns results.
*
* @param ExternalActivity[] $val The activities
*
* @return ExternalItem
*/
public function setActivities($val)
{
$this->_propDict["activities"] = $val;
return $this;
}
}

View File

@ -26,7 +26,6 @@ class Identity extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the type
* The type of identity. Possible values are: user or group for Azure AD identities and externalgroup for groups in an external system.
*
* @return IdentityType|null The type
*/
@ -45,7 +44,6 @@ class Identity extends \Beta\Microsoft\Graph\Model\Entity
/**
* Sets the type
* The type of identity. Possible values are: user or group for Azure AD identities and externalgroup for groups in an external system.
*
* @param IdentityType $val The type
*

View File

@ -0,0 +1,87 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ItemIdResolver 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\ExternalConnectors\Model;
/**
* ItemIdResolver 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 ItemIdResolver extends UrlToItemResolverBase
{
/**
* Gets the itemId
* Pattern that specifies how to form the ID of the external item that the URL represents. The named groups from the regular expression in urlPattern within the urlMatchInfo can be referenced by inserting the group name inside curly brackets.
*
* @return string|null The itemId
*/
public function getItemId()
{
if (array_key_exists("itemId", $this->_propDict)) {
return $this->_propDict["itemId"];
} else {
return null;
}
}
/**
* Sets the itemId
* Pattern that specifies how to form the ID of the external item that the URL represents. The named groups from the regular expression in urlPattern within the urlMatchInfo can be referenced by inserting the group name inside curly brackets.
*
* @param string $val The value of the itemId
*
* @return ItemIdResolver
*/
public function setItemId($val)
{
$this->_propDict["itemId"] = $val;
return $this;
}
/**
* Gets the urlMatchInfo
* Configurations to match and resolve URL.
*
* @return UrlMatchInfo|null The urlMatchInfo
*/
public function getUrlMatchInfo()
{
if (array_key_exists("urlMatchInfo", $this->_propDict)) {
if (is_a($this->_propDict["urlMatchInfo"], "\Beta\Microsoft\Graph\ExternalConnectors\Model\UrlMatchInfo") || is_null($this->_propDict["urlMatchInfo"])) {
return $this->_propDict["urlMatchInfo"];
} else {
$this->_propDict["urlMatchInfo"] = new UrlMatchInfo($this->_propDict["urlMatchInfo"]);
return $this->_propDict["urlMatchInfo"];
}
}
return null;
}
/**
* Sets the urlMatchInfo
* Configurations to match and resolve URL.
*
* @param UrlMatchInfo $val The value to assign to the urlMatchInfo
*
* @return ItemIdResolver The ItemIdResolver
*/
public function setUrlMatchInfo($val)
{
$this->_propDict["urlMatchInfo"] = $val;
return $this;
}
}

View File

@ -0,0 +1,82 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* UrlMatchInfo 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\ExternalConnectors\Model;
/**
* UrlMatchInfo 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 UrlMatchInfo extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the baseUrls
* A list of the URL prefixes that must match URLs to be processed by this URL-to-item-resolver.
*
* @return string|null The baseUrls
*/
public function getBaseUrls()
{
if (array_key_exists("baseUrls", $this->_propDict)) {
return $this->_propDict["baseUrls"];
} else {
return null;
}
}
/**
* Sets the baseUrls
* A list of the URL prefixes that must match URLs to be processed by this URL-to-item-resolver.
*
* @param string $val The value of the baseUrls
*
* @return UrlMatchInfo
*/
public function setBaseUrls($val)
{
$this->_propDict["baseUrls"] = $val;
return $this;
}
/**
* Gets the urlPattern
* A regular expression that will be matched towards the URL that is processed by this URL-to-item-resolver. The ECMAScript specification for regular expressions (ECMA-262) is used for the evaluation. The named groups defined by the regular expression will be used later to extract values from the URL.
*
* @return string|null The urlPattern
*/
public function getUrlPattern()
{
if (array_key_exists("urlPattern", $this->_propDict)) {
return $this->_propDict["urlPattern"];
} else {
return null;
}
}
/**
* Sets the urlPattern
* A regular expression that will be matched towards the URL that is processed by this URL-to-item-resolver. The ECMAScript specification for regular expressions (ECMA-262) is used for the evaluation. The named groups defined by the regular expression will be used later to extract values from the URL.
*
* @param string $val The value of the urlPattern
*
* @return UrlMatchInfo
*/
public function setUrlPattern($val)
{
$this->_propDict["urlPattern"] = $val;
return $this;
}
}

View File

@ -0,0 +1,54 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* UrlToItemResolverBase 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\ExternalConnectors\Model;
/**
* UrlToItemResolverBase 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 UrlToItemResolverBase extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the priority
* The priority which defines the sequence in which the urlToItemResolverBase instances are evaluated.
*
* @return int|null The priority
*/
public function getPriority()
{
if (array_key_exists("priority", $this->_propDict)) {
return $this->_propDict["priority"];
} else {
return null;
}
}
/**
* Sets the priority
* The priority which defines the sequence in which the urlToItemResolverBase instances are evaluated.
*
* @param int $val The value of the priority
*
* @return UrlToItemResolverBase
*/
public function setPriority($val)
{
$this->_propDict["priority"] = $val;
return $this;
}
}

View File

@ -0,0 +1,192 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CustomTaskExtension 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\IdentityGovernanceNamespace\Model;
/**
* CustomTaskExtension 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 CustomTaskExtension extends \Beta\Microsoft\Graph\Model\CustomCalloutExtension
{
/**
* Gets the callbackConfiguration
* The callback configuration for a custom extension.
*
* @return \Beta\Microsoft\Graph\Model\CustomExtensionCallbackConfiguration|null The callbackConfiguration
*/
public function getCallbackConfiguration()
{
if (array_key_exists("callbackConfiguration", $this->_propDict)) {
if (is_a($this->_propDict["callbackConfiguration"], "\Beta\Microsoft\Graph\Model\CustomExtensionCallbackConfiguration") || is_null($this->_propDict["callbackConfiguration"])) {
return $this->_propDict["callbackConfiguration"];
} else {
$this->_propDict["callbackConfiguration"] = new \Beta\Microsoft\Graph\Model\CustomExtensionCallbackConfiguration($this->_propDict["callbackConfiguration"]);
return $this->_propDict["callbackConfiguration"];
}
}
return null;
}
/**
* Sets the callbackConfiguration
* The callback configuration for a custom extension.
*
* @param \Beta\Microsoft\Graph\Model\CustomExtensionCallbackConfiguration $val The callbackConfiguration
*
* @return CustomTaskExtension
*/
public function setCallbackConfiguration($val)
{
$this->_propDict["callbackConfiguration"] = $val;
return $this;
}
/**
* Gets the createdDateTime
* When the custom task extension was created.
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* When the custom task extension was created.
*
* @param \DateTime $val The createdDateTime
*
* @return CustomTaskExtension
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the lastModifiedDateTime
* When the custom extension was last modified.
*
* @return \DateTime|null The lastModifiedDateTime
*/
public function getLastModifiedDateTime()
{
if (array_key_exists("lastModifiedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) {
return $this->_propDict["lastModifiedDateTime"];
} else {
$this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]);
return $this->_propDict["lastModifiedDateTime"];
}
}
return null;
}
/**
* Sets the lastModifiedDateTime
* When the custom extension was last modified.
*
* @param \DateTime $val The lastModifiedDateTime
*
* @return CustomTaskExtension
*/
public function setLastModifiedDateTime($val)
{
$this->_propDict["lastModifiedDateTime"] = $val;
return $this;
}
/**
* Gets the createdBy
* The unique identifier of the Azure AD user that created the custom task extension.
*
* @return \Beta\Microsoft\Graph\Model\User|null The createdBy
*/
public function getCreatedBy()
{
if (array_key_exists("createdBy", $this->_propDict)) {
if (is_a($this->_propDict["createdBy"], "\Beta\Microsoft\Graph\Model\User") || is_null($this->_propDict["createdBy"])) {
return $this->_propDict["createdBy"];
} else {
$this->_propDict["createdBy"] = new \Beta\Microsoft\Graph\Model\User($this->_propDict["createdBy"]);
return $this->_propDict["createdBy"];
}
}
return null;
}
/**
* Sets the createdBy
* The unique identifier of the Azure AD user that created the custom task extension.
*
* @param \Beta\Microsoft\Graph\Model\User $val The createdBy
*
* @return CustomTaskExtension
*/
public function setCreatedBy($val)
{
$this->_propDict["createdBy"] = $val;
return $this;
}
/**
* Gets the lastModifiedBy
* The unique identifier of the Azure AD user that modified the custom task extension last.
*
* @return \Beta\Microsoft\Graph\Model\User|null The lastModifiedBy
*/
public function getLastModifiedBy()
{
if (array_key_exists("lastModifiedBy", $this->_propDict)) {
if (is_a($this->_propDict["lastModifiedBy"], "\Beta\Microsoft\Graph\Model\User") || is_null($this->_propDict["lastModifiedBy"])) {
return $this->_propDict["lastModifiedBy"];
} else {
$this->_propDict["lastModifiedBy"] = new \Beta\Microsoft\Graph\Model\User($this->_propDict["lastModifiedBy"]);
return $this->_propDict["lastModifiedBy"];
}
}
return null;
}
/**
* Sets the lastModifiedBy
* The unique identifier of the Azure AD user that modified the custom task extension last.
*
* @param \Beta\Microsoft\Graph\Model\User $val The lastModifiedBy
*
* @return CustomTaskExtension
*/
public function setLastModifiedBy($val)
{
$this->_propDict["lastModifiedBy"] = $val;
return $this;
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CustomTaskExtensionCallbackConfiguration 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\IdentityGovernanceNamespace\Model;
/**
* CustomTaskExtensionCallbackConfiguration 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 CustomTaskExtensionCallbackConfiguration extends \Beta\Microsoft\Graph\Model\CustomExtensionCallbackConfiguration
{
/**
* Set the @odata.type since this type is immediately descended from an abstract
* type that is referenced as the type in an entity.
* @param array $propDict The property dictionary
*/
public function __construct($propDict = array())
{
parent::__construct($propDict);
$this->setODataType("#microsoft.graph.identityGovernance.customTaskExtensionCallbackConfiguration");
}
}

View File

@ -0,0 +1,59 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CustomTaskExtensionCallbackData 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\IdentityGovernanceNamespace\Model;
/**
* CustomTaskExtensionCallbackData 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 CustomTaskExtensionCallbackData extends \Beta\Microsoft\Graph\Model\CustomExtensionData
{
/**
* Gets the operationStatus
* Operation status that's provided by the Azure Logic App indicating whenever the Azure Logic App has run successfully or not. Supported values: completed, failed, unknownFutureValue.
*
* @return CustomTaskExtensionOperationStatus|null The operationStatus
*/
public function getOperationStatus()
{
if (array_key_exists("operationStatus", $this->_propDict)) {
if (is_a($this->_propDict["operationStatus"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\CustomTaskExtensionOperationStatus") || is_null($this->_propDict["operationStatus"])) {
return $this->_propDict["operationStatus"];
} else {
$this->_propDict["operationStatus"] = new CustomTaskExtensionOperationStatus($this->_propDict["operationStatus"]);
return $this->_propDict["operationStatus"];
}
}
return null;
}
/**
* Sets the operationStatus
* Operation status that's provided by the Azure Logic App indicating whenever the Azure Logic App has run successfully or not. Supported values: completed, failed, unknownFutureValue.
*
* @param CustomTaskExtensionOperationStatus $val The value to assign to the operationStatus
*
* @return CustomTaskExtensionCallbackData The CustomTaskExtensionCallbackData
*/
public function setOperationStatus($val)
{
$this->_propDict["operationStatus"] = $val;
return $this;
}
}

View File

@ -0,0 +1,150 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CustomTaskExtensionCalloutData 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\IdentityGovernanceNamespace\Model;
/**
* CustomTaskExtensionCalloutData 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 CustomTaskExtensionCalloutData extends \Beta\Microsoft\Graph\Model\CustomExtensionData
{
/**
* Gets the subject
*
* @return \Beta\Microsoft\Graph\Model\User|null The subject
*/
public function getSubject()
{
if (array_key_exists("subject", $this->_propDict)) {
if (is_a($this->_propDict["subject"], "\Beta\Microsoft\Graph\Model\User") || is_null($this->_propDict["subject"])) {
return $this->_propDict["subject"];
} else {
$this->_propDict["subject"] = new \Beta\Microsoft\Graph\Model\User($this->_propDict["subject"]);
return $this->_propDict["subject"];
}
}
return null;
}
/**
* Sets the subject
*
* @param \Beta\Microsoft\Graph\Model\User $val The value to assign to the subject
*
* @return CustomTaskExtensionCalloutData The CustomTaskExtensionCalloutData
*/
public function setSubject($val)
{
$this->_propDict["subject"] = $val;
return $this;
}
/**
* Gets the task
*
* @return Task|null The task
*/
public function getTask()
{
if (array_key_exists("task", $this->_propDict)) {
if (is_a($this->_propDict["task"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\Task") || is_null($this->_propDict["task"])) {
return $this->_propDict["task"];
} else {
$this->_propDict["task"] = new Task($this->_propDict["task"]);
return $this->_propDict["task"];
}
}
return null;
}
/**
* Sets the task
*
* @param Task $val The value to assign to the task
*
* @return CustomTaskExtensionCalloutData The CustomTaskExtensionCalloutData
*/
public function setTask($val)
{
$this->_propDict["task"] = $val;
return $this;
}
/**
* Gets the taskProcessingresult
*
* @return TaskProcessingResult|null The taskProcessingresult
*/
public function getTaskProcessingresult()
{
if (array_key_exists("taskProcessingresult", $this->_propDict)) {
if (is_a($this->_propDict["taskProcessingresult"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\TaskProcessingResult") || is_null($this->_propDict["taskProcessingresult"])) {
return $this->_propDict["taskProcessingresult"];
} else {
$this->_propDict["taskProcessingresult"] = new TaskProcessingResult($this->_propDict["taskProcessingresult"]);
return $this->_propDict["taskProcessingresult"];
}
}
return null;
}
/**
* Sets the taskProcessingresult
*
* @param TaskProcessingResult $val The value to assign to the taskProcessingresult
*
* @return CustomTaskExtensionCalloutData The CustomTaskExtensionCalloutData
*/
public function setTaskProcessingresult($val)
{
$this->_propDict["taskProcessingresult"] = $val;
return $this;
}
/**
* Gets the workflow
*
* @return Workflow|null The workflow
*/
public function getWorkflow()
{
if (array_key_exists("workflow", $this->_propDict)) {
if (is_a($this->_propDict["workflow"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\Workflow") || is_null($this->_propDict["workflow"])) {
return $this->_propDict["workflow"];
} else {
$this->_propDict["workflow"] = new Workflow($this->_propDict["workflow"]);
return $this->_propDict["workflow"];
}
}
return null;
}
/**
* Sets the workflow
*
* @param Workflow $val The value to assign to the workflow
*
* @return CustomTaskExtensionCalloutData The CustomTaskExtensionCalloutData
*/
public function setWorkflow($val)
{
$this->_propDict["workflow"] = $val;
return $this;
}
}

View File

@ -0,0 +1,35 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CustomTaskExtensionOperationStatus 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\IdentityGovernanceNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* CustomTaskExtensionOperationStatus 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 CustomTaskExtensionOperationStatus extends Enum
{
/**
* The Enum CustomTaskExtensionOperationStatus
*/
const COMPLETED = "completed";
const FAILED = "failed";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,56 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* LifecycleManagementSettings 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\IdentityGovernanceNamespace\Model;
/**
* LifecycleManagementSettings 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 LifecycleManagementSettings extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the workflowScheduleIntervalInHours
* The interval in hours at which all workflows running in the tenant should be scheduled for execution. This interval has a minimum value of 1 and a maximum value of 24.
*
* @return int|null The workflowScheduleIntervalInHours
*/
public function getWorkflowScheduleIntervalInHours()
{
if (array_key_exists("workflowScheduleIntervalInHours", $this->_propDict)) {
return $this->_propDict["workflowScheduleIntervalInHours"];
} else {
return null;
}
}
/**
* Sets the workflowScheduleIntervalInHours
* The interval in hours at which all workflows running in the tenant should be scheduled for execution. This interval has a minimum value of 1 and a maximum value of 24.
*
* @param int $val The workflowScheduleIntervalInHours
*
* @return LifecycleManagementSettings
*/
public function setWorkflowScheduleIntervalInHours($val)
{
$this->_propDict["workflowScheduleIntervalInHours"] = intval($val);
return $this;
}
}

View File

@ -0,0 +1,35 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* LifecycleTaskCategory 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\IdentityGovernanceNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* LifecycleTaskCategory 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 LifecycleTaskCategory extends Enum
{
/**
* The Enum LifecycleTaskCategory
*/
const JOINER = "joiner";
const LEAVER = "leaver";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,35 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* LifecycleWorkflowCategory 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\IdentityGovernanceNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* LifecycleWorkflowCategory 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 LifecycleWorkflowCategory extends Enum
{
/**
* The Enum LifecycleWorkflowCategory
*/
const JOINER = "joiner";
const LEAVER = "leaver";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,39 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* LifecycleWorkflowProcessingStatus 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\IdentityGovernanceNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* LifecycleWorkflowProcessingStatus 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 LifecycleWorkflowProcessingStatus extends Enum
{
/**
* The Enum LifecycleWorkflowProcessingStatus
*/
const QUEUED = "queued";
const IN_PROGRESS = "inProgress";
const COMPLETED = "completed";
const COMPLETED_WITH_ERRORS = "completedWithErrors";
const CANCELED = "canceled";
const FAILED = "failed";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,213 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* LifecycleWorkflowsContainer 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\IdentityGovernanceNamespace\Model;
/**
* LifecycleWorkflowsContainer 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 LifecycleWorkflowsContainer extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the customTaskExtensions
* The customTaskExtension instance.
*
* @return array|null The customTaskExtensions
*/
public function getCustomTaskExtensions()
{
if (array_key_exists("customTaskExtensions", $this->_propDict)) {
return $this->_propDict["customTaskExtensions"];
} else {
return null;
}
}
/**
* Sets the customTaskExtensions
* The customTaskExtension instance.
*
* @param CustomTaskExtension[] $val The customTaskExtensions
*
* @return LifecycleWorkflowsContainer
*/
public function setCustomTaskExtensions($val)
{
$this->_propDict["customTaskExtensions"] = $val;
return $this;
}
/**
* Gets the deletedItems
* Deleted workflows in your lifecycle workflows instance.
*
* @return \Beta\Microsoft\Graph\Model\DeletedItemContainer|null The deletedItems
*/
public function getDeletedItems()
{
if (array_key_exists("deletedItems", $this->_propDict)) {
if (is_a($this->_propDict["deletedItems"], "\Beta\Microsoft\Graph\Model\DeletedItemContainer") || is_null($this->_propDict["deletedItems"])) {
return $this->_propDict["deletedItems"];
} else {
$this->_propDict["deletedItems"] = new \Beta\Microsoft\Graph\Model\DeletedItemContainer($this->_propDict["deletedItems"]);
return $this->_propDict["deletedItems"];
}
}
return null;
}
/**
* Sets the deletedItems
* Deleted workflows in your lifecycle workflows instance.
*
* @param \Beta\Microsoft\Graph\Model\DeletedItemContainer $val The deletedItems
*
* @return LifecycleWorkflowsContainer
*/
public function setDeletedItems($val)
{
$this->_propDict["deletedItems"] = $val;
return $this;
}
/**
* Gets the settings
* The settings of the lifecycle workflows instance.
*
* @return LifecycleManagementSettings|null The settings
*/
public function getSettings()
{
if (array_key_exists("settings", $this->_propDict)) {
if (is_a($this->_propDict["settings"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleManagementSettings") || is_null($this->_propDict["settings"])) {
return $this->_propDict["settings"];
} else {
$this->_propDict["settings"] = new LifecycleManagementSettings($this->_propDict["settings"]);
return $this->_propDict["settings"];
}
}
return null;
}
/**
* Sets the settings
* The settings of the lifecycle workflows instance.
*
* @param LifecycleManagementSettings $val The settings
*
* @return LifecycleWorkflowsContainer
*/
public function setSettings($val)
{
$this->_propDict["settings"] = $val;
return $this;
}
/**
* Gets the taskDefinitions
* The definition of tasks within the lifecycle workflows instance.
*
* @return array|null The taskDefinitions
*/
public function getTaskDefinitions()
{
if (array_key_exists("taskDefinitions", $this->_propDict)) {
return $this->_propDict["taskDefinitions"];
} else {
return null;
}
}
/**
* Sets the taskDefinitions
* The definition of tasks within the lifecycle workflows instance.
*
* @param TaskDefinition[] $val The taskDefinitions
*
* @return LifecycleWorkflowsContainer
*/
public function setTaskDefinitions($val)
{
$this->_propDict["taskDefinitions"] = $val;
return $this;
}
/**
* Gets the workflows
* The workflows in the lifecycle workflows instance.
*
* @return array|null The workflows
*/
public function getWorkflows()
{
if (array_key_exists("workflows", $this->_propDict)) {
return $this->_propDict["workflows"];
} else {
return null;
}
}
/**
* Sets the workflows
* The workflows in the lifecycle workflows instance.
*
* @param Workflow[] $val The workflows
*
* @return LifecycleWorkflowsContainer
*/
public function setWorkflows($val)
{
$this->_propDict["workflows"] = $val;
return $this;
}
/**
* Gets the workflowTemplates
* The workflow templates in the lifecycle workflow instance.
*
* @return array|null The workflowTemplates
*/
public function getWorkflowTemplates()
{
if (array_key_exists("workflowTemplates", $this->_propDict)) {
return $this->_propDict["workflowTemplates"];
} else {
return null;
}
}
/**
* Sets the workflowTemplates
* The workflow templates in the lifecycle workflow instance.
*
* @param WorkflowTemplate[] $val The workflowTemplates
*
* @return LifecycleWorkflowsContainer
*/
public function setWorkflowTemplates($val)
{
$this->_propDict["workflowTemplates"] = $val;
return $this;
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* OnDemandExecutionOnly 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\IdentityGovernanceNamespace\Model;
/**
* OnDemandExecutionOnly 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 OnDemandExecutionOnly extends WorkflowExecutionConditions
{
/**
* Set the @odata.type since this type is immediately descended from an abstract
* type that is referenced as the type in an entity.
* @param array $propDict The property dictionary
*/
public function __construct($propDict = array())
{
parent::__construct($propDict);
$this->setODataType("#microsoft.graph.identityGovernance.onDemandExecutionOnly");
}
}

View File

@ -0,0 +1,115 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Parameter 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\IdentityGovernanceNamespace\Model;
/**
* Parameter 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 Parameter extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the name
* The name of the parameter.
*
* @return string|null The name
*/
public function getName()
{
if (array_key_exists("name", $this->_propDict)) {
return $this->_propDict["name"];
} else {
return null;
}
}
/**
* Sets the name
* The name of the parameter.
*
* @param string $val The value of the name
*
* @return Parameter
*/
public function setName($val)
{
$this->_propDict["name"] = $val;
return $this;
}
/**
* Gets the values
* The values of the parameter.
*
* @return string|null The values
*/
public function getValues()
{
if (array_key_exists("values", $this->_propDict)) {
return $this->_propDict["values"];
} else {
return null;
}
}
/**
* Sets the values
* The values of the parameter.
*
* @param string $val The value of the values
*
* @return Parameter
*/
public function setValues($val)
{
$this->_propDict["values"] = $val;
return $this;
}
/**
* Gets the valueType
* The value type of the parameter. The possible values are: enum, string, int, bool, unknownFutureValue.
*
* @return ValueType|null The valueType
*/
public function getValueType()
{
if (array_key_exists("valueType", $this->_propDict)) {
if (is_a($this->_propDict["valueType"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\ValueType") || is_null($this->_propDict["valueType"])) {
return $this->_propDict["valueType"];
} else {
$this->_propDict["valueType"] = new ValueType($this->_propDict["valueType"]);
return $this->_propDict["valueType"];
}
}
return null;
}
/**
* Sets the valueType
* The value type of the parameter. The possible values are: enum, string, int, bool, unknownFutureValue.
*
* @param ValueType $val The value to assign to the valueType
*
* @return Parameter The Parameter
*/
public function setValueType($val)
{
$this->_propDict["valueType"] = $val;
return $this;
}
}

View File

@ -2,7 +2,7 @@
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* RestrictedSignIn File
* RuleBasedSubjectSet File
* PHP version 7
*
* @category Library
@ -11,10 +11,9 @@
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
namespace Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model;
/**
* RestrictedSignIn class
* RuleBasedSubjectSet class
*
* @category Model
* @package Microsoft.Graph
@ -22,33 +21,34 @@ namespace Microsoft\Graph\Model;
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class RestrictedSignIn extends SignIn
class RuleBasedSubjectSet extends \Beta\Microsoft\Graph\Model\SubjectSet
{
/**
* Gets the targetTenantId
* Gets the rule
* The rule for the subject set.
*
* @return string|null The targetTenantId
* @return string|null The rule
*/
public function getTargetTenantId()
public function getRule()
{
if (array_key_exists("targetTenantId", $this->_propDict)) {
return $this->_propDict["targetTenantId"];
if (array_key_exists("rule", $this->_propDict)) {
return $this->_propDict["rule"];
} else {
return null;
}
}
/**
* Sets the targetTenantId
* Sets the rule
* The rule for the subject set.
*
* @param string $val The targetTenantId
* @param string $val The value of the rule
*
* @return RestrictedSignIn
* @return RuleBasedSubjectSet
*/
public function setTargetTenantId($val)
public function setRule($val)
{
$this->_propDict["targetTenantId"] = $val;
$this->_propDict["rule"] = $val;
return $this;
}
}

View File

@ -0,0 +1,457 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Run 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\IdentityGovernanceNamespace\Model;
/**
* Run 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 Run extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the completedDateTime
* The date time that the run completed. Value is null if the workflow hasn't completed. Optional.
*
* @return \DateTime|null The completedDateTime
*/
public function getCompletedDateTime()
{
if (array_key_exists("completedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["completedDateTime"], "\DateTime") || is_null($this->_propDict["completedDateTime"])) {
return $this->_propDict["completedDateTime"];
} else {
$this->_propDict["completedDateTime"] = new \DateTime($this->_propDict["completedDateTime"]);
return $this->_propDict["completedDateTime"];
}
}
return null;
}
/**
* Sets the completedDateTime
* The date time that the run completed. Value is null if the workflow hasn't completed. Optional.
*
* @param \DateTime $val The completedDateTime
*
* @return Run
*/
public function setCompletedDateTime($val)
{
$this->_propDict["completedDateTime"] = $val;
return $this;
}
/**
* Gets the failedTasksCount
* The number of tasks that failed in the run execution. Required.
*
* @return int|null The failedTasksCount
*/
public function getFailedTasksCount()
{
if (array_key_exists("failedTasksCount", $this->_propDict)) {
return $this->_propDict["failedTasksCount"];
} else {
return null;
}
}
/**
* Sets the failedTasksCount
* The number of tasks that failed in the run execution. Required.
*
* @param int $val The failedTasksCount
*
* @return Run
*/
public function setFailedTasksCount($val)
{
$this->_propDict["failedTasksCount"] = intval($val);
return $this;
}
/**
* Gets the failedUsersCount
* The number of users that failed in the run execution. Required.
*
* @return int|null The failedUsersCount
*/
public function getFailedUsersCount()
{
if (array_key_exists("failedUsersCount", $this->_propDict)) {
return $this->_propDict["failedUsersCount"];
} else {
return null;
}
}
/**
* Sets the failedUsersCount
* The number of users that failed in the run execution. Required.
*
* @param int $val The failedUsersCount
*
* @return Run
*/
public function setFailedUsersCount($val)
{
$this->_propDict["failedUsersCount"] = intval($val);
return $this;
}
/**
* Gets the lastUpdatedDateTime
* The datetime that the run was last updated. Optional.
*
* @return \DateTime|null The lastUpdatedDateTime
*/
public function getLastUpdatedDateTime()
{
if (array_key_exists("lastUpdatedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastUpdatedDateTime"], "\DateTime") || is_null($this->_propDict["lastUpdatedDateTime"])) {
return $this->_propDict["lastUpdatedDateTime"];
} else {
$this->_propDict["lastUpdatedDateTime"] = new \DateTime($this->_propDict["lastUpdatedDateTime"]);
return $this->_propDict["lastUpdatedDateTime"];
}
}
return null;
}
/**
* Sets the lastUpdatedDateTime
* The datetime that the run was last updated. Optional.
*
* @param \DateTime $val The lastUpdatedDateTime
*
* @return Run
*/
public function setLastUpdatedDateTime($val)
{
$this->_propDict["lastUpdatedDateTime"] = $val;
return $this;
}
/**
* Gets the processingStatus
* The run execution status. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue. Required.
*
* @return LifecycleWorkflowProcessingStatus|null The processingStatus
*/
public function getProcessingStatus()
{
if (array_key_exists("processingStatus", $this->_propDict)) {
if (is_a($this->_propDict["processingStatus"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleWorkflowProcessingStatus") || is_null($this->_propDict["processingStatus"])) {
return $this->_propDict["processingStatus"];
} else {
$this->_propDict["processingStatus"] = new LifecycleWorkflowProcessingStatus($this->_propDict["processingStatus"]);
return $this->_propDict["processingStatus"];
}
}
return null;
}
/**
* Sets the processingStatus
* The run execution status. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue. Required.
*
* @param LifecycleWorkflowProcessingStatus $val The processingStatus
*
* @return Run
*/
public function setProcessingStatus($val)
{
$this->_propDict["processingStatus"] = $val;
return $this;
}
/**
* Gets the scheduledDateTime
* The date time that the run is scheduled to be executed for a workflow. Required.
*
* @return \DateTime|null The scheduledDateTime
*/
public function getScheduledDateTime()
{
if (array_key_exists("scheduledDateTime", $this->_propDict)) {
if (is_a($this->_propDict["scheduledDateTime"], "\DateTime") || is_null($this->_propDict["scheduledDateTime"])) {
return $this->_propDict["scheduledDateTime"];
} else {
$this->_propDict["scheduledDateTime"] = new \DateTime($this->_propDict["scheduledDateTime"]);
return $this->_propDict["scheduledDateTime"];
}
}
return null;
}
/**
* Sets the scheduledDateTime
* The date time that the run is scheduled to be executed for a workflow. Required.
*
* @param \DateTime $val The scheduledDateTime
*
* @return Run
*/
public function setScheduledDateTime($val)
{
$this->_propDict["scheduledDateTime"] = $val;
return $this;
}
/**
* Gets the startedDateTime
* The date time that the run execution started. Optional.
*
* @return \DateTime|null The startedDateTime
*/
public function getStartedDateTime()
{
if (array_key_exists("startedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["startedDateTime"], "\DateTime") || is_null($this->_propDict["startedDateTime"])) {
return $this->_propDict["startedDateTime"];
} else {
$this->_propDict["startedDateTime"] = new \DateTime($this->_propDict["startedDateTime"]);
return $this->_propDict["startedDateTime"];
}
}
return null;
}
/**
* Sets the startedDateTime
* The date time that the run execution started. Optional.
*
* @param \DateTime $val The startedDateTime
*
* @return Run
*/
public function setStartedDateTime($val)
{
$this->_propDict["startedDateTime"] = $val;
return $this;
}
/**
* Gets the successfulUsersCount
* The number of successfully completed users in the run. Required.
*
* @return int|null The successfulUsersCount
*/
public function getSuccessfulUsersCount()
{
if (array_key_exists("successfulUsersCount", $this->_propDict)) {
return $this->_propDict["successfulUsersCount"];
} else {
return null;
}
}
/**
* Sets the successfulUsersCount
* The number of successfully completed users in the run. Required.
*
* @param int $val The successfulUsersCount
*
* @return Run
*/
public function setSuccessfulUsersCount($val)
{
$this->_propDict["successfulUsersCount"] = intval($val);
return $this;
}
/**
* Gets the totalTasksCount
*
* @return int|null The totalTasksCount
*/
public function getTotalTasksCount()
{
if (array_key_exists("totalTasksCount", $this->_propDict)) {
return $this->_propDict["totalTasksCount"];
} else {
return null;
}
}
/**
* Sets the totalTasksCount
*
* @param int $val The totalTasksCount
*
* @return Run
*/
public function setTotalTasksCount($val)
{
$this->_propDict["totalTasksCount"] = intval($val);
return $this;
}
/**
* Gets the totalUnprocessedTasksCount
* The total number of unprocessed tasks in the run execution. Required.
*
* @return int|null The totalUnprocessedTasksCount
*/
public function getTotalUnprocessedTasksCount()
{
if (array_key_exists("totalUnprocessedTasksCount", $this->_propDict)) {
return $this->_propDict["totalUnprocessedTasksCount"];
} else {
return null;
}
}
/**
* Sets the totalUnprocessedTasksCount
* The total number of unprocessed tasks in the run execution. Required.
*
* @param int $val The totalUnprocessedTasksCount
*
* @return Run
*/
public function setTotalUnprocessedTasksCount($val)
{
$this->_propDict["totalUnprocessedTasksCount"] = intval($val);
return $this;
}
/**
* Gets the totalUsersCount
* The total number of users in the workflow execution. Required.
*
* @return int|null The totalUsersCount
*/
public function getTotalUsersCount()
{
if (array_key_exists("totalUsersCount", $this->_propDict)) {
return $this->_propDict["totalUsersCount"];
} else {
return null;
}
}
/**
* Sets the totalUsersCount
* The total number of users in the workflow execution. Required.
*
* @param int $val The totalUsersCount
*
* @return Run
*/
public function setTotalUsersCount($val)
{
$this->_propDict["totalUsersCount"] = intval($val);
return $this;
}
/**
* Gets the workflowExecutionType
* The execution type of the workflows associated with the run. The possible values are: scheduled, onDemand, unknownFutureValue. Required.
*
* @return WorkflowExecutionType|null The workflowExecutionType
*/
public function getWorkflowExecutionType()
{
if (array_key_exists("workflowExecutionType", $this->_propDict)) {
if (is_a($this->_propDict["workflowExecutionType"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\WorkflowExecutionType") || is_null($this->_propDict["workflowExecutionType"])) {
return $this->_propDict["workflowExecutionType"];
} else {
$this->_propDict["workflowExecutionType"] = new WorkflowExecutionType($this->_propDict["workflowExecutionType"]);
return $this->_propDict["workflowExecutionType"];
}
}
return null;
}
/**
* Sets the workflowExecutionType
* The execution type of the workflows associated with the run. The possible values are: scheduled, onDemand, unknownFutureValue. Required.
*
* @param WorkflowExecutionType $val The workflowExecutionType
*
* @return Run
*/
public function setWorkflowExecutionType($val)
{
$this->_propDict["workflowExecutionType"] = $val;
return $this;
}
/**
* Gets the taskProcessingResults
* The related taskProcessingResults.
*
* @return array|null The taskProcessingResults
*/
public function getTaskProcessingResults()
{
if (array_key_exists("taskProcessingResults", $this->_propDict)) {
return $this->_propDict["taskProcessingResults"];
} else {
return null;
}
}
/**
* Sets the taskProcessingResults
* The related taskProcessingResults.
*
* @param TaskProcessingResult[] $val The taskProcessingResults
*
* @return Run
*/
public function setTaskProcessingResults($val)
{
$this->_propDict["taskProcessingResults"] = $val;
return $this;
}
/**
* Gets the userProcessingResults
* The associated individual user execution.
*
* @return array|null The userProcessingResults
*/
public function getUserProcessingResults()
{
if (array_key_exists("userProcessingResults", $this->_propDict)) {
return $this->_propDict["userProcessingResults"];
} else {
return null;
}
}
/**
* Sets the userProcessingResults
* The associated individual user execution.
*
* @param UserProcessingResult[] $val The userProcessingResults
*
* @return Run
*/
public function setUserProcessingResults($val)
{
$this->_propDict["userProcessingResults"] = $val;
return $this;
}
}

View File

@ -0,0 +1,190 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* RunSummary 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\IdentityGovernanceNamespace\Model;
/**
* RunSummary 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 RunSummary extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the failedRuns
* The number of failed workflow runs.
*
* @return int|null The failedRuns
*/
public function getFailedRuns()
{
if (array_key_exists("failedRuns", $this->_propDict)) {
return $this->_propDict["failedRuns"];
} else {
return null;
}
}
/**
* Sets the failedRuns
* The number of failed workflow runs.
*
* @param int $val The value of the failedRuns
*
* @return RunSummary
*/
public function setFailedRuns($val)
{
$this->_propDict["failedRuns"] = $val;
return $this;
}
/**
* Gets the failedTasks
* The number of failed tasks of a workflow.
*
* @return int|null The failedTasks
*/
public function getFailedTasks()
{
if (array_key_exists("failedTasks", $this->_propDict)) {
return $this->_propDict["failedTasks"];
} else {
return null;
}
}
/**
* Sets the failedTasks
* The number of failed tasks of a workflow.
*
* @param int $val The value of the failedTasks
*
* @return RunSummary
*/
public function setFailedTasks($val)
{
$this->_propDict["failedTasks"] = $val;
return $this;
}
/**
* Gets the successfulRuns
* The number of successful workflow runs.
*
* @return int|null The successfulRuns
*/
public function getSuccessfulRuns()
{
if (array_key_exists("successfulRuns", $this->_propDict)) {
return $this->_propDict["successfulRuns"];
} else {
return null;
}
}
/**
* Sets the successfulRuns
* The number of successful workflow runs.
*
* @param int $val The value of the successfulRuns
*
* @return RunSummary
*/
public function setSuccessfulRuns($val)
{
$this->_propDict["successfulRuns"] = $val;
return $this;
}
/**
* Gets the totalRuns
* The total number of runs for a workflow.
*
* @return int|null The totalRuns
*/
public function getTotalRuns()
{
if (array_key_exists("totalRuns", $this->_propDict)) {
return $this->_propDict["totalRuns"];
} else {
return null;
}
}
/**
* Sets the totalRuns
* The total number of runs for a workflow.
*
* @param int $val The value of the totalRuns
*
* @return RunSummary
*/
public function setTotalRuns($val)
{
$this->_propDict["totalRuns"] = $val;
return $this;
}
/**
* Gets the totalTasks
*
* @return int|null The totalTasks
*/
public function getTotalTasks()
{
if (array_key_exists("totalTasks", $this->_propDict)) {
return $this->_propDict["totalTasks"];
} else {
return null;
}
}
/**
* Sets the totalTasks
*
* @param int $val The value of the totalTasks
*
* @return RunSummary
*/
public function setTotalTasks($val)
{
$this->_propDict["totalTasks"] = $val;
return $this;
}
/**
* Gets the totalUsers
*
* @return int|null The totalUsers
*/
public function getTotalUsers()
{
if (array_key_exists("totalUsers", $this->_propDict)) {
return $this->_propDict["totalUsers"];
} else {
return null;
}
}
/**
* Sets the totalUsers
*
* @param int $val The value of the totalUsers
*
* @return RunSummary
*/
public function setTotalUsers($val)
{
$this->_propDict["totalUsers"] = $val;
return $this;
}
}

View File

@ -0,0 +1,294 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Task 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\IdentityGovernanceNamespace\Model;
/**
* Task 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 Task extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the arguments
* Arguments included within the task.
*
* @return array|null The arguments
*/
public function getArguments()
{
if (array_key_exists("arguments", $this->_propDict)) {
return $this->_propDict["arguments"];
} else {
return null;
}
}
/**
* Sets the arguments
* Arguments included within the task.
*
* @param \Beta\Microsoft\Graph\Model\KeyValuePair[] $val The arguments
*
* @return Task
*/
public function setArguments($val)
{
$this->_propDict["arguments"] = $val;
return $this;
}
/**
* Gets the category
* The category of the task. The possible values are: joiner, leaver, unknownFutureValue. This property is multi-valued and the same task can apply to both joiner and leaver categories.
*
* @return LifecycleTaskCategory|null The category
*/
public function getCategory()
{
if (array_key_exists("category", $this->_propDict)) {
if (is_a($this->_propDict["category"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleTaskCategory") || is_null($this->_propDict["category"])) {
return $this->_propDict["category"];
} else {
$this->_propDict["category"] = new LifecycleTaskCategory($this->_propDict["category"]);
return $this->_propDict["category"];
}
}
return null;
}
/**
* Sets the category
* The category of the task. The possible values are: joiner, leaver, unknownFutureValue. This property is multi-valued and the same task can apply to both joiner and leaver categories.
*
* @param LifecycleTaskCategory $val The category
*
* @return Task
*/
public function setCategory($val)
{
$this->_propDict["category"] = $val;
return $this;
}
/**
* Gets the continueOnError
* A boolean value that determines if the failure of this task stops the subsequent workflows from running.
*
* @return bool|null The continueOnError
*/
public function getContinueOnError()
{
if (array_key_exists("continueOnError", $this->_propDict)) {
return $this->_propDict["continueOnError"];
} else {
return null;
}
}
/**
* Sets the continueOnError
* A boolean value that determines if the failure of this task stops the subsequent workflows from running.
*
* @param bool $val The continueOnError
*
* @return Task
*/
public function setContinueOnError($val)
{
$this->_propDict["continueOnError"] = boolval($val);
return $this;
}
/**
* Gets the description
* A string that describes the purpose of the task for administrative use.
*
* @return string|null The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
* A string that describes the purpose of the task for administrative use.
*
* @param string $val The description
*
* @return Task
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* A unique string that identifies the task. Supports $filter(eq) and orderBy.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* A unique string that identifies the task. Supports $filter(eq) and orderBy.
*
* @param string $val The displayName
*
* @return Task
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the executionSequence
* An integer that states in what order the task will run in a workflow.
*
* @return int|null The executionSequence
*/
public function getExecutionSequence()
{
if (array_key_exists("executionSequence", $this->_propDict)) {
return $this->_propDict["executionSequence"];
} else {
return null;
}
}
/**
* Sets the executionSequence
* An integer that states in what order the task will run in a workflow.
*
* @param int $val The executionSequence
*
* @return Task
*/
public function setExecutionSequence($val)
{
$this->_propDict["executionSequence"] = intval($val);
return $this;
}
/**
* Gets the isEnabled
* A boolean value that denotes whether the task is set to run or not. Supports $filter(eq, ne) and orderBy.
*
* @return bool|null The isEnabled
*/
public function getIsEnabled()
{
if (array_key_exists("isEnabled", $this->_propDict)) {
return $this->_propDict["isEnabled"];
} else {
return null;
}
}
/**
* Sets the isEnabled
* A boolean value that denotes whether the task is set to run or not. Supports $filter(eq, ne) and orderBy.
*
* @param bool $val The isEnabled
*
* @return Task
*/
public function setIsEnabled($val)
{
$this->_propDict["isEnabled"] = boolval($val);
return $this;
}
/**
* Gets the taskDefinitionId
* A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see supported tasks
*
* @return string|null The taskDefinitionId
*/
public function getTaskDefinitionId()
{
if (array_key_exists("taskDefinitionId", $this->_propDict)) {
return $this->_propDict["taskDefinitionId"];
} else {
return null;
}
}
/**
* Sets the taskDefinitionId
* A unique template identifier for the task. For more information about the tasks that Lifecycle Workflows currently supports and their unique identifiers, see supported tasks
*
* @param string $val The taskDefinitionId
*
* @return Task
*/
public function setTaskDefinitionId($val)
{
$this->_propDict["taskDefinitionId"] = $val;
return $this;
}
/**
* Gets the taskProcessingResults
* The result of processing the task.
*
* @return array|null The taskProcessingResults
*/
public function getTaskProcessingResults()
{
if (array_key_exists("taskProcessingResults", $this->_propDict)) {
return $this->_propDict["taskProcessingResults"];
} else {
return null;
}
}
/**
* Sets the taskProcessingResults
* The result of processing the task.
*
* @param TaskProcessingResult[] $val The taskProcessingResults
*
* @return Task
*/
public function setTaskProcessingResults($val)
{
$this->_propDict["taskProcessingResults"] = $val;
return $this;
}
}

View File

@ -0,0 +1,204 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* TaskDefinition 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\IdentityGovernanceNamespace\Model;
/**
* TaskDefinition 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 TaskDefinition extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the category
* The category of the HR function that the tasks created using this definition can be used with. The possible values are: joiner, leaver.
*
* @return LifecycleTaskCategory|null The category
*/
public function getCategory()
{
if (array_key_exists("category", $this->_propDict)) {
if (is_a($this->_propDict["category"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleTaskCategory") || is_null($this->_propDict["category"])) {
return $this->_propDict["category"];
} else {
$this->_propDict["category"] = new LifecycleTaskCategory($this->_propDict["category"]);
return $this->_propDict["category"];
}
}
return null;
}
/**
* Sets the category
* The category of the HR function that the tasks created using this definition can be used with. The possible values are: joiner, leaver.
*
* @param LifecycleTaskCategory $val The category
*
* @return TaskDefinition
*/
public function setCategory($val)
{
$this->_propDict["category"] = $val;
return $this;
}
/**
* Gets the continueOnError
*
* @return bool|null The continueOnError
*/
public function getContinueOnError()
{
if (array_key_exists("continueOnError", $this->_propDict)) {
return $this->_propDict["continueOnError"];
} else {
return null;
}
}
/**
* Sets the continueOnError
*
* @param bool $val The continueOnError
*
* @return TaskDefinition
*/
public function setContinueOnError($val)
{
$this->_propDict["continueOnError"] = boolval($val);
return $this;
}
/**
* Gets the description
* The description of the taskDefinition.
*
* @return string|null The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
* The description of the taskDefinition.
*
* @param string $val The description
*
* @return TaskDefinition
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* The display name of the taskDefinition.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* The display name of the taskDefinition.
*
* @param string $val The displayName
*
* @return TaskDefinition
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the parameters
* The parameters that must be supplied when creating a task.
*
* @return array|null The parameters
*/
public function getParameters()
{
if (array_key_exists("parameters", $this->_propDict)) {
return $this->_propDict["parameters"];
} else {
return null;
}
}
/**
* Sets the parameters
* The parameters that must be supplied when creating a task.
*
* @param Parameter[] $val The parameters
*
* @return TaskDefinition
*/
public function setParameters($val)
{
$this->_propDict["parameters"] = $val;
return $this;
}
/**
* Gets the version
* The version number of the taskDefinition. New records are pushed when we add support for new parameters.
*
* @return int|null The version
*/
public function getVersion()
{
if (array_key_exists("version", $this->_propDict)) {
return $this->_propDict["version"];
} else {
return null;
}
}
/**
* Sets the version
* The version number of the taskDefinition. New records are pushed when we add support for new parameters.
*
* @param int $val The version
*
* @return TaskDefinition
*/
public function setVersion($val)
{
$this->_propDict["version"] = intval($val);
return $this;
}
}

View File

@ -0,0 +1,254 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* TaskProcessingResult 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\IdentityGovernanceNamespace\Model;
/**
* TaskProcessingResult 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 TaskProcessingResult extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the completedDateTime
* The date time when taskProcessingResult execution ended. Value is null if task execution is still in progress.
*
* @return \DateTime|null The completedDateTime
*/
public function getCompletedDateTime()
{
if (array_key_exists("completedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["completedDateTime"], "\DateTime") || is_null($this->_propDict["completedDateTime"])) {
return $this->_propDict["completedDateTime"];
} else {
$this->_propDict["completedDateTime"] = new \DateTime($this->_propDict["completedDateTime"]);
return $this->_propDict["completedDateTime"];
}
}
return null;
}
/**
* Sets the completedDateTime
* The date time when taskProcessingResult execution ended. Value is null if task execution is still in progress.
*
* @param \DateTime $val The completedDateTime
*
* @return TaskProcessingResult
*/
public function setCompletedDateTime($val)
{
$this->_propDict["completedDateTime"] = $val;
return $this;
}
/**
* Gets the createdDateTime
* The date time when the taskProcessingResult was created. Supports $filter(lt, gt) and orderBy.
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* The date time when the taskProcessingResult was created. Supports $filter(lt, gt) and orderBy.
*
* @param \DateTime $val The createdDateTime
*
* @return TaskProcessingResult
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the failureReason
* Describes why the taskProcessingResult has failed.
*
* @return string|null The failureReason
*/
public function getFailureReason()
{
if (array_key_exists("failureReason", $this->_propDict)) {
return $this->_propDict["failureReason"];
} else {
return null;
}
}
/**
* Sets the failureReason
* Describes why the taskProcessingResult has failed.
*
* @param string $val The failureReason
*
* @return TaskProcessingResult
*/
public function setFailureReason($val)
{
$this->_propDict["failureReason"] = $val;
return $this;
}
/**
* Gets the processingStatus
* Describes the execution status of the taskProcessingResult. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue. Supports $filter(eq).
*
* @return LifecycleWorkflowProcessingStatus|null The processingStatus
*/
public function getProcessingStatus()
{
if (array_key_exists("processingStatus", $this->_propDict)) {
if (is_a($this->_propDict["processingStatus"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleWorkflowProcessingStatus") || is_null($this->_propDict["processingStatus"])) {
return $this->_propDict["processingStatus"];
} else {
$this->_propDict["processingStatus"] = new LifecycleWorkflowProcessingStatus($this->_propDict["processingStatus"]);
return $this->_propDict["processingStatus"];
}
}
return null;
}
/**
* Sets the processingStatus
* Describes the execution status of the taskProcessingResult. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue. Supports $filter(eq).
*
* @param LifecycleWorkflowProcessingStatus $val The processingStatus
*
* @return TaskProcessingResult
*/
public function setProcessingStatus($val)
{
$this->_propDict["processingStatus"] = $val;
return $this;
}
/**
* Gets the startedDateTime
* The date time when taskProcessingResult execution started. Value is null if task execution has not yet started. Supports $filter(lt, gt) and orderBy.
*
* @return \DateTime|null The startedDateTime
*/
public function getStartedDateTime()
{
if (array_key_exists("startedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["startedDateTime"], "\DateTime") || is_null($this->_propDict["startedDateTime"])) {
return $this->_propDict["startedDateTime"];
} else {
$this->_propDict["startedDateTime"] = new \DateTime($this->_propDict["startedDateTime"]);
return $this->_propDict["startedDateTime"];
}
}
return null;
}
/**
* Sets the startedDateTime
* The date time when taskProcessingResult execution started. Value is null if task execution has not yet started. Supports $filter(lt, gt) and orderBy.
*
* @param \DateTime $val The startedDateTime
*
* @return TaskProcessingResult
*/
public function setStartedDateTime($val)
{
$this->_propDict["startedDateTime"] = $val;
return $this;
}
/**
* Gets the subject
* The unique identifier of the Azure AD user targeted for the task execution.
*
* @return \Beta\Microsoft\Graph\Model\User|null The subject
*/
public function getSubject()
{
if (array_key_exists("subject", $this->_propDict)) {
if (is_a($this->_propDict["subject"], "\Beta\Microsoft\Graph\Model\User") || is_null($this->_propDict["subject"])) {
return $this->_propDict["subject"];
} else {
$this->_propDict["subject"] = new \Beta\Microsoft\Graph\Model\User($this->_propDict["subject"]);
return $this->_propDict["subject"];
}
}
return null;
}
/**
* Sets the subject
* The unique identifier of the Azure AD user targeted for the task execution.
*
* @param \Beta\Microsoft\Graph\Model\User $val The subject
*
* @return TaskProcessingResult
*/
public function setSubject($val)
{
$this->_propDict["subject"] = $val;
return $this;
}
/**
* Gets the task
* The related workflow task
*
* @return Task|null The task
*/
public function getTask()
{
if (array_key_exists("task", $this->_propDict)) {
if (is_a($this->_propDict["task"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\Task") || is_null($this->_propDict["task"])) {
return $this->_propDict["task"];
} else {
$this->_propDict["task"] = new Task($this->_propDict["task"]);
return $this->_propDict["task"];
}
}
return null;
}
/**
* Sets the task
* The related workflow task
*
* @param Task $val The task
*
* @return TaskProcessingResult
*/
public function setTask($val)
{
$this->_propDict["task"] = $val;
return $this;
}
}

View File

@ -0,0 +1,400 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* TaskReport 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\IdentityGovernanceNamespace\Model;
/**
* TaskReport 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 TaskReport extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the completedDateTime
* The date time that the associated run completed. Value is null if the run has not completed.
*
* @return \DateTime|null The completedDateTime
*/
public function getCompletedDateTime()
{
if (array_key_exists("completedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["completedDateTime"], "\DateTime") || is_null($this->_propDict["completedDateTime"])) {
return $this->_propDict["completedDateTime"];
} else {
$this->_propDict["completedDateTime"] = new \DateTime($this->_propDict["completedDateTime"]);
return $this->_propDict["completedDateTime"];
}
}
return null;
}
/**
* Sets the completedDateTime
* The date time that the associated run completed. Value is null if the run has not completed.
*
* @param \DateTime $val The completedDateTime
*
* @return TaskReport
*/
public function setCompletedDateTime($val)
{
$this->_propDict["completedDateTime"] = $val;
return $this;
}
/**
* Gets the failedUsersCount
* The number of users in the run execution for which the associated task failed.
*
* @return int|null The failedUsersCount
*/
public function getFailedUsersCount()
{
if (array_key_exists("failedUsersCount", $this->_propDict)) {
return $this->_propDict["failedUsersCount"];
} else {
return null;
}
}
/**
* Sets the failedUsersCount
* The number of users in the run execution for which the associated task failed.
*
* @param int $val The failedUsersCount
*
* @return TaskReport
*/
public function setFailedUsersCount($val)
{
$this->_propDict["failedUsersCount"] = intval($val);
return $this;
}
/**
* Gets the lastUpdatedDateTime
* The date and time that the task report was last updated.
*
* @return \DateTime|null The lastUpdatedDateTime
*/
public function getLastUpdatedDateTime()
{
if (array_key_exists("lastUpdatedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastUpdatedDateTime"], "\DateTime") || is_null($this->_propDict["lastUpdatedDateTime"])) {
return $this->_propDict["lastUpdatedDateTime"];
} else {
$this->_propDict["lastUpdatedDateTime"] = new \DateTime($this->_propDict["lastUpdatedDateTime"]);
return $this->_propDict["lastUpdatedDateTime"];
}
}
return null;
}
/**
* Sets the lastUpdatedDateTime
* The date and time that the task report was last updated.
*
* @param \DateTime $val The lastUpdatedDateTime
*
* @return TaskReport
*/
public function setLastUpdatedDateTime($val)
{
$this->_propDict["lastUpdatedDateTime"] = $val;
return $this;
}
/**
* Gets the processingStatus
* The processing status of the associated task based on the taskProcessingResults. The possible values are based on the number of queued, inProgress, completed, completedWithErrors, canceled, failed, and unknownFutureValue.
*
* @return LifecycleWorkflowProcessingStatus|null The processingStatus
*/
public function getProcessingStatus()
{
if (array_key_exists("processingStatus", $this->_propDict)) {
if (is_a($this->_propDict["processingStatus"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleWorkflowProcessingStatus") || is_null($this->_propDict["processingStatus"])) {
return $this->_propDict["processingStatus"];
} else {
$this->_propDict["processingStatus"] = new LifecycleWorkflowProcessingStatus($this->_propDict["processingStatus"]);
return $this->_propDict["processingStatus"];
}
}
return null;
}
/**
* Sets the processingStatus
* The processing status of the associated task based on the taskProcessingResults. The possible values are based on the number of queued, inProgress, completed, completedWithErrors, canceled, failed, and unknownFutureValue.
*
* @param LifecycleWorkflowProcessingStatus $val The processingStatus
*
* @return TaskReport
*/
public function setProcessingStatus($val)
{
$this->_propDict["processingStatus"] = $val;
return $this;
}
/**
* Gets the runId
* The unique identifier of the associated run.
*
* @return string|null The runId
*/
public function getRunId()
{
if (array_key_exists("runId", $this->_propDict)) {
return $this->_propDict["runId"];
} else {
return null;
}
}
/**
* Sets the runId
* The unique identifier of the associated run.
*
* @param string $val The runId
*
* @return TaskReport
*/
public function setRunId($val)
{
$this->_propDict["runId"] = $val;
return $this;
}
/**
* Gets the startedDateTime
* The date time that the associated run started. Value is null if the run has not started.
*
* @return \DateTime|null The startedDateTime
*/
public function getStartedDateTime()
{
if (array_key_exists("startedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["startedDateTime"], "\DateTime") || is_null($this->_propDict["startedDateTime"])) {
return $this->_propDict["startedDateTime"];
} else {
$this->_propDict["startedDateTime"] = new \DateTime($this->_propDict["startedDateTime"]);
return $this->_propDict["startedDateTime"];
}
}
return null;
}
/**
* Sets the startedDateTime
* The date time that the associated run started. Value is null if the run has not started.
*
* @param \DateTime $val The startedDateTime
*
* @return TaskReport
*/
public function setStartedDateTime($val)
{
$this->_propDict["startedDateTime"] = $val;
return $this;
}
/**
* Gets the successfulUsersCount
* The number of users in the run execution for which the associated task succeeded.
*
* @return int|null The successfulUsersCount
*/
public function getSuccessfulUsersCount()
{
if (array_key_exists("successfulUsersCount", $this->_propDict)) {
return $this->_propDict["successfulUsersCount"];
} else {
return null;
}
}
/**
* Sets the successfulUsersCount
* The number of users in the run execution for which the associated task succeeded.
*
* @param int $val The successfulUsersCount
*
* @return TaskReport
*/
public function setSuccessfulUsersCount($val)
{
$this->_propDict["successfulUsersCount"] = intval($val);
return $this;
}
/**
* Gets the totalUsersCount
* The total number of users in the run execution for which the associated task was scheduled to execute.
*
* @return int|null The totalUsersCount
*/
public function getTotalUsersCount()
{
if (array_key_exists("totalUsersCount", $this->_propDict)) {
return $this->_propDict["totalUsersCount"];
} else {
return null;
}
}
/**
* Sets the totalUsersCount
* The total number of users in the run execution for which the associated task was scheduled to execute.
*
* @param int $val The totalUsersCount
*
* @return TaskReport
*/
public function setTotalUsersCount($val)
{
$this->_propDict["totalUsersCount"] = intval($val);
return $this;
}
/**
* Gets the unprocessedUsersCount
* The number of users in the run execution for which the associated task is queued, in progress, or canceled.
*
* @return int|null The unprocessedUsersCount
*/
public function getUnprocessedUsersCount()
{
if (array_key_exists("unprocessedUsersCount", $this->_propDict)) {
return $this->_propDict["unprocessedUsersCount"];
} else {
return null;
}
}
/**
* Sets the unprocessedUsersCount
* The number of users in the run execution for which the associated task is queued, in progress, or canceled.
*
* @param int $val The unprocessedUsersCount
*
* @return TaskReport
*/
public function setUnprocessedUsersCount($val)
{
$this->_propDict["unprocessedUsersCount"] = intval($val);
return $this;
}
/**
* Gets the task
* The related lifecycle workflow task.
*
* @return Task|null The task
*/
public function getTask()
{
if (array_key_exists("task", $this->_propDict)) {
if (is_a($this->_propDict["task"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\Task") || is_null($this->_propDict["task"])) {
return $this->_propDict["task"];
} else {
$this->_propDict["task"] = new Task($this->_propDict["task"]);
return $this->_propDict["task"];
}
}
return null;
}
/**
* Sets the task
* The related lifecycle workflow task.
*
* @param Task $val The task
*
* @return TaskReport
*/
public function setTask($val)
{
$this->_propDict["task"] = $val;
return $this;
}
/**
* Gets the taskDefinition
* The taskDefinition associated with the related lifecycle workflow task.
*
* @return TaskDefinition|null The taskDefinition
*/
public function getTaskDefinition()
{
if (array_key_exists("taskDefinition", $this->_propDict)) {
if (is_a($this->_propDict["taskDefinition"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\TaskDefinition") || is_null($this->_propDict["taskDefinition"])) {
return $this->_propDict["taskDefinition"];
} else {
$this->_propDict["taskDefinition"] = new TaskDefinition($this->_propDict["taskDefinition"]);
return $this->_propDict["taskDefinition"];
}
}
return null;
}
/**
* Sets the taskDefinition
* The taskDefinition associated with the related lifecycle workflow task.
*
* @param TaskDefinition $val The taskDefinition
*
* @return TaskReport
*/
public function setTaskDefinition($val)
{
$this->_propDict["taskDefinition"] = $val;
return $this;
}
/**
* Gets the taskProcessingResults
* The related lifecycle workflow taskProcessingResults.
*
* @return array|null The taskProcessingResults
*/
public function getTaskProcessingResults()
{
if (array_key_exists("taskProcessingResults", $this->_propDict)) {
return $this->_propDict["taskProcessingResults"];
} else {
return null;
}
}
/**
* Sets the taskProcessingResults
* The related lifecycle workflow taskProcessingResults.
*
* @param TaskProcessingResult[] $val The taskProcessingResults
*
* @return TaskReport
*/
public function setTaskProcessingResults($val)
{
$this->_propDict["taskProcessingResults"] = $val;
return $this;
}
}

View File

@ -0,0 +1,138 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* TaskReportSummary 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\IdentityGovernanceNamespace\Model;
/**
* TaskReportSummary 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 TaskReportSummary extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the failedTasks
* The number of failed tasks in a report.
*
* @return int|null The failedTasks
*/
public function getFailedTasks()
{
if (array_key_exists("failedTasks", $this->_propDict)) {
return $this->_propDict["failedTasks"];
} else {
return null;
}
}
/**
* Sets the failedTasks
* The number of failed tasks in a report.
*
* @param int $val The value of the failedTasks
*
* @return TaskReportSummary
*/
public function setFailedTasks($val)
{
$this->_propDict["failedTasks"] = $val;
return $this;
}
/**
* Gets the successfulTasks
* The total number of successful tasks in a report.
*
* @return int|null The successfulTasks
*/
public function getSuccessfulTasks()
{
if (array_key_exists("successfulTasks", $this->_propDict)) {
return $this->_propDict["successfulTasks"];
} else {
return null;
}
}
/**
* Sets the successfulTasks
* The total number of successful tasks in a report.
*
* @param int $val The value of the successfulTasks
*
* @return TaskReportSummary
*/
public function setSuccessfulTasks($val)
{
$this->_propDict["successfulTasks"] = $val;
return $this;
}
/**
* Gets the totalTasks
* The total number of tasks in a report.
*
* @return int|null The totalTasks
*/
public function getTotalTasks()
{
if (array_key_exists("totalTasks", $this->_propDict)) {
return $this->_propDict["totalTasks"];
} else {
return null;
}
}
/**
* Sets the totalTasks
* The total number of tasks in a report.
*
* @param int $val The value of the totalTasks
*
* @return TaskReportSummary
*/
public function setTotalTasks($val)
{
$this->_propDict["totalTasks"] = $val;
return $this;
}
/**
* Gets the unprocessedTasks
* The number of unprocessed tasks in a report.
*
* @return int|null The unprocessedTasks
*/
public function getUnprocessedTasks()
{
if (array_key_exists("unprocessedTasks", $this->_propDict)) {
return $this->_propDict["unprocessedTasks"];
} else {
return null;
}
}
/**
* Sets the unprocessedTasks
* The number of unprocessed tasks in a report.
*
* @param int $val The value of the unprocessedTasks
*
* @return TaskReportSummary
*/
public function setUnprocessedTasks($val)
{
$this->_propDict["unprocessedTasks"] = $val;
return $this;
}
}

View File

@ -0,0 +1,87 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* TimeBasedAttributeTrigger 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\IdentityGovernanceNamespace\Model;
/**
* TimeBasedAttributeTrigger 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 TimeBasedAttributeTrigger extends WorkflowExecutionTrigger
{
/**
* Gets the offsetInDays
* How many days before or after the time-based attribute specified the workflow should trigger. For example, if the attribute is employeeHireDate and offsetInDays is -1, then the workflow should trigger one day before the employee hire date.
*
* @return int|null The offsetInDays
*/
public function getOffsetInDays()
{
if (array_key_exists("offsetInDays", $this->_propDict)) {
return $this->_propDict["offsetInDays"];
} else {
return null;
}
}
/**
* Sets the offsetInDays
* How many days before or after the time-based attribute specified the workflow should trigger. For example, if the attribute is employeeHireDate and offsetInDays is -1, then the workflow should trigger one day before the employee hire date.
*
* @param int $val The value of the offsetInDays
*
* @return TimeBasedAttributeTrigger
*/
public function setOffsetInDays($val)
{
$this->_propDict["offsetInDays"] = $val;
return $this;
}
/**
* Gets the timeBasedAttribute
* Determines which time-based identity property to reference. The possible values are: employeeHireDate, employeeLeaveDateTime, unknownFutureValue.
*
* @return WorkflowTriggerTimeBasedAttribute|null The timeBasedAttribute
*/
public function getTimeBasedAttribute()
{
if (array_key_exists("timeBasedAttribute", $this->_propDict)) {
if (is_a($this->_propDict["timeBasedAttribute"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\WorkflowTriggerTimeBasedAttribute") || is_null($this->_propDict["timeBasedAttribute"])) {
return $this->_propDict["timeBasedAttribute"];
} else {
$this->_propDict["timeBasedAttribute"] = new WorkflowTriggerTimeBasedAttribute($this->_propDict["timeBasedAttribute"]);
return $this->_propDict["timeBasedAttribute"];
}
}
return null;
}
/**
* Sets the timeBasedAttribute
* Determines which time-based identity property to reference. The possible values are: employeeHireDate, employeeLeaveDateTime, unknownFutureValue.
*
* @param WorkflowTriggerTimeBasedAttribute $val The value to assign to the timeBasedAttribute
*
* @return TimeBasedAttributeTrigger The TimeBasedAttributeTrigger
*/
public function setTimeBasedAttribute($val)
{
$this->_propDict["timeBasedAttribute"] = $val;
return $this;
}
}

View File

@ -0,0 +1,103 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* TriggerAndScopeBasedConditions 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\IdentityGovernanceNamespace\Model;
/**
* TriggerAndScopeBasedConditions 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 TriggerAndScopeBasedConditions extends WorkflowExecutionConditions
{
/**
* Set the @odata.type since this type is immediately descended from an abstract
* type that is referenced as the type in an entity.
* @param array $propDict The property dictionary
*/
public function __construct($propDict = array())
{
parent::__construct($propDict);
$this->setODataType("#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions");
}
/**
* Gets the scope
* Defines who the workflow runs for.
*
* @return \Beta\Microsoft\Graph\Model\SubjectSet|null The scope
*/
public function getScope()
{
if (array_key_exists("scope", $this->_propDict)) {
if (is_a($this->_propDict["scope"], "\Beta\Microsoft\Graph\Model\SubjectSet") || is_null($this->_propDict["scope"])) {
return $this->_propDict["scope"];
} else {
$this->_propDict["scope"] = new \Beta\Microsoft\Graph\Model\SubjectSet($this->_propDict["scope"]);
return $this->_propDict["scope"];
}
}
return null;
}
/**
* Sets the scope
* Defines who the workflow runs for.
*
* @param \Beta\Microsoft\Graph\Model\SubjectSet $val The value to assign to the scope
*
* @return TriggerAndScopeBasedConditions The TriggerAndScopeBasedConditions
*/
public function setScope($val)
{
$this->_propDict["scope"] = $val;
return $this;
}
/**
* Gets the trigger
* What triggers a workflow to run.
*
* @return WorkflowExecutionTrigger|null The trigger
*/
public function getTrigger()
{
if (array_key_exists("trigger", $this->_propDict)) {
if (is_a($this->_propDict["trigger"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\WorkflowExecutionTrigger") || is_null($this->_propDict["trigger"])) {
return $this->_propDict["trigger"];
} else {
$this->_propDict["trigger"] = new WorkflowExecutionTrigger($this->_propDict["trigger"]);
return $this->_propDict["trigger"];
}
}
return null;
}
/**
* Sets the trigger
* What triggers a workflow to run.
*
* @param WorkflowExecutionTrigger $val The value to assign to the trigger
*
* @return TriggerAndScopeBasedConditions The TriggerAndScopeBasedConditions
*/
public function setTrigger($val)
{
$this->_propDict["trigger"] = $val;
return $this;
}
}

View File

@ -0,0 +1,371 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* UserProcessingResult 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\IdentityGovernanceNamespace\Model;
/**
* UserProcessingResult 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 UserProcessingResult extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the completedDateTime
* The date time that the workflow execution for a user completed. Value is null if the workflow hasn't completed. Supports $filter(lt, gt) and $orderby.
*
* @return \DateTime|null The completedDateTime
*/
public function getCompletedDateTime()
{
if (array_key_exists("completedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["completedDateTime"], "\DateTime") || is_null($this->_propDict["completedDateTime"])) {
return $this->_propDict["completedDateTime"];
} else {
$this->_propDict["completedDateTime"] = new \DateTime($this->_propDict["completedDateTime"]);
return $this->_propDict["completedDateTime"];
}
}
return null;
}
/**
* Sets the completedDateTime
* The date time that the workflow execution for a user completed. Value is null if the workflow hasn't completed. Supports $filter(lt, gt) and $orderby.
*
* @param \DateTime $val The completedDateTime
*
* @return UserProcessingResult
*/
public function setCompletedDateTime($val)
{
$this->_propDict["completedDateTime"] = $val;
return $this;
}
/**
* Gets the failedTasksCount
* The number of tasks that failed in the workflow execution.
*
* @return int|null The failedTasksCount
*/
public function getFailedTasksCount()
{
if (array_key_exists("failedTasksCount", $this->_propDict)) {
return $this->_propDict["failedTasksCount"];
} else {
return null;
}
}
/**
* Sets the failedTasksCount
* The number of tasks that failed in the workflow execution.
*
* @param int $val The failedTasksCount
*
* @return UserProcessingResult
*/
public function setFailedTasksCount($val)
{
$this->_propDict["failedTasksCount"] = intval($val);
return $this;
}
/**
* Gets the processingStatus
* The workflow execution status. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue.
*
* @return LifecycleWorkflowProcessingStatus|null The processingStatus
*/
public function getProcessingStatus()
{
if (array_key_exists("processingStatus", $this->_propDict)) {
if (is_a($this->_propDict["processingStatus"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleWorkflowProcessingStatus") || is_null($this->_propDict["processingStatus"])) {
return $this->_propDict["processingStatus"];
} else {
$this->_propDict["processingStatus"] = new LifecycleWorkflowProcessingStatus($this->_propDict["processingStatus"]);
return $this->_propDict["processingStatus"];
}
}
return null;
}
/**
* Sets the processingStatus
* The workflow execution status. The possible values are: queued, inProgress, completed, completedWithErrors, canceled, failed, unknownFutureValue.
*
* @param LifecycleWorkflowProcessingStatus $val The processingStatus
*
* @return UserProcessingResult
*/
public function setProcessingStatus($val)
{
$this->_propDict["processingStatus"] = $val;
return $this;
}
/**
* Gets the scheduledDateTime
* The date time that the workflow is scheduled to be executed for a user.
*
* @return \DateTime|null The scheduledDateTime
*/
public function getScheduledDateTime()
{
if (array_key_exists("scheduledDateTime", $this->_propDict)) {
if (is_a($this->_propDict["scheduledDateTime"], "\DateTime") || is_null($this->_propDict["scheduledDateTime"])) {
return $this->_propDict["scheduledDateTime"];
} else {
$this->_propDict["scheduledDateTime"] = new \DateTime($this->_propDict["scheduledDateTime"]);
return $this->_propDict["scheduledDateTime"];
}
}
return null;
}
/**
* Sets the scheduledDateTime
* The date time that the workflow is scheduled to be executed for a user.
*
* @param \DateTime $val The scheduledDateTime
*
* @return UserProcessingResult
*/
public function setScheduledDateTime($val)
{
$this->_propDict["scheduledDateTime"] = $val;
return $this;
}
/**
* Gets the startedDateTime
* The date time that the workflow execution started. Value is null if the workflow execution has not started. Supports $filter(lt, gt) and $orderby.
*
* @return \DateTime|null The startedDateTime
*/
public function getStartedDateTime()
{
if (array_key_exists("startedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["startedDateTime"], "\DateTime") || is_null($this->_propDict["startedDateTime"])) {
return $this->_propDict["startedDateTime"];
} else {
$this->_propDict["startedDateTime"] = new \DateTime($this->_propDict["startedDateTime"]);
return $this->_propDict["startedDateTime"];
}
}
return null;
}
/**
* Sets the startedDateTime
* The date time that the workflow execution started. Value is null if the workflow execution has not started. Supports $filter(lt, gt) and $orderby.
*
* @param \DateTime $val The startedDateTime
*
* @return UserProcessingResult
*/
public function setStartedDateTime($val)
{
$this->_propDict["startedDateTime"] = $val;
return $this;
}
/**
* Gets the totalTasksCount
* The total number of tasks that in the workflow execution.
*
* @return int|null The totalTasksCount
*/
public function getTotalTasksCount()
{
if (array_key_exists("totalTasksCount", $this->_propDict)) {
return $this->_propDict["totalTasksCount"];
} else {
return null;
}
}
/**
* Sets the totalTasksCount
* The total number of tasks that in the workflow execution.
*
* @param int $val The totalTasksCount
*
* @return UserProcessingResult
*/
public function setTotalTasksCount($val)
{
$this->_propDict["totalTasksCount"] = intval($val);
return $this;
}
/**
* Gets the totalUnprocessedTasksCount
* The total number of unprocessed tasks for the workflow.
*
* @return int|null The totalUnprocessedTasksCount
*/
public function getTotalUnprocessedTasksCount()
{
if (array_key_exists("totalUnprocessedTasksCount", $this->_propDict)) {
return $this->_propDict["totalUnprocessedTasksCount"];
} else {
return null;
}
}
/**
* Sets the totalUnprocessedTasksCount
* The total number of unprocessed tasks for the workflow.
*
* @param int $val The totalUnprocessedTasksCount
*
* @return UserProcessingResult
*/
public function setTotalUnprocessedTasksCount($val)
{
$this->_propDict["totalUnprocessedTasksCount"] = intval($val);
return $this;
}
/**
* Gets the workflowExecutionType
* Describes the execution type of the workflow. The possible values are: scheduled, onDemand, unknownFutureValue. Supports $filter(eq, ne).
*
* @return WorkflowExecutionType|null The workflowExecutionType
*/
public function getWorkflowExecutionType()
{
if (array_key_exists("workflowExecutionType", $this->_propDict)) {
if (is_a($this->_propDict["workflowExecutionType"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\WorkflowExecutionType") || is_null($this->_propDict["workflowExecutionType"])) {
return $this->_propDict["workflowExecutionType"];
} else {
$this->_propDict["workflowExecutionType"] = new WorkflowExecutionType($this->_propDict["workflowExecutionType"]);
return $this->_propDict["workflowExecutionType"];
}
}
return null;
}
/**
* Sets the workflowExecutionType
* Describes the execution type of the workflow. The possible values are: scheduled, onDemand, unknownFutureValue. Supports $filter(eq, ne).
*
* @param WorkflowExecutionType $val The workflowExecutionType
*
* @return UserProcessingResult
*/
public function setWorkflowExecutionType($val)
{
$this->_propDict["workflowExecutionType"] = $val;
return $this;
}
/**
* Gets the workflowVersion
* The version of the workflow that was executed.
*
* @return int|null The workflowVersion
*/
public function getWorkflowVersion()
{
if (array_key_exists("workflowVersion", $this->_propDict)) {
return $this->_propDict["workflowVersion"];
} else {
return null;
}
}
/**
* Sets the workflowVersion
* The version of the workflow that was executed.
*
* @param int $val The workflowVersion
*
* @return UserProcessingResult
*/
public function setWorkflowVersion($val)
{
$this->_propDict["workflowVersion"] = intval($val);
return $this;
}
/**
* Gets the subject
* The unique identifier of the AAD user targeted for the taskProcessingResult.
*
* @return \Beta\Microsoft\Graph\Model\User|null The subject
*/
public function getSubject()
{
if (array_key_exists("subject", $this->_propDict)) {
if (is_a($this->_propDict["subject"], "\Beta\Microsoft\Graph\Model\User") || is_null($this->_propDict["subject"])) {
return $this->_propDict["subject"];
} else {
$this->_propDict["subject"] = new \Beta\Microsoft\Graph\Model\User($this->_propDict["subject"]);
return $this->_propDict["subject"];
}
}
return null;
}
/**
* Sets the subject
* The unique identifier of the AAD user targeted for the taskProcessingResult.
*
* @param \Beta\Microsoft\Graph\Model\User $val The subject
*
* @return UserProcessingResult
*/
public function setSubject($val)
{
$this->_propDict["subject"] = $val;
return $this;
}
/**
* Gets the taskProcessingResults
* The associated individual task execution.
*
* @return array|null The taskProcessingResults
*/
public function getTaskProcessingResults()
{
if (array_key_exists("taskProcessingResults", $this->_propDict)) {
return $this->_propDict["taskProcessingResults"];
} else {
return null;
}
}
/**
* Sets the taskProcessingResults
* The associated individual task execution.
*
* @param TaskProcessingResult[] $val The taskProcessingResults
*
* @return UserProcessingResult
*/
public function setTaskProcessingResults($val)
{
$this->_propDict["taskProcessingResults"] = $val;
return $this;
}
}

View File

@ -0,0 +1,166 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* UserSummary 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\IdentityGovernanceNamespace\Model;
/**
* UserSummary 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 UserSummary extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the failedTasks
* The number of failed tasks for users in a user summary.
*
* @return int|null The failedTasks
*/
public function getFailedTasks()
{
if (array_key_exists("failedTasks", $this->_propDict)) {
return $this->_propDict["failedTasks"];
} else {
return null;
}
}
/**
* Sets the failedTasks
* The number of failed tasks for users in a user summary.
*
* @param int $val The value of the failedTasks
*
* @return UserSummary
*/
public function setFailedTasks($val)
{
$this->_propDict["failedTasks"] = $val;
return $this;
}
/**
* Gets the failedUsers
* The number of failed users in a user summary.
*
* @return int|null The failedUsers
*/
public function getFailedUsers()
{
if (array_key_exists("failedUsers", $this->_propDict)) {
return $this->_propDict["failedUsers"];
} else {
return null;
}
}
/**
* Sets the failedUsers
* The number of failed users in a user summary.
*
* @param int $val The value of the failedUsers
*
* @return UserSummary
*/
public function setFailedUsers($val)
{
$this->_propDict["failedUsers"] = $val;
return $this;
}
/**
* Gets the successfulUsers
* The number of successful users in a user summary.
*
* @return int|null The successfulUsers
*/
public function getSuccessfulUsers()
{
if (array_key_exists("successfulUsers", $this->_propDict)) {
return $this->_propDict["successfulUsers"];
} else {
return null;
}
}
/**
* Sets the successfulUsers
* The number of successful users in a user summary.
*
* @param int $val The value of the successfulUsers
*
* @return UserSummary
*/
public function setSuccessfulUsers($val)
{
$this->_propDict["successfulUsers"] = $val;
return $this;
}
/**
* Gets the totalTasks
* The total tasks of users in a user summary.
*
* @return int|null The totalTasks
*/
public function getTotalTasks()
{
if (array_key_exists("totalTasks", $this->_propDict)) {
return $this->_propDict["totalTasks"];
} else {
return null;
}
}
/**
* Sets the totalTasks
* The total tasks of users in a user summary.
*
* @param int $val The value of the totalTasks
*
* @return UserSummary
*/
public function setTotalTasks($val)
{
$this->_propDict["totalTasks"] = $val;
return $this;
}
/**
* Gets the totalUsers
* The total number of users in a user summary
*
* @return int|null The totalUsers
*/
public function getTotalUsers()
{
if (array_key_exists("totalUsers", $this->_propDict)) {
return $this->_propDict["totalUsers"];
} else {
return null;
}
}
/**
* Sets the totalUsers
* The total number of users in a user summary
*
* @param int $val The value of the totalUsers
*
* @return UserSummary
*/
public function setTotalUsers($val)
{
$this->_propDict["totalUsers"] = $val;
return $this;
}
}

View File

@ -0,0 +1,166 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* UsersProcessingSummary 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\IdentityGovernanceNamespace\Model;
/**
* UsersProcessingSummary 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 UsersProcessingSummary extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the failedTasks
* Numerical count of failed tasks for users processed by a workflow.
*
* @return int|null The failedTasks
*/
public function getFailedTasks()
{
if (array_key_exists("failedTasks", $this->_propDict)) {
return $this->_propDict["failedTasks"];
} else {
return null;
}
}
/**
* Sets the failedTasks
* Numerical count of failed tasks for users processed by a workflow.
*
* @param int $val The value of the failedTasks
*
* @return UsersProcessingSummary
*/
public function setFailedTasks($val)
{
$this->_propDict["failedTasks"] = $val;
return $this;
}
/**
* Gets the failedUsers
* Numerical count of failed users processed by a workflow.
*
* @return int|null The failedUsers
*/
public function getFailedUsers()
{
if (array_key_exists("failedUsers", $this->_propDict)) {
return $this->_propDict["failedUsers"];
} else {
return null;
}
}
/**
* Sets the failedUsers
* Numerical count of failed users processed by a workflow.
*
* @param int $val The value of the failedUsers
*
* @return UsersProcessingSummary
*/
public function setFailedUsers($val)
{
$this->_propDict["failedUsers"] = $val;
return $this;
}
/**
* Gets the successfulUsers
* Numerical count of successful users processed by a workflow.
*
* @return int|null The successfulUsers
*/
public function getSuccessfulUsers()
{
if (array_key_exists("successfulUsers", $this->_propDict)) {
return $this->_propDict["successfulUsers"];
} else {
return null;
}
}
/**
* Sets the successfulUsers
* Numerical count of successful users processed by a workflow.
*
* @param int $val The value of the successfulUsers
*
* @return UsersProcessingSummary
*/
public function setSuccessfulUsers($val)
{
$this->_propDict["successfulUsers"] = $val;
return $this;
}
/**
* Gets the totalTasks
* Numerical count of total tasks for users processed by a workflow.
*
* @return int|null The totalTasks
*/
public function getTotalTasks()
{
if (array_key_exists("totalTasks", $this->_propDict)) {
return $this->_propDict["totalTasks"];
} else {
return null;
}
}
/**
* Sets the totalTasks
* Numerical count of total tasks for users processed by a workflow.
*
* @param int $val The value of the totalTasks
*
* @return UsersProcessingSummary
*/
public function setTotalTasks($val)
{
$this->_propDict["totalTasks"] = $val;
return $this;
}
/**
* Gets the totalUsers
* Numerical count of total users processed by a workflow.
*
* @return int|null The totalUsers
*/
public function getTotalUsers()
{
if (array_key_exists("totalUsers", $this->_propDict)) {
return $this->_propDict["totalUsers"];
} else {
return null;
}
}
/**
* Sets the totalUsers
* Numerical count of total users processed by a workflow.
*
* @param int $val The value of the totalUsers
*
* @return UsersProcessingSummary
*/
public function setTotalUsers($val)
{
$this->_propDict["totalUsers"] = $val;
return $this;
}
}

View File

@ -0,0 +1,37 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ValueType 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\IdentityGovernanceNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* ValueType 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 ValueType extends Enum
{
/**
* The Enum ValueType
*/
const ENUM = "enum";
const GRAPHSTRING = "string";
const GRAPHINT = "int";
const GRAPHBOOL = "bool";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,355 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* Workflow 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\IdentityGovernanceNamespace\Model;
/**
* Workflow 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 Workflow extends WorkflowBase
{
/**
* Gets the deletedDateTime
* The time and date a workflow is deleted. Supports $filter(lt,gt) and $orderby.
*
* @return \DateTime|null The deletedDateTime
*/
public function getDeletedDateTime()
{
if (array_key_exists("deletedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["deletedDateTime"], "\DateTime") || is_null($this->_propDict["deletedDateTime"])) {
return $this->_propDict["deletedDateTime"];
} else {
$this->_propDict["deletedDateTime"] = new \DateTime($this->_propDict["deletedDateTime"]);
return $this->_propDict["deletedDateTime"];
}
}
return null;
}
/**
* Sets the deletedDateTime
* The time and date a workflow is deleted. Supports $filter(lt,gt) and $orderby.
*
* @param \DateTime $val The deletedDateTime
*
* @return Workflow
*/
public function setDeletedDateTime($val)
{
$this->_propDict["deletedDateTime"] = $val;
return $this;
}
/**
* Gets the id
* Identifier used for individually addressing a specific workflow. Supports $filter(eq).
*
* @return string|null The id
*/
public function getId()
{
if (array_key_exists("id", $this->_propDict)) {
return $this->_propDict["id"];
} else {
return null;
}
}
/**
* Sets the id
* Identifier used for individually addressing a specific workflow. Supports $filter(eq).
*
* @param string $val The id
*
* @return Workflow
*/
public function setId($val)
{
$this->_propDict["id"] = $val;
return $this;
}
/**
* Gets the isEnabled
* If true, the workflow engine creates and processes taskProcessingResults on the users scoped to the workflow. Supports $filter(eq,ne) and orderby.
*
* @return bool|null The isEnabled
*/
public function getIsEnabled()
{
if (array_key_exists("isEnabled", $this->_propDict)) {
return $this->_propDict["isEnabled"];
} else {
return null;
}
}
/**
* Sets the isEnabled
* If true, the workflow engine creates and processes taskProcessingResults on the users scoped to the workflow. Supports $filter(eq,ne) and orderby.
*
* @param bool $val The isEnabled
*
* @return Workflow
*/
public function setIsEnabled($val)
{
$this->_propDict["isEnabled"] = boolval($val);
return $this;
}
/**
* Gets the isSchedulingEnabled
* If true, the workflow engine executes the workflow on the schedule defined by tenant settings.
*
* @return bool|null The isSchedulingEnabled
*/
public function getIsSchedulingEnabled()
{
if (array_key_exists("isSchedulingEnabled", $this->_propDict)) {
return $this->_propDict["isSchedulingEnabled"];
} else {
return null;
}
}
/**
* Sets the isSchedulingEnabled
* If true, the workflow engine executes the workflow on the schedule defined by tenant settings.
*
* @param bool $val The isSchedulingEnabled
*
* @return Workflow
*/
public function setIsSchedulingEnabled($val)
{
$this->_propDict["isSchedulingEnabled"] = boolval($val);
return $this;
}
/**
* Gets the nextScheduleRunDateTime
* The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderby.
*
* @return \DateTime|null The nextScheduleRunDateTime
*/
public function getNextScheduleRunDateTime()
{
if (array_key_exists("nextScheduleRunDateTime", $this->_propDict)) {
if (is_a($this->_propDict["nextScheduleRunDateTime"], "\DateTime") || is_null($this->_propDict["nextScheduleRunDateTime"])) {
return $this->_propDict["nextScheduleRunDateTime"];
} else {
$this->_propDict["nextScheduleRunDateTime"] = new \DateTime($this->_propDict["nextScheduleRunDateTime"]);
return $this->_propDict["nextScheduleRunDateTime"];
}
}
return null;
}
/**
* Sets the nextScheduleRunDateTime
* The date time when the workflow is expected to run next based on the schedule interval, if there are any users matching the execution conditions. Supports $filter(lt,gt) and $orderby.
*
* @param \DateTime $val The nextScheduleRunDateTime
*
* @return Workflow
*/
public function setNextScheduleRunDateTime($val)
{
$this->_propDict["nextScheduleRunDateTime"] = $val;
return $this;
}
/**
* Gets the version
* The current version number of the workflow. Value is 1 when the workflow is first created. Supports $filter(eq).
*
* @return int|null The version
*/
public function getVersion()
{
if (array_key_exists("version", $this->_propDict)) {
return $this->_propDict["version"];
} else {
return null;
}
}
/**
* Sets the version
* The current version number of the workflow. Value is 1 when the workflow is first created. Supports $filter(eq).
*
* @param int $val The version
*
* @return Workflow
*/
public function setVersion($val)
{
$this->_propDict["version"] = intval($val);
return $this;
}
/**
* Gets the executionScope
* The unique identifier of the Azure AD identity that last modified the workflow object..
*
* @return array|null The executionScope
*/
public function getExecutionScope()
{
if (array_key_exists("executionScope", $this->_propDict)) {
return $this->_propDict["executionScope"];
} else {
return null;
}
}
/**
* Sets the executionScope
* The unique identifier of the Azure AD identity that last modified the workflow object..
*
* @param \Beta\Microsoft\Graph\Model\User[] $val The executionScope
*
* @return Workflow
*/
public function setExecutionScope($val)
{
$this->_propDict["executionScope"] = $val;
return $this;
}
/**
* Gets the runs
*
* @return array|null The runs
*/
public function getRuns()
{
if (array_key_exists("runs", $this->_propDict)) {
return $this->_propDict["runs"];
} else {
return null;
}
}
/**
* Sets the runs
*
* @param Run[] $val The runs
*
* @return Workflow
*/
public function setRuns($val)
{
$this->_propDict["runs"] = $val;
return $this;
}
/**
* Gets the taskReports
* Represents the aggregation of task execution data for tasks within a workflow object.
*
* @return array|null The taskReports
*/
public function getTaskReports()
{
if (array_key_exists("taskReports", $this->_propDict)) {
return $this->_propDict["taskReports"];
} else {
return null;
}
}
/**
* Sets the taskReports
* Represents the aggregation of task execution data for tasks within a workflow object.
*
* @param TaskReport[] $val The taskReports
*
* @return Workflow
*/
public function setTaskReports($val)
{
$this->_propDict["taskReports"] = $val;
return $this;
}
/**
* Gets the userProcessingResults
*
* @return array|null The userProcessingResults
*/
public function getUserProcessingResults()
{
if (array_key_exists("userProcessingResults", $this->_propDict)) {
return $this->_propDict["userProcessingResults"];
} else {
return null;
}
}
/**
* Sets the userProcessingResults
*
* @param UserProcessingResult[] $val The userProcessingResults
*
* @return Workflow
*/
public function setUserProcessingResults($val)
{
$this->_propDict["userProcessingResults"] = $val;
return $this;
}
/**
* Gets the versions
* The workflow versions that are available.
*
* @return array|null The versions
*/
public function getVersions()
{
if (array_key_exists("versions", $this->_propDict)) {
return $this->_propDict["versions"];
} else {
return null;
}
}
/**
* Sets the versions
* The workflow versions that are available.
*
* @param WorkflowVersion[] $val The versions
*
* @return Workflow
*/
public function setVersions($val)
{
$this->_propDict["versions"] = $val;
return $this;
}
}

View File

@ -0,0 +1,391 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* WorkflowBase 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\IdentityGovernanceNamespace\Model;
/**
* WorkflowBase 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 WorkflowBase implements \JsonSerializable
{
/**
* The array of properties available
* to the model
*
* @var array $_propDict
*/
protected $_propDict;
/**
* Construct a new WorkflowBase
*
* @param array $propDict A list of properties to set
*/
function __construct($propDict = array())
{
if (!is_array($propDict)) {
$propDict = array();
}
$this->_propDict = $propDict;
}
/**
* Gets the property dictionary of the WorkflowBase
*
* @return array The list of properties
*/
public function getProperties()
{
return $this->_propDict;
}
/**
* Gets the category
* The category of the workflow. The possible values are: joiner, leaver, unknownFutureValue.
*
* @return LifecycleWorkflowCategory|null The category
*/
public function getCategory()
{
if (array_key_exists("category", $this->_propDict)) {
if (is_a($this->_propDict["category"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleWorkflowCategory") || is_null($this->_propDict["category"])) {
return $this->_propDict["category"];
} else {
$this->_propDict["category"] = new LifecycleWorkflowCategory($this->_propDict["category"]);
return $this->_propDict["category"];
}
}
return null;
}
/**
* Sets the category
* The category of the workflow. The possible values are: joiner, leaver, unknownFutureValue.
*
* @param LifecycleWorkflowCategory $val The category
*
* @return WorkflowBase
*/
public function setCategory($val)
{
$this->_propDict["category"] = $val;
return $this;
}
/**
* Gets the createdDateTime
* When a workflow was created.
*
* @return \DateTime|null The createdDateTime
*/
public function getCreatedDateTime()
{
if (array_key_exists("createdDateTime", $this->_propDict)) {
if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) {
return $this->_propDict["createdDateTime"];
} else {
$this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]);
return $this->_propDict["createdDateTime"];
}
}
return null;
}
/**
* Sets the createdDateTime
* When a workflow was created.
*
* @param \DateTime $val The createdDateTime
*
* @return WorkflowBase
*/
public function setCreatedDateTime($val)
{
$this->_propDict["createdDateTime"] = $val;
return $this;
}
/**
* Gets the description
* A string that describes the purpose of the workflow.
*
* @return string|null The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
* A string that describes the purpose of the workflow.
*
* @param string $val The description
*
* @return WorkflowBase
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* A string to identify the workflow.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* A string to identify the workflow.
*
* @param string $val The displayName
*
* @return WorkflowBase
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the executionConditions
* Defines when and for who the workflow will run.
*
* @return WorkflowExecutionConditions|null The executionConditions
*/
public function getExecutionConditions()
{
if (array_key_exists("executionConditions", $this->_propDict)) {
if (is_a($this->_propDict["executionConditions"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\WorkflowExecutionConditions") || is_null($this->_propDict["executionConditions"])) {
return $this->_propDict["executionConditions"];
} else {
$this->_propDict["executionConditions"] = new WorkflowExecutionConditions($this->_propDict["executionConditions"]);
return $this->_propDict["executionConditions"];
}
}
return null;
}
/**
* Sets the executionConditions
* Defines when and for who the workflow will run.
*
* @param WorkflowExecutionConditions $val The executionConditions
*
* @return WorkflowBase
*/
public function setExecutionConditions($val)
{
$this->_propDict["executionConditions"] = $val;
return $this;
}
/**
* Gets the lastModifiedDateTime
* When the workflow was last modified.
*
* @return \DateTime|null The lastModifiedDateTime
*/
public function getLastModifiedDateTime()
{
if (array_key_exists("lastModifiedDateTime", $this->_propDict)) {
if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) {
return $this->_propDict["lastModifiedDateTime"];
} else {
$this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]);
return $this->_propDict["lastModifiedDateTime"];
}
}
return null;
}
/**
* Sets the lastModifiedDateTime
* When the workflow was last modified.
*
* @param \DateTime $val The lastModifiedDateTime
*
* @return WorkflowBase
*/
public function setLastModifiedDateTime($val)
{
$this->_propDict["lastModifiedDateTime"] = $val;
return $this;
}
/**
* Gets the createdBy
* The user who created the workflow.
*
* @return \Beta\Microsoft\Graph\Model\User|null The createdBy
*/
public function getCreatedBy()
{
if (array_key_exists("createdBy", $this->_propDict)) {
if (is_a($this->_propDict["createdBy"], "\Beta\Microsoft\Graph\Model\User") || is_null($this->_propDict["createdBy"])) {
return $this->_propDict["createdBy"];
} else {
$this->_propDict["createdBy"] = new \Beta\Microsoft\Graph\Model\User($this->_propDict["createdBy"]);
return $this->_propDict["createdBy"];
}
}
return null;
}
/**
* Sets the createdBy
* The user who created the workflow.
*
* @param \Beta\Microsoft\Graph\Model\User $val The createdBy
*
* @return WorkflowBase
*/
public function setCreatedBy($val)
{
$this->_propDict["createdBy"] = $val;
return $this;
}
/**
* Gets the lastModifiedBy
* The user who last modified the workflow.
*
* @return \Beta\Microsoft\Graph\Model\User|null The lastModifiedBy
*/
public function getLastModifiedBy()
{
if (array_key_exists("lastModifiedBy", $this->_propDict)) {
if (is_a($this->_propDict["lastModifiedBy"], "\Beta\Microsoft\Graph\Model\User") || is_null($this->_propDict["lastModifiedBy"])) {
return $this->_propDict["lastModifiedBy"];
} else {
$this->_propDict["lastModifiedBy"] = new \Beta\Microsoft\Graph\Model\User($this->_propDict["lastModifiedBy"]);
return $this->_propDict["lastModifiedBy"];
}
}
return null;
}
/**
* Sets the lastModifiedBy
* The user who last modified the workflow.
*
* @param \Beta\Microsoft\Graph\Model\User $val The lastModifiedBy
*
* @return WorkflowBase
*/
public function setLastModifiedBy($val)
{
$this->_propDict["lastModifiedBy"] = $val;
return $this;
}
/**
* Gets the tasks
* The tasks in the workflow.
*
* @return array|null The tasks
*/
public function getTasks()
{
if (array_key_exists("tasks", $this->_propDict)) {
return $this->_propDict["tasks"];
} else {
return null;
}
}
/**
* Sets the tasks
* The tasks in the workflow.
*
* @param Task[] $val The tasks
*
* @return WorkflowBase
*/
public function setTasks($val)
{
$this->_propDict["tasks"] = $val;
return $this;
}
/**
* Gets the ODataType
*
* @return string|null The ODataType
*/
public function getODataType()
{
if (array_key_exists('@odata.type', $this->_propDict)) {
return $this->_propDict["@odata.type"];
}
return null;
}
/**
* Sets the ODataType
*
* @param string $val The ODataType
*
* @return WorkflowBase
*/
public function setODataType($val)
{
$this->_propDict["@odata.type"] = $val;
return $this;
}
/**
* Serializes the object by property array
* Manually serialize DateTime into RFC3339 format
*
* @return array The list of properties
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
$serializableProperties = $this->getProperties();
foreach ($serializableProperties as $property => $val) {
if (is_a($val, "\DateTime")) {
$serializableProperties[$property] = $val->format(\DateTime::RFC3339);
} else if (is_a($val, "\Microsoft\Graph\Core\Enum")) {
$serializableProperties[$property] = $val->value();
} else if (is_a($val, "\Entity")) {
$serializableProperties[$property] = $val->jsonSerialize();
}
}
return $serializableProperties;
}
}

View File

@ -0,0 +1,26 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* WorkflowExecutionConditions 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\IdentityGovernanceNamespace\Model;
/**
* WorkflowExecutionConditions 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 WorkflowExecutionConditions extends \Beta\Microsoft\Graph\Model\Entity
{
}

View File

@ -0,0 +1,26 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* WorkflowExecutionTrigger 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\IdentityGovernanceNamespace\Model;
/**
* WorkflowExecutionTrigger 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 WorkflowExecutionTrigger extends \Beta\Microsoft\Graph\Model\Entity
{
}

View File

@ -0,0 +1,35 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* WorkflowExecutionType 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\IdentityGovernanceNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* WorkflowExecutionType 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 WorkflowExecutionType extends Enum
{
/**
* The Enum WorkflowExecutionType
*/
const SCHEDULED = "scheduled";
const ON_DEMAND = "onDemand";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,181 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* WorkflowTemplate 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\IdentityGovernanceNamespace\Model;
/**
* WorkflowTemplate 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 WorkflowTemplate extends \Beta\Microsoft\Graph\Model\Entity
{
/**
* Gets the category
* The category of the workflow template. The possible values are: joiner, leaver.
*
* @return LifecycleWorkflowCategory|null The category
*/
public function getCategory()
{
if (array_key_exists("category", $this->_propDict)) {
if (is_a($this->_propDict["category"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\LifecycleWorkflowCategory") || is_null($this->_propDict["category"])) {
return $this->_propDict["category"];
} else {
$this->_propDict["category"] = new LifecycleWorkflowCategory($this->_propDict["category"]);
return $this->_propDict["category"];
}
}
return null;
}
/**
* Sets the category
* The category of the workflow template. The possible values are: joiner, leaver.
*
* @param LifecycleWorkflowCategory $val The category
*
* @return WorkflowTemplate
*/
public function setCategory($val)
{
$this->_propDict["category"] = $val;
return $this;
}
/**
* Gets the description
* The description of the workflowTemplate.
*
* @return string|null The description
*/
public function getDescription()
{
if (array_key_exists("description", $this->_propDict)) {
return $this->_propDict["description"];
} else {
return null;
}
}
/**
* Sets the description
* The description of the workflowTemplate.
*
* @param string $val The description
*
* @return WorkflowTemplate
*/
public function setDescription($val)
{
$this->_propDict["description"] = $val;
return $this;
}
/**
* Gets the displayName
* The display name of the workflowTemplate. Supports orderby.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* The display name of the workflowTemplate. Supports orderby.
*
* @param string $val The displayName
*
* @return WorkflowTemplate
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the executionConditions
* Conditions describing when to execute the workflow and the criteria to identify in-scope subject set.
*
* @return WorkflowExecutionConditions|null The executionConditions
*/
public function getExecutionConditions()
{
if (array_key_exists("executionConditions", $this->_propDict)) {
if (is_a($this->_propDict["executionConditions"], "\Beta\Microsoft\Graph\IdentityGovernanceNamespace\Model\WorkflowExecutionConditions") || is_null($this->_propDict["executionConditions"])) {
return $this->_propDict["executionConditions"];
} else {
$this->_propDict["executionConditions"] = new WorkflowExecutionConditions($this->_propDict["executionConditions"]);
return $this->_propDict["executionConditions"];
}
}
return null;
}
/**
* Sets the executionConditions
* Conditions describing when to execute the workflow and the criteria to identify in-scope subject set.
*
* @param WorkflowExecutionConditions $val The executionConditions
*
* @return WorkflowTemplate
*/
public function setExecutionConditions($val)
{
$this->_propDict["executionConditions"] = $val;
return $this;
}
/**
* Gets the tasks
* Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default.
*
* @return array|null The tasks
*/
public function getTasks()
{
if (array_key_exists("tasks", $this->_propDict)) {
return $this->_propDict["tasks"];
} else {
return null;
}
}
/**
* Sets the tasks
* Represents the configured tasks to execute and their execution sequence within a workflow. This relationship is expanded by default.
*
* @param Task[] $val The tasks
*
* @return WorkflowTemplate
*/
public function setTasks($val)
{
$this->_propDict["tasks"] = $val;
return $this;
}
}

View File

@ -0,0 +1,35 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* WorkflowTriggerTimeBasedAttribute 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\IdentityGovernanceNamespace\Model;
use Microsoft\Graph\Core\Enum;
/**
* WorkflowTriggerTimeBasedAttribute 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 WorkflowTriggerTimeBasedAttribute extends Enum
{
/**
* The Enum WorkflowTriggerTimeBasedAttribute
*/
const EMPLOYEE_HIRE_DATE = "employeeHireDate";
const EMPLOYEE_LEAVE_DATE_TIME = "employeeLeaveDateTime";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -0,0 +1,56 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* WorkflowVersion 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\IdentityGovernanceNamespace\Model;
/**
* WorkflowVersion 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 WorkflowVersion extends WorkflowBase
{
/**
* Gets the versionNumber
* The version of the workflow.
*
* @return int|null The versionNumber
*/
public function getVersionNumber()
{
if (array_key_exists("versionNumber", $this->_propDict)) {
return $this->_propDict["versionNumber"];
} else {
return null;
}
}
/**
* Sets the versionNumber
* The version of the workflow.
*
* @param int $val The versionNumber
*
* @return WorkflowVersion
*/
public function setVersionNumber($val)
{
$this->_propDict["versionNumber"] = intval($val);
return $this;
}
}

View File

@ -299,7 +299,7 @@ class AccessPackageAssignmentRequest extends Entity
/**
* Gets the requestType
* One of UserAdd, UserRemove, AdminAdd, AdminRemove or SystemRemove. A request from the user themselves would have requestType of UserAdd or UserRemove. Read-only.
* One of UserAdd, UserExtend, UserUpdate, UserRemove, AdminAdd, AdminRemove or SystemRemove. A request from the user themselves would have requestType of UserAdd, UserUpdate or UserRemove. Read-only.
*
* @return string|null The requestType
*/
@ -314,7 +314,7 @@ class AccessPackageAssignmentRequest extends Entity
/**
* Sets the requestType
* One of UserAdd, UserRemove, AdminAdd, AdminRemove or SystemRemove. A request from the user themselves would have requestType of UserAdd or UserRemove. Read-only.
* One of UserAdd, UserExtend, UserUpdate, UserRemove, AdminAdd, AdminRemove or SystemRemove. A request from the user themselves would have requestType of UserAdd, UserUpdate or UserRemove. Read-only.
*
* @param string $val The requestType
*

View File

@ -169,7 +169,6 @@ class AccessPackageSubject extends Entity
/**
* Gets the onPremisesSecurityIdentifier
* A string representation of the principal's security identifier, if known, or null if the subject does not have a security identifier.
*
* @return string|null The onPremisesSecurityIdentifier
*/
@ -184,7 +183,6 @@ class AccessPackageSubject extends Entity
/**
* Sets the onPremisesSecurityIdentifier
* A string representation of the principal's security identifier, if known, or null if the subject does not have a security identifier.
*
* @param string $val The onPremisesSecurityIdentifier
*

View File

@ -62,4 +62,32 @@ class AccessPackageTextInputQuestion extends AccessPackageQuestion
$this->_propDict["isSingleLineQuestion"] = $val;
return $this;
}
/**
* Gets the regexPattern
* This is the regex pattern that the corresponding text answer must follow.
*
* @return string|null The regexPattern
*/
public function getRegexPattern()
{
if (array_key_exists("regexPattern", $this->_propDict)) {
return $this->_propDict["regexPattern"];
} else {
return null;
}
}
/**
* Sets the regexPattern
* This is the regex pattern that the corresponding text answer must follow.
*
* @param string $val The value of the regexPattern
*
* @return AccessPackageTextInputQuestion
*/
public function setRegexPattern($val)
{
$this->_propDict["regexPattern"] = $val;
return $this;
}
}

View File

@ -55,7 +55,7 @@ class AccessReviewInstanceDecisionItem extends Entity
/**
* Gets the appliedBy
* The identifier of the user who applied the decision. Read-only.
* The identifier of the user who applied the decision. 00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't applied the decision or it was automatically applied. Read-only.
*
* @return UserIdentity|null The appliedBy
*/
@ -74,7 +74,7 @@ class AccessReviewInstanceDecisionItem extends Entity
/**
* Sets the appliedBy
* The identifier of the user who applied the decision. Read-only.
* The identifier of the user who applied the decision. 00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't applied the decision or it was automatically applied. Read-only.
*
* @param UserIdentity $val The appliedBy
*
@ -394,7 +394,7 @@ class AccessReviewInstanceDecisionItem extends Entity
/**
* Gets the reviewedBy
* The identifier of the reviewer. Supports $select. Read-only.
* The identifier of the reviewer. 00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't reviewed. Supports $select. Read-only.
*
* @return UserIdentity|null The reviewedBy
*/
@ -413,7 +413,7 @@ class AccessReviewInstanceDecisionItem extends Entity
/**
* Sets the reviewedBy
* The identifier of the reviewer. Supports $select. Read-only.
* The identifier of the reviewer. 00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't reviewed. Supports $select. Read-only.
*
* @param UserIdentity $val The reviewedBy
*

View File

@ -25,7 +25,7 @@ class AccessReviewReviewerScope extends AccessReviewScope
{
/**
* Gets the query
* The query specifying who will be the reviewer. See table for examples.
* The query specifying who will be the reviewer.
*
* @return string|null The query
*/
@ -40,7 +40,7 @@ class AccessReviewReviewerScope extends AccessReviewScope
/**
* Sets the query
* The query specifying who will be the reviewer. See table for examples.
* The query specifying who will be the reviewer.
*
* @param string $val The value of the query
*

View File

@ -26,7 +26,6 @@ class ActivityHistoryItem extends Entity
{
/**
* Gets the activeDurationSeconds
* Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.
*
* @return int|null The activeDurationSeconds
*/
@ -41,7 +40,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the activeDurationSeconds
* Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.
*
* @param int $val The activeDurationSeconds
*
@ -55,7 +53,6 @@ class ActivityHistoryItem extends Entity
/**
* Gets the createdDateTime
* Set by the server. DateTime in UTC when the object was created on the server.
*
* @return \DateTime|null The createdDateTime
*/
@ -74,7 +71,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the createdDateTime
* Set by the server. DateTime in UTC when the object was created on the server.
*
* @param \DateTime $val The createdDateTime
*
@ -88,7 +84,6 @@ class ActivityHistoryItem extends Entity
/**
* Gets the expirationDateTime
* Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client.
*
* @return \DateTime|null The expirationDateTime
*/
@ -107,7 +102,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the expirationDateTime
* Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client.
*
* @param \DateTime $val The expirationDateTime
*
@ -121,7 +115,6 @@ class ActivityHistoryItem extends Entity
/**
* Gets the lastActiveDateTime
* Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing.
*
* @return \DateTime|null The lastActiveDateTime
*/
@ -140,7 +133,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the lastActiveDateTime
* Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing.
*
* @param \DateTime $val The lastActiveDateTime
*
@ -154,7 +146,6 @@ class ActivityHistoryItem extends Entity
/**
* Gets the lastModifiedDateTime
* Set by the server. DateTime in UTC when the object was modified on the server.
*
* @return \DateTime|null The lastModifiedDateTime
*/
@ -173,7 +164,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the lastModifiedDateTime
* Set by the server. DateTime in UTC when the object was modified on the server.
*
* @param \DateTime $val The lastModifiedDateTime
*
@ -187,7 +177,6 @@ class ActivityHistoryItem extends Entity
/**
* Gets the startedDateTime
* Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.
*
* @return \DateTime|null The startedDateTime
*/
@ -206,7 +195,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the startedDateTime
* Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.
*
* @param \DateTime $val The startedDateTime
*
@ -220,7 +208,6 @@ class ActivityHistoryItem extends Entity
/**
* Gets the status
* Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.
*
* @return Status|null The status
*/
@ -239,7 +226,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the status
* Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.
*
* @param Status $val The status
*
@ -253,7 +239,6 @@ class ActivityHistoryItem extends Entity
/**
* Gets the userTimezone
* Optional. The timezone in which the user's device used to generate the activity was located at activity creation time. Values supplied as Olson IDs in order to support cross-platform representation.
*
* @return string|null The userTimezone
*/
@ -268,7 +253,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the userTimezone
* Optional. The timezone in which the user's device used to generate the activity was located at activity creation time. Values supplied as Olson IDs in order to support cross-platform representation.
*
* @param string $val The userTimezone
*
@ -282,7 +266,6 @@ class ActivityHistoryItem extends Entity
/**
* Gets the activity
* Optional. NavigationProperty/Containment; navigation property to the associated activity.
*
* @return UserActivity|null The activity
*/
@ -301,7 +284,6 @@ class ActivityHistoryItem extends Entity
/**
* Sets the activity
* Optional. NavigationProperty/Containment; navigation property to the associated activity.
*
* @param UserActivity $val The activity
*

View File

@ -0,0 +1,35 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AndroidDeviceOwnerCertificateAccessType 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;
use Microsoft\Graph\Core\Enum;
/**
* AndroidDeviceOwnerCertificateAccessType 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 AndroidDeviceOwnerCertificateAccessType extends Enum
{
/**
* The Enum AndroidDeviceOwnerCertificateAccessType
*/
const USER_APPROVAL = "userApproval";
const SPECIFIC_APPS = "specificApps";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

View File

@ -24,6 +24,69 @@ namespace Beta\Microsoft\Graph\Model;
*/
class AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration extends DeviceConfiguration
{
/**
* Gets the certificateAccessType
* Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue.
*
* @return AndroidDeviceOwnerCertificateAccessType|null The certificateAccessType
*/
public function getCertificateAccessType()
{
if (array_key_exists("certificateAccessType", $this->_propDict)) {
if (is_a($this->_propDict["certificateAccessType"], "\Beta\Microsoft\Graph\Model\AndroidDeviceOwnerCertificateAccessType") || is_null($this->_propDict["certificateAccessType"])) {
return $this->_propDict["certificateAccessType"];
} else {
$this->_propDict["certificateAccessType"] = new AndroidDeviceOwnerCertificateAccessType($this->_propDict["certificateAccessType"]);
return $this->_propDict["certificateAccessType"];
}
}
return null;
}
/**
* Sets the certificateAccessType
* Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue.
*
* @param AndroidDeviceOwnerCertificateAccessType $val The certificateAccessType
*
* @return AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration
*/
public function setCertificateAccessType($val)
{
$this->_propDict["certificateAccessType"] = $val;
return $this;
}
/**
* Gets the silentCertificateAccessDetails
* Certificate access information. This collection can contain a maximum of 50 elements.
*
* @return array|null The silentCertificateAccessDetails
*/
public function getSilentCertificateAccessDetails()
{
if (array_key_exists("silentCertificateAccessDetails", $this->_propDict)) {
return $this->_propDict["silentCertificateAccessDetails"];
} else {
return null;
}
}
/**
* Sets the silentCertificateAccessDetails
* Certificate access information. This collection can contain a maximum of 50 elements.
*
* @param AndroidDeviceOwnerSilentCertificateAccess[] $val The silentCertificateAccessDetails
*
* @return AndroidDeviceOwnerDerivedCredentialAuthenticationConfiguration
*/
public function setSilentCertificateAccessDetails($val)
{
$this->_propDict["silentCertificateAccessDetails"] = $val;
return $this;
}
/**
* Gets the derivedCredentialSettings
* Tenant level settings for the Derived Credentials to be used for authentication.

View File

@ -53,6 +53,35 @@ class AndroidDeviceOwnerEnrollmentProfile extends Entity
return $this;
}
/**
* Gets the configureWifi
* Boolean that indicates that the Wi-Fi network should be configured during device provisioning. When set to TRUE, device provisioning will use Wi-Fi related properties to automatically connect to Wi-Fi networks. When set to FALSE or undefined, other Wi-Fi related properties will be ignored. Default value is TRUE. Returned by default.
*
* @return bool|null The configureWifi
*/
public function getConfigureWifi()
{
if (array_key_exists("configureWifi", $this->_propDict)) {
return $this->_propDict["configureWifi"];
} else {
return null;
}
}
/**
* Sets the configureWifi
* Boolean that indicates that the Wi-Fi network should be configured during device provisioning. When set to TRUE, device provisioning will use Wi-Fi related properties to automatically connect to Wi-Fi networks. When set to FALSE or undefined, other Wi-Fi related properties will be ignored. Default value is TRUE. Returned by default.
*
* @param bool $val The configureWifi
*
* @return AndroidDeviceOwnerEnrollmentProfile
*/
public function setConfigureWifi($val)
{
$this->_propDict["configureWifi"] = boolval($val);
return $this;
}
/**
* Gets the createdDateTime
* Date time the enrollment profile was created.

View File

@ -24,6 +24,39 @@ namespace Beta\Microsoft\Graph\Model;
*/
class AndroidDeviceOwnerImportedPFXCertificateProfile extends AndroidDeviceOwnerCertificateProfileBase
{
/**
* Gets the certificateAccessType
* Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue.
*
* @return AndroidDeviceOwnerCertificateAccessType|null The certificateAccessType
*/
public function getCertificateAccessType()
{
if (array_key_exists("certificateAccessType", $this->_propDict)) {
if (is_a($this->_propDict["certificateAccessType"], "\Beta\Microsoft\Graph\Model\AndroidDeviceOwnerCertificateAccessType") || is_null($this->_propDict["certificateAccessType"])) {
return $this->_propDict["certificateAccessType"];
} else {
$this->_propDict["certificateAccessType"] = new AndroidDeviceOwnerCertificateAccessType($this->_propDict["certificateAccessType"]);
return $this->_propDict["certificateAccessType"];
}
}
return null;
}
/**
* Sets the certificateAccessType
* Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue.
*
* @param AndroidDeviceOwnerCertificateAccessType $val The certificateAccessType
*
* @return AndroidDeviceOwnerImportedPFXCertificateProfile
*/
public function setCertificateAccessType($val)
{
$this->_propDict["certificateAccessType"] = $val;
return $this;
}
/**
* Gets the intendedPurpose
* Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc. Possible values are: unassigned, smimeEncryption, smimeSigning, vpn, wifi.
@ -58,6 +91,36 @@ class AndroidDeviceOwnerImportedPFXCertificateProfile extends AndroidDeviceOwner
}
/**
* Gets the silentCertificateAccessDetails
* Certificate access information. This collection can contain a maximum of 50 elements.
*
* @return array|null The silentCertificateAccessDetails
*/
public function getSilentCertificateAccessDetails()
{
if (array_key_exists("silentCertificateAccessDetails", $this->_propDict)) {
return $this->_propDict["silentCertificateAccessDetails"];
} else {
return null;
}
}
/**
* Sets the silentCertificateAccessDetails
* Certificate access information. This collection can contain a maximum of 50 elements.
*
* @param AndroidDeviceOwnerSilentCertificateAccess[] $val The silentCertificateAccessDetails
*
* @return AndroidDeviceOwnerImportedPFXCertificateProfile
*/
public function setSilentCertificateAccessDetails($val)
{
$this->_propDict["silentCertificateAccessDetails"] = $val;
return $this;
}
/**
* Gets the managedDeviceCertificateStates
* Certificate state for devices. This collection can contain a maximum of 2147483647 elements.

View File

@ -24,6 +24,39 @@ namespace Beta\Microsoft\Graph\Model;
*/
class AndroidDeviceOwnerPkcsCertificateProfile extends AndroidDeviceOwnerCertificateProfileBase
{
/**
* Gets the certificateAccessType
* Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue.
*
* @return AndroidDeviceOwnerCertificateAccessType|null The certificateAccessType
*/
public function getCertificateAccessType()
{
if (array_key_exists("certificateAccessType", $this->_propDict)) {
if (is_a($this->_propDict["certificateAccessType"], "\Beta\Microsoft\Graph\Model\AndroidDeviceOwnerCertificateAccessType") || is_null($this->_propDict["certificateAccessType"])) {
return $this->_propDict["certificateAccessType"];
} else {
$this->_propDict["certificateAccessType"] = new AndroidDeviceOwnerCertificateAccessType($this->_propDict["certificateAccessType"]);
return $this->_propDict["certificateAccessType"];
}
}
return null;
}
/**
* Sets the certificateAccessType
* Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue.
*
* @param AndroidDeviceOwnerCertificateAccessType $val The certificateAccessType
*
* @return AndroidDeviceOwnerPkcsCertificateProfile
*/
public function setCertificateAccessType($val)
{
$this->_propDict["certificateAccessType"] = $val;
return $this;
}
/**
* Gets the certificateStore
* Target store certificate. Possible values are: user, machine.
@ -207,6 +240,36 @@ class AndroidDeviceOwnerPkcsCertificateProfile extends AndroidDeviceOwnerCertifi
return $this;
}
/**
* Gets the silentCertificateAccessDetails
* Certificate access information. This collection can contain a maximum of 50 elements.
*
* @return array|null The silentCertificateAccessDetails
*/
public function getSilentCertificateAccessDetails()
{
if (array_key_exists("silentCertificateAccessDetails", $this->_propDict)) {
return $this->_propDict["silentCertificateAccessDetails"];
} else {
return null;
}
}
/**
* Sets the silentCertificateAccessDetails
* Certificate access information. This collection can contain a maximum of 50 elements.
*
* @param AndroidDeviceOwnerSilentCertificateAccess[] $val The silentCertificateAccessDetails
*
* @return AndroidDeviceOwnerPkcsCertificateProfile
*/
public function setSilentCertificateAccessDetails($val)
{
$this->_propDict["silentCertificateAccessDetails"] = $val;
return $this;
}
/**
* Gets the subjectAlternativeNameFormatString
* Custom String that defines the AAD Attribute.

View File

@ -24,6 +24,39 @@ namespace Beta\Microsoft\Graph\Model;
*/
class AndroidDeviceOwnerScepCertificateProfile extends AndroidDeviceOwnerCertificateProfileBase
{
/**
* Gets the certificateAccessType
* Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue.
*
* @return AndroidDeviceOwnerCertificateAccessType|null The certificateAccessType
*/
public function getCertificateAccessType()
{
if (array_key_exists("certificateAccessType", $this->_propDict)) {
if (is_a($this->_propDict["certificateAccessType"], "\Beta\Microsoft\Graph\Model\AndroidDeviceOwnerCertificateAccessType") || is_null($this->_propDict["certificateAccessType"])) {
return $this->_propDict["certificateAccessType"];
} else {
$this->_propDict["certificateAccessType"] = new AndroidDeviceOwnerCertificateAccessType($this->_propDict["certificateAccessType"]);
return $this->_propDict["certificateAccessType"];
}
}
return null;
}
/**
* Sets the certificateAccessType
* Certificate access type. Possible values are: userApproval, specificApps, unknownFutureValue.
*
* @param AndroidDeviceOwnerCertificateAccessType $val The certificateAccessType
*
* @return AndroidDeviceOwnerScepCertificateProfile
*/
public function setCertificateAccessType($val)
{
$this->_propDict["certificateAccessType"] = $val;
return $this;
}
/**
* Gets the certificateStore
* Target store certificate. Possible values are: user, machine.
@ -215,6 +248,36 @@ class AndroidDeviceOwnerScepCertificateProfile extends AndroidDeviceOwnerCertifi
return $this;
}
/**
* Gets the silentCertificateAccessDetails
* Certificate access information. This collection can contain a maximum of 50 elements.
*
* @return array|null The silentCertificateAccessDetails
*/
public function getSilentCertificateAccessDetails()
{
if (array_key_exists("silentCertificateAccessDetails", $this->_propDict)) {
return $this->_propDict["silentCertificateAccessDetails"];
} else {
return null;
}
}
/**
* Sets the silentCertificateAccessDetails
* Certificate access information. This collection can contain a maximum of 50 elements.
*
* @param AndroidDeviceOwnerSilentCertificateAccess[] $val The silentCertificateAccessDetails
*
* @return AndroidDeviceOwnerScepCertificateProfile
*/
public function setSilentCertificateAccessDetails($val)
{
$this->_propDict["silentCertificateAccessDetails"] = $val;
return $this;
}
/**
* Gets the subjectAlternativeNameFormatString
* Custom String that defines the AAD Attribute.

View File

@ -0,0 +1,54 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AndroidDeviceOwnerSilentCertificateAccess 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;
/**
* AndroidDeviceOwnerSilentCertificateAccess 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 AndroidDeviceOwnerSilentCertificateAccess extends Entity
{
/**
* Gets the packageId
* Package ID that has the pre-granted access to the certificate.
*
* @return string|null The packageId
*/
public function getPackageId()
{
if (array_key_exists("packageId", $this->_propDict)) {
return $this->_propDict["packageId"];
} else {
return null;
}
}
/**
* Sets the packageId
* Package ID that has the pre-granted access to the certificate.
*
* @param string $val The value of the packageId
*
* @return AndroidDeviceOwnerSilentCertificateAccess
*/
public function setPackageId($val)
{
$this->_propDict["packageId"] = $val;
return $this;
}
}

View File

@ -23,9 +23,37 @@ namespace Beta\Microsoft\Graph\Model;
*/
class AndroidFotaDeploymentAssignment extends Entity
{
/**
* Gets the displayName
* The display name of the Azure AD security group used for the assignment.
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
* The display name of the Azure AD security group used for the assignment.
*
* @param string $val The value of the displayName
*
* @return AndroidFotaDeploymentAssignment
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
/**
* Gets the id
* Key for the Android FOTA Assignment entity
* A unique identifier assigned to each Android FOTA Assignment entity
*
* @return string|null The id
*/
@ -40,7 +68,7 @@ class AndroidFotaDeploymentAssignment extends Entity
/**
* Sets the id
* Key for the Android FOTA Assignment entity
* A unique identifier assigned to each Android FOTA Assignment entity
*
* @param string $val The value of the id
*

View File

@ -144,7 +144,7 @@ class AppConsentRequest extends Entity
/**
* Gets the userConsentRequests
* A list of pending user consent requests.
* A list of pending user consent requests. Supports $filter (eq).
*
* @return array|null The userConsentRequests
*/
@ -159,7 +159,7 @@ class AppConsentRequest extends Entity
/**
* Sets the userConsentRequests
* A list of pending user consent requests.
* A list of pending user consent requests. Supports $filter (eq).
*
* @param UserConsentRequest[] $val The userConsentRequests
*

View File

@ -59,7 +59,7 @@ class Application extends DirectoryObject
/**
* Gets the appId
* The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only.
* The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only. Supports $filter (eq).
*
* @return string|null The appId
*/
@ -74,7 +74,7 @@ class Application extends DirectoryObject
/**
* Sets the appId
* The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only.
* The unique identifier for the application that is assigned by Azure AD. Not nullable. Read-only. Supports $filter (eq).
*
* @param string $val The appId
*
@ -697,6 +697,39 @@ class Application extends DirectoryObject
return $this;
}
/**
* Gets the requestSignatureVerification
* Specifies whether this application requires Azure AD to verify the signed authentication requests.
*
* @return RequestSignatureVerification|null The requestSignatureVerification
*/
public function getRequestSignatureVerification()
{
if (array_key_exists("requestSignatureVerification", $this->_propDict)) {
if (is_a($this->_propDict["requestSignatureVerification"], "\Beta\Microsoft\Graph\Model\RequestSignatureVerification") || is_null($this->_propDict["requestSignatureVerification"])) {
return $this->_propDict["requestSignatureVerification"];
} else {
$this->_propDict["requestSignatureVerification"] = new RequestSignatureVerification($this->_propDict["requestSignatureVerification"]);
return $this->_propDict["requestSignatureVerification"];
}
}
return null;
}
/**
* Sets the requestSignatureVerification
* Specifies whether this application requires Azure AD to verify the signed authentication requests.
*
* @param RequestSignatureVerification $val The requestSignatureVerification
*
* @return Application
*/
public function setRequestSignatureVerification($val)
{
$this->_propDict["requestSignatureVerification"] = $val;
return $this;
}
/**
* Gets the requiredResourceAccess
@ -1098,6 +1131,7 @@ class Application extends DirectoryObject
/**
* Gets the createdOnBehalfOf
* Supports $filter (eq when counting empty collections). Read-only.
*
* @return DirectoryObject|null The createdOnBehalfOf
*/
@ -1116,6 +1150,7 @@ class Application extends DirectoryObject
/**
* Sets the createdOnBehalfOf
* Supports $filter (eq when counting empty collections). Read-only.
*
* @param DirectoryObject $val The createdOnBehalfOf
*
@ -1130,7 +1165,7 @@ class Application extends DirectoryObject
/**
* Gets the extensionProperties
* Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).
* Read-only. Nullable. Supports $expand and $filter (eq and ne when counting empty collections and only with advanced query parameters).
*
* @return array|null The extensionProperties
*/
@ -1145,7 +1180,7 @@ class Application extends DirectoryObject
/**
* Sets the extensionProperties
* Read-only. Nullable. Supports $expand and $filter (eq when counting empty collections).
* Read-only. Nullable. Supports $expand and $filter (eq and ne when counting empty collections and only with advanced query parameters).
*
* @param ExtensionProperty[] $val The extensionProperties
*
@ -1160,7 +1195,7 @@ class Application extends DirectoryObject
/**
* Gets the federatedIdentityCredentials
* Federated identities for applications. Supports $expand and $filter (eq when counting empty collections).
* Federated identities for applications. Supports $expand and $filter (startsWith, and eq, ne when counting empty collections and only with advanced query parameters).
*
* @return array|null The federatedIdentityCredentials
*/
@ -1175,7 +1210,7 @@ class Application extends DirectoryObject
/**
* Sets the federatedIdentityCredentials
* Federated identities for applications. Supports $expand and $filter (eq when counting empty collections).
* Federated identities for applications. Supports $expand and $filter (startsWith, and eq, ne when counting empty collections and only with advanced query parameters).
*
* @param FederatedIdentityCredential[] $val The federatedIdentityCredentials
*
@ -1218,7 +1253,7 @@ class Application extends DirectoryObject
/**
* Gets the owners
* Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
* Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq and ne when counting empty collections).
*
* @return array|null The owners
*/
@ -1233,7 +1268,7 @@ class Application extends DirectoryObject
/**
* Sets the owners
* Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
* Directory objects that are owners of the application. Read-only. Nullable. Supports $expand and $filter (eq and ne when counting empty collections).
*
* @param DirectoryObject[] $val The owners
*

View File

@ -113,7 +113,7 @@ class ApprovalStep extends Entity
/**
* Gets the reviewedBy
* The identifier of the reviewer. Read-only.
* The identifier of the reviewer. 00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't reviewed. Read-only.
*
* @return Identity|null The reviewedBy
*/
@ -132,7 +132,7 @@ class ApprovalStep extends Entity
/**
* Sets the reviewedBy
* The identifier of the reviewer. Read-only.
* The identifier of the reviewer. 00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't reviewed. Read-only.
*
* @param Identity $val The reviewedBy
*

View File

@ -80,6 +80,34 @@ class AuditActor extends Entity
return $this;
}
/**
* Gets the auditActorType
* Actor Type.
*
* @return string|null The auditActorType
*/
public function getAuditActorType()
{
if (array_key_exists("auditActorType", $this->_propDict)) {
return $this->_propDict["auditActorType"];
} else {
return null;
}
}
/**
* Sets the auditActorType
* Actor Type.
*
* @param string $val The value of the auditActorType
*
* @return AuditActor
*/
public function setAuditActorType($val)
{
$this->_propDict["auditActorType"] = $val;
return $this;
}
/**
* Gets the ipAddress
* IPAddress.
*

View File

@ -22,8 +22,39 @@ namespace Beta\Microsoft\Graph\Model;
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class AuditLogRoot extends Entity
class AuditLogRoot implements \JsonSerializable
{
/**
* The array of properties available
* to the model
*
* @var array $_propDict
*/
protected $_propDict;
/**
* Construct a new AuditLogRoot
*
* @param array $propDict A list of properties to set
*/
function __construct($propDict = array())
{
if (!is_array($propDict)) {
$propDict = array();
}
$this->_propDict = $propDict;
}
/**
* Gets the property dictionary of the AuditLogRoot
*
* @return array The list of properties
*/
public function getProperties()
{
return $this->_propDict;
}
/**
* Gets the directoryAudits
@ -109,34 +140,6 @@ class AuditLogRoot extends Entity
}
/**
* Gets the restrictedSignIns
*
* @return array|null The restrictedSignIns
*/
public function getRestrictedSignIns()
{
if (array_key_exists("restrictedSignIns", $this->_propDict)) {
return $this->_propDict["restrictedSignIns"];
} else {
return null;
}
}
/**
* Sets the restrictedSignIns
*
* @param RestrictedSignIn[] $val The restrictedSignIns
*
* @return AuditLogRoot
*/
public function setRestrictedSignIns($val)
{
$this->_propDict["restrictedSignIns"] = $val;
return $this;
}
/**
* Gets the signIns
*
@ -164,4 +167,51 @@ class AuditLogRoot extends Entity
return $this;
}
/**
* Gets the ODataType
*
* @return string|null The ODataType
*/
public function getODataType()
{
if (array_key_exists('@odata.type', $this->_propDict)) {
return $this->_propDict["@odata.type"];
}
return null;
}
/**
* Sets the ODataType
*
* @param string $val The ODataType
*
* @return AuditLogRoot
*/
public function setODataType($val)
{
$this->_propDict["@odata.type"] = $val;
return $this;
}
/**
* Serializes the object by property array
* Manually serialize DateTime into RFC3339 format
*
* @return array The list of properties
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
$serializableProperties = $this->getProperties();
foreach ($serializableProperties as $property => $val) {
if (is_a($val, "\DateTime")) {
$serializableProperties[$property] = $val->format(\DateTime::RFC3339);
} else if (is_a($val, "\Microsoft\Graph\Core\Enum")) {
$serializableProperties[$property] = $val->value();
} else if (is_a($val, "\Entity")) {
$serializableProperties[$property] = $val->jsonSerialize();
}
}
return $serializableProperties;
}
}

View File

@ -23,6 +23,34 @@ namespace Beta\Microsoft\Graph\Model;
*/
class AuditResource extends Entity
{
/**
* Gets the auditResourceType
* Audit resource's type.
*
* @return string|null The auditResourceType
*/
public function getAuditResourceType()
{
if (array_key_exists("auditResourceType", $this->_propDict)) {
return $this->_propDict["auditResourceType"];
} else {
return null;
}
}
/**
* Sets the auditResourceType
* Audit resource's type.
*
* @param string $val The value of the auditResourceType
*
* @return AuditResource
*/
public function setAuditResourceType($val)
{
$this->_propDict["auditResourceType"] = $val;
return $this;
}
/**
* Gets the displayName
* Display name.

View File

@ -0,0 +1,55 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationCombinationConfiguration 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;
/**
* AuthenticationCombinationConfiguration 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 AuthenticationCombinationConfiguration extends Entity
{
/**
* Gets the appliesToCombinations
*
* @return array|null The appliesToCombinations
*/
public function getAppliesToCombinations()
{
if (array_key_exists("appliesToCombinations", $this->_propDict)) {
return $this->_propDict["appliesToCombinations"];
} else {
return null;
}
}
/**
* Sets the appliesToCombinations
*
* @param AuthenticationMethodModes[] $val The appliesToCombinations
*
* @return AuthenticationCombinationConfiguration
*/
public function setAppliesToCombinations($val)
{
$this->_propDict["appliesToCombinations"] = $val;
return $this;
}
}

View File

@ -0,0 +1,132 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationConditionApplication 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;
/**
* AuthenticationConditionApplication 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 AuthenticationConditionApplication implements \JsonSerializable
{
/**
* The array of properties available
* to the model
*
* @var array $_propDict
*/
protected $_propDict;
/**
* Construct a new AuthenticationConditionApplication
*
* @param array $propDict A list of properties to set
*/
function __construct($propDict = array())
{
if (!is_array($propDict)) {
$propDict = array();
}
$this->_propDict = $propDict;
}
/**
* Gets the property dictionary of the AuthenticationConditionApplication
*
* @return array The list of properties
*/
public function getProperties()
{
return $this->_propDict;
}
/**
* Gets the appId
*
* @return string|null The appId
*/
public function getAppId()
{
if (array_key_exists("appId", $this->_propDict)) {
return $this->_propDict["appId"];
} else {
return null;
}
}
/**
* Sets the appId
*
* @param string $val The appId
*
* @return AuthenticationConditionApplication
*/
public function setAppId($val)
{
$this->_propDict["appId"] = $val;
return $this;
}
/**
* Gets the ODataType
*
* @return string|null The ODataType
*/
public function getODataType()
{
if (array_key_exists('@odata.type', $this->_propDict)) {
return $this->_propDict["@odata.type"];
}
return null;
}
/**
* Sets the ODataType
*
* @param string $val The ODataType
*
* @return AuthenticationConditionApplication
*/
public function setODataType($val)
{
$this->_propDict["@odata.type"] = $val;
return $this;
}
/**
* Serializes the object by property array
* Manually serialize DateTime into RFC3339 format
*
* @return array The list of properties
*/
#[\ReturnTypeWillChange]
public function jsonSerialize()
{
$serializableProperties = $this->getProperties();
foreach ($serializableProperties as $property => $val) {
if (is_a($val, "\DateTime")) {
$serializableProperties[$property] = $val->format(\DateTime::RFC3339);
} else if (is_a($val, "\Microsoft\Graph\Core\Enum")) {
$serializableProperties[$property] = $val->value();
} else if (is_a($val, "\Entity")) {
$serializableProperties[$property] = $val->jsonSerialize();
}
}
return $serializableProperties;
}
}

View File

@ -0,0 +1,57 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationConditions 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;
/**
* AuthenticationConditions 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 AuthenticationConditions extends Entity
{
/**
* Gets the applications
*
* @return AuthenticationConditionsApplications|null The applications
*/
public function getApplications()
{
if (array_key_exists("applications", $this->_propDict)) {
if (is_a($this->_propDict["applications"], "\Beta\Microsoft\Graph\Model\AuthenticationConditionsApplications") || is_null($this->_propDict["applications"])) {
return $this->_propDict["applications"];
} else {
$this->_propDict["applications"] = new AuthenticationConditionsApplications($this->_propDict["applications"]);
return $this->_propDict["applications"];
}
}
return null;
}
/**
* Sets the applications
*
* @param AuthenticationConditionsApplications $val The value to assign to the applications
*
* @return AuthenticationConditions The AuthenticationConditions
*/
public function setApplications($val)
{
$this->_propDict["applications"] = $val;
return $this;
}
}

View File

@ -0,0 +1,83 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationConditionsApplications 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;
/**
* AuthenticationConditionsApplications 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 AuthenticationConditionsApplications extends Entity
{
/**
* Gets the includeAllApplications
*
* @return bool|null The includeAllApplications
*/
public function getIncludeAllApplications()
{
if (array_key_exists("includeAllApplications", $this->_propDict)) {
return $this->_propDict["includeAllApplications"];
} else {
return null;
}
}
/**
* Sets the includeAllApplications
*
* @param bool $val The value of the includeAllApplications
*
* @return AuthenticationConditionsApplications
*/
public function setIncludeAllApplications($val)
{
$this->_propDict["includeAllApplications"] = $val;
return $this;
}
/**
* Gets the includeApplications
*
* @return AuthenticationConditionApplication|null The includeApplications
*/
public function getIncludeApplications()
{
if (array_key_exists("includeApplications", $this->_propDict)) {
if (is_a($this->_propDict["includeApplications"], "\Beta\Microsoft\Graph\Model\AuthenticationConditionApplication") || is_null($this->_propDict["includeApplications"])) {
return $this->_propDict["includeApplications"];
} else {
$this->_propDict["includeApplications"] = new AuthenticationConditionApplication($this->_propDict["includeApplications"]);
return $this->_propDict["includeApplications"];
}
}
return null;
}
/**
* Sets the includeApplications
*
* @param AuthenticationConditionApplication $val The value to assign to the includeApplications
*
* @return AuthenticationConditionsApplications The AuthenticationConditionsApplications
*/
public function setIncludeApplications($val)
{
$this->_propDict["includeApplications"] = $val;
return $this;
}
}

View File

@ -0,0 +1,88 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationConfigurationValidation 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;
/**
* AuthenticationConfigurationValidation 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 AuthenticationConfigurationValidation extends Entity
{
/**
* Gets the errors
*
* @return GenericError|null The errors
*/
public function getErrors()
{
if (array_key_exists("errors", $this->_propDict)) {
if (is_a($this->_propDict["errors"], "\Beta\Microsoft\Graph\Model\GenericError") || is_null($this->_propDict["errors"])) {
return $this->_propDict["errors"];
} else {
$this->_propDict["errors"] = new GenericError($this->_propDict["errors"]);
return $this->_propDict["errors"];
}
}
return null;
}
/**
* Sets the errors
*
* @param GenericError $val The value to assign to the errors
*
* @return AuthenticationConfigurationValidation The AuthenticationConfigurationValidation
*/
public function setErrors($val)
{
$this->_propDict["errors"] = $val;
return $this;
}
/**
* Gets the warnings
*
* @return GenericError|null The warnings
*/
public function getWarnings()
{
if (array_key_exists("warnings", $this->_propDict)) {
if (is_a($this->_propDict["warnings"], "\Beta\Microsoft\Graph\Model\GenericError") || is_null($this->_propDict["warnings"])) {
return $this->_propDict["warnings"];
} else {
$this->_propDict["warnings"] = new GenericError($this->_propDict["warnings"]);
return $this->_propDict["warnings"];
}
}
return null;
}
/**
* Sets the warnings
*
* @param GenericError $val The value to assign to the warnings
*
* @return AuthenticationConfigurationValidation The AuthenticationConfigurationValidation
*/
public function setWarnings($val)
{
$this->_propDict["warnings"] = $val;
return $this;
}
}

View File

@ -0,0 +1,140 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationEventListener 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;
/**
* AuthenticationEventListener 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 AuthenticationEventListener extends Entity
{
/**
* Gets the authenticationEventsFlowId
*
* @return string|null The authenticationEventsFlowId
*/
public function getAuthenticationEventsFlowId()
{
if (array_key_exists("authenticationEventsFlowId", $this->_propDict)) {
return $this->_propDict["authenticationEventsFlowId"];
} else {
return null;
}
}
/**
* Sets the authenticationEventsFlowId
*
* @param string $val The authenticationEventsFlowId
*
* @return AuthenticationEventListener
*/
public function setAuthenticationEventsFlowId($val)
{
$this->_propDict["authenticationEventsFlowId"] = $val;
return $this;
}
/**
* Gets the conditions
*
* @return AuthenticationConditions|null The conditions
*/
public function getConditions()
{
if (array_key_exists("conditions", $this->_propDict)) {
if (is_a($this->_propDict["conditions"], "\Beta\Microsoft\Graph\Model\AuthenticationConditions") || is_null($this->_propDict["conditions"])) {
return $this->_propDict["conditions"];
} else {
$this->_propDict["conditions"] = new AuthenticationConditions($this->_propDict["conditions"]);
return $this->_propDict["conditions"];
}
}
return null;
}
/**
* Sets the conditions
*
* @param AuthenticationConditions $val The conditions
*
* @return AuthenticationEventListener
*/
public function setConditions($val)
{
$this->_propDict["conditions"] = $val;
return $this;
}
/**
* Gets the priority
*
* @return int|null The priority
*/
public function getPriority()
{
if (array_key_exists("priority", $this->_propDict)) {
return $this->_propDict["priority"];
} else {
return null;
}
}
/**
* Sets the priority
*
* @param int $val The priority
*
* @return AuthenticationEventListener
*/
public function setPriority($val)
{
$this->_propDict["priority"] = intval($val);
return $this;
}
/**
* Gets the tags
*
* @return array|null The tags
*/
public function getTags()
{
if (array_key_exists("tags", $this->_propDict)) {
return $this->_propDict["tags"];
} else {
return null;
}
}
/**
* Sets the tags
*
* @param KeyValuePair[] $val The tags
*
* @return AuthenticationEventListener
*/
public function setTags($val)
{
$this->_propDict["tags"] = $val;
return $this;
}
}

View File

@ -0,0 +1,125 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationMethodFeatureConfiguration 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;
/**
* AuthenticationMethodFeatureConfiguration 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 AuthenticationMethodFeatureConfiguration extends Entity
{
/**
* Gets the excludeTarget
* A single entity that's excluded from using this feature.
*
* @return FeatureTarget|null The excludeTarget
*/
public function getExcludeTarget()
{
if (array_key_exists("excludeTarget", $this->_propDict)) {
if (is_a($this->_propDict["excludeTarget"], "\Beta\Microsoft\Graph\Model\FeatureTarget") || is_null($this->_propDict["excludeTarget"])) {
return $this->_propDict["excludeTarget"];
} else {
$this->_propDict["excludeTarget"] = new FeatureTarget($this->_propDict["excludeTarget"]);
return $this->_propDict["excludeTarget"];
}
}
return null;
}
/**
* Sets the excludeTarget
* A single entity that's excluded from using this feature.
*
* @param FeatureTarget $val The value to assign to the excludeTarget
*
* @return AuthenticationMethodFeatureConfiguration The AuthenticationMethodFeatureConfiguration
*/
public function setExcludeTarget($val)
{
$this->_propDict["excludeTarget"] = $val;
return $this;
}
/**
* Gets the includeTarget
* A single entity that's allowed to use this feature.
*
* @return FeatureTarget|null The includeTarget
*/
public function getIncludeTarget()
{
if (array_key_exists("includeTarget", $this->_propDict)) {
if (is_a($this->_propDict["includeTarget"], "\Beta\Microsoft\Graph\Model\FeatureTarget") || is_null($this->_propDict["includeTarget"])) {
return $this->_propDict["includeTarget"];
} else {
$this->_propDict["includeTarget"] = new FeatureTarget($this->_propDict["includeTarget"]);
return $this->_propDict["includeTarget"];
}
}
return null;
}
/**
* Sets the includeTarget
* A single entity that's allowed to use this feature.
*
* @param FeatureTarget $val The value to assign to the includeTarget
*
* @return AuthenticationMethodFeatureConfiguration The AuthenticationMethodFeatureConfiguration
*/
public function setIncludeTarget($val)
{
$this->_propDict["includeTarget"] = $val;
return $this;
}
/**
* Gets the state
* Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Azure AD for the setting. The default value is disabled.
*
* @return AdvancedConfigState|null The state
*/
public function getState()
{
if (array_key_exists("state", $this->_propDict)) {
if (is_a($this->_propDict["state"], "\Beta\Microsoft\Graph\Model\AdvancedConfigState") || is_null($this->_propDict["state"])) {
return $this->_propDict["state"];
} else {
$this->_propDict["state"] = new AdvancedConfigState($this->_propDict["state"]);
return $this->_propDict["state"];
}
}
return null;
}
/**
* Sets the state
* Enable or disable the feature. Possible values are: default, enabled, disabled, unknownFutureValue. The default value is used when the configuration hasn't been explicitly set and uses the default behavior of Azure AD for the setting. The default value is disabled.
*
* @param AdvancedConfigState $val The value to assign to the state
*
* @return AuthenticationMethodFeatureConfiguration The AuthenticationMethodFeatureConfiguration
*/
public function setState($val)
{
$this->_propDict["state"] = $val;
return $this;
}
}

View File

@ -0,0 +1,85 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationMethodModeDetail 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;
/**
* AuthenticationMethodModeDetail 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 AuthenticationMethodModeDetail extends Entity
{
/**
* Gets the authenticationMethod
*
* @return BaseAuthenticationMethod|null The authenticationMethod
*/
public function getAuthenticationMethod()
{
if (array_key_exists("authenticationMethod", $this->_propDict)) {
if (is_a($this->_propDict["authenticationMethod"], "\Beta\Microsoft\Graph\Model\BaseAuthenticationMethod") || is_null($this->_propDict["authenticationMethod"])) {
return $this->_propDict["authenticationMethod"];
} else {
$this->_propDict["authenticationMethod"] = new BaseAuthenticationMethod($this->_propDict["authenticationMethod"]);
return $this->_propDict["authenticationMethod"];
}
}
return null;
}
/**
* Sets the authenticationMethod
*
* @param BaseAuthenticationMethod $val The authenticationMethod
*
* @return AuthenticationMethodModeDetail
*/
public function setAuthenticationMethod($val)
{
$this->_propDict["authenticationMethod"] = $val;
return $this;
}
/**
* Gets the displayName
*
* @return string|null The displayName
*/
public function getDisplayName()
{
if (array_key_exists("displayName", $this->_propDict)) {
return $this->_propDict["displayName"];
} else {
return null;
}
}
/**
* Sets the displayName
*
* @param string $val The displayName
*
* @return AuthenticationMethodModeDetail
*/
public function setDisplayName($val)
{
$this->_propDict["displayName"] = $val;
return $this;
}
}

View File

@ -0,0 +1,49 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AuthenticationMethodModes 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;
use Microsoft\Graph\Core\Enum;
/**
* AuthenticationMethodModes 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 AuthenticationMethodModes extends Enum
{
/**
* The Enum AuthenticationMethodModes
*/
const PASSWORD = "password";
const VOICE = "voice";
const HARDWARE_OATH = "hardwareOath";
const SOFTWARE_OATH = "softwareOath";
const SMS = "sms";
const FIDO2 = "fido2";
const WINDOWS_HELLO_FOR_BUSINESS = "windowsHelloForBusiness";
const MICROSOFT_AUTHENTICATOR_PUSH = "microsoftAuthenticatorPush";
const DEVICE_BASED_PUSH = "deviceBasedPush";
const TEMPORARY_ACCESS_PASS_ONE_TIME = "temporaryAccessPassOneTime";
const TEMPORARY_ACCESS_PASS_MULTI_USE = "temporaryAccessPassMultiUse";
const EMAIL = "email";
const X509_CERTIFICATE_SINGLE_FACTOR = "x509CertificateSingleFactor";
const X509_CERTIFICATE_MULTI_FACTOR = "x509CertificateMultiFactor";
const FEDERATED_SINGLE_FACTOR = "federatedSingleFactor";
const FEDERATED_MULTI_FACTOR = "federatedMultiFactor";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}

Some files were not shown because too many files have changed in this diff Show More