456 lines
12 KiB
PHP
456 lines
12 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
*
|
|
* DeviceComplianceScript 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;
|
|
|
|
/**
|
|
* DeviceComplianceScript 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 DeviceComplianceScript extends Entity
|
|
{
|
|
/**
|
|
* Gets the createdDateTime
|
|
* The timestamp of when the device compliance script was created. This property is read-only.
|
|
*
|
|
* @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 timestamp of when the device compliance script was created. This property is read-only.
|
|
*
|
|
* @param \DateTime $val The createdDateTime
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setCreatedDateTime($val)
|
|
{
|
|
$this->_propDict["createdDateTime"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the description
|
|
* Description of the device compliance script
|
|
*
|
|
* @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
|
|
* Description of the device compliance script
|
|
*
|
|
* @param string $val The description
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setDescription($val)
|
|
{
|
|
$this->_propDict["description"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the detectionScriptContent
|
|
* The entire content of the detection powershell script
|
|
*
|
|
* @return \GuzzleHttp\Psr7\Stream|null The detectionScriptContent
|
|
*/
|
|
public function getDetectionScriptContent()
|
|
{
|
|
if (array_key_exists("detectionScriptContent", $this->_propDict)) {
|
|
if (is_a($this->_propDict["detectionScriptContent"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["detectionScriptContent"])) {
|
|
return $this->_propDict["detectionScriptContent"];
|
|
} else {
|
|
$this->_propDict["detectionScriptContent"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["detectionScriptContent"]);
|
|
return $this->_propDict["detectionScriptContent"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the detectionScriptContent
|
|
* The entire content of the detection powershell script
|
|
*
|
|
* @param \GuzzleHttp\Psr7\Stream $val The detectionScriptContent
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setDetectionScriptContent($val)
|
|
{
|
|
$this->_propDict["detectionScriptContent"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the displayName
|
|
* Name of the device compliance script
|
|
*
|
|
* @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
|
|
* Name of the device compliance script
|
|
*
|
|
* @param string $val The displayName
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setDisplayName($val)
|
|
{
|
|
$this->_propDict["displayName"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the enforceSignatureCheck
|
|
* Indicate whether the script signature needs be checked
|
|
*
|
|
* @return bool|null The enforceSignatureCheck
|
|
*/
|
|
public function getEnforceSignatureCheck()
|
|
{
|
|
if (array_key_exists("enforceSignatureCheck", $this->_propDict)) {
|
|
return $this->_propDict["enforceSignatureCheck"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the enforceSignatureCheck
|
|
* Indicate whether the script signature needs be checked
|
|
*
|
|
* @param bool $val The enforceSignatureCheck
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setEnforceSignatureCheck($val)
|
|
{
|
|
$this->_propDict["enforceSignatureCheck"] = boolval($val);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the lastModifiedDateTime
|
|
* The timestamp of when the device compliance script was modified. This property is read-only.
|
|
*
|
|
* @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
|
|
* The timestamp of when the device compliance script was modified. This property is read-only.
|
|
*
|
|
* @param \DateTime $val The lastModifiedDateTime
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setLastModifiedDateTime($val)
|
|
{
|
|
$this->_propDict["lastModifiedDateTime"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the publisher
|
|
* Name of the device compliance script publisher
|
|
*
|
|
* @return string|null The publisher
|
|
*/
|
|
public function getPublisher()
|
|
{
|
|
if (array_key_exists("publisher", $this->_propDict)) {
|
|
return $this->_propDict["publisher"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the publisher
|
|
* Name of the device compliance script publisher
|
|
*
|
|
* @param string $val The publisher
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setPublisher($val)
|
|
{
|
|
$this->_propDict["publisher"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the roleScopeTagIds
|
|
* List of Scope Tag IDs for the device compliance script
|
|
*
|
|
* @return string|null The roleScopeTagIds
|
|
*/
|
|
public function getRoleScopeTagIds()
|
|
{
|
|
if (array_key_exists("roleScopeTagIds", $this->_propDict)) {
|
|
return $this->_propDict["roleScopeTagIds"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the roleScopeTagIds
|
|
* List of Scope Tag IDs for the device compliance script
|
|
*
|
|
* @param string $val The roleScopeTagIds
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setRoleScopeTagIds($val)
|
|
{
|
|
$this->_propDict["roleScopeTagIds"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the runAs32Bit
|
|
* Indicate whether PowerShell script(s) should run as 32-bit
|
|
*
|
|
* @return bool|null The runAs32Bit
|
|
*/
|
|
public function getRunAs32Bit()
|
|
{
|
|
if (array_key_exists("runAs32Bit", $this->_propDict)) {
|
|
return $this->_propDict["runAs32Bit"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the runAs32Bit
|
|
* Indicate whether PowerShell script(s) should run as 32-bit
|
|
*
|
|
* @param bool $val The runAs32Bit
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setRunAs32Bit($val)
|
|
{
|
|
$this->_propDict["runAs32Bit"] = boolval($val);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the runAsAccount
|
|
* Indicates the type of execution context. Possible values are: system, user.
|
|
*
|
|
* @return RunAsAccountType|null The runAsAccount
|
|
*/
|
|
public function getRunAsAccount()
|
|
{
|
|
if (array_key_exists("runAsAccount", $this->_propDict)) {
|
|
if (is_a($this->_propDict["runAsAccount"], "\Beta\Microsoft\Graph\Model\RunAsAccountType") || is_null($this->_propDict["runAsAccount"])) {
|
|
return $this->_propDict["runAsAccount"];
|
|
} else {
|
|
$this->_propDict["runAsAccount"] = new RunAsAccountType($this->_propDict["runAsAccount"]);
|
|
return $this->_propDict["runAsAccount"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the runAsAccount
|
|
* Indicates the type of execution context. Possible values are: system, user.
|
|
*
|
|
* @param RunAsAccountType $val The runAsAccount
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setRunAsAccount($val)
|
|
{
|
|
$this->_propDict["runAsAccount"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the version
|
|
* Version of the device compliance script
|
|
*
|
|
* @return string|null The version
|
|
*/
|
|
public function getVersion()
|
|
{
|
|
if (array_key_exists("version", $this->_propDict)) {
|
|
return $this->_propDict["version"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the version
|
|
* Version of the device compliance script
|
|
*
|
|
* @param string $val The version
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setVersion($val)
|
|
{
|
|
$this->_propDict["version"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the assignments
|
|
* The list of group assignments for the device compliance script
|
|
*
|
|
* @return array|null The assignments
|
|
*/
|
|
public function getAssignments()
|
|
{
|
|
if (array_key_exists("assignments", $this->_propDict)) {
|
|
return $this->_propDict["assignments"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the assignments
|
|
* The list of group assignments for the device compliance script
|
|
*
|
|
* @param DeviceHealthScriptAssignment[] $val The assignments
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setAssignments($val)
|
|
{
|
|
$this->_propDict["assignments"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the deviceRunStates
|
|
* List of run states for the device compliance script across all devices
|
|
*
|
|
* @return array|null The deviceRunStates
|
|
*/
|
|
public function getDeviceRunStates()
|
|
{
|
|
if (array_key_exists("deviceRunStates", $this->_propDict)) {
|
|
return $this->_propDict["deviceRunStates"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the deviceRunStates
|
|
* List of run states for the device compliance script across all devices
|
|
*
|
|
* @param DeviceComplianceScriptDeviceState[] $val The deviceRunStates
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setDeviceRunStates($val)
|
|
{
|
|
$this->_propDict["deviceRunStates"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the runSummary
|
|
* High level run summary for device compliance script.
|
|
*
|
|
* @return DeviceComplianceScriptRunSummary|null The runSummary
|
|
*/
|
|
public function getRunSummary()
|
|
{
|
|
if (array_key_exists("runSummary", $this->_propDict)) {
|
|
if (is_a($this->_propDict["runSummary"], "\Beta\Microsoft\Graph\Model\DeviceComplianceScriptRunSummary") || is_null($this->_propDict["runSummary"])) {
|
|
return $this->_propDict["runSummary"];
|
|
} else {
|
|
$this->_propDict["runSummary"] = new DeviceComplianceScriptRunSummary($this->_propDict["runSummary"]);
|
|
return $this->_propDict["runSummary"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the runSummary
|
|
* High level run summary for device compliance script.
|
|
*
|
|
* @param DeviceComplianceScriptRunSummary $val The runSummary
|
|
*
|
|
* @return DeviceComplianceScript
|
|
*/
|
|
public function setRunSummary($val)
|
|
{
|
|
$this->_propDict["runSummary"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
}
|