diff --git a/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleManagementSettings.php b/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleManagementSettings.php index bec6cd91f94..14be7e830aa 100644 --- a/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleManagementSettings.php +++ b/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/LifecycleManagementSettings.php @@ -24,6 +24,39 @@ */ class LifecycleManagementSettings extends \Beta\Microsoft\Graph\Model\Entity { + /** + * Gets the emailSettings + * Defines the settings for emails sent out from email-specific tasks within workflows. Accepts 2 parameterssenderDomain- Defines the domain of who is sending the email. useCompanyBranding- A boolean value that defines if company branding is to be used with the email. + * + * @return \Beta\Microsoft\Graph\Model\EmailSettings|null The emailSettings + */ + public function getEmailSettings() + { + if (array_key_exists("emailSettings", $this->_propDict)) { + if (is_a($this->_propDict["emailSettings"], "\Beta\Microsoft\Graph\Model\EmailSettings") || is_null($this->_propDict["emailSettings"])) { + return $this->_propDict["emailSettings"]; + } else { + $this->_propDict["emailSettings"] = new \Beta\Microsoft\Graph\Model\EmailSettings($this->_propDict["emailSettings"]); + return $this->_propDict["emailSettings"]; + } + } + return null; + } + + /** + * Sets the emailSettings + * Defines the settings for emails sent out from email-specific tasks within workflows. Accepts 2 parameterssenderDomain- Defines the domain of who is sending the email. useCompanyBranding- A boolean value that defines if company branding is to be used with the email. + * + * @param \Beta\Microsoft\Graph\Model\EmailSettings $val The emailSettings + * + * @return LifecycleManagementSettings + */ + public function setEmailSettings($val) + { + $this->_propDict["emailSettings"] = $val; + return $this; + } + /** * 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. The default value is 3 hours. diff --git a/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/RunSummary.php b/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/RunSummary.php index 08a91589a0a..616b0c49844 100644 --- a/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/RunSummary.php +++ b/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/RunSummary.php @@ -137,6 +137,7 @@ public function setTotalRuns($val) } /** * Gets the totalTasks + * The total number of tasks processed by a workflow. * * @return int|null The totalTasks */ @@ -151,6 +152,7 @@ public function getTotalTasks() /** * Sets the totalTasks + * The total number of tasks processed by a workflow. * * @param int $val The value of the totalTasks * @@ -163,6 +165,7 @@ public function setTotalTasks($val) } /** * Gets the totalUsers + * The total number of users processed by a workflow. * * @return int|null The totalUsers */ @@ -177,6 +180,7 @@ public function getTotalUsers() /** * Sets the totalUsers + * The total number of users processed by a workflow. * * @param int $val The value of the totalUsers * diff --git a/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TaskDefinition.php b/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TaskDefinition.php index 99731c0ea7f..85ac57e9587 100644 --- a/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TaskDefinition.php +++ b/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/TaskDefinition.php @@ -26,7 +26,7 @@ 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. This is a multi-valued enumeration whose allowed combinations are joiner, joiner,leaver, or leaver.Supports $filter(eq, ne, has) and $orderby. + * The category of the HR function that the tasks created using this definition can be used with. The possible values are: joiner, leaver, unknownFutureValue. This is a multi-valued enumeration whose allowed combinations are joiner, joiner,leaver, or leaver.Supports $filter(eq, ne, has) and $orderby. * * @return LifecycleTaskCategory|null The category */ @@ -45,7 +45,7 @@ public function getCategory() /** * 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. This is a multi-valued enumeration whose allowed combinations are joiner, joiner,leaver, or leaver.Supports $filter(eq, ne, has) and $orderby. + * The category of the HR function that the tasks created using this definition can be used with. The possible values are: joiner, leaver, unknownFutureValue. This is a multi-valued enumeration whose allowed combinations are joiner, joiner,leaver, or leaver.Supports $filter(eq, ne, has) and $orderby. * * @param LifecycleTaskCategory $val The category * diff --git a/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/Workflow.php b/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/Workflow.php index 5cfda946a28..0bb83ca8807 100644 --- a/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/Workflow.php +++ b/src/Beta/Microsoft/Graph/IdentityGovernanceNamespace/Model/Workflow.php @@ -181,6 +181,7 @@ public function setExecutionScope($val) /** * Gets the runs + * Workflow runs. * * @return array|null The runs */ @@ -195,6 +196,7 @@ public function getRuns() /** * Sets the runs + * Workflow runs. * * @param Run[] $val The runs * @@ -239,6 +241,7 @@ public function setTaskReports($val) /** * Gets the userProcessingResults + * Per-user workflow execution results. * * @return array|null The userProcessingResults */ @@ -253,6 +256,7 @@ public function getUserProcessingResults() /** * Sets the userProcessingResults + * Per-user workflow execution results. * * @param UserProcessingResult[] $val The userProcessingResults * diff --git a/src/Beta/Microsoft/Graph/ManagedTenants/Model/AppPerformance.php b/src/Beta/Microsoft/Graph/ManagedTenants/Model/AppPerformance.php new file mode 100644 index 00000000000..b4d40f70b21 --- /dev/null +++ b/src/Beta/Microsoft/Graph/ManagedTenants/Model/AppPerformance.php @@ -0,0 +1,301 @@ +_propDict)) { + return $this->_propDict["appFriendlyName"]; + } else { + return null; + } + } + + /** + * Sets the appFriendlyName + * + * @param string $val The appFriendlyName + * + * @return AppPerformance + */ + public function setAppFriendlyName($val) + { + $this->_propDict["appFriendlyName"] = $val; + return $this; + } + + /** + * Gets the appName + * + * @return string|null The appName + */ + public function getAppName() + { + if (array_key_exists("appName", $this->_propDict)) { + return $this->_propDict["appName"]; + } else { + return null; + } + } + + /** + * Sets the appName + * + * @param string $val The appName + * + * @return AppPerformance + */ + public function setAppName($val) + { + $this->_propDict["appName"] = $val; + return $this; + } + + /** + * Gets the appPublisher + * + * @return string|null The appPublisher + */ + public function getAppPublisher() + { + if (array_key_exists("appPublisher", $this->_propDict)) { + return $this->_propDict["appPublisher"]; + } else { + return null; + } + } + + /** + * Sets the appPublisher + * + * @param string $val The appPublisher + * + * @return AppPerformance + */ + public function setAppPublisher($val) + { + $this->_propDict["appPublisher"] = $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 AppPerformance + */ + public function setLastUpdatedDateTime($val) + { + $this->_propDict["lastUpdatedDateTime"] = $val; + return $this; + } + + /** + * Gets the meanTimeToFailureInMinutes + * + * @return int|null The meanTimeToFailureInMinutes + */ + public function getMeanTimeToFailureInMinutes() + { + if (array_key_exists("meanTimeToFailureInMinutes", $this->_propDict)) { + return $this->_propDict["meanTimeToFailureInMinutes"]; + } else { + return null; + } + } + + /** + * Sets the meanTimeToFailureInMinutes + * + * @param int $val The meanTimeToFailureInMinutes + * + * @return AppPerformance + */ + public function setMeanTimeToFailureInMinutes($val) + { + $this->_propDict["meanTimeToFailureInMinutes"] = intval($val); + return $this; + } + + /** + * Gets the tenantDisplayName + * + * @return string|null The tenantDisplayName + */ + public function getTenantDisplayName() + { + if (array_key_exists("tenantDisplayName", $this->_propDict)) { + return $this->_propDict["tenantDisplayName"]; + } else { + return null; + } + } + + /** + * Sets the tenantDisplayName + * + * @param string $val The tenantDisplayName + * + * @return AppPerformance + */ + public function setTenantDisplayName($val) + { + $this->_propDict["tenantDisplayName"] = $val; + return $this; + } + + /** + * Gets the tenantId + * + * @return string|null The tenantId + */ + public function getTenantId() + { + if (array_key_exists("tenantId", $this->_propDict)) { + return $this->_propDict["tenantId"]; + } else { + return null; + } + } + + /** + * Sets the tenantId + * + * @param string $val The tenantId + * + * @return AppPerformance + */ + public function setTenantId($val) + { + $this->_propDict["tenantId"] = $val; + return $this; + } + + /** + * Gets the totalActiveDeviceCount + * + * @return int|null The totalActiveDeviceCount + */ + public function getTotalActiveDeviceCount() + { + if (array_key_exists("totalActiveDeviceCount", $this->_propDict)) { + return $this->_propDict["totalActiveDeviceCount"]; + } else { + return null; + } + } + + /** + * Sets the totalActiveDeviceCount + * + * @param int $val The totalActiveDeviceCount + * + * @return AppPerformance + */ + public function setTotalActiveDeviceCount($val) + { + $this->_propDict["totalActiveDeviceCount"] = intval($val); + return $this; + } + + /** + * Gets the totalAppCrashCount + * + * @return int|null The totalAppCrashCount + */ + public function getTotalAppCrashCount() + { + if (array_key_exists("totalAppCrashCount", $this->_propDict)) { + return $this->_propDict["totalAppCrashCount"]; + } else { + return null; + } + } + + /** + * Sets the totalAppCrashCount + * + * @param int $val The totalAppCrashCount + * + * @return AppPerformance + */ + public function setTotalAppCrashCount($val) + { + $this->_propDict["totalAppCrashCount"] = intval($val); + return $this; + } + + /** + * Gets the totalAppFreezeCount + * + * @return int|null The totalAppFreezeCount + */ + public function getTotalAppFreezeCount() + { + if (array_key_exists("totalAppFreezeCount", $this->_propDict)) { + return $this->_propDict["totalAppFreezeCount"]; + } else { + return null; + } + } + + /** + * Sets the totalAppFreezeCount + * + * @param int $val The totalAppFreezeCount + * + * @return AppPerformance + */ + public function setTotalAppFreezeCount($val) + { + $this->_propDict["totalAppFreezeCount"] = intval($val); + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/ManagedTenants/Model/DelegatedRoleAssignedUser.php b/src/Beta/Microsoft/Graph/ManagedTenants/Model/DelegatedRoleAssignedUser.php new file mode 100644 index 00000000000..184cf9bc9fa --- /dev/null +++ b/src/Beta/Microsoft/Graph/ManagedTenants/Model/DelegatedRoleAssignedUser.php @@ -0,0 +1,104 @@ +_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * + * @param string $val The value of the displayName + * + * @return DelegatedRoleAssignedUser + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + /** + * Gets the userEntityId + * + * @return string|null The userEntityId + */ + public function getUserEntityId() + { + if (array_key_exists("userEntityId", $this->_propDict)) { + return $this->_propDict["userEntityId"]; + } else { + return null; + } + } + + /** + * Sets the userEntityId + * + * @param string $val The value of the userEntityId + * + * @return DelegatedRoleAssignedUser + */ + public function setUserEntityId($val) + { + $this->_propDict["userEntityId"] = $val; + return $this; + } + /** + * Gets the userPrincipalName + * + * @return string|null The userPrincipalName + */ + public function getUserPrincipalName() + { + if (array_key_exists("userPrincipalName", $this->_propDict)) { + return $this->_propDict["userPrincipalName"]; + } else { + return null; + } + } + + /** + * Sets the userPrincipalName + * + * @param string $val The value of the userPrincipalName + * + * @return DelegatedRoleAssignedUser + */ + public function setUserPrincipalName($val) + { + $this->_propDict["userPrincipalName"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/ManagedTenants/Model/DeviceAppPerformance.php b/src/Beta/Microsoft/Graph/ManagedTenants/Model/DeviceAppPerformance.php new file mode 100644 index 00000000000..0348ab43cb5 --- /dev/null +++ b/src/Beta/Microsoft/Graph/ManagedTenants/Model/DeviceAppPerformance.php @@ -0,0 +1,463 @@ +_propDict)) { + return $this->_propDict["appFriendlyName"]; + } else { + return null; + } + } + + /** + * Sets the appFriendlyName + * + * @param string $val The appFriendlyName + * + * @return DeviceAppPerformance + */ + public function setAppFriendlyName($val) + { + $this->_propDict["appFriendlyName"] = $val; + return $this; + } + + /** + * Gets the appName + * + * @return string|null The appName + */ + public function getAppName() + { + if (array_key_exists("appName", $this->_propDict)) { + return $this->_propDict["appName"]; + } else { + return null; + } + } + + /** + * Sets the appName + * + * @param string $val The appName + * + * @return DeviceAppPerformance + */ + public function setAppName($val) + { + $this->_propDict["appName"] = $val; + return $this; + } + + /** + * Gets the appPublisher + * + * @return string|null The appPublisher + */ + public function getAppPublisher() + { + if (array_key_exists("appPublisher", $this->_propDict)) { + return $this->_propDict["appPublisher"]; + } else { + return null; + } + } + + /** + * Sets the appPublisher + * + * @param string $val The appPublisher + * + * @return DeviceAppPerformance + */ + public function setAppPublisher($val) + { + $this->_propDict["appPublisher"] = $val; + return $this; + } + + /** + * Gets the appVersion + * + * @return string|null The appVersion + */ + public function getAppVersion() + { + if (array_key_exists("appVersion", $this->_propDict)) { + return $this->_propDict["appVersion"]; + } else { + return null; + } + } + + /** + * Sets the appVersion + * + * @param string $val The appVersion + * + * @return DeviceAppPerformance + */ + public function setAppVersion($val) + { + $this->_propDict["appVersion"] = $val; + return $this; + } + + /** + * Gets the deviceId + * + * @return string|null The deviceId + */ + public function getDeviceId() + { + if (array_key_exists("deviceId", $this->_propDict)) { + return $this->_propDict["deviceId"]; + } else { + return null; + } + } + + /** + * Sets the deviceId + * + * @param string $val The deviceId + * + * @return DeviceAppPerformance + */ + public function setDeviceId($val) + { + $this->_propDict["deviceId"] = $val; + return $this; + } + + /** + * Gets the deviceManufacturer + * + * @return string|null The deviceManufacturer + */ + public function getDeviceManufacturer() + { + if (array_key_exists("deviceManufacturer", $this->_propDict)) { + return $this->_propDict["deviceManufacturer"]; + } else { + return null; + } + } + + /** + * Sets the deviceManufacturer + * + * @param string $val The deviceManufacturer + * + * @return DeviceAppPerformance + */ + public function setDeviceManufacturer($val) + { + $this->_propDict["deviceManufacturer"] = $val; + return $this; + } + + /** + * Gets the deviceModel + * + * @return string|null The deviceModel + */ + public function getDeviceModel() + { + if (array_key_exists("deviceModel", $this->_propDict)) { + return $this->_propDict["deviceModel"]; + } else { + return null; + } + } + + /** + * Sets the deviceModel + * + * @param string $val The deviceModel + * + * @return DeviceAppPerformance + */ + public function setDeviceModel($val) + { + $this->_propDict["deviceModel"] = $val; + return $this; + } + + /** + * Gets the deviceName + * + * @return string|null The deviceName + */ + public function getDeviceName() + { + if (array_key_exists("deviceName", $this->_propDict)) { + return $this->_propDict["deviceName"]; + } else { + return null; + } + } + + /** + * Sets the deviceName + * + * @param string $val The deviceName + * + * @return DeviceAppPerformance + */ + public function setDeviceName($val) + { + $this->_propDict["deviceName"] = $val; + return $this; + } + + /** + * Gets the healthStatus + * + * @return string|null The healthStatus + */ + public function getHealthStatus() + { + if (array_key_exists("healthStatus", $this->_propDict)) { + return $this->_propDict["healthStatus"]; + } else { + return null; + } + } + + /** + * Sets the healthStatus + * + * @param string $val The healthStatus + * + * @return DeviceAppPerformance + */ + public function setHealthStatus($val) + { + $this->_propDict["healthStatus"] = $val; + return $this; + } + + /** + * Gets the isLatestUsedVersion + * + * @return int|null The isLatestUsedVersion + */ + public function getIsLatestUsedVersion() + { + if (array_key_exists("isLatestUsedVersion", $this->_propDict)) { + return $this->_propDict["isLatestUsedVersion"]; + } else { + return null; + } + } + + /** + * Sets the isLatestUsedVersion + * + * @param int $val The isLatestUsedVersion + * + * @return DeviceAppPerformance + */ + public function setIsLatestUsedVersion($val) + { + $this->_propDict["isLatestUsedVersion"] = intval($val); + return $this; + } + + /** + * Gets the isMostUsedVersion + * + * @return int|null The isMostUsedVersion + */ + public function getIsMostUsedVersion() + { + if (array_key_exists("isMostUsedVersion", $this->_propDict)) { + return $this->_propDict["isMostUsedVersion"]; + } else { + return null; + } + } + + /** + * Sets the isMostUsedVersion + * + * @param int $val The isMostUsedVersion + * + * @return DeviceAppPerformance + */ + public function setIsMostUsedVersion($val) + { + $this->_propDict["isMostUsedVersion"] = intval($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 DeviceAppPerformance + */ + public function setLastUpdatedDateTime($val) + { + $this->_propDict["lastUpdatedDateTime"] = $val; + return $this; + } + + /** + * Gets the tenantDisplayName + * + * @return string|null The tenantDisplayName + */ + public function getTenantDisplayName() + { + if (array_key_exists("tenantDisplayName", $this->_propDict)) { + return $this->_propDict["tenantDisplayName"]; + } else { + return null; + } + } + + /** + * Sets the tenantDisplayName + * + * @param string $val The tenantDisplayName + * + * @return DeviceAppPerformance + */ + public function setTenantDisplayName($val) + { + $this->_propDict["tenantDisplayName"] = $val; + return $this; + } + + /** + * Gets the tenantId + * + * @return string|null The tenantId + */ + public function getTenantId() + { + if (array_key_exists("tenantId", $this->_propDict)) { + return $this->_propDict["tenantId"]; + } else { + return null; + } + } + + /** + * Sets the tenantId + * + * @param string $val The tenantId + * + * @return DeviceAppPerformance + */ + public function setTenantId($val) + { + $this->_propDict["tenantId"] = $val; + return $this; + } + + /** + * Gets the totalAppCrashCount + * + * @return int|null The totalAppCrashCount + */ + public function getTotalAppCrashCount() + { + if (array_key_exists("totalAppCrashCount", $this->_propDict)) { + return $this->_propDict["totalAppCrashCount"]; + } else { + return null; + } + } + + /** + * Sets the totalAppCrashCount + * + * @param int $val The totalAppCrashCount + * + * @return DeviceAppPerformance + */ + public function setTotalAppCrashCount($val) + { + $this->_propDict["totalAppCrashCount"] = intval($val); + return $this; + } + + /** + * Gets the totalAppFreezeCount + * + * @return int|null The totalAppFreezeCount + */ + public function getTotalAppFreezeCount() + { + if (array_key_exists("totalAppFreezeCount", $this->_propDict)) { + return $this->_propDict["totalAppFreezeCount"]; + } else { + return null; + } + } + + /** + * Sets the totalAppFreezeCount + * + * @param int $val The totalAppFreezeCount + * + * @return DeviceAppPerformance + */ + public function setTotalAppFreezeCount($val) + { + $this->_propDict["totalAppFreezeCount"] = intval($val); + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/ManagedTenants/Model/DeviceHealthStatus.php b/src/Beta/Microsoft/Graph/ManagedTenants/Model/DeviceHealthStatus.php new file mode 100644 index 00000000000..6ebc54703c3 --- /dev/null +++ b/src/Beta/Microsoft/Graph/ManagedTenants/Model/DeviceHealthStatus.php @@ -0,0 +1,436 @@ +_propDict)) { + return $this->_propDict["blueScreenCount"]; + } else { + return null; + } + } + + /** + * Sets the blueScreenCount + * + * @param int $val The blueScreenCount + * + * @return DeviceHealthStatus + */ + public function setBlueScreenCount($val) + { + $this->_propDict["blueScreenCount"] = intval($val); + return $this; + } + + /** + * Gets the bootTotalDurationInSeconds + * + * @return float|null The bootTotalDurationInSeconds + */ + public function getBootTotalDurationInSeconds() + { + if (array_key_exists("bootTotalDurationInSeconds", $this->_propDict)) { + return $this->_propDict["bootTotalDurationInSeconds"]; + } else { + return null; + } + } + + /** + * Sets the bootTotalDurationInSeconds + * + * @param float $val The bootTotalDurationInSeconds + * + * @return DeviceHealthStatus + */ + public function setBootTotalDurationInSeconds($val) + { + $this->_propDict["bootTotalDurationInSeconds"] = floatval($val); + return $this; + } + + /** + * Gets the deviceId + * + * @return string|null The deviceId + */ + public function getDeviceId() + { + if (array_key_exists("deviceId", $this->_propDict)) { + return $this->_propDict["deviceId"]; + } else { + return null; + } + } + + /** + * Sets the deviceId + * + * @param string $val The deviceId + * + * @return DeviceHealthStatus + */ + public function setDeviceId($val) + { + $this->_propDict["deviceId"] = $val; + return $this; + } + + /** + * Gets the deviceMake + * + * @return string|null The deviceMake + */ + public function getDeviceMake() + { + if (array_key_exists("deviceMake", $this->_propDict)) { + return $this->_propDict["deviceMake"]; + } else { + return null; + } + } + + /** + * Sets the deviceMake + * + * @param string $val The deviceMake + * + * @return DeviceHealthStatus + */ + public function setDeviceMake($val) + { + $this->_propDict["deviceMake"] = $val; + return $this; + } + + /** + * Gets the deviceModel + * + * @return string|null The deviceModel + */ + public function getDeviceModel() + { + if (array_key_exists("deviceModel", $this->_propDict)) { + return $this->_propDict["deviceModel"]; + } else { + return null; + } + } + + /** + * Sets the deviceModel + * + * @param string $val The deviceModel + * + * @return DeviceHealthStatus + */ + public function setDeviceModel($val) + { + $this->_propDict["deviceModel"] = $val; + return $this; + } + + /** + * Gets the deviceName + * + * @return string|null The deviceName + */ + public function getDeviceName() + { + if (array_key_exists("deviceName", $this->_propDict)) { + return $this->_propDict["deviceName"]; + } else { + return null; + } + } + + /** + * Sets the deviceName + * + * @param string $val The deviceName + * + * @return DeviceHealthStatus + */ + public function setDeviceName($val) + { + $this->_propDict["deviceName"] = $val; + return $this; + } + + /** + * Gets the healthStatus + * + * @return string|null The healthStatus + */ + public function getHealthStatus() + { + if (array_key_exists("healthStatus", $this->_propDict)) { + return $this->_propDict["healthStatus"]; + } else { + return null; + } + } + + /** + * Sets the healthStatus + * + * @param string $val The healthStatus + * + * @return DeviceHealthStatus + */ + public function setHealthStatus($val) + { + $this->_propDict["healthStatus"] = $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 DeviceHealthStatus + */ + public function setLastUpdatedDateTime($val) + { + $this->_propDict["lastUpdatedDateTime"] = $val; + return $this; + } + + /** + * Gets the osVersion + * + * @return string|null The osVersion + */ + public function getOsVersion() + { + if (array_key_exists("osVersion", $this->_propDict)) { + return $this->_propDict["osVersion"]; + } else { + return null; + } + } + + /** + * Sets the osVersion + * + * @param string $val The osVersion + * + * @return DeviceHealthStatus + */ + public function setOsVersion($val) + { + $this->_propDict["osVersion"] = $val; + return $this; + } + + /** + * Gets the primaryDiskType + * + * @return string|null The primaryDiskType + */ + public function getPrimaryDiskType() + { + if (array_key_exists("primaryDiskType", $this->_propDict)) { + return $this->_propDict["primaryDiskType"]; + } else { + return null; + } + } + + /** + * Sets the primaryDiskType + * + * @param string $val The primaryDiskType + * + * @return DeviceHealthStatus + */ + public function setPrimaryDiskType($val) + { + $this->_propDict["primaryDiskType"] = $val; + return $this; + } + + /** + * Gets the restartCount + * + * @return int|null The restartCount + */ + public function getRestartCount() + { + if (array_key_exists("restartCount", $this->_propDict)) { + return $this->_propDict["restartCount"]; + } else { + return null; + } + } + + /** + * Sets the restartCount + * + * @param int $val The restartCount + * + * @return DeviceHealthStatus + */ + public function setRestartCount($val) + { + $this->_propDict["restartCount"] = intval($val); + return $this; + } + + /** + * Gets the startupPerformanceScore + * + * @return float|null The startupPerformanceScore + */ + public function getStartupPerformanceScore() + { + if (array_key_exists("startupPerformanceScore", $this->_propDict)) { + return $this->_propDict["startupPerformanceScore"]; + } else { + return null; + } + } + + /** + * Sets the startupPerformanceScore + * + * @param float $val The startupPerformanceScore + * + * @return DeviceHealthStatus + */ + public function setStartupPerformanceScore($val) + { + $this->_propDict["startupPerformanceScore"] = floatval($val); + return $this; + } + + /** + * Gets the tenantDisplayName + * + * @return string|null The tenantDisplayName + */ + public function getTenantDisplayName() + { + if (array_key_exists("tenantDisplayName", $this->_propDict)) { + return $this->_propDict["tenantDisplayName"]; + } else { + return null; + } + } + + /** + * Sets the tenantDisplayName + * + * @param string $val The tenantDisplayName + * + * @return DeviceHealthStatus + */ + public function setTenantDisplayName($val) + { + $this->_propDict["tenantDisplayName"] = $val; + return $this; + } + + /** + * Gets the tenantId + * + * @return string|null The tenantId + */ + public function getTenantId() + { + if (array_key_exists("tenantId", $this->_propDict)) { + return $this->_propDict["tenantId"]; + } else { + return null; + } + } + + /** + * Sets the tenantId + * + * @param string $val The tenantId + * + * @return DeviceHealthStatus + */ + public function setTenantId($val) + { + $this->_propDict["tenantId"] = $val; + return $this; + } + + /** + * Gets the topProcesses + * + * @return string|null The topProcesses + */ + public function getTopProcesses() + { + if (array_key_exists("topProcesses", $this->_propDict)) { + return $this->_propDict["topProcesses"]; + } else { + return null; + } + } + + /** + * Sets the topProcesses + * + * @param string $val The topProcesses + * + * @return DeviceHealthStatus + */ + public function setTopProcesses($val) + { + $this->_propDict["topProcesses"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/ManagedTenants/Model/ManagedTenant.php b/src/Beta/Microsoft/Graph/ManagedTenants/Model/ManagedTenant.php index 1db1e4a35f0..932a81f889e 100644 --- a/src/Beta/Microsoft/Graph/ManagedTenants/Model/ManagedTenant.php +++ b/src/Beta/Microsoft/Graph/ManagedTenants/Model/ManagedTenant.php @@ -55,6 +55,34 @@ public function setAggregatedPolicyCompliances($val) } + /** + * Gets the appPerformances + * + * @return array|null The appPerformances + */ + public function getAppPerformances() + { + if (array_key_exists("appPerformances", $this->_propDict)) { + return $this->_propDict["appPerformances"]; + } else { + return null; + } + } + + /** + * Sets the appPerformances + * + * @param AppPerformance[] $val The appPerformances + * + * @return ManagedTenant + */ + public function setAppPerformances($val) + { + $this->_propDict["appPerformances"] = $val; + return $this; + } + + /** * Gets the auditEvents * The collection of audit events across managed tenants. @@ -235,6 +263,34 @@ public function setCredentialUserRegistrationsSummaries($val) } + /** + * Gets the deviceAppPerformances + * + * @return array|null The deviceAppPerformances + */ + public function getDeviceAppPerformances() + { + if (array_key_exists("deviceAppPerformances", $this->_propDict)) { + return $this->_propDict["deviceAppPerformances"]; + } else { + return null; + } + } + + /** + * Sets the deviceAppPerformances + * + * @param DeviceAppPerformance[] $val The deviceAppPerformances + * + * @return ManagedTenant + */ + public function setDeviceAppPerformances($val) + { + $this->_propDict["deviceAppPerformances"] = $val; + return $this; + } + + /** * Gets the deviceCompliancePolicySettingStateSummaries * Summary information for device compliance policy setting states across managed tenants. @@ -265,6 +321,34 @@ public function setDeviceCompliancePolicySettingStateSummaries($val) } + /** + * Gets the deviceHealthStatuses + * + * @return array|null The deviceHealthStatuses + */ + public function getDeviceHealthStatuses() + { + if (array_key_exists("deviceHealthStatuses", $this->_propDict)) { + return $this->_propDict["deviceHealthStatuses"]; + } else { + return null; + } + } + + /** + * Sets the deviceHealthStatuses + * + * @param DeviceHealthStatus[] $val The deviceHealthStatuses + * + * @return ManagedTenant + */ + public function setDeviceHealthStatuses($val) + { + $this->_propDict["deviceHealthStatuses"] = $val; + return $this; + } + + /** * Gets the managedDeviceCompliances * The collection of compliance for managed devices across managed tenants. diff --git a/src/Beta/Microsoft/Graph/ManagedTenants/Model/ManagementTemplateCollectionTenantSummary.php b/src/Beta/Microsoft/Graph/ManagedTenants/Model/ManagementTemplateCollectionTenantSummary.php index f734df5cdf4..9c2c7152f7e 100644 --- a/src/Beta/Microsoft/Graph/ManagedTenants/Model/ManagementTemplateCollectionTenantSummary.php +++ b/src/Beta/Microsoft/Graph/ManagedTenants/Model/ManagementTemplateCollectionTenantSummary.php @@ -437,6 +437,60 @@ public function setManagementTemplateCollectionId($val) return $this; } + /** + * Gets the regressedStepsCount + * + * @return int|null The regressedStepsCount + */ + public function getRegressedStepsCount() + { + if (array_key_exists("regressedStepsCount", $this->_propDict)) { + return $this->_propDict["regressedStepsCount"]; + } else { + return null; + } + } + + /** + * Sets the regressedStepsCount + * + * @param int $val The regressedStepsCount + * + * @return ManagementTemplateCollectionTenantSummary + */ + public function setRegressedStepsCount($val) + { + $this->_propDict["regressedStepsCount"] = intval($val); + return $this; + } + + /** + * Gets the regressedUsersCount + * + * @return int|null The regressedUsersCount + */ + public function getRegressedUsersCount() + { + if (array_key_exists("regressedUsersCount", $this->_propDict)) { + return $this->_propDict["regressedUsersCount"]; + } else { + return null; + } + } + + /** + * Sets the regressedUsersCount + * + * @param int $val The regressedUsersCount + * + * @return ManagementTemplateCollectionTenantSummary + */ + public function setRegressedUsersCount($val) + { + $this->_propDict["regressedUsersCount"] = intval($val); + return $this; + } + /** * Gets the tenantId * @@ -464,4 +518,31 @@ public function setTenantId($val) return $this; } + /** + * Gets the unlicensedUsersCount + * + * @return int|null The unlicensedUsersCount + */ + public function getUnlicensedUsersCount() + { + if (array_key_exists("unlicensedUsersCount", $this->_propDict)) { + return $this->_propDict["unlicensedUsersCount"]; + } else { + return null; + } + } + + /** + * Sets the unlicensedUsersCount + * + * @param int $val The unlicensedUsersCount + * + * @return ManagementTemplateCollectionTenantSummary + */ + public function setUnlicensedUsersCount($val) + { + $this->_propDict["unlicensedUsersCount"] = intval($val); + return $this; + } + } diff --git a/src/Beta/Microsoft/Graph/Model/AllowedRolePrincipalTypes.php b/src/Beta/Microsoft/Graph/Model/AllowedRolePrincipalTypes.php new file mode 100644 index 00000000000..fc82916b410 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/AllowedRolePrincipalTypes.php @@ -0,0 +1,36 @@ +_propDict)) { + return $this->_propDict["privilegeManagementElevations"]; + } else { + return null; + } + } + + /** + * Sets the privilegeManagementElevations + * The endpoint privilege management elevation event entity contains elevation details. + * + * @param PrivilegeManagementElevation[] $val The privilegeManagementElevations + * + * @return DeviceManagement + */ + public function setPrivilegeManagementElevations($val) + { + $this->_propDict["privilegeManagementElevations"] = $val; + return $this; + } + + /** * Gets the remoteActionAudits * The list of device remote action audits with the tenant. diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementCompliancePolicy.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementCompliancePolicy.php index 5606c7638a9..1efcd3f00f5 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementCompliancePolicy.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementCompliancePolicy.php @@ -299,7 +299,7 @@ public function setSettingCount($val) /** * Gets the technologies - * Technologies for this policy. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. + * Technologies for this policy. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @return DeviceManagementConfigurationTechnologies|null The technologies */ @@ -318,7 +318,7 @@ public function getTechnologies() /** * Sets the technologies - * Technologies for this policy. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. + * Technologies for this policy. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @param DeviceManagementConfigurationTechnologies $val The technologies * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationCategory.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationCategory.php index cb1dc5ccb68..21793c824c8 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationCategory.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationCategory.php @@ -324,7 +324,7 @@ public function setSettingUsage($val) /** * Gets the technologies - * Technologies types, which settings in the category have. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. + * Technologies types, which settings in the category have. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @return DeviceManagementConfigurationTechnologies|null The technologies */ @@ -343,7 +343,7 @@ public function getTechnologies() /** * Sets the technologies - * Technologies types, which settings in the category have. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. + * Technologies types, which settings in the category have. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @param DeviceManagementConfigurationTechnologies $val The technologies * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationPolicy.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationPolicy.php index e7fdbbaad10..995685b7676 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationPolicy.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationPolicy.php @@ -332,7 +332,7 @@ public function setSettingCount($val) /** * Gets the technologies - * Technologies for this policy. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. + * Technologies for this policy. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @return DeviceManagementConfigurationTechnologies|null The technologies */ @@ -351,7 +351,7 @@ public function getTechnologies() /** * Sets the technologies - * Technologies for this policy. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. + * Technologies for this policy. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @param DeviceManagementConfigurationTechnologies $val The technologies * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationPolicyTemplate.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationPolicyTemplate.php index 4525de825e5..7bcaa0cb015 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationPolicyTemplate.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationPolicyTemplate.php @@ -266,7 +266,7 @@ public function setSettingTemplateCount($val) /** * Gets the technologies - * Technologies for this template. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. + * Technologies for this template. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @return DeviceManagementConfigurationTechnologies|null The technologies */ @@ -285,7 +285,7 @@ public function getTechnologies() /** * Sets the technologies - * Technologies for this template. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. + * Technologies for this template. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @param DeviceManagementConfigurationTechnologies $val The technologies * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSetting.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSetting.php index f5c1aec0911..2012b1f11ae 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSetting.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSetting.php @@ -60,7 +60,7 @@ public function setSettingInstance($val) /** * Gets the settingDefinitions - * List of related Setting Definitions + * List of related Setting Definitions. This property is read-only. * * @return array|null The settingDefinitions */ @@ -75,7 +75,7 @@ public function getSettingDefinitions() /** * Sets the settingDefinitions - * List of related Setting Definitions + * List of related Setting Definitions. This property is read-only. * * @param DeviceManagementConfigurationSettingDefinition[] $val The settingDefinitions * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingApplicability.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingApplicability.php index 6e68147cf20..fb5a5277d12 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingApplicability.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingApplicability.php @@ -120,7 +120,7 @@ public function setPlatform($val) /** * Gets the technologies - * Which technology channels this setting can be deployed through. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, unknownFutureValue. + * Which technology channels this setting can be deployed through. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @return DeviceManagementConfigurationTechnologies|null The technologies */ @@ -139,7 +139,7 @@ public function getTechnologies() /** * Sets the technologies - * Which technology channels this setting can be deployed through. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, linuxMdm, unknownFutureValue. + * Which technology channels this setting can be deployed through. Possible values are: none, mdm, windows10XManagement, configManager, appleRemoteManagement, microsoftSense, exchangeOnline, edgeMAM, linuxMdm, enrollment, endpointPrivilegeManagement, unknownFutureValue. * * @param DeviceManagementConfigurationTechnologies $val The value to assign to the technologies * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingGroupCollectionDefinition.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingGroupCollectionDefinition.php index 10e62e20a65..84d921c2cdd 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingGroupCollectionDefinition.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingGroupCollectionDefinition.php @@ -26,7 +26,7 @@ class DeviceManagementConfigurationSettingGroupCollectionDefinition extends Devi { /** * Gets the maximumCount - * Maximum number of setting group count in the collection + * Maximum number of setting group count in the collection. Valid values 1 to 100 * * @return int|null The maximumCount */ @@ -41,7 +41,7 @@ public function getMaximumCount() /** * Sets the maximumCount - * Maximum number of setting group count in the collection + * Maximum number of setting group count in the collection. Valid values 1 to 100 * * @param int $val The maximumCount * @@ -55,7 +55,7 @@ public function setMaximumCount($val) /** * Gets the minimumCount - * Minimum number of setting group count in the collection + * Minimum number of setting group count in the collection. Valid values 1 to 100 * * @return int|null The minimumCount */ @@ -70,7 +70,7 @@ public function getMinimumCount() /** * Sets the minimumCount - * Minimum number of setting group count in the collection + * Minimum number of setting group count in the collection. Valid values 1 to 100 * * @param int $val The minimumCount * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php index 68ed03d5cbc..60995c914c7 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php @@ -26,7 +26,7 @@ class DeviceManagementConfigurationSimpleSettingCollectionDefinition extends Dev { /** * Gets the maximumCount - * Maximum number of simple settings in the collection + * Maximum number of simple settings in the collection. Valid values 1 to 100 * * @return int|null The maximumCount */ @@ -41,7 +41,7 @@ public function getMaximumCount() /** * Sets the maximumCount - * Maximum number of simple settings in the collection + * Maximum number of simple settings in the collection. Valid values 1 to 100 * * @param int $val The maximumCount * @@ -55,7 +55,7 @@ public function setMaximumCount($val) /** * Gets the minimumCount - * Minimum number of simple settings in the collection + * Minimum number of simple settings in the collection. Valid values 1 to 100 * * @return int|null The minimumCount */ @@ -70,7 +70,7 @@ public function getMinimumCount() /** * Sets the minimumCount - * Minimum number of simple settings in the collection + * Minimum number of simple settings in the collection. Valid values 1 to 100 * * @param int $val The minimumCount * diff --git a/src/Beta/Microsoft/Graph/Model/EmailSettings.php b/src/Beta/Microsoft/Graph/Model/EmailSettings.php new file mode 100644 index 00000000000..6d65c5da697 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/EmailSettings.php @@ -0,0 +1,82 @@ +_propDict)) { + return $this->_propDict["senderDomain"]; + } else { + return null; + } + } + + /** + * Sets the senderDomain + * Specifies the domain that should be used when sending email notifications. This domain must be verified in order to be used. + * + * @param string $val The value of the senderDomain + * + * @return EmailSettings + */ + public function setSenderDomain($val) + { + $this->_propDict["senderDomain"] = $val; + return $this; + } + /** + * Gets the useCompanyBranding + * Specifies if the organization’s banner logo should be included in email notifications. The banner logo will replace the Microsoft logo at the top of the email notification. If true the banner logo will be taken from the tenant’s branding settings. This value can only be set to true if the organizationalBranding bannerLogo property is set. + * + * @return bool|null The useCompanyBranding + */ + public function getUseCompanyBranding() + { + if (array_key_exists("useCompanyBranding", $this->_propDict)) { + return $this->_propDict["useCompanyBranding"]; + } else { + return null; + } + } + + /** + * Sets the useCompanyBranding + * Specifies if the organization’s banner logo should be included in email notifications. The banner logo will replace the Microsoft logo at the top of the email notification. If true the banner logo will be taken from the tenant’s branding settings. This value can only be set to true if the organizationalBranding bannerLogo property is set. + * + * @param bool $val The value of the useCompanyBranding + * + * @return EmailSettings + */ + public function setUseCompanyBranding($val) + { + $this->_propDict["useCompanyBranding"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/Model/Identity.php b/src/Beta/Microsoft/Graph/Model/Identity.php index 79a5705bc43..03a9de8a01b 100644 --- a/src/Beta/Microsoft/Graph/Model/Identity.php +++ b/src/Beta/Microsoft/Graph/Model/Identity.php @@ -25,7 +25,7 @@ class Identity extends Entity { /** * Gets the displayName - * The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. + * The display name of the identity. This property is read-only. * * @return string|null The displayName */ @@ -40,7 +40,7 @@ public function getDisplayName() /** * Sets the displayName - * The display name of the identity. Note that this might not always be available or up to date. For example, if a user changes their display name, the API might show the new value in a future response, but the items associated with the user won't show up as having changed when using delta. + * The display name of the identity. This property is read-only. * * @param string $val The value of the displayName * @@ -53,7 +53,7 @@ public function setDisplayName($val) } /** * Gets the id - * Unique identifier for the identity. + * The identifier of the identity. This property is read-only. * * @return string|null The id */ @@ -68,7 +68,7 @@ public function getId() /** * Sets the id - * Unique identifier for the identity. + * The identifier of the identity. This property is read-only. * * @param string $val The value of the id * diff --git a/src/Beta/Microsoft/Graph/Model/IdentitySet.php b/src/Beta/Microsoft/Graph/Model/IdentitySet.php index 2046ffd53d1..655759bfd9f 100644 --- a/src/Beta/Microsoft/Graph/Model/IdentitySet.php +++ b/src/Beta/Microsoft/Graph/Model/IdentitySet.php @@ -26,7 +26,7 @@ class IdentitySet extends Entity /** * Gets the application - * The Identity of the Application. This property is read-only. + * Optional. The application associated with this action. * * @return Identity|null The application */ @@ -45,7 +45,7 @@ public function getApplication() /** * Sets the application - * The Identity of the Application. This property is read-only. + * Optional. The application associated with this action. * * @param Identity $val The value to assign to the application * @@ -59,7 +59,7 @@ public function setApplication($val) /** * Gets the device - * The Identity of the Device. This property is read-only. + * Optional. The device associated with this action. * * @return Identity|null The device */ @@ -78,7 +78,7 @@ public function getDevice() /** * Sets the device - * The Identity of the Device. This property is read-only. + * Optional. The device associated with this action. * * @param Identity $val The value to assign to the device * @@ -92,7 +92,7 @@ public function setDevice($val) /** * Gets the user - * The Identity of the User. This property is read-only. + * Optional. The user associated with this action. * * @return Identity|null The user */ @@ -111,7 +111,7 @@ public function getUser() /** * Sets the user - * The Identity of the User. This property is read-only. + * Optional. The user associated with this action. * * @param Identity $val The value to assign to the user * diff --git a/src/Beta/Microsoft/Graph/Model/LinkedResource.php b/src/Beta/Microsoft/Graph/Model/LinkedResource.php index a96572b5417..f1ceb809bb7 100644 --- a/src/Beta/Microsoft/Graph/Model/LinkedResource.php +++ b/src/Beta/Microsoft/Graph/Model/LinkedResource.php @@ -26,7 +26,7 @@ class LinkedResource extends Entity { /** * Gets the applicationName - * Field indicating the app name of the source that is sending the linkedResource. + * The app name of the source that sends the linkedResource. * * @return string|null The applicationName */ @@ -41,7 +41,7 @@ public function getApplicationName() /** * Sets the applicationName - * Field indicating the app name of the source that is sending the linkedResource. + * The app name of the source that sends the linkedResource. * * @param string $val The applicationName * @@ -55,7 +55,7 @@ public function setApplicationName($val) /** * Gets the displayName - * Field indicating the title of the linkedResource. + * The title of the linkedResource. * * @return string|null The displayName */ @@ -70,7 +70,7 @@ public function getDisplayName() /** * Sets the displayName - * Field indicating the title of the linkedResource. + * The title of the linkedResource. * * @param string $val The displayName * @@ -84,7 +84,7 @@ public function setDisplayName($val) /** * Gets the externalId - * Id of the object that is associated with this task on the third-party/partner system. + * ID of the object that is associated with this task on the third-party/partner system. * * @return string|null The externalId */ @@ -99,7 +99,7 @@ public function getExternalId() /** * Sets the externalId - * Id of the object that is associated with this task on the third-party/partner system. + * ID of the object that is associated with this task on the third-party/partner system. * * @param string $val The externalId * diff --git a/src/Beta/Microsoft/Graph/Model/MacOSLobApp.php b/src/Beta/Microsoft/Graph/Model/MacOSLobApp.php index ff525784790..fd80ba938b3 100644 --- a/src/Beta/Microsoft/Graph/Model/MacOSLobApp.php +++ b/src/Beta/Microsoft/Graph/Model/MacOSLobApp.php @@ -114,7 +114,7 @@ public function setChildApps($val) /** * Gets the identityVersion - * The identity version. This property is deprecated starting in 2211(November 2022). + * The identity version. This property is being deprecated in 2211(November 2022). * * @return string|null The identityVersion */ @@ -129,7 +129,7 @@ public function getIdentityVersion() /** * Sets the identityVersion - * The identity version. This property is deprecated starting in 2211(November 2022). + * The identity version. This property is being deprecated in 2211(November 2022). * * @param string $val The identityVersion * diff --git a/src/Beta/Microsoft/Graph/Model/ManagedAndroidLobApp.php b/src/Beta/Microsoft/Graph/Model/ManagedAndroidLobApp.php index 846f58bf344..dd84979c9d7 100644 --- a/src/Beta/Microsoft/Graph/Model/ManagedAndroidLobApp.php +++ b/src/Beta/Microsoft/Graph/Model/ManagedAndroidLobApp.php @@ -26,7 +26,7 @@ class ManagedAndroidLobApp extends ManagedMobileLobApp { /** * Gets the identityName - * The Identity Name. This property is deprecated starting in February 2023 (Release 2302). + * The Identity Name. This property is being deprecated in 2302(February 2023). * * @return string|null The identityName */ @@ -41,7 +41,7 @@ public function getIdentityName() /** * Sets the identityName - * The Identity Name. This property is deprecated starting in February 2023 (Release 2302). + * The Identity Name. This property is being deprecated in 2302(February 2023). * * @param string $val The identityName * @@ -55,7 +55,7 @@ public function setIdentityName($val) /** * Gets the identityVersion - * The identity version. This property is deprecated starting in February 2023 (Release 2302). + * The identity version. This property is being deprecated in 2302(February 2023). * * @return string|null The identityVersion */ @@ -70,7 +70,7 @@ public function getIdentityVersion() /** * Sets the identityVersion - * The identity version. This property is deprecated starting in February 2023 (Release 2302). + * The identity version. This property is being deprecated in 2302(February 2023). * * @param string $val The identityVersion * diff --git a/src/Beta/Microsoft/Graph/Model/PrivilegeManagementElevation.php b/src/Beta/Microsoft/Graph/Model/PrivilegeManagementElevation.php new file mode 100644 index 00000000000..3a2d2b65571 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/PrivilegeManagementElevation.php @@ -0,0 +1,503 @@ +_propDict)) { + return $this->_propDict["certificatePayload"]; + } else { + return null; + } + } + + /** + * Sets the certificatePayload + * The certificate payload of the application. This is computed by hashing the certificate information on the client. Example: `32c220482c68413fbf8290e3b1e49b0a85901cfcd62ab0738760568a2a6e8a50` + * + * @param string $val The certificatePayload + * + * @return PrivilegeManagementElevation + */ + public function setCertificatePayload($val) + { + $this->_propDict["certificatePayload"] = $val; + return $this; + } + + /** + * Gets the companyName + * The company name of the application. This value is set by the creator of the application. Example: `Microsoft Corporation` + * + * @return string|null The companyName + */ + public function getCompanyName() + { + if (array_key_exists("companyName", $this->_propDict)) { + return $this->_propDict["companyName"]; + } else { + return null; + } + } + + /** + * Sets the companyName + * The company name of the application. This value is set by the creator of the application. Example: `Microsoft Corporation` + * + * @param string $val The companyName + * + * @return PrivilegeManagementElevation + */ + public function setCompanyName($val) + { + $this->_propDict["companyName"] = $val; + return $this; + } + + /** + * Gets the deviceId + * The Intune deviceId. Unique identifier for the managed device. Example: `92ce5047-9553-4731-817f-9b401a999a1b` + * + * @return string|null The deviceId + */ + public function getDeviceId() + { + if (array_key_exists("deviceId", $this->_propDict)) { + return $this->_propDict["deviceId"]; + } else { + return null; + } + } + + /** + * Sets the deviceId + * The Intune deviceId. Unique identifier for the managed device. Example: `92ce5047-9553-4731-817f-9b401a999a1b` + * + * @param string $val The deviceId + * + * @return PrivilegeManagementElevation + */ + public function setDeviceId($val) + { + $this->_propDict["deviceId"] = $val; + return $this; + } + + /** + * Gets the deviceName + * The name associated with the device in the intune database. Example: `JOHNDOE-LAPTOP`. + * + * @return string|null The deviceName + */ + public function getDeviceName() + { + if (array_key_exists("deviceName", $this->_propDict)) { + return $this->_propDict["deviceName"]; + } else { + return null; + } + } + + /** + * Sets the deviceName + * The name associated with the device in the intune database. Example: `JOHNDOE-LAPTOP`. + * + * @param string $val The deviceName + * + * @return PrivilegeManagementElevation + */ + public function setDeviceName($val) + { + $this->_propDict["deviceName"] = $val; + return $this; + } + + /** + * Gets the elevationType + * Indicates the type of elevation on the application. Possible values are `undetermined`, `unmanagedElevation`, `zeroTouchElevation`, `userConfirmedElevation`, and `supportApprovedElevation`. Defaults to `undetermined` + * + * @return PrivilegeManagementElevationType|null The elevationType + */ + public function getElevationType() + { + if (array_key_exists("elevationType", $this->_propDict)) { + if (is_a($this->_propDict["elevationType"], "\Beta\Microsoft\Graph\Model\PrivilegeManagementElevationType") || is_null($this->_propDict["elevationType"])) { + return $this->_propDict["elevationType"]; + } else { + $this->_propDict["elevationType"] = new PrivilegeManagementElevationType($this->_propDict["elevationType"]); + return $this->_propDict["elevationType"]; + } + } + return null; + } + + /** + * Sets the elevationType + * Indicates the type of elevation on the application. Possible values are `undetermined`, `unmanagedElevation`, `zeroTouchElevation`, `userConfirmedElevation`, and `supportApprovedElevation`. Defaults to `undetermined` + * + * @param PrivilegeManagementElevationType $val The elevationType + * + * @return PrivilegeManagementElevation + */ + public function setElevationType($val) + { + $this->_propDict["elevationType"] = $val; + return $this; + } + + /** + * Gets the eventDateTime + * The date and time when the application was elevated. Example:`2014-01-01T00:00:00Z` + * + * @return \DateTime|null The eventDateTime + */ + public function getEventDateTime() + { + if (array_key_exists("eventDateTime", $this->_propDict)) { + if (is_a($this->_propDict["eventDateTime"], "\DateTime") || is_null($this->_propDict["eventDateTime"])) { + return $this->_propDict["eventDateTime"]; + } else { + $this->_propDict["eventDateTime"] = new \DateTime($this->_propDict["eventDateTime"]); + return $this->_propDict["eventDateTime"]; + } + } + return null; + } + + /** + * Sets the eventDateTime + * The date and time when the application was elevated. Example:`2014-01-01T00:00:00Z` + * + * @param \DateTime $val The eventDateTime + * + * @return PrivilegeManagementElevation + */ + public function setEventDateTime($val) + { + $this->_propDict["eventDateTime"] = $val; + return $this; + } + + /** + * Gets the fileDescription + * The file description of the application. This value is set by the creator of the application. Example: `Editor of multiple coding languages.` + * + * @return string|null The fileDescription + */ + public function getFileDescription() + { + if (array_key_exists("fileDescription", $this->_propDict)) { + return $this->_propDict["fileDescription"]; + } else { + return null; + } + } + + /** + * Sets the fileDescription + * The file description of the application. This value is set by the creator of the application. Example: `Editor of multiple coding languages.` + * + * @param string $val The fileDescription + * + * @return PrivilegeManagementElevation + */ + public function setFileDescription($val) + { + $this->_propDict["fileDescription"] = $val; + return $this; + } + + /** + * Gets the filePath + * The full file path of the application including the filename and file extension. Example: `C:\Program Files\vscode.exe` + * + * @return string|null The filePath + */ + public function getFilePath() + { + if (array_key_exists("filePath", $this->_propDict)) { + return $this->_propDict["filePath"]; + } else { + return null; + } + } + + /** + * Sets the filePath + * The full file path of the application including the filename and file extension. Example: `C:\Program Files\vscode.exe` + * + * @param string $val The filePath + * + * @return PrivilegeManagementElevation + */ + public function setFilePath($val) + { + $this->_propDict["filePath"] = $val; + return $this; + } + + /** + * Gets the fileVersion + * The version of the application. This value is set by the creator of the application. Example: `6.2211.1035.1000` + * + * @return string|null The fileVersion + */ + public function getFileVersion() + { + if (array_key_exists("fileVersion", $this->_propDict)) { + return $this->_propDict["fileVersion"]; + } else { + return null; + } + } + + /** + * Sets the fileVersion + * The version of the application. This value is set by the creator of the application. Example: `6.2211.1035.1000` + * + * @param string $val The fileVersion + * + * @return PrivilegeManagementElevation + */ + public function setFileVersion($val) + { + $this->_propDict["fileVersion"] = $val; + return $this; + } + + /** + * Gets the hash + * The sha256 hash of the application. Example: `32c220482c68413fbf8290e3b1e49b0a85901cfcd62ab0738760568a2a6e8a57` + * + * @return string|null The hash + */ + public function getHash() + { + if (array_key_exists("hash", $this->_propDict)) { + return $this->_propDict["hash"]; + } else { + return null; + } + } + + /** + * Sets the hash + * The sha256 hash of the application. Example: `32c220482c68413fbf8290e3b1e49b0a85901cfcd62ab0738760568a2a6e8a57` + * + * @param string $val The hash + * + * @return PrivilegeManagementElevation + */ + public function setHash($val) + { + $this->_propDict["hash"] = $val; + return $this; + } + + /** + * Gets the internalName + * The internal name of the application. This value is set by the creator of the application. Example: `VS code` + * + * @return string|null The internalName + */ + public function getInternalName() + { + if (array_key_exists("internalName", $this->_propDict)) { + return $this->_propDict["internalName"]; + } else { + return null; + } + } + + /** + * Sets the internalName + * The internal name of the application. This value is set by the creator of the application. Example: `VS code` + * + * @param string $val The internalName + * + * @return PrivilegeManagementElevation + */ + public function setInternalName($val) + { + $this->_propDict["internalName"] = $val; + return $this; + } + + /** + * Gets the justification + * The justification to elevate the application. This is an input by the user when the privilegeManagementElevationType is of type userConfirmedElevation or support approved elevation. This will be null in all other scenarios. The length is capped at 256 char, enforced on the client side. Example: `To install debug tool.`. + * + * @return string|null The justification + */ + public function getJustification() + { + if (array_key_exists("justification", $this->_propDict)) { + return $this->_propDict["justification"]; + } else { + return null; + } + } + + /** + * Sets the justification + * The justification to elevate the application. This is an input by the user when the privilegeManagementElevationType is of type userConfirmedElevation or support approved elevation. This will be null in all other scenarios. The length is capped at 256 char, enforced on the client side. Example: `To install debug tool.`. + * + * @param string $val The justification + * + * @return PrivilegeManagementElevation + */ + public function setJustification($val) + { + $this->_propDict["justification"] = $val; + return $this; + } + + /** + * Gets the productName + * The product name of the application. This value is set by the creator of the application. Example: `Visual Studio` + * + * @return string|null The productName + */ + public function getProductName() + { + if (array_key_exists("productName", $this->_propDict)) { + return $this->_propDict["productName"]; + } else { + return null; + } + } + + /** + * Sets the productName + * The product name of the application. This value is set by the creator of the application. Example: `Visual Studio` + * + * @param string $val The productName + * + * @return PrivilegeManagementElevation + */ + public function setProductName($val) + { + $this->_propDict["productName"] = $val; + return $this; + } + + /** + * Gets the result + * The result of the elevation action with 0 being success, and everything else being exit code if the elevation was unsuccessful. The value will always be 0 on all unmanaged elevation. Example: `0`. Valid values 0 to 2147483647 + * + * @return int|null The result + */ + public function getResult() + { + if (array_key_exists("result", $this->_propDict)) { + return $this->_propDict["result"]; + } else { + return null; + } + } + + /** + * Sets the result + * The result of the elevation action with 0 being success, and everything else being exit code if the elevation was unsuccessful. The value will always be 0 on all unmanaged elevation. Example: `0`. Valid values 0 to 2147483647 + * + * @param int $val The result + * + * @return PrivilegeManagementElevation + */ + public function setResult($val) + { + $this->_propDict["result"] = intval($val); + return $this; + } + + /** + * Gets the upn + * The User Principal Name of the user who performed the elevation. Example: `john@domain.com` + * + * @return string|null The upn + */ + public function getUpn() + { + if (array_key_exists("upn", $this->_propDict)) { + return $this->_propDict["upn"]; + } else { + return null; + } + } + + /** + * Sets the upn + * The User Principal Name of the user who performed the elevation. Example: `john@domain.com` + * + * @param string $val The upn + * + * @return PrivilegeManagementElevation + */ + public function setUpn($val) + { + $this->_propDict["upn"] = $val; + return $this; + } + + /** + * Gets the userType + * The type of account performed the elevation on Windows. Possible values are: `undetermined`, `azureAd`, `hybrid`, and `local`. Defaults to `undetermined`. + * + * @return PrivilegeManagementEndUserType|null The userType + */ + public function getUserType() + { + if (array_key_exists("userType", $this->_propDict)) { + if (is_a($this->_propDict["userType"], "\Beta\Microsoft\Graph\Model\PrivilegeManagementEndUserType") || is_null($this->_propDict["userType"])) { + return $this->_propDict["userType"]; + } else { + $this->_propDict["userType"] = new PrivilegeManagementEndUserType($this->_propDict["userType"]); + return $this->_propDict["userType"]; + } + } + return null; + } + + /** + * Sets the userType + * The type of account performed the elevation on Windows. Possible values are: `undetermined`, `azureAd`, `hybrid`, and `local`. Defaults to `undetermined`. + * + * @param PrivilegeManagementEndUserType $val The userType + * + * @return PrivilegeManagementElevation + */ + public function setUserType($val) + { + $this->_propDict["userType"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/Model/PrivilegeManagementElevationType.php b/src/Beta/Microsoft/Graph/Model/PrivilegeManagementElevationType.php new file mode 100644 index 00000000000..72b4ae1fd79 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/PrivilegeManagementElevationType.php @@ -0,0 +1,38 @@ +_propDict)) { + return $this->_propDict["isEnabled"]; + } else { + return null; + } + } + + /** + * Sets the isEnabled + * + * @param bool $val The isEnabled + * + * @return RiskyServicePrincipal + */ + public function setIsEnabled($val) + { + $this->_propDict["isEnabled"] = boolval($val); + return $this; + } + /** * Gets the isProcessing * Indicates whether Azure AD is currently processing the service principal's risky state. diff --git a/src/Beta/Microsoft/Graph/Model/Security.php b/src/Beta/Microsoft/Graph/Model/Security.php index e38de20d4e8..4db89f21a55 100644 --- a/src/Beta/Microsoft/Graph/Model/Security.php +++ b/src/Beta/Microsoft/Graph/Model/Security.php @@ -701,4 +701,35 @@ public function setUserSecurityProfiles($val) return $this; } + /** + * Gets the threatIntelligence + * + * @return \Beta\Microsoft\Graph\SecurityNamespace\Model\ThreatIntelligence|null The threatIntelligence + */ + public function getThreatIntelligence() + { + if (array_key_exists("threatIntelligence", $this->_propDict)) { + if (is_a($this->_propDict["threatIntelligence"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\ThreatIntelligence") || is_null($this->_propDict["threatIntelligence"])) { + return $this->_propDict["threatIntelligence"]; + } else { + $this->_propDict["threatIntelligence"] = new \Beta\Microsoft\Graph\SecurityNamespace\Model\ThreatIntelligence($this->_propDict["threatIntelligence"]); + return $this->_propDict["threatIntelligence"]; + } + } + return null; + } + + /** + * Sets the threatIntelligence + * + * @param \Beta\Microsoft\Graph\SecurityNamespace\Model\ThreatIntelligence $val The threatIntelligence + * + * @return Security + */ + public function setThreatIntelligence($val) + { + $this->_propDict["threatIntelligence"] = $val; + return $this; + } + } diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppAuthorization.php b/src/Beta/Microsoft/Graph/Model/TeamsAppAuthorization.php new file mode 100644 index 00000000000..6c149a3d569 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppAuthorization.php @@ -0,0 +1,57 @@ +_propDict)) { + if (is_a($this->_propDict["requiredPermissionSet"], "\Beta\Microsoft\Graph\Model\TeamsAppPermissionSet") || is_null($this->_propDict["requiredPermissionSet"])) { + return $this->_propDict["requiredPermissionSet"]; + } else { + $this->_propDict["requiredPermissionSet"] = new TeamsAppPermissionSet($this->_propDict["requiredPermissionSet"]); + return $this->_propDict["requiredPermissionSet"]; + } + } + return null; + } + + /** + * Sets the requiredPermissionSet + * + * @param TeamsAppPermissionSet $val The value to assign to the requiredPermissionSet + * + * @return TeamsAppAuthorization The TeamsAppAuthorization + */ + public function setRequiredPermissionSet($val) + { + $this->_propDict["requiredPermissionSet"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppDefinition.php b/src/Beta/Microsoft/Graph/Model/TeamsAppDefinition.php index 1992e168544..5ec7aa620cc 100644 --- a/src/Beta/Microsoft/Graph/Model/TeamsAppDefinition.php +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppDefinition.php @@ -57,6 +57,37 @@ public function setAllowedInstallationScopes($val) return $this; } + /** + * Gets the authorization + * + * @return TeamsAppAuthorization|null The authorization + */ + public function getAuthorization() + { + if (array_key_exists("authorization", $this->_propDict)) { + if (is_a($this->_propDict["authorization"], "\Beta\Microsoft\Graph\Model\TeamsAppAuthorization") || is_null($this->_propDict["authorization"])) { + return $this->_propDict["authorization"]; + } else { + $this->_propDict["authorization"] = new TeamsAppAuthorization($this->_propDict["authorization"]); + return $this->_propDict["authorization"]; + } + } + return null; + } + + /** + * Sets the authorization + * + * @param TeamsAppAuthorization $val The authorization + * + * @return TeamsAppDefinition + */ + public function setAuthorization($val) + { + $this->_propDict["authorization"] = $val; + return $this; + } + /** * Gets the azureADAppId * The WebApplicationInfo.Id from the Teams app manifest. diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppInstallation.php b/src/Beta/Microsoft/Graph/Model/TeamsAppInstallation.php index f6c91259ac8..f11c148cc02 100644 --- a/src/Beta/Microsoft/Graph/Model/TeamsAppInstallation.php +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppInstallation.php @@ -24,6 +24,37 @@ */ class TeamsAppInstallation extends Entity { + /** + * Gets the consentedPermissionSet + * + * @return TeamsAppPermissionSet|null The consentedPermissionSet + */ + public function getConsentedPermissionSet() + { + if (array_key_exists("consentedPermissionSet", $this->_propDict)) { + if (is_a($this->_propDict["consentedPermissionSet"], "\Beta\Microsoft\Graph\Model\TeamsAppPermissionSet") || is_null($this->_propDict["consentedPermissionSet"])) { + return $this->_propDict["consentedPermissionSet"]; + } else { + $this->_propDict["consentedPermissionSet"] = new TeamsAppPermissionSet($this->_propDict["consentedPermissionSet"]); + return $this->_propDict["consentedPermissionSet"]; + } + } + return null; + } + + /** + * Sets the consentedPermissionSet + * + * @param TeamsAppPermissionSet $val The consentedPermissionSet + * + * @return TeamsAppInstallation + */ + public function setConsentedPermissionSet($val) + { + $this->_propDict["consentedPermissionSet"] = $val; + return $this; + } + /** * Gets the teamsApp * The app that is installed. diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppPermissionSet.php b/src/Beta/Microsoft/Graph/Model/TeamsAppPermissionSet.php new file mode 100644 index 00000000000..8fc69a1e1ce --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppPermissionSet.php @@ -0,0 +1,57 @@ +_propDict)) { + if (is_a($this->_propDict["resourceSpecificPermissions"], "\Beta\Microsoft\Graph\Model\TeamsAppResourceSpecificPermission") || is_null($this->_propDict["resourceSpecificPermissions"])) { + return $this->_propDict["resourceSpecificPermissions"]; + } else { + $this->_propDict["resourceSpecificPermissions"] = new TeamsAppResourceSpecificPermission($this->_propDict["resourceSpecificPermissions"]); + return $this->_propDict["resourceSpecificPermissions"]; + } + } + return null; + } + + /** + * Sets the resourceSpecificPermissions + * + * @param TeamsAppResourceSpecificPermission $val The value to assign to the resourceSpecificPermissions + * + * @return TeamsAppPermissionSet The TeamsAppPermissionSet + */ + public function setResourceSpecificPermissions($val) + { + $this->_propDict["resourceSpecificPermissions"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermission.php b/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermission.php new file mode 100644 index 00000000000..816fcd65547 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermission.php @@ -0,0 +1,83 @@ +_propDict)) { + if (is_a($this->_propDict["permissionType"], "\Beta\Microsoft\Graph\Model\TeamsAppResourceSpecificPermissionType") || is_null($this->_propDict["permissionType"])) { + return $this->_propDict["permissionType"]; + } else { + $this->_propDict["permissionType"] = new TeamsAppResourceSpecificPermissionType($this->_propDict["permissionType"]); + return $this->_propDict["permissionType"]; + } + } + return null; + } + + /** + * Sets the permissionType + * + * @param TeamsAppResourceSpecificPermissionType $val The value to assign to the permissionType + * + * @return TeamsAppResourceSpecificPermission The TeamsAppResourceSpecificPermission + */ + public function setPermissionType($val) + { + $this->_propDict["permissionType"] = $val; + return $this; + } + /** + * Gets the permissionValue + * + * @return string|null The permissionValue + */ + public function getPermissionValue() + { + if (array_key_exists("permissionValue", $this->_propDict)) { + return $this->_propDict["permissionValue"]; + } else { + return null; + } + } + + /** + * Sets the permissionValue + * + * @param string $val The value of the permissionValue + * + * @return TeamsAppResourceSpecificPermission + */ + public function setPermissionValue($val) + { + $this->_propDict["permissionValue"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermissionType.php b/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermissionType.php new file mode 100644 index 00000000000..3fe4af029ec --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermissionType.php @@ -0,0 +1,35 @@ +_propDict)) { + if (is_a($this->_propDict["allowedPrincipalTypes"], "\Beta\Microsoft\Graph\Model\AllowedRolePrincipalTypes") || is_null($this->_propDict["allowedPrincipalTypes"])) { + return $this->_propDict["allowedPrincipalTypes"]; + } else { + $this->_propDict["allowedPrincipalTypes"] = new AllowedRolePrincipalTypes($this->_propDict["allowedPrincipalTypes"]); + return $this->_propDict["allowedPrincipalTypes"]; + } + } + return null; + } + + /** + * Sets the allowedPrincipalTypes + * + * @param AllowedRolePrincipalTypes $val The allowedPrincipalTypes + * + * @return UnifiedRoleDefinition + */ + public function setAllowedPrincipalTypes($val) + { + $this->_propDict["allowedPrincipalTypes"] = $val; + return $this; + } + /** * Gets the description * The description for the unifiedRoleDefinition. Read-only when isBuiltIn is true. diff --git a/src/Beta/Microsoft/Graph/Model/WindowsAppX.php b/src/Beta/Microsoft/Graph/Model/WindowsAppX.php index 6af217157f6..69a7c01b6f6 100644 --- a/src/Beta/Microsoft/Graph/Model/WindowsAppX.php +++ b/src/Beta/Microsoft/Graph/Model/WindowsAppX.php @@ -26,7 +26,7 @@ class WindowsAppX extends MobileLobApp { /** * Gets the applicableArchitectures - * The Windows architecture(s) for which this app can run on. Possible values are: none, x86, x64, arm, neutral, arm64. + * The Windows architecture(s) on which this app can run. Possible values are: none, x86, x64, arm, neutral; default value is none. Possible values are: none, x86, x64, arm, neutral, arm64. * * @return WindowsArchitecture|null The applicableArchitectures */ @@ -45,7 +45,7 @@ public function getApplicableArchitectures() /** * Sets the applicableArchitectures - * The Windows architecture(s) for which this app can run on. Possible values are: none, x86, x64, arm, neutral, arm64. + * The Windows architecture(s) on which this app can run. Possible values are: none, x86, x64, arm, neutral; default value is none. Possible values are: none, x86, x64, arm, neutral, arm64. * * @param WindowsArchitecture $val The applicableArchitectures * @@ -59,7 +59,7 @@ public function setApplicableArchitectures($val) /** * Gets the identityName - * The Identity Name. + * The identity name of the uploaded app package. For example: 'Contoso.DemoApp'. * * @return string|null The identityName */ @@ -74,7 +74,7 @@ public function getIdentityName() /** * Sets the identityName - * The Identity Name. + * The identity name of the uploaded app package. For example: 'Contoso.DemoApp'. * * @param string $val The identityName * @@ -88,7 +88,7 @@ public function setIdentityName($val) /** * Gets the identityPublisherHash - * The Identity Publisher Hash. + * The identity publisher hash of the uploaded app package. This is the hash of the publisher from the manifest. For example: 'AB82CD0XYZ'. * * @return string|null The identityPublisherHash */ @@ -103,7 +103,7 @@ public function getIdentityPublisherHash() /** * Sets the identityPublisherHash - * The Identity Publisher Hash. + * The identity publisher hash of the uploaded app package. This is the hash of the publisher from the manifest. For example: 'AB82CD0XYZ'. * * @param string $val The identityPublisherHash * @@ -117,7 +117,7 @@ public function setIdentityPublisherHash($val) /** * Gets the identityResourceIdentifier - * The Identity Resource Identifier. + * The identity resource identifier of the uploaded app package. For example: 'TestResourceId'. * * @return string|null The identityResourceIdentifier */ @@ -132,7 +132,7 @@ public function getIdentityResourceIdentifier() /** * Sets the identityResourceIdentifier - * The Identity Resource Identifier. + * The identity resource identifier of the uploaded app package. For example: 'TestResourceId'. * * @param string $val The identityResourceIdentifier * @@ -146,7 +146,7 @@ public function setIdentityResourceIdentifier($val) /** * Gets the identityVersion - * The identity version. + * The identity version of the uploaded app package. For example: '1.0.0.0'. * * @return string|null The identityVersion */ @@ -161,7 +161,7 @@ public function getIdentityVersion() /** * Sets the identityVersion - * The identity version. + * The identity version of the uploaded app package. For example: '1.0.0.0'. * * @param string $val The identityVersion * @@ -175,7 +175,7 @@ public function setIdentityVersion($val) /** * Gets the isBundle - * Whether or not the app is a bundle. + * When TRUE, indicates that the app is a bundle. When FALSE, indicates that the app is not a bundle. By default, property is set to FALSE. * * @return bool|null The isBundle */ @@ -190,7 +190,7 @@ public function getIsBundle() /** * Sets the isBundle - * Whether or not the app is a bundle. + * When TRUE, indicates that the app is a bundle. When FALSE, indicates that the app is not a bundle. By default, property is set to FALSE. * * @param bool $val The isBundle * @@ -204,7 +204,7 @@ public function setIsBundle($val) /** * Gets the minimumSupportedOperatingSystem - * The value for the minimum applicable operating system. + * The value for the minimum applicable operating system. Valid values for a WindowsAppX app include v8_0, v8_1 and v10_0. If the app is a bundle, the minimum supported OS has to be at least v8_1. * * @return WindowsMinimumOperatingSystem|null The minimumSupportedOperatingSystem */ @@ -223,7 +223,7 @@ public function getMinimumSupportedOperatingSystem() /** * Sets the minimumSupportedOperatingSystem - * The value for the minimum applicable operating system. + * The value for the minimum applicable operating system. Valid values for a WindowsAppX app include v8_0, v8_1 and v10_0. If the app is a bundle, the minimum supported OS has to be at least v8_1. * * @param WindowsMinimumOperatingSystem $val The minimumSupportedOperatingSystem * diff --git a/src/Beta/Microsoft/Graph/Model/WindowsUniversalAppXAppAssignmentSettings.php b/src/Beta/Microsoft/Graph/Model/WindowsUniversalAppXAppAssignmentSettings.php index 3de3dcf3edd..afb4b2f6b75 100644 --- a/src/Beta/Microsoft/Graph/Model/WindowsUniversalAppXAppAssignmentSettings.php +++ b/src/Beta/Microsoft/Graph/Model/WindowsUniversalAppXAppAssignmentSettings.php @@ -36,7 +36,7 @@ public function __construct($propDict = array()) /** * Gets the useDeviceContext - * Whether or not to use device execution context for Windows Universal AppX mobile app. + * If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. * * @return bool|null The useDeviceContext */ @@ -51,7 +51,7 @@ public function getUseDeviceContext() /** * Sets the useDeviceContext - * Whether or not to use device execution context for Windows Universal AppX mobile app. + * If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. * * @param bool $val The value of the useDeviceContext * diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Article.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Article.php new file mode 100644 index 00000000000..b09561fb113 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Article.php @@ -0,0 +1,305 @@ +_propDict)) { + if (is_a($this->_propDict["body"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\FormattedContent") || is_null($this->_propDict["body"])) { + return $this->_propDict["body"]; + } else { + $this->_propDict["body"] = new FormattedContent($this->_propDict["body"]); + return $this->_propDict["body"]; + } + } + return null; + } + + /** + * Sets the body + * Formatted article contents. + * + * @param FormattedContent $val The body + * + * @return Article + */ + public function setBody($val) + { + $this->_propDict["body"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * The date and time when this article was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @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 and time when this article was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The createdDateTime + * + * @return Article + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the imageUrl + * URL of the header image for this article, used for display purposes. + * + * @return string|null The imageUrl + */ + public function getImageUrl() + { + if (array_key_exists("imageUrl", $this->_propDict)) { + return $this->_propDict["imageUrl"]; + } else { + return null; + } + } + + /** + * Sets the imageUrl + * URL of the header image for this article, used for display purposes. + * + * @param string $val The imageUrl + * + * @return Article + */ + public function setImageUrl($val) + { + $this->_propDict["imageUrl"] = $val; + return $this; + } + + /** + * Gets the isFeatured + * Indicates whether this article is currently featured by Microsoft. + * + * @return bool|null The isFeatured + */ + public function getIsFeatured() + { + if (array_key_exists("isFeatured", $this->_propDict)) { + return $this->_propDict["isFeatured"]; + } else { + return null; + } + } + + /** + * Sets the isFeatured + * Indicates whether this article is currently featured by Microsoft. + * + * @param bool $val The isFeatured + * + * @return Article + */ + public function setIsFeatured($val) + { + $this->_propDict["isFeatured"] = boolval($val); + return $this; + } + + /** + * Gets the lastUpdatedDateTime + * The most recent date and time when this article was updated. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @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 most recent date and time when this article was updated. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The lastUpdatedDateTime + * + * @return Article + */ + public function setLastUpdatedDateTime($val) + { + $this->_propDict["lastUpdatedDateTime"] = $val; + return $this; + } + + /** + * Gets the summary + * A quick summary of this article. + * + * @return FormattedContent|null The summary + */ + public function getSummary() + { + if (array_key_exists("summary", $this->_propDict)) { + if (is_a($this->_propDict["summary"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\FormattedContent") || is_null($this->_propDict["summary"])) { + return $this->_propDict["summary"]; + } else { + $this->_propDict["summary"] = new FormattedContent($this->_propDict["summary"]); + return $this->_propDict["summary"]; + } + } + return null; + } + + /** + * Sets the summary + * A quick summary of this article. + * + * @param FormattedContent $val The summary + * + * @return Article + */ + public function setSummary($val) + { + $this->_propDict["summary"] = $val; + return $this; + } + + /** + * Gets the tags + * Tags for this article, communicating keywords, or key concepts. + * + * @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 + * Tags for this article, communicating keywords, or key concepts. + * + * @param string[] $val The tags + * + * @return Article + */ + public function setTags($val) + { + $this->_propDict["tags"] = $val; + return $this; + } + + /** + * Gets the title + * The title of this article. + * + * @return string|null The title + */ + public function getTitle() + { + if (array_key_exists("title", $this->_propDict)) { + return $this->_propDict["title"]; + } else { + return null; + } + } + + /** + * Sets the title + * The title of this article. + * + * @param string $val The title + * + * @return Article + */ + public function setTitle($val) + { + $this->_propDict["title"] = $val; + return $this; + } + + + /** + * Gets the indicators + * Indicators related to this article. + * + * @return array|null The indicators + */ + public function getIndicators() + { + if (array_key_exists("indicators", $this->_propDict)) { + return $this->_propDict["indicators"]; + } else { + return null; + } + } + + /** + * Sets the indicators + * Indicators related to this article. + * + * @param ArticleIndicator[] $val The indicators + * + * @return Article + */ + public function setIndicators($val) + { + $this->_propDict["indicators"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ArticleIndicator.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ArticleIndicator.php new file mode 100644 index 00000000000..f78f234cc13 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ArticleIndicator.php @@ -0,0 +1,27 @@ +_propDict)) { + return $this->_propDict["name"]; + } else { + return null; + } + } + + /** + * Sets the name + * The name of the autonomous system. + * + * @param string $val The value of the name + * + * @return AutonomousSystem + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + /** + * Gets the number + * The autonomous system number, assigned by IANA. + * + * @return int|null The number + */ + public function getNumber() + { + if (array_key_exists("number", $this->_propDict)) { + return $this->_propDict["number"]; + } else { + return null; + } + } + + /** + * Sets the number + * The autonomous system number, assigned by IANA. + * + * @param int $val The value of the number + * + * @return AutonomousSystem + */ + public function setNumber($val) + { + $this->_propDict["number"] = $val; + return $this; + } + /** + * Gets the organization + * The name of the autonomous system organization. + * + * @return string|null The organization + */ + public function getOrganization() + { + if (array_key_exists("organization", $this->_propDict)) { + return $this->_propDict["organization"]; + } else { + return null; + } + } + + /** + * Sets the organization + * The name of the autonomous system organization. + * + * @param string $val The value of the organization + * + * @return AutonomousSystem + */ + public function setOrganization($val) + { + $this->_propDict["organization"] = $val; + return $this; + } + /** + * Gets the value + * A displayable value for these autonomous system details. + * + * @return string|null The value + */ + public function getValue() + { + if (array_key_exists("value", $this->_propDict)) { + return $this->_propDict["value"]; + } else { + return null; + } + } + + /** + * Sets the value + * A displayable value for these autonomous system details. + * + * @param string $val The value of the value + * + * @return AutonomousSystem + */ + public function setValue($val) + { + $this->_propDict["value"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ContentFormat.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ContentFormat.php new file mode 100644 index 00000000000..0e2c4322f71 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ContentFormat.php @@ -0,0 +1,36 @@ +_propDict)) { + return $this->_propDict["score"]; + } else { + return null; + } + } + + /** + * Sets the score + * The CVSS score about this vulnerability. + * + * @param float $val The value of the score + * + * @return CvssSummary + */ + public function setScore($val) + { + $this->_propDict["score"] = $val; + return $this; + } + + /** + * Gets the severity + * The CVSS severity rating for this vulnerability. The possible values are: none, low, medium, high, critical, unknownFutureValue. + * + * @return VulnerabilitySeverity|null The severity + */ + public function getSeverity() + { + if (array_key_exists("severity", $this->_propDict)) { + if (is_a($this->_propDict["severity"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\VulnerabilitySeverity") || is_null($this->_propDict["severity"])) { + return $this->_propDict["severity"]; + } else { + $this->_propDict["severity"] = new VulnerabilitySeverity($this->_propDict["severity"]); + return $this->_propDict["severity"]; + } + } + return null; + } + + /** + * Sets the severity + * The CVSS severity rating for this vulnerability. The possible values are: none, low, medium, high, critical, unknownFutureValue. + * + * @param VulnerabilitySeverity $val The value to assign to the severity + * + * @return CvssSummary The CvssSummary + */ + public function setSeverity($val) + { + $this->_propDict["severity"] = $val; + return $this; + } + /** + * Gets the vectorString + * The CVSS vector string for this vulnerability. + * + * @return string|null The vectorString + */ + public function getVectorString() + { + if (array_key_exists("vectorString", $this->_propDict)) { + return $this->_propDict["vectorString"]; + } else { + return null; + } + } + + /** + * Sets the vectorString + * The CVSS vector string for this vulnerability. + * + * @param string $val The value of the vectorString + * + * @return CvssSummary + */ + public function setVectorString($val) + { + $this->_propDict["vectorString"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/FormattedContent.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/FormattedContent.php new file mode 100644 index 00000000000..0321cb6bcc9 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/FormattedContent.php @@ -0,0 +1,87 @@ +_propDict)) { + return $this->_propDict["content"]; + } else { + return null; + } + } + + /** + * Sets the content + * The content of this formattedContent. + * + * @param string $val The value of the content + * + * @return FormattedContent + */ + public function setContent($val) + { + $this->_propDict["content"] = $val; + return $this; + } + + /** + * Gets the format + * The format of the content. The possible values are: text, html, markdown, unknownFutureValue. + * + * @return ContentFormat|null The format + */ + public function getFormat() + { + if (array_key_exists("format", $this->_propDict)) { + if (is_a($this->_propDict["format"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\ContentFormat") || is_null($this->_propDict["format"])) { + return $this->_propDict["format"]; + } else { + $this->_propDict["format"] = new ContentFormat($this->_propDict["format"]); + return $this->_propDict["format"]; + } + } + return null; + } + + /** + * Sets the format + * The format of the content. The possible values are: text, html, markdown, unknownFutureValue. + * + * @param ContentFormat $val The value to assign to the format + * + * @return FormattedContent The FormattedContent + */ + public function setFormat($val) + { + $this->_propDict["format"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Host.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Host.php new file mode 100644 index 00000000000..7481042bf93 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Host.php @@ -0,0 +1,276 @@ +_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * The first date and time when this host was observed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return Host + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * The most recent date and time when this host was observed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * The most recent date and time when this host was observed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return Host + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + + /** + * Gets the components + * The hostComponents that are associated with this host. + * + * @return array|null The components + */ + public function getComponents() + { + if (array_key_exists("components", $this->_propDict)) { + return $this->_propDict["components"]; + } else { + return null; + } + } + + /** + * Sets the components + * The hostComponents that are associated with this host. + * + * @param HostComponent[] $val The components + * + * @return Host + */ + public function setComponents($val) + { + $this->_propDict["components"] = $val; + return $this; + } + + + /** + * Gets the cookies + * The hostCookies that are associated with this host. + * + * @return array|null The cookies + */ + public function getCookies() + { + if (array_key_exists("cookies", $this->_propDict)) { + return $this->_propDict["cookies"]; + } else { + return null; + } + } + + /** + * Sets the cookies + * The hostCookies that are associated with this host. + * + * @param HostCookie[] $val The cookies + * + * @return Host + */ + public function setCookies($val) + { + $this->_propDict["cookies"] = $val; + return $this; + } + + + /** + * Gets the passiveDns + * Passive DNS retrieval about this host. + * + * @return array|null The passiveDns + */ + public function getPassiveDns() + { + if (array_key_exists("passiveDns", $this->_propDict)) { + return $this->_propDict["passiveDns"]; + } else { + return null; + } + } + + /** + * Sets the passiveDns + * Passive DNS retrieval about this host. + * + * @param PassiveDnsRecord[] $val The passiveDns + * + * @return Host + */ + public function setPassiveDns($val) + { + $this->_propDict["passiveDns"] = $val; + return $this; + } + + + /** + * Gets the passiveDnsReverse + * Reverse passive DNS retrieval about this host. + * + * @return array|null The passiveDnsReverse + */ + public function getPassiveDnsReverse() + { + if (array_key_exists("passiveDnsReverse", $this->_propDict)) { + return $this->_propDict["passiveDnsReverse"]; + } else { + return null; + } + } + + /** + * Sets the passiveDnsReverse + * Reverse passive DNS retrieval about this host. + * + * @param PassiveDnsRecord[] $val The passiveDnsReverse + * + * @return Host + */ + public function setPassiveDnsReverse($val) + { + $this->_propDict["passiveDnsReverse"] = $val; + return $this; + } + + /** + * Gets the reputation + * Represents a calculated reputation of this host. + * + * @return HostReputation|null The reputation + */ + public function getReputation() + { + if (array_key_exists("reputation", $this->_propDict)) { + if (is_a($this->_propDict["reputation"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\HostReputation") || is_null($this->_propDict["reputation"])) { + return $this->_propDict["reputation"]; + } else { + $this->_propDict["reputation"] = new HostReputation($this->_propDict["reputation"]); + return $this->_propDict["reputation"]; + } + } + return null; + } + + /** + * Sets the reputation + * Represents a calculated reputation of this host. + * + * @param HostReputation $val The reputation + * + * @return Host + */ + public function setReputation($val) + { + $this->_propDict["reputation"] = $val; + return $this; + } + + + /** + * Gets the trackers + * The hostTrackers that are associated with this host. + * + * @return array|null The trackers + */ + public function getTrackers() + { + if (array_key_exists("trackers", $this->_propDict)) { + return $this->_propDict["trackers"]; + } else { + return null; + } + } + + /** + * Sets the trackers + * The hostTrackers that are associated with this host. + * + * @param HostTracker[] $val The trackers + * + * @return Host + */ + public function setTrackers($val) + { + $this->_propDict["trackers"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostComponent.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostComponent.php new file mode 100644 index 00000000000..f3e31629c26 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostComponent.php @@ -0,0 +1,213 @@ +_propDict)) { + return $this->_propDict["category"]; + } else { + return null; + } + } + + /** + * Sets the category + * The type of component that was detected (for example, Operating System, Framework, Remote Access, or Server). + * + * @param string $val The category + * + * @return HostComponent + */ + public function setCategory($val) + { + $this->_propDict["category"] = $val; + return $this; + } + + /** + * Gets the firstSeenDateTime + * The first date and time when this web component was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The firstSeenDateTime + */ + public function getFirstSeenDateTime() + { + if (array_key_exists("firstSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * The first date and time when this web component was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return HostComponent + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * The most recent date and time when this web component was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * The most recent date and time when this web component was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return HostComponent + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the name + * A name running on the artifact, for example, Microsoft IIS. + * + * @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 + * A name running on the artifact, for example, Microsoft IIS. + * + * @param string $val The name + * + * @return HostComponent + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + + /** + * Gets the version + * The component version running on the artifact, for example, v8.5. This should not be assumed to be strictly numerical. + * + * @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 + * The component version running on the artifact, for example, v8.5. This should not be assumed to be strictly numerical. + * + * @param string $val The version + * + * @return HostComponent + */ + public function setVersion($val) + { + $this->_propDict["version"] = $val; + return $this; + } + + /** + * Gets the host + * The host related to this component. This is a reverse navigation property. When navigating to components from a host, this should be assumed to be a return reference. + * + * @return Host|null The host + */ + public function getHost() + { + if (array_key_exists("host", $this->_propDict)) { + if (is_a($this->_propDict["host"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["host"])) { + return $this->_propDict["host"]; + } else { + $this->_propDict["host"] = new Host($this->_propDict["host"]); + return $this->_propDict["host"]; + } + } + return null; + } + + /** + * Sets the host + * The host related to this component. This is a reverse navigation property. When navigating to components from a host, this should be assumed to be a return reference. + * + * @param Host $val The host + * + * @return HostComponent + */ + public function setHost($val) + { + $this->_propDict["host"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostCookie.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostCookie.php new file mode 100644 index 00000000000..5fc59710e4c --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostCookie.php @@ -0,0 +1,184 @@ +_propDict)) { + return $this->_propDict["domain"]; + } else { + return null; + } + } + + /** + * Sets the domain + * The URI for which the cookie is valid. + * + * @param string $val The domain + * + * @return HostCookie + */ + public function setDomain($val) + { + $this->_propDict["domain"] = $val; + return $this; + } + + /** + * Gets the firstSeenDateTime + * The first date and time when this hostCookie was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The firstSeenDateTime + */ + public function getFirstSeenDateTime() + { + if (array_key_exists("firstSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * The first date and time when this hostCookie was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return HostCookie + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * The most recent date and time when this hostCookie was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * The most recent date and time when this hostCookie was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return HostCookie + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the name + * The name of the cookie, for example, JSESSIONID or SEARCH_NAMESITE. + * + * @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 cookie, for example, JSESSIONID or SEARCH_NAMESITE. + * + * @param string $val The name + * + * @return HostCookie + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + + /** + * Gets the host + * Indicates that a cookie of this name and domain was found related to this host. + * + * @return Host|null The host + */ + public function getHost() + { + if (array_key_exists("host", $this->_propDict)) { + if (is_a($this->_propDict["host"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["host"])) { + return $this->_propDict["host"]; + } else { + $this->_propDict["host"] = new Host($this->_propDict["host"]); + return $this->_propDict["host"]; + } + } + return null; + } + + /** + * Sets the host + * Indicates that a cookie of this name and domain was found related to this host. + * + * @param Host $val The host + * + * @return HostCookie + */ + public function setHost($val) + { + $this->_propDict["host"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputation.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputation.php new file mode 100644 index 00000000000..8908adbbeba --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputation.php @@ -0,0 +1,119 @@ +_propDict)) { + if (is_a($this->_propDict["classification"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\HostReputationClassification") || is_null($this->_propDict["classification"])) { + return $this->_propDict["classification"]; + } else { + $this->_propDict["classification"] = new HostReputationClassification($this->_propDict["classification"]); + return $this->_propDict["classification"]; + } + } + return null; + } + + /** + * Sets the classification + * The calculated reputation of the host. The possible values are: unknown, neutral, suspicious, malicious, unknownFutureValue. + * + * @param HostReputationClassification $val The classification + * + * @return HostReputation + */ + public function setClassification($val) + { + $this->_propDict["classification"] = $val; + return $this; + } + + + /** + * Gets the rules + * A collection of rules that have been used to calculate the classification and score. + * + * @return array|null The rules + */ + public function getRules() + { + if (array_key_exists("rules", $this->_propDict)) { + return $this->_propDict["rules"]; + } else { + return null; + } + } + + /** + * Sets the rules + * A collection of rules that have been used to calculate the classification and score. + * + * @param HostReputationRule[] $val The rules + * + * @return HostReputation + */ + public function setRules($val) + { + $this->_propDict["rules"] = $val; + return $this; + } + + /** + * Gets the score + * The calculated score (0-100) of the requested host. A higher value indicates that this host is more likely to be suspicious or malicious. + * + * @return int|null The score + */ + public function getScore() + { + if (array_key_exists("score", $this->_propDict)) { + return $this->_propDict["score"]; + } else { + return null; + } + } + + /** + * Sets the score + * The calculated score (0-100) of the requested host. A higher value indicates that this host is more likely to be suspicious or malicious. + * + * @param int $val The score + * + * @return HostReputation + */ + public function setScore($val) + { + $this->_propDict["score"] = intval($val); + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationClassification.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationClassification.php new file mode 100644 index 00000000000..3ce5f96d5c3 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationClassification.php @@ -0,0 +1,37 @@ +_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * The description of the rule that gives more context. + * + * @param string $val The value of the description + * + * @return HostReputationRule + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + /** + * Gets the name + * The name of the rule. + * + * @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 rule. + * + * @param string $val The value of the name + * + * @return HostReputationRule + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + /** + * Gets the relatedDetailsUrl + * Link to a web page with details related to this rule. + * + * @return string|null The relatedDetailsUrl + */ + public function getRelatedDetailsUrl() + { + if (array_key_exists("relatedDetailsUrl", $this->_propDict)) { + return $this->_propDict["relatedDetailsUrl"]; + } else { + return null; + } + } + + /** + * Sets the relatedDetailsUrl + * Link to a web page with details related to this rule. + * + * @param string $val The value of the relatedDetailsUrl + * + * @return HostReputationRule + */ + public function setRelatedDetailsUrl($val) + { + $this->_propDict["relatedDetailsUrl"] = $val; + return $this; + } + + /** + * Gets the severity + * Indicates the severity that this rule has against the reputation score. The possible values are: unknown, low, medium, high, unknownFutureValue. + * + * @return HostReputationRuleSeverity|null The severity + */ + public function getSeverity() + { + if (array_key_exists("severity", $this->_propDict)) { + if (is_a($this->_propDict["severity"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\HostReputationRuleSeverity") || is_null($this->_propDict["severity"])) { + return $this->_propDict["severity"]; + } else { + $this->_propDict["severity"] = new HostReputationRuleSeverity($this->_propDict["severity"]); + return $this->_propDict["severity"]; + } + } + return null; + } + + /** + * Sets the severity + * Indicates the severity that this rule has against the reputation score. The possible values are: unknown, low, medium, high, unknownFutureValue. + * + * @param HostReputationRuleSeverity $val The value to assign to the severity + * + * @return HostReputationRule The HostReputationRule + */ + public function setSeverity($val) + { + $this->_propDict["severity"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationRuleSeverity.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationRuleSeverity.php new file mode 100644 index 00000000000..83feed7fbc6 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationRuleSeverity.php @@ -0,0 +1,37 @@ +_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * The first date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return HostTracker + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the kind + * The kind of hostTracker that was detected. For example, GoogleAnalyticsID or JarmHash. + * + * @return string|null The kind + */ + public function getKind() + { + if (array_key_exists("kind", $this->_propDict)) { + return $this->_propDict["kind"]; + } else { + return null; + } + } + + /** + * Sets the kind + * The kind of hostTracker that was detected. For example, GoogleAnalyticsID or JarmHash. + * + * @param string $val The kind + * + * @return HostTracker + */ + public function setKind($val) + { + $this->_propDict["kind"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * The most recent date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * The most recent date and time when this hostTracker was observed by Microsoft Defender Threat Intelligence. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return HostTracker + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the value + * The identification value for the hostTracker. + * + * @return string|null The value + */ + public function getValue() + { + if (array_key_exists("value", $this->_propDict)) { + return $this->_propDict["value"]; + } else { + return null; + } + } + + /** + * Sets the value + * The identification value for the hostTracker. + * + * @param string $val The value + * + * @return HostTracker + */ + public function setValue($val) + { + $this->_propDict["value"] = $val; + return $this; + } + + /** + * Gets the host + * The host related to this hostTracker. When navigating to a hostTracker from a host, this should be assumed to be a return reference. + * + * @return Host|null The host + */ + public function getHost() + { + if (array_key_exists("host", $this->_propDict)) { + if (is_a($this->_propDict["host"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["host"])) { + return $this->_propDict["host"]; + } else { + $this->_propDict["host"] = new Host($this->_propDict["host"]); + return $this->_propDict["host"]; + } + } + return null; + } + + /** + * Sets the host + * The host related to this hostTracker. When navigating to a hostTracker from a host, this should be assumed to be a return reference. + * + * @param Host $val The host + * + * @return HostTracker + */ + public function setHost($val) + { + $this->_propDict["host"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Hostname.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Hostname.php new file mode 100644 index 00000000000..44d5695ecf9 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Hostname.php @@ -0,0 +1,85 @@ +_propDict)) { + return $this->_propDict["registrant"]; + } else { + return null; + } + } + + /** + * Sets the registrant + * The company or individual who registered this hostname, from WHOIS data. + * + * @param string $val The registrant + * + * @return Hostname + */ + public function setRegistrant($val) + { + $this->_propDict["registrant"] = $val; + return $this; + } + + /** + * Gets the registrar + * The registrar for this hostname, from WHOIS data. + * + * @return string|null The registrar + */ + public function getRegistrar() + { + if (array_key_exists("registrar", $this->_propDict)) { + return $this->_propDict["registrar"]; + } else { + return null; + } + } + + /** + * Sets the registrar + * The registrar for this hostname, from WHOIS data. + * + * @param string $val The registrar + * + * @return Hostname + */ + public function setRegistrar($val) + { + $this->_propDict["registrar"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Hyperlink.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Hyperlink.php new file mode 100644 index 00000000000..fe88168bc0f --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Hyperlink.php @@ -0,0 +1,82 @@ +_propDict)) { + return $this->_propDict["name"]; + } else { + return null; + } + } + + /** + * Sets the name + * The name for this hyperlink. + * + * @param string $val The value of the name + * + * @return Hyperlink + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + /** + * Gets the url + * The URL for this hyperlink. + * + * @return string|null The url + */ + public function getUrl() + { + if (array_key_exists("url", $this->_propDict)) { + return $this->_propDict["url"]; + } else { + return null; + } + } + + /** + * Sets the url + * The URL for this hyperlink. + * + * @param string $val The value of the url + * + * @return Hyperlink + */ + public function setUrl($val) + { + $this->_propDict["url"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Indicator.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Indicator.php new file mode 100644 index 00000000000..85a38f7216b --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Indicator.php @@ -0,0 +1,93 @@ +_propDict)) { + if (is_a($this->_propDict["source"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\IndicatorSource") || is_null($this->_propDict["source"])) { + return $this->_propDict["source"]; + } else { + $this->_propDict["source"] = new IndicatorSource($this->_propDict["source"]); + return $this->_propDict["source"]; + } + } + return null; + } + + /** + * Sets the source + * The source that provides this indicator. The possible values are: microsoftDefenderThreatIntelligence, openSourceIntelligence, public, unknownFutureValue. + * + * @param IndicatorSource $val The source + * + * @return Indicator + */ + public function setSource($val) + { + $this->_propDict["source"] = $val; + return $this; + } + + /** + * Gets the artifact + * The artifact related to this indicator. + * + * @return Artifact|null The artifact + */ + public function getArtifact() + { + if (array_key_exists("artifact", $this->_propDict)) { + if (is_a($this->_propDict["artifact"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\Artifact") || is_null($this->_propDict["artifact"])) { + return $this->_propDict["artifact"]; + } else { + $this->_propDict["artifact"] = new Artifact($this->_propDict["artifact"]); + return $this->_propDict["artifact"]; + } + } + return null; + } + + /** + * Sets the artifact + * The artifact related to this indicator. + * + * @param Artifact $val The artifact + * + * @return Indicator + */ + public function setArtifact($val) + { + $this->_propDict["artifact"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IndicatorSource.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IndicatorSource.php new file mode 100644 index 00000000000..528134851ee --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IndicatorSource.php @@ -0,0 +1,36 @@ +_propDict)) { + return $this->_propDict["aliases"]; + } else { + return null; + } + } + + /** + * Sets the aliases + * A list of commonly-known aliases for the threat intelligence included in the intelligenceProfile. + * + * @param string[] $val The aliases + * + * @return IntelligenceProfile + */ + public function setAliases($val) + { + $this->_propDict["aliases"] = $val; + return $this; + } + + /** + * Gets the description + * A synopsis of the threat actor. This property places the threat actor in wider context, tracing its discovery, history, significant campaigns, targeting, techniques of note, affiliations with governments, law enforcement countermeasures, and any areas of dispute among the security community regarding attribution. + * + * @return FormattedContent|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + if (is_a($this->_propDict["description"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\FormattedContent") || is_null($this->_propDict["description"])) { + return $this->_propDict["description"]; + } else { + $this->_propDict["description"] = new FormattedContent($this->_propDict["description"]); + return $this->_propDict["description"]; + } + } + return null; + } + + /** + * Sets the description + * A synopsis of the threat actor. This property places the threat actor in wider context, tracing its discovery, history, significant campaigns, targeting, techniques of note, affiliations with governments, law enforcement countermeasures, and any areas of dispute among the security community regarding attribution. + * + * @param FormattedContent $val The description + * + * @return IntelligenceProfile + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the firstActiveDateTime + * The date and time when this intelligenceProfile was first active. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The firstActiveDateTime + */ + public function getFirstActiveDateTime() + { + if (array_key_exists("firstActiveDateTime", $this->_propDict)) { + if (is_a($this->_propDict["firstActiveDateTime"], "\DateTime") || is_null($this->_propDict["firstActiveDateTime"])) { + return $this->_propDict["firstActiveDateTime"]; + } else { + $this->_propDict["firstActiveDateTime"] = new \DateTime($this->_propDict["firstActiveDateTime"]); + return $this->_propDict["firstActiveDateTime"]; + } + } + return null; + } + + /** + * Sets the firstActiveDateTime + * The date and time when this intelligenceProfile was first active. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The firstActiveDateTime + * + * @return IntelligenceProfile + */ + public function setFirstActiveDateTime($val) + { + $this->_propDict["firstActiveDateTime"] = $val; + return $this; + } + + /** + * Gets the kind + * A categorization of the type of this intelligenceProfile. The possible values are: actor, tool, unknownFutureValue. + * + * @return IntelligenceProfileKind|null The kind + */ + public function getKind() + { + if (array_key_exists("kind", $this->_propDict)) { + if (is_a($this->_propDict["kind"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\IntelligenceProfileKind") || is_null($this->_propDict["kind"])) { + return $this->_propDict["kind"]; + } else { + $this->_propDict["kind"] = new IntelligenceProfileKind($this->_propDict["kind"]); + return $this->_propDict["kind"]; + } + } + return null; + } + + /** + * Sets the kind + * A categorization of the type of this intelligenceProfile. The possible values are: actor, tool, unknownFutureValue. + * + * @param IntelligenceProfileKind $val The kind + * + * @return IntelligenceProfile + */ + public function setKind($val) + { + $this->_propDict["kind"] = $val; + return $this; + } + + + /** + * Gets the sponsorStates + * Known states (such as a country or government) who have sponsored threat actors associated with this intelligenceProfile. This is also known as the country/region of origin for the given actor or threat. + * + * @return array|null The sponsorStates + */ + public function getSponsorStates() + { + if (array_key_exists("sponsorStates", $this->_propDict)) { + return $this->_propDict["sponsorStates"]; + } else { + return null; + } + } + + /** + * Sets the sponsorStates + * Known states (such as a country or government) who have sponsored threat actors associated with this intelligenceProfile. This is also known as the country/region of origin for the given actor or threat. + * + * @param IntelligenceProfileSponsorState[] $val The sponsorStates + * + * @return IntelligenceProfile + */ + public function setSponsorStates($val) + { + $this->_propDict["sponsorStates"] = $val; + return $this; + } + + /** + * Gets the summary + * A short summary of this intelligenceProfile. + * + * @return FormattedContent|null The summary + */ + public function getSummary() + { + if (array_key_exists("summary", $this->_propDict)) { + if (is_a($this->_propDict["summary"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\FormattedContent") || is_null($this->_propDict["summary"])) { + return $this->_propDict["summary"]; + } else { + $this->_propDict["summary"] = new FormattedContent($this->_propDict["summary"]); + return $this->_propDict["summary"]; + } + } + return null; + } + + /** + * Sets the summary + * A short summary of this intelligenceProfile. + * + * @param FormattedContent $val The summary + * + * @return IntelligenceProfile + */ + public function setSummary($val) + { + $this->_propDict["summary"] = $val; + return $this; + } + + /** + * Gets the targets + * Known targets related to this intelligenceProfile. + * + * @return array|null The targets + */ + public function getTargets() + { + if (array_key_exists("targets", $this->_propDict)) { + return $this->_propDict["targets"]; + } else { + return null; + } + } + + /** + * Sets the targets + * Known targets related to this intelligenceProfile. + * + * @param string[] $val The targets + * + * @return IntelligenceProfile + */ + public function setTargets($val) + { + $this->_propDict["targets"] = $val; + return $this; + } + + /** + * Gets the title + * The title of this intelligenceProfile. + * + * @return string|null The title + */ + public function getTitle() + { + if (array_key_exists("title", $this->_propDict)) { + return $this->_propDict["title"]; + } else { + return null; + } + } + + /** + * Sets the title + * The title of this intelligenceProfile. + * + * @param string $val The title + * + * @return IntelligenceProfile + */ + public function setTitle($val) + { + $this->_propDict["title"] = $val; + return $this; + } + + /** + * Gets the tradecraft + * Formatted information featuring a description of the distinctive tactics, techniques, and procedures (TTP) of the group, followed by a list of all known custom, commodity, and publicly available implants used by the group. + * + * @return FormattedContent|null The tradecraft + */ + public function getTradecraft() + { + if (array_key_exists("tradecraft", $this->_propDict)) { + if (is_a($this->_propDict["tradecraft"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\FormattedContent") || is_null($this->_propDict["tradecraft"])) { + return $this->_propDict["tradecraft"]; + } else { + $this->_propDict["tradecraft"] = new FormattedContent($this->_propDict["tradecraft"]); + return $this->_propDict["tradecraft"]; + } + } + return null; + } + + /** + * Sets the tradecraft + * Formatted information featuring a description of the distinctive tactics, techniques, and procedures (TTP) of the group, followed by a list of all known custom, commodity, and publicly available implants used by the group. + * + * @param FormattedContent $val The tradecraft + * + * @return IntelligenceProfile + */ + public function setTradecraft($val) + { + $this->_propDict["tradecraft"] = $val; + return $this; + } + + + /** + * Gets the indicators + * Includes an assemblage of high-fidelity network indicators of compromise. + * + * @return array|null The indicators + */ + public function getIndicators() + { + if (array_key_exists("indicators", $this->_propDict)) { + return $this->_propDict["indicators"]; + } else { + return null; + } + } + + /** + * Sets the indicators + * Includes an assemblage of high-fidelity network indicators of compromise. + * + * @param IntelligenceProfileIndicator[] $val The indicators + * + * @return IntelligenceProfile + */ + public function setIndicators($val) + { + $this->_propDict["indicators"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileIndicator.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileIndicator.php new file mode 100644 index 00000000000..de075a8de4b --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileIndicator.php @@ -0,0 +1,93 @@ +_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * Designate when an artifact was first used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return IntelligenceProfileIndicator + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * Designate when an artifact was most recently used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * Designate when an artifact was most recently used actively in an attack, when a particular sample was compiled, or if neither of those could be ascertained when the file was first seen in public repositories (for example, VirusTotal, ANY.RUN, Hybrid Analysis) or reported publicly. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return IntelligenceProfileIndicator + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileKind.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileKind.php new file mode 100644 index 00000000000..251a295dbd0 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileKind.php @@ -0,0 +1,35 @@ +_propDict)) { + return $this->_propDict["code"]; + } else { + return null; + } + } + + /** + * Sets the code + * A codified representation for this sponsor state. + * + * @param string $val The value of the code + * + * @return IntelligenceProfileSponsorState + */ + public function setCode($val) + { + $this->_propDict["code"] = $val; + return $this; + } + /** + * Gets the label + * A display label for this sponsor state. + * + * @return string|null The label + */ + public function getLabel() + { + if (array_key_exists("label", $this->_propDict)) { + return $this->_propDict["label"]; + } else { + return null; + } + } + + /** + * Sets the label + * A display label for this sponsor state. + * + * @param string $val The value of the label + * + * @return IntelligenceProfileSponsorState + */ + public function setLabel($val) + { + $this->_propDict["label"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IpAddress.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IpAddress.php new file mode 100644 index 00000000000..40362224a0c --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/IpAddress.php @@ -0,0 +1,147 @@ +_propDict)) { + if (is_a($this->_propDict["autonomousSystem"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\AutonomousSystem") || is_null($this->_propDict["autonomousSystem"])) { + return $this->_propDict["autonomousSystem"]; + } else { + $this->_propDict["autonomousSystem"] = new AutonomousSystem($this->_propDict["autonomousSystem"]); + return $this->_propDict["autonomousSystem"]; + } + } + return null; + } + + /** + * Sets the autonomousSystem + * The details about the autonomous system to which this IP address belongs. + * + * @param AutonomousSystem $val The autonomousSystem + * + * @return IpAddress + */ + public function setAutonomousSystem($val) + { + $this->_propDict["autonomousSystem"] = $val; + return $this; + } + + /** + * Gets the countryOrRegion + * The country or region for this IP address. + * + * @return string|null The countryOrRegion + */ + public function getCountryOrRegion() + { + if (array_key_exists("countryOrRegion", $this->_propDict)) { + return $this->_propDict["countryOrRegion"]; + } else { + return null; + } + } + + /** + * Sets the countryOrRegion + * The country or region for this IP address. + * + * @param string $val The countryOrRegion + * + * @return IpAddress + */ + public function setCountryOrRegion($val) + { + $this->_propDict["countryOrRegion"] = $val; + return $this; + } + + /** + * Gets the hostingProvider + * The hosting company listed for this host. + * + * @return string|null The hostingProvider + */ + public function getHostingProvider() + { + if (array_key_exists("hostingProvider", $this->_propDict)) { + return $this->_propDict["hostingProvider"]; + } else { + return null; + } + } + + /** + * Sets the hostingProvider + * The hosting company listed for this host. + * + * @param string $val The hostingProvider + * + * @return IpAddress + */ + public function setHostingProvider($val) + { + $this->_propDict["hostingProvider"] = $val; + return $this; + } + + /** + * Gets the netblock + * The block of IP addresses this IP address belongs to. + * + * @return string|null The netblock + */ + public function getNetblock() + { + if (array_key_exists("netblock", $this->_propDict)) { + return $this->_propDict["netblock"]; + } else { + return null; + } + } + + /** + * Sets the netblock + * The block of IP addresses this IP address belongs to. + * + * @param string $val The netblock + * + * @return IpAddress + */ + public function setNetblock($val) + { + $this->_propDict["netblock"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/PassiveDnsRecord.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/PassiveDnsRecord.php new file mode 100644 index 00000000000..5e308af6128 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/PassiveDnsRecord.php @@ -0,0 +1,221 @@ +_propDict)) { + if (is_a($this->_propDict["collectedDateTime"], "\DateTime") || is_null($this->_propDict["collectedDateTime"])) { + return $this->_propDict["collectedDateTime"]; + } else { + $this->_propDict["collectedDateTime"] = new \DateTime($this->_propDict["collectedDateTime"]); + return $this->_propDict["collectedDateTime"]; + } + } + return null; + } + + /** + * Sets the collectedDateTime + * The date and time that this passiveDnsRecord entry was collected by Microsoft. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The collectedDateTime + * + * @return PassiveDnsRecord + */ + public function setCollectedDateTime($val) + { + $this->_propDict["collectedDateTime"] = $val; + return $this; + } + + /** + * Gets the firstSeenDateTime + * The date and time when this passiveDnsRecord entry was first seen. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The firstSeenDateTime + */ + public function getFirstSeenDateTime() + { + if (array_key_exists("firstSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["firstSeenDateTime"], "\DateTime") || is_null($this->_propDict["firstSeenDateTime"])) { + return $this->_propDict["firstSeenDateTime"]; + } else { + $this->_propDict["firstSeenDateTime"] = new \DateTime($this->_propDict["firstSeenDateTime"]); + return $this->_propDict["firstSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the firstSeenDateTime + * The date and time when this passiveDnsRecord entry was first seen. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The firstSeenDateTime + * + * @return PassiveDnsRecord + */ + public function setFirstSeenDateTime($val) + { + $this->_propDict["firstSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the lastSeenDateTime + * The date and time when this passiveDnsRecord entry was most recently seen. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @return \DateTime|null The lastSeenDateTime + */ + public function getLastSeenDateTime() + { + if (array_key_exists("lastSeenDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSeenDateTime"], "\DateTime") || is_null($this->_propDict["lastSeenDateTime"])) { + return $this->_propDict["lastSeenDateTime"]; + } else { + $this->_propDict["lastSeenDateTime"] = new \DateTime($this->_propDict["lastSeenDateTime"]); + return $this->_propDict["lastSeenDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSeenDateTime + * The date and time when this passiveDnsRecord entry was most recently seen. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. + * + * @param \DateTime $val The lastSeenDateTime + * + * @return PassiveDnsRecord + */ + public function setLastSeenDateTime($val) + { + $this->_propDict["lastSeenDateTime"] = $val; + return $this; + } + + /** + * Gets the recordType + * The DNS record type for this passiveDnsRecord entry. + * + * @return string|null The recordType + */ + public function getRecordType() + { + if (array_key_exists("recordType", $this->_propDict)) { + return $this->_propDict["recordType"]; + } else { + return null; + } + } + + /** + * Sets the recordType + * The DNS record type for this passiveDnsRecord entry. + * + * @param string $val The recordType + * + * @return PassiveDnsRecord + */ + public function setRecordType($val) + { + $this->_propDict["recordType"] = $val; + return $this; + } + + /** + * Gets the artifact + * The artifact related to this passiveDnsRecord entry. + * + * @return Artifact|null The artifact + */ + public function getArtifact() + { + if (array_key_exists("artifact", $this->_propDict)) { + if (is_a($this->_propDict["artifact"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\Artifact") || is_null($this->_propDict["artifact"])) { + return $this->_propDict["artifact"]; + } else { + $this->_propDict["artifact"] = new Artifact($this->_propDict["artifact"]); + return $this->_propDict["artifact"]; + } + } + return null; + } + + /** + * Sets the artifact + * The artifact related to this passiveDnsRecord entry. + * + * @param Artifact $val The artifact + * + * @return PassiveDnsRecord + */ + public function setArtifact($val) + { + $this->_propDict["artifact"] = $val; + return $this; + } + + /** + * Gets the parentHost + * The parent host related to this passiveDnsRecord entry. Generally, this is the value that you can search to discover this passiveDnsRecord value. + * + * @return Host|null The parentHost + */ + public function getParentHost() + { + if (array_key_exists("parentHost", $this->_propDict)) { + if (is_a($this->_propDict["parentHost"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\Host") || is_null($this->_propDict["parentHost"])) { + return $this->_propDict["parentHost"]; + } else { + $this->_propDict["parentHost"] = new Host($this->_propDict["parentHost"]); + return $this->_propDict["parentHost"]; + } + } + return null; + } + + /** + * Sets the parentHost + * The parent host related to this passiveDnsRecord entry. Generally, this is the value that you can search to discover this passiveDnsRecord value. + * + * @param Host $val The parentHost + * + * @return PassiveDnsRecord + */ + public function setParentHost($val) + { + $this->_propDict["parentHost"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ThreatIntelligence.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ThreatIntelligence.php new file mode 100644 index 00000000000..c0c5fded118 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/ThreatIntelligence.php @@ -0,0 +1,325 @@ +_propDict)) { + return $this->_propDict["articleIndicators"]; + } else { + return null; + } + } + + /** + * Sets the articleIndicators + * Refers to indicators of threat or compromise highlighted in an microsoft.graph.security.article.Note: List retrieval is not yet supported. + * + * @param ArticleIndicator[] $val The articleIndicators + * + * @return ThreatIntelligence + */ + public function setArticleIndicators($val) + { + $this->_propDict["articleIndicators"] = $val; + return $this; + } + + + /** + * Gets the articles + * A list of article objects. + * + * @return array|null The articles + */ + public function getArticles() + { + if (array_key_exists("articles", $this->_propDict)) { + return $this->_propDict["articles"]; + } else { + return null; + } + } + + /** + * Sets the articles + * A list of article objects. + * + * @param Article[] $val The articles + * + * @return ThreatIntelligence + */ + public function setArticles($val) + { + $this->_propDict["articles"] = $val; + return $this; + } + + + /** + * Gets the hostComponents + * Retrieve details about microsoft.graph.security.hostComponent objects.Note: List retrieval is not yet supported. + * + * @return array|null The hostComponents + */ + public function getHostComponents() + { + if (array_key_exists("hostComponents", $this->_propDict)) { + return $this->_propDict["hostComponents"]; + } else { + return null; + } + } + + /** + * Sets the hostComponents + * Retrieve details about microsoft.graph.security.hostComponent objects.Note: List retrieval is not yet supported. + * + * @param HostComponent[] $val The hostComponents + * + * @return ThreatIntelligence + */ + public function setHostComponents($val) + { + $this->_propDict["hostComponents"] = $val; + return $this; + } + + + /** + * Gets the hostCookies + * Retrieve details about microsoft.graph.security.hostCookie objects.Note: List retrieval is not yet supported. + * + * @return array|null The hostCookies + */ + public function getHostCookies() + { + if (array_key_exists("hostCookies", $this->_propDict)) { + return $this->_propDict["hostCookies"]; + } else { + return null; + } + } + + /** + * Sets the hostCookies + * Retrieve details about microsoft.graph.security.hostCookie objects.Note: List retrieval is not yet supported. + * + * @param HostCookie[] $val The hostCookies + * + * @return ThreatIntelligence + */ + public function setHostCookies($val) + { + $this->_propDict["hostCookies"] = $val; + return $this; + } + + + /** + * Gets the hosts + * Refers to microsoft.graph.security.host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported. + * + * @return array|null The hosts + */ + public function getHosts() + { + if (array_key_exists("hosts", $this->_propDict)) { + return $this->_propDict["hosts"]; + } else { + return null; + } + } + + /** + * Sets the hosts + * Refers to microsoft.graph.security.host objects that Microsoft Threat Intelligence has observed.Note: List retrieval is not yet supported. + * + * @param Host[] $val The hosts + * + * @return ThreatIntelligence + */ + public function setHosts($val) + { + $this->_propDict["hosts"] = $val; + return $this; + } + + + /** + * Gets the hostTrackers + * Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported. + * + * @return array|null The hostTrackers + */ + public function getHostTrackers() + { + if (array_key_exists("hostTrackers", $this->_propDict)) { + return $this->_propDict["hostTrackers"]; + } else { + return null; + } + } + + /** + * Sets the hostTrackers + * Retrieve details about microsoft.graph.security.hostTracker objects.Note: List retrieval is not yet supported. + * + * @param HostTracker[] $val The hostTrackers + * + * @return ThreatIntelligence + */ + public function setHostTrackers($val) + { + $this->_propDict["hostTrackers"] = $val; + return $this; + } + + + /** + * Gets the intelligenceProfileIndicators + * + * @return array|null The intelligenceProfileIndicators + */ + public function getIntelligenceProfileIndicators() + { + if (array_key_exists("intelligenceProfileIndicators", $this->_propDict)) { + return $this->_propDict["intelligenceProfileIndicators"]; + } else { + return null; + } + } + + /** + * Sets the intelligenceProfileIndicators + * + * @param IntelligenceProfileIndicator[] $val The intelligenceProfileIndicators + * + * @return ThreatIntelligence + */ + public function setIntelligenceProfileIndicators($val) + { + $this->_propDict["intelligenceProfileIndicators"] = $val; + return $this; + } + + + /** + * Gets the intelProfiles + * A list of intelligenceProfile objects. + * + * @return array|null The intelProfiles + */ + public function getIntelProfiles() + { + if (array_key_exists("intelProfiles", $this->_propDict)) { + return $this->_propDict["intelProfiles"]; + } else { + return null; + } + } + + /** + * Sets the intelProfiles + * A list of intelligenceProfile objects. + * + * @param IntelligenceProfile[] $val The intelProfiles + * + * @return ThreatIntelligence + */ + public function setIntelProfiles($val) + { + $this->_propDict["intelProfiles"] = $val; + return $this; + } + + + /** + * Gets the passiveDnsRecords + * Retrieve details about microsoft.graph.security.passiveDnsRecord objects.Note: List retrieval is not yet supported. + * + * @return array|null The passiveDnsRecords + */ + public function getPassiveDnsRecords() + { + if (array_key_exists("passiveDnsRecords", $this->_propDict)) { + return $this->_propDict["passiveDnsRecords"]; + } else { + return null; + } + } + + /** + * Sets the passiveDnsRecords + * Retrieve details about microsoft.graph.security.passiveDnsRecord objects.Note: List retrieval is not yet supported. + * + * @param PassiveDnsRecord[] $val The passiveDnsRecords + * + * @return ThreatIntelligence + */ + public function setPassiveDnsRecords($val) + { + $this->_propDict["passiveDnsRecords"] = $val; + return $this; + } + + + /** + * Gets the vulnerabilities + * Retrieve details about microsoft.graph.security.vulnerabilities.Note: List retrieval is not yet supported. + * + * @return array|null The vulnerabilities + */ + public function getVulnerabilities() + { + if (array_key_exists("vulnerabilities", $this->_propDict)) { + return $this->_propDict["vulnerabilities"]; + } else { + return null; + } + } + + /** + * Sets the vulnerabilities + * Retrieve details about microsoft.graph.security.vulnerabilities.Note: List retrieval is not yet supported. + * + * @param Vulnerability[] $val The vulnerabilities + * + * @return ThreatIntelligence + */ + public function setVulnerabilities($val) + { + $this->_propDict["vulnerabilities"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/UnclassifiedArtifact.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/UnclassifiedArtifact.php new file mode 100644 index 00000000000..83cf4801057 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/UnclassifiedArtifact.php @@ -0,0 +1,85 @@ +_propDict)) { + return $this->_propDict["kind"]; + } else { + return null; + } + } + + /** + * Sets the kind + * The kind for this unclassifiedArtifact resource, describing what this value means. + * + * @param string $val The kind + * + * @return UnclassifiedArtifact + */ + public function setKind($val) + { + $this->_propDict["kind"] = $val; + return $this; + } + + /** + * Gets the value + * The value for this unclassifiedArtifact. + * + * @return string|null The value + */ + public function getValue() + { + if (array_key_exists("value", $this->_propDict)) { + return $this->_propDict["value"]; + } else { + return null; + } + } + + /** + * Sets the value + * The value for this unclassifiedArtifact. + * + * @param string $val The value + * + * @return UnclassifiedArtifact + */ + public function setValue($val) + { + $this->_propDict["value"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Vulnerability.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Vulnerability.php new file mode 100644 index 00000000000..ec2b8dade59 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/Vulnerability.php @@ -0,0 +1,556 @@ +_propDict)) { + return $this->_propDict["activeExploitsObserved"]; + } else { + return null; + } + } + + /** + * Sets the activeExploitsObserved + * Indicates whether this vulnerability has any known exploits associated to known bad actors. + * + * @param bool $val The activeExploitsObserved + * + * @return Vulnerability + */ + public function setActiveExploitsObserved($val) + { + $this->_propDict["activeExploitsObserved"] = boolval($val); + return $this; + } + + /** + * Gets the commonWeaknessEnumerationIds + * Community-defined common weakness enumerations (CWE). + * + * @return array|null The commonWeaknessEnumerationIds + */ + public function getCommonWeaknessEnumerationIds() + { + if (array_key_exists("commonWeaknessEnumerationIds", $this->_propDict)) { + return $this->_propDict["commonWeaknessEnumerationIds"]; + } else { + return null; + } + } + + /** + * Sets the commonWeaknessEnumerationIds + * Community-defined common weakness enumerations (CWE). + * + * @param string[] $val The commonWeaknessEnumerationIds + * + * @return Vulnerability + */ + public function setCommonWeaknessEnumerationIds($val) + { + $this->_propDict["commonWeaknessEnumerationIds"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * The date and time when this vulnerability article was first 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 + * The date and time when this vulnerability article was first created. + * + * @param \DateTime $val The createdDateTime + * + * @return Vulnerability + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the cvss2Summary + * A summary of the common vulnerability scoring system (v2) findings about this vulnerability. + * + * @return CvssSummary|null The cvss2Summary + */ + public function getCvss2Summary() + { + if (array_key_exists("cvss2Summary", $this->_propDict)) { + if (is_a($this->_propDict["cvss2Summary"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\CvssSummary") || is_null($this->_propDict["cvss2Summary"])) { + return $this->_propDict["cvss2Summary"]; + } else { + $this->_propDict["cvss2Summary"] = new CvssSummary($this->_propDict["cvss2Summary"]); + return $this->_propDict["cvss2Summary"]; + } + } + return null; + } + + /** + * Sets the cvss2Summary + * A summary of the common vulnerability scoring system (v2) findings about this vulnerability. + * + * @param CvssSummary $val The cvss2Summary + * + * @return Vulnerability + */ + public function setCvss2Summary($val) + { + $this->_propDict["cvss2Summary"] = $val; + return $this; + } + + /** + * Gets the cvss3Summary + * A summary of the common vulnerability scoring system (v3) findings about this vulnerability. + * + * @return CvssSummary|null The cvss3Summary + */ + public function getCvss3Summary() + { + if (array_key_exists("cvss3Summary", $this->_propDict)) { + if (is_a($this->_propDict["cvss3Summary"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\CvssSummary") || is_null($this->_propDict["cvss3Summary"])) { + return $this->_propDict["cvss3Summary"]; + } else { + $this->_propDict["cvss3Summary"] = new CvssSummary($this->_propDict["cvss3Summary"]); + return $this->_propDict["cvss3Summary"]; + } + } + return null; + } + + /** + * Sets the cvss3Summary + * A summary of the common vulnerability scoring system (v3) findings about this vulnerability. + * + * @param CvssSummary $val The cvss3Summary + * + * @return Vulnerability + */ + public function setCvss3Summary($val) + { + $this->_propDict["cvss3Summary"] = $val; + return $this; + } + + /** + * Gets the description + * The vulnerability article contents, describing the vulnerability. + * + * @return FormattedContent|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + if (is_a($this->_propDict["description"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\FormattedContent") || is_null($this->_propDict["description"])) { + return $this->_propDict["description"]; + } else { + $this->_propDict["description"] = new FormattedContent($this->_propDict["description"]); + return $this->_propDict["description"]; + } + } + return null; + } + + /** + * Sets the description + * The vulnerability article contents, describing the vulnerability. + * + * @param FormattedContent $val The description + * + * @return Vulnerability + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + + /** + * Gets the exploits + * Known exploits for this vulnerability. + * + * @return array|null The exploits + */ + public function getExploits() + { + if (array_key_exists("exploits", $this->_propDict)) { + return $this->_propDict["exploits"]; + } else { + return null; + } + } + + /** + * Sets the exploits + * Known exploits for this vulnerability. + * + * @param Hyperlink[] $val The exploits + * + * @return Vulnerability + */ + public function setExploits($val) + { + $this->_propDict["exploits"] = $val; + return $this; + } + + /** + * Gets the exploitsAvailable + * Indicates whether this vulnerability has exploits in public sources (such as Packetstorm or Exploit-DB) online. + * + * @return bool|null The exploitsAvailable + */ + public function getExploitsAvailable() + { + if (array_key_exists("exploitsAvailable", $this->_propDict)) { + return $this->_propDict["exploitsAvailable"]; + } else { + return null; + } + } + + /** + * Sets the exploitsAvailable + * Indicates whether this vulnerability has exploits in public sources (such as Packetstorm or Exploit-DB) online. + * + * @param bool $val The exploitsAvailable + * + * @return Vulnerability + */ + public function setExploitsAvailable($val) + { + $this->_propDict["exploitsAvailable"] = boolval($val); + return $this; + } + + /** + * Gets the hasChatter + * Indicates whether chatter about this vulnerability has been discovered online. + * + * @return bool|null The hasChatter + */ + public function getHasChatter() + { + if (array_key_exists("hasChatter", $this->_propDict)) { + return $this->_propDict["hasChatter"]; + } else { + return null; + } + } + + /** + * Sets the hasChatter + * Indicates whether chatter about this vulnerability has been discovered online. + * + * @param bool $val The hasChatter + * + * @return Vulnerability + */ + public function setHasChatter($val) + { + $this->_propDict["hasChatter"] = boolval($val); + return $this; + } + + /** + * Gets the lastModifiedDateTime + * The date and time when this vulnerability article was most recently updated. + * + * @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 date and time when this vulnerability article was most recently updated. + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return Vulnerability + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + + /** + * Gets the priorityScore + * A unique algorithm that reflects the priority of a vulnerability based on the CVSS score, exploits, chatter, and linkage to malware. This property also evaluates the recency of these components so users can understand which vulnerability should be remediated first. + * + * @return int|null The priorityScore + */ + public function getPriorityScore() + { + if (array_key_exists("priorityScore", $this->_propDict)) { + return $this->_propDict["priorityScore"]; + } else { + return null; + } + } + + /** + * Sets the priorityScore + * A unique algorithm that reflects the priority of a vulnerability based on the CVSS score, exploits, chatter, and linkage to malware. This property also evaluates the recency of these components so users can understand which vulnerability should be remediated first. + * + * @param int $val The priorityScore + * + * @return Vulnerability + */ + public function setPriorityScore($val) + { + $this->_propDict["priorityScore"] = intval($val); + return $this; + } + + /** + * Gets the publishedDateTime + * The date and time when this vulnerability article was published. + * + * @return \DateTime|null The publishedDateTime + */ + public function getPublishedDateTime() + { + if (array_key_exists("publishedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["publishedDateTime"], "\DateTime") || is_null($this->_propDict["publishedDateTime"])) { + return $this->_propDict["publishedDateTime"]; + } else { + $this->_propDict["publishedDateTime"] = new \DateTime($this->_propDict["publishedDateTime"]); + return $this->_propDict["publishedDateTime"]; + } + } + return null; + } + + /** + * Sets the publishedDateTime + * The date and time when this vulnerability article was published. + * + * @param \DateTime $val The publishedDateTime + * + * @return Vulnerability + */ + public function setPublishedDateTime($val) + { + $this->_propDict["publishedDateTime"] = $val; + return $this; + } + + + /** + * Gets the references + * Reference links where further information can be learned about this vulnerability. + * + * @return array|null The references + */ + public function getReferences() + { + if (array_key_exists("references", $this->_propDict)) { + return $this->_propDict["references"]; + } else { + return null; + } + } + + /** + * Sets the references + * Reference links where further information can be learned about this vulnerability. + * + * @param Hyperlink[] $val The references + * + * @return Vulnerability + */ + public function setReferences($val) + { + $this->_propDict["references"] = $val; + return $this; + } + + /** + * Gets the remediation + * Any known remediation steps. + * + * @return FormattedContent|null The remediation + */ + public function getRemediation() + { + if (array_key_exists("remediation", $this->_propDict)) { + if (is_a($this->_propDict["remediation"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\FormattedContent") || is_null($this->_propDict["remediation"])) { + return $this->_propDict["remediation"]; + } else { + $this->_propDict["remediation"] = new FormattedContent($this->_propDict["remediation"]); + return $this->_propDict["remediation"]; + } + } + return null; + } + + /** + * Sets the remediation + * Any known remediation steps. + * + * @param FormattedContent $val The remediation + * + * @return Vulnerability + */ + public function setRemediation($val) + { + $this->_propDict["remediation"] = $val; + return $this; + } + + /** + * Gets the severity + * Indicates the severity of this vulnerability. The possible values are: none, low, medium, high, critical, unknownFutureValue. + * + * @return VulnerabilitySeverity|null The severity + */ + public function getSeverity() + { + if (array_key_exists("severity", $this->_propDict)) { + if (is_a($this->_propDict["severity"], "\Beta\Microsoft\Graph\SecurityNamespace\Model\VulnerabilitySeverity") || is_null($this->_propDict["severity"])) { + return $this->_propDict["severity"]; + } else { + $this->_propDict["severity"] = new VulnerabilitySeverity($this->_propDict["severity"]); + return $this->_propDict["severity"]; + } + } + return null; + } + + /** + * Sets the severity + * Indicates the severity of this vulnerability. The possible values are: none, low, medium, high, critical, unknownFutureValue. + * + * @param VulnerabilitySeverity $val The severity + * + * @return Vulnerability + */ + public function setSeverity($val) + { + $this->_propDict["severity"] = $val; + return $this; + } + + + /** + * Gets the articles + * Articles related to this vulnerability. + * + * @return array|null The articles + */ + public function getArticles() + { + if (array_key_exists("articles", $this->_propDict)) { + return $this->_propDict["articles"]; + } else { + return null; + } + } + + /** + * Sets the articles + * Articles related to this vulnerability. + * + * @param Article[] $val The articles + * + * @return Vulnerability + */ + public function setArticles($val) + { + $this->_propDict["articles"] = $val; + return $this; + } + + + /** + * Gets the components + * Components related to this vulnerability article. + * + * @return array|null The components + */ + public function getComponents() + { + if (array_key_exists("components", $this->_propDict)) { + return $this->_propDict["components"]; + } else { + return null; + } + } + + /** + * Sets the components + * Components related to this vulnerability article. + * + * @param VulnerabilityComponent[] $val The components + * + * @return Vulnerability + */ + public function setComponents($val) + { + $this->_propDict["components"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/VulnerabilityComponent.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/VulnerabilityComponent.php new file mode 100644 index 00000000000..ab0dbd8f104 --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/VulnerabilityComponent.php @@ -0,0 +1,56 @@ +_propDict)) { + return $this->_propDict["name"]; + } else { + return null; + } + } + + /** + * Sets the name + * The name of this vulnerability component. + * + * @param string $val The name + * + * @return VulnerabilityComponent + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + +} diff --git a/src/Beta/Microsoft/Graph/SecurityNamespace/Model/VulnerabilitySeverity.php b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/VulnerabilitySeverity.php new file mode 100644 index 00000000000..cf4aca2af9f --- /dev/null +++ b/src/Beta/Microsoft/Graph/SecurityNamespace/Model/VulnerabilitySeverity.php @@ -0,0 +1,38 @@ +