From 734645f4330cb13030f1d59d0f111404bad59eb1 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 28 Mar 2023 10:11:55 +0000 Subject: [PATCH 1/7] Update generated files with build 111491 --- src/Model/AppManagementConfiguration.php | 4 + src/Model/Application.php | 4 + .../AuthenticationMethodConfiguration.php | 30 ++++ src/Model/AuthenticationMethodsPolicy.php | 33 +++++ ...henticationMethodsPolicyMigrationState.php | 36 +++++ src/Model/KeyCredentialConfiguration.php | 4 + src/Model/LinkedResource.php | 12 +- ...catorAuthenticationMethodConfiguration.php | 27 ++++ src/Model/PasswordCredentialConfiguration.php | 4 + src/Model/PolicyRoot.php | 4 + src/Model/RequestSignatureVerification.php | 4 + src/Model/ServicePrincipal.php | 2 + src/Model/SignInActivity.php | 140 ++++++++++++++++++ .../SmsAuthenticationMethodConfiguration.php | 57 +++++++ src/Model/SmsAuthenticationMethodTarget.php | 56 +++++++ ...eOathAuthenticationMethodConfiguration.php | 57 +++++++ src/Model/TenantAppManagementPolicy.php | 6 + src/Model/User.php | 31 ++++ ...VoiceAuthenticationMethodConfiguration.php | 86 +++++++++++ 19 files changed, 591 insertions(+), 6 deletions(-) create mode 100644 src/Model/AuthenticationMethodsPolicyMigrationState.php create mode 100644 src/Model/SignInActivity.php create mode 100644 src/Model/SmsAuthenticationMethodConfiguration.php create mode 100644 src/Model/SmsAuthenticationMethodTarget.php create mode 100644 src/Model/SoftwareOathAuthenticationMethodConfiguration.php create mode 100644 src/Model/VoiceAuthenticationMethodConfiguration.php diff --git a/src/Model/AppManagementConfiguration.php b/src/Model/AppManagementConfiguration.php index e5e5e866977..2dc511c3514 100644 --- a/src/Model/AppManagementConfiguration.php +++ b/src/Model/AppManagementConfiguration.php @@ -26,6 +26,7 @@ class AppManagementConfiguration extends Entity /** * Gets the keyCredentials + * Collection of keyCredential restrictions settings to be applied to an application or service principal. * * @return KeyCredentialConfiguration|null The keyCredentials */ @@ -44,6 +45,7 @@ public function getKeyCredentials() /** * Sets the keyCredentials + * Collection of keyCredential restrictions settings to be applied to an application or service principal. * * @param KeyCredentialConfiguration $val The value to assign to the keyCredentials * @@ -57,6 +59,7 @@ public function setKeyCredentials($val) /** * Gets the passwordCredentials + * Collection of password restrictions settings to be applied to an application or service principal. * * @return PasswordCredentialConfiguration|null The passwordCredentials */ @@ -75,6 +78,7 @@ public function getPasswordCredentials() /** * Sets the passwordCredentials + * Collection of password restrictions settings to be applied to an application or service principal. * * @param PasswordCredentialConfiguration $val The value to assign to the passwordCredentials * diff --git a/src/Model/Application.php b/src/Model/Application.php index e0d3680d0a7..8da858d229c 100644 --- a/src/Model/Application.php +++ b/src/Model/Application.php @@ -783,6 +783,7 @@ public function setPublisherDomain($val) /** * Gets the requestSignatureVerification + * Specifies whether this application requires Azure AD to verify the signed authentication requests. * * @return RequestSignatureVerification|null The requestSignatureVerification */ @@ -801,6 +802,7 @@ public function getRequestSignatureVerification() /** * Sets the requestSignatureVerification + * Specifies whether this application requires Azure AD to verify the signed authentication requests. * * @param RequestSignatureVerification $val The requestSignatureVerification * @@ -1089,6 +1091,7 @@ public function setWeb($val) /** * Gets the appManagementPolicies + * The appManagementPolicy applied to this application. * * @return array|null The appManagementPolicies */ @@ -1103,6 +1106,7 @@ public function getAppManagementPolicies() /** * Sets the appManagementPolicies + * The appManagementPolicy applied to this application. * * @param AppManagementPolicy[] $val The appManagementPolicies * diff --git a/src/Model/AuthenticationMethodConfiguration.php b/src/Model/AuthenticationMethodConfiguration.php index c75453cdd41..6687d2caa91 100644 --- a/src/Model/AuthenticationMethodConfiguration.php +++ b/src/Model/AuthenticationMethodConfiguration.php @@ -24,6 +24,36 @@ */ class AuthenticationMethodConfiguration extends Entity { + + /** + * Gets the excludeTargets + * Groups of users that are excluded from a policy. + * + * @return array|null The excludeTargets + */ + public function getExcludeTargets() + { + if (array_key_exists("excludeTargets", $this->_propDict)) { + return $this->_propDict["excludeTargets"]; + } else { + return null; + } + } + + /** + * Sets the excludeTargets + * Groups of users that are excluded from a policy. + * + * @param ExcludeTarget[] $val The excludeTargets + * + * @return AuthenticationMethodConfiguration + */ + public function setExcludeTargets($val) + { + $this->_propDict["excludeTargets"] = $val; + return $this; + } + /** * Gets the state * The state of the policy. Possible values are: enabled, disabled. diff --git a/src/Model/AuthenticationMethodsPolicy.php b/src/Model/AuthenticationMethodsPolicy.php index 6d25608bf29..b31d787c22b 100644 --- a/src/Model/AuthenticationMethodsPolicy.php +++ b/src/Model/AuthenticationMethodsPolicy.php @@ -115,6 +115,39 @@ public function setLastModifiedDateTime($val) return $this; } + /** + * Gets the policyMigrationState + * The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Do not use. + * + * @return AuthenticationMethodsPolicyMigrationState|null The policyMigrationState + */ + public function getPolicyMigrationState() + { + if (array_key_exists("policyMigrationState", $this->_propDict)) { + if (is_a($this->_propDict["policyMigrationState"], "\Microsoft\Graph\Model\AuthenticationMethodsPolicyMigrationState") || is_null($this->_propDict["policyMigrationState"])) { + return $this->_propDict["policyMigrationState"]; + } else { + $this->_propDict["policyMigrationState"] = new AuthenticationMethodsPolicyMigrationState($this->_propDict["policyMigrationState"]); + return $this->_propDict["policyMigrationState"]; + } + } + return null; + } + + /** + * Sets the policyMigrationState + * The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Do not use. + * + * @param AuthenticationMethodsPolicyMigrationState $val The policyMigrationState + * + * @return AuthenticationMethodsPolicy + */ + public function setPolicyMigrationState($val) + { + $this->_propDict["policyMigrationState"] = $val; + return $this; + } + /** * Gets the policyVersion * The version of the policy in use. Read-only. diff --git a/src/Model/AuthenticationMethodsPolicyMigrationState.php b/src/Model/AuthenticationMethodsPolicyMigrationState.php new file mode 100644 index 00000000000..9951063027d --- /dev/null +++ b/src/Model/AuthenticationMethodsPolicyMigrationState.php @@ -0,0 +1,36 @@ +_propDict)) { + return $this->_propDict["isSoftwareOathEnabled"]; + } else { + return null; + } + } + + /** + * Sets the isSoftwareOathEnabled + * + * @param bool $val The isSoftwareOathEnabled + * + * @return MicrosoftAuthenticatorAuthenticationMethodConfiguration + */ + public function setIsSoftwareOathEnabled($val) + { + $this->_propDict["isSoftwareOathEnabled"] = boolval($val); + return $this; + } + /** * Gets the includeTargets diff --git a/src/Model/PasswordCredentialConfiguration.php b/src/Model/PasswordCredentialConfiguration.php index b4ae7227414..a5343c88512 100644 --- a/src/Model/PasswordCredentialConfiguration.php +++ b/src/Model/PasswordCredentialConfiguration.php @@ -57,6 +57,7 @@ public function setMaxLifetime($val) /** * Gets the restrictForAppsCreatedAfterDateTime + * Enforces the policy for an app created on or after the enforcement date. For existing applications, the enforcement date would be back dated. To apply to all applications, enforcement datetime would be null. * * @return \DateTime|null The restrictForAppsCreatedAfterDateTime */ @@ -75,6 +76,7 @@ public function getRestrictForAppsCreatedAfterDateTime() /** * Sets the restrictForAppsCreatedAfterDateTime + * Enforces the policy for an app created on or after the enforcement date. For existing applications, the enforcement date would be back dated. To apply to all applications, enforcement datetime would be null. * * @param \DateTime $val The value to assign to the restrictForAppsCreatedAfterDateTime * @@ -88,6 +90,7 @@ public function setRestrictForAppsCreatedAfterDateTime($val) /** * Gets the restrictionType + * The type of restriction being applied. The possible values are: passwordAddition, passwordLifetime, symmetricKeyAddition, symmetricKeyLifetime,customPasswordAddition, unknownFutureValue. Each value of restrictionType can be used only once per policy. * * @return AppCredentialRestrictionType|null The restrictionType */ @@ -106,6 +109,7 @@ public function getRestrictionType() /** * Sets the restrictionType + * The type of restriction being applied. The possible values are: passwordAddition, passwordLifetime, symmetricKeyAddition, symmetricKeyLifetime,customPasswordAddition, unknownFutureValue. Each value of restrictionType can be used only once per policy. * * @param AppCredentialRestrictionType $val The value to assign to the restrictionType * diff --git a/src/Model/PolicyRoot.php b/src/Model/PolicyRoot.php index 3e25156fc3c..b500e5a7c75 100644 --- a/src/Model/PolicyRoot.php +++ b/src/Model/PolicyRoot.php @@ -123,6 +123,7 @@ public function setActivityBasedTimeoutPolicies($val) /** * Gets the appManagementPolicies + * The policies that enforce app management restrictions for specific applications and service principals, overriding the defaultAppManagementPolicy. * * @return array|null The appManagementPolicies */ @@ -137,6 +138,7 @@ public function getAppManagementPolicies() /** * Sets the appManagementPolicies + * The policies that enforce app management restrictions for specific applications and service principals, overriding the defaultAppManagementPolicy. * * @param AppManagementPolicy[] $val The appManagementPolicies * @@ -246,6 +248,7 @@ public function setCrossTenantAccessPolicy($val) /** * Gets the defaultAppManagementPolicy + * The tenant-wide policy that enforces app management restrictions for all applications and service principals. * * @return TenantAppManagementPolicy|null The defaultAppManagementPolicy */ @@ -264,6 +267,7 @@ public function getDefaultAppManagementPolicy() /** * Sets the defaultAppManagementPolicy + * The tenant-wide policy that enforces app management restrictions for all applications and service principals. * * @param TenantAppManagementPolicy $val The defaultAppManagementPolicy * diff --git a/src/Model/RequestSignatureVerification.php b/src/Model/RequestSignatureVerification.php index 8e3c92c86fc..19f0c85548e 100644 --- a/src/Model/RequestSignatureVerification.php +++ b/src/Model/RequestSignatureVerification.php @@ -26,6 +26,7 @@ class RequestSignatureVerification extends Entity /** * Gets the allowedWeakAlgorithms + * Specifies which weak algorithms are allowed. The possible values are: rsaSha1, unknownFutureValue. * * @return WeakAlgorithms|null The allowedWeakAlgorithms */ @@ -44,6 +45,7 @@ public function getAllowedWeakAlgorithms() /** * Sets the allowedWeakAlgorithms + * Specifies which weak algorithms are allowed. The possible values are: rsaSha1, unknownFutureValue. * * @param WeakAlgorithms $val The value to assign to the allowedWeakAlgorithms * @@ -56,6 +58,7 @@ public function setAllowedWeakAlgorithms($val) } /** * Gets the isSignedRequestRequired + * Specifies whether signed authentication requests for this application should be required. * * @return bool|null The isSignedRequestRequired */ @@ -70,6 +73,7 @@ public function getIsSignedRequestRequired() /** * Sets the isSignedRequestRequired + * Specifies whether signed authentication requests for this application should be required. * * @param bool $val The value of the isSignedRequestRequired * diff --git a/src/Model/ServicePrincipal.php b/src/Model/ServicePrincipal.php index b063b20204d..2fc35266a1f 100644 --- a/src/Model/ServicePrincipal.php +++ b/src/Model/ServicePrincipal.php @@ -1002,6 +1002,7 @@ public function setVerifiedPublisher($val) /** * Gets the appManagementPolicies + * The appManagementPolicy applied to this application. * * @return array|null The appManagementPolicies */ @@ -1016,6 +1017,7 @@ public function getAppManagementPolicies() /** * Sets the appManagementPolicies + * The appManagementPolicy applied to this application. * * @param AppManagementPolicy[] $val The appManagementPolicies * diff --git a/src/Model/SignInActivity.php b/src/Model/SignInActivity.php new file mode 100644 index 00000000000..1c1ba27e95d --- /dev/null +++ b/src/Model/SignInActivity.php @@ -0,0 +1,140 @@ +_propDict)) { + if (is_a($this->_propDict["lastNonInteractiveSignInDateTime"], "\DateTime") || is_null($this->_propDict["lastNonInteractiveSignInDateTime"])) { + return $this->_propDict["lastNonInteractiveSignInDateTime"]; + } else { + $this->_propDict["lastNonInteractiveSignInDateTime"] = new \DateTime($this->_propDict["lastNonInteractiveSignInDateTime"]); + return $this->_propDict["lastNonInteractiveSignInDateTime"]; + } + } + return null; + } + + /** + * Sets the lastNonInteractiveSignInDateTime + * + * @param \DateTime $val The value to assign to the lastNonInteractiveSignInDateTime + * + * @return SignInActivity The SignInActivity + */ + public function setLastNonInteractiveSignInDateTime($val) + { + $this->_propDict["lastNonInteractiveSignInDateTime"] = $val; + return $this; + } + /** + * Gets the lastNonInteractiveSignInRequestId + * + * @return string|null The lastNonInteractiveSignInRequestId + */ + public function getLastNonInteractiveSignInRequestId() + { + if (array_key_exists("lastNonInteractiveSignInRequestId", $this->_propDict)) { + return $this->_propDict["lastNonInteractiveSignInRequestId"]; + } else { + return null; + } + } + + /** + * Sets the lastNonInteractiveSignInRequestId + * + * @param string $val The value of the lastNonInteractiveSignInRequestId + * + * @return SignInActivity + */ + public function setLastNonInteractiveSignInRequestId($val) + { + $this->_propDict["lastNonInteractiveSignInRequestId"] = $val; + return $this; + } + + /** + * Gets the lastSignInDateTime + * + * @return \DateTime|null The lastSignInDateTime + */ + public function getLastSignInDateTime() + { + if (array_key_exists("lastSignInDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastSignInDateTime"], "\DateTime") || is_null($this->_propDict["lastSignInDateTime"])) { + return $this->_propDict["lastSignInDateTime"]; + } else { + $this->_propDict["lastSignInDateTime"] = new \DateTime($this->_propDict["lastSignInDateTime"]); + return $this->_propDict["lastSignInDateTime"]; + } + } + return null; + } + + /** + * Sets the lastSignInDateTime + * + * @param \DateTime $val The value to assign to the lastSignInDateTime + * + * @return SignInActivity The SignInActivity + */ + public function setLastSignInDateTime($val) + { + $this->_propDict["lastSignInDateTime"] = $val; + return $this; + } + /** + * Gets the lastSignInRequestId + * + * @return string|null The lastSignInRequestId + */ + public function getLastSignInRequestId() + { + if (array_key_exists("lastSignInRequestId", $this->_propDict)) { + return $this->_propDict["lastSignInRequestId"]; + } else { + return null; + } + } + + /** + * Sets the lastSignInRequestId + * + * @param string $val The value of the lastSignInRequestId + * + * @return SignInActivity + */ + public function setLastSignInRequestId($val) + { + $this->_propDict["lastSignInRequestId"] = $val; + return $this; + } +} diff --git a/src/Model/SmsAuthenticationMethodConfiguration.php b/src/Model/SmsAuthenticationMethodConfiguration.php new file mode 100644 index 00000000000..5b9e2c0186f --- /dev/null +++ b/src/Model/SmsAuthenticationMethodConfiguration.php @@ -0,0 +1,57 @@ +_propDict)) { + return $this->_propDict["includeTargets"]; + } else { + return null; + } + } + + /** + * Sets the includeTargets + * A collection of groups that are enabled to use the authentication method. + * + * @param SmsAuthenticationMethodTarget[] $val The includeTargets + * + * @return SmsAuthenticationMethodConfiguration + */ + public function setIncludeTargets($val) + { + $this->_propDict["includeTargets"] = $val; + return $this; + } + +} diff --git a/src/Model/SmsAuthenticationMethodTarget.php b/src/Model/SmsAuthenticationMethodTarget.php new file mode 100644 index 00000000000..a9f56db4607 --- /dev/null +++ b/src/Model/SmsAuthenticationMethodTarget.php @@ -0,0 +1,56 @@ +_propDict)) { + return $this->_propDict["isUsableForSignIn"]; + } else { + return null; + } + } + + /** + * Sets the isUsableForSignIn + * Determines if users can use this authentication method to sign in to Azure AD. true if users can use this method for primary authentication, otherwise false. + * + * @param bool $val The isUsableForSignIn + * + * @return SmsAuthenticationMethodTarget + */ + public function setIsUsableForSignIn($val) + { + $this->_propDict["isUsableForSignIn"] = boolval($val); + return $this; + } + +} diff --git a/src/Model/SoftwareOathAuthenticationMethodConfiguration.php b/src/Model/SoftwareOathAuthenticationMethodConfiguration.php new file mode 100644 index 00000000000..e9fd9447cb2 --- /dev/null +++ b/src/Model/SoftwareOathAuthenticationMethodConfiguration.php @@ -0,0 +1,57 @@ +_propDict)) { + return $this->_propDict["includeTargets"]; + } else { + return null; + } + } + + /** + * Sets the includeTargets + * A collection of groups that are enabled to use the authentication method. Expanded by default. + * + * @param AuthenticationMethodTarget[] $val The includeTargets + * + * @return SoftwareOathAuthenticationMethodConfiguration + */ + public function setIncludeTargets($val) + { + $this->_propDict["includeTargets"] = $val; + return $this; + } + +} diff --git a/src/Model/TenantAppManagementPolicy.php b/src/Model/TenantAppManagementPolicy.php index 0d7762c183a..7a1eb69867a 100644 --- a/src/Model/TenantAppManagementPolicy.php +++ b/src/Model/TenantAppManagementPolicy.php @@ -26,6 +26,7 @@ class TenantAppManagementPolicy extends PolicyBase { /** * Gets the applicationRestrictions + * Restrictions that apply as default to all application objects in the tenant. * * @return AppManagementConfiguration|null The applicationRestrictions */ @@ -44,6 +45,7 @@ public function getApplicationRestrictions() /** * Sets the applicationRestrictions + * Restrictions that apply as default to all application objects in the tenant. * * @param AppManagementConfiguration $val The applicationRestrictions * @@ -57,6 +59,7 @@ public function setApplicationRestrictions($val) /** * Gets the isEnabled + * Denotes whether the policy is enabled. Default value is false. * * @return bool|null The isEnabled */ @@ -71,6 +74,7 @@ public function getIsEnabled() /** * Sets the isEnabled + * Denotes whether the policy is enabled. Default value is false. * * @param bool $val The isEnabled * @@ -84,6 +88,7 @@ public function setIsEnabled($val) /** * Gets the servicePrincipalRestrictions + * Restrictions that apply as default to all service principal objects in the tenant. * * @return AppManagementConfiguration|null The servicePrincipalRestrictions */ @@ -102,6 +107,7 @@ public function getServicePrincipalRestrictions() /** * Sets the servicePrincipalRestrictions + * Restrictions that apply as default to all service principal objects in the tenant. * * @param AppManagementConfiguration $val The servicePrincipalRestrictions * diff --git a/src/Model/User.php b/src/Model/User.php index 3b7c69ac095..f6a87eedb4d 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -24,6 +24,37 @@ */ class User extends DirectoryObject { + /** + * Gets the signInActivity + * + * @return SignInActivity|null The signInActivity + */ + public function getSignInActivity() + { + if (array_key_exists("signInActivity", $this->_propDict)) { + if (is_a($this->_propDict["signInActivity"], "\Microsoft\Graph\Model\SignInActivity") || is_null($this->_propDict["signInActivity"])) { + return $this->_propDict["signInActivity"]; + } else { + $this->_propDict["signInActivity"] = new SignInActivity($this->_propDict["signInActivity"]); + return $this->_propDict["signInActivity"]; + } + } + return null; + } + + /** + * Sets the signInActivity + * + * @param SignInActivity $val The signInActivity + * + * @return User + */ + public function setSignInActivity($val) + { + $this->_propDict["signInActivity"] = $val; + return $this; + } + /** * Gets the accountEnabled * true if the account is enabled; otherwise, false. This property is required when a user is created. Returned only on $select. Supports $filter (eq, ne, not, and in). diff --git a/src/Model/VoiceAuthenticationMethodConfiguration.php b/src/Model/VoiceAuthenticationMethodConfiguration.php new file mode 100644 index 00000000000..d3361580d96 --- /dev/null +++ b/src/Model/VoiceAuthenticationMethodConfiguration.php @@ -0,0 +1,86 @@ +_propDict)) { + return $this->_propDict["isOfficePhoneAllowed"]; + } else { + return null; + } + } + + /** + * Sets the isOfficePhoneAllowed + * true if users can register office phones, otherwise, false. + * + * @param bool $val The isOfficePhoneAllowed + * + * @return VoiceAuthenticationMethodConfiguration + */ + public function setIsOfficePhoneAllowed($val) + { + $this->_propDict["isOfficePhoneAllowed"] = boolval($val); + return $this; + } + + + /** + * Gets the includeTargets + * A collection of groups that are enabled to use the authentication method. Expanded by default. + * + * @return array|null The includeTargets + */ + public function getIncludeTargets() + { + if (array_key_exists("includeTargets", $this->_propDict)) { + return $this->_propDict["includeTargets"]; + } else { + return null; + } + } + + /** + * Sets the includeTargets + * A collection of groups that are enabled to use the authentication method. Expanded by default. + * + * @param AuthenticationMethodTarget[] $val The includeTargets + * + * @return VoiceAuthenticationMethodConfiguration + */ + public function setIncludeTargets($val) + { + $this->_propDict["includeTargets"] = $val; + return $this; + } + +} From edd5fd4b550274769d02b3b86a5803a56c86d397 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 28 Mar 2023 10:16:36 +0000 Subject: [PATCH 2/7] Update generated files with build 111491 --- .../Model/LifecycleManagementSettings.php | 33 ++ .../Model/RunSummary.php | 4 + .../Model/TaskDefinition.php | 4 +- .../Model/Workflow.php | 4 + .../ManagedTenants/Model/AppPerformance.php | 301 ++++++++++ .../Model/DelegatedRoleAssignedUser.php | 104 ++++ .../Model/DeviceAppPerformance.php | 463 +++++++++++++++ .../Model/DeviceHealthStatus.php | 436 ++++++++++++++ .../ManagedTenants/Model/ManagedTenant.php | 84 +++ ...agementTemplateCollectionTenantSummary.php | 81 +++ .../Graph/Model/AllowedRolePrincipalTypes.php | 36 ++ .../Microsoft/Graph/Model/AndroidLobApp.php | 8 +- .../Model/AssignmentFilterEvaluateRequest.php | 4 +- .../AssignmentFilterEvaluationSummary.php | 4 +- src/Beta/Microsoft/Graph/Model/CloudPC.php | 4 +- .../Graph/Model/CloudPcDeviceImage.php | 28 +- .../Graph/Model/CloudPcGalleryImage.php | 16 +- .../Graph/Model/CloudPcServicePlan.php | 2 + .../Microsoft/Graph/Model/CloudPcSnapshot.php | 8 +- .../Graph/Model/DepEnrollmentBaseProfile.php | 4 +- ...DeviceAndAppManagementAssignmentFilter.php | 4 +- .../Graph/Model/DeviceManagement.php | 30 + .../DeviceManagementCompliancePolicy.php | 4 +- .../DeviceManagementConfigurationCategory.php | 4 +- .../DeviceManagementConfigurationPolicy.php | 4 +- ...eManagementConfigurationPolicyTemplate.php | 4 +- .../DeviceManagementConfigurationSetting.php | 4 +- ...ementConfigurationSettingApplicability.php | 4 +- ...rationSettingGroupCollectionDefinition.php | 8 +- ...ationSimpleSettingCollectionDefinition.php | 8 +- .../Microsoft/Graph/Model/EmailSettings.php | 82 +++ src/Beta/Microsoft/Graph/Model/Identity.php | 8 +- .../Microsoft/Graph/Model/IdentitySet.php | 12 +- .../Microsoft/Graph/Model/LinkedResource.php | 12 +- .../Microsoft/Graph/Model/MacOSLobApp.php | 4 +- .../Graph/Model/ManagedAndroidLobApp.php | 8 +- .../Model/PrivilegeManagementElevation.php | 503 ++++++++++++++++ .../PrivilegeManagementElevationType.php | 38 ++ .../Model/PrivilegeManagementEndUserType.php | 37 ++ .../Graph/Model/RiskyServicePrincipal.php | 27 + src/Beta/Microsoft/Graph/Model/Security.php | 31 + .../Graph/Model/TeamsAppAuthorization.php | 57 ++ .../Graph/Model/TeamsAppDefinition.php | 31 + .../Graph/Model/TeamsAppInstallation.php | 31 + .../Graph/Model/TeamsAppPermissionSet.php | 57 ++ .../TeamsAppResourceSpecificPermission.php | 83 +++ ...TeamsAppResourceSpecificPermissionType.php | 35 ++ .../Graph/Model/UnifiedRoleDefinition.php | 31 + .../Microsoft/Graph/Model/WindowsAppX.php | 28 +- ...dowsUniversalAppXAppAssignmentSettings.php | 4 +- .../Graph/SecurityNamespace/Model/Article.php | 305 ++++++++++ .../Model/ArticleIndicator.php | 27 + .../SecurityNamespace/Model/Artifact.php | 27 + .../Model/AutonomousSystem.php | 138 +++++ .../SecurityNamespace/Model/ContentFormat.php | 36 ++ .../SecurityNamespace/Model/CvssSummary.php | 115 ++++ .../Model/FormattedContent.php | 87 +++ .../Graph/SecurityNamespace/Model/Host.php | 276 +++++++++ .../SecurityNamespace/Model/HostComponent.php | 213 +++++++ .../SecurityNamespace/Model/HostCookie.php | 184 ++++++ .../Model/HostReputation.php | 119 ++++ .../Model/HostReputationClassification.php | 37 ++ .../Model/HostReputationRule.php | 143 +++++ .../Model/HostReputationRuleSeverity.php | 37 ++ .../SecurityNamespace/Model/HostTracker.php | 184 ++++++ .../SecurityNamespace/Model/Hostname.php | 85 +++ .../SecurityNamespace/Model/Hyperlink.php | 82 +++ .../SecurityNamespace/Model/Indicator.php | 93 +++ .../Model/IndicatorSource.php | 36 ++ .../Model/IntelligenceProfile.php | 339 +++++++++++ .../Model/IntelligenceProfileIndicator.php | 93 +++ .../Model/IntelligenceProfileKind.php | 35 ++ .../Model/IntelligenceProfileSponsorState.php | 82 +++ .../SecurityNamespace/Model/IpAddress.php | 147 +++++ .../Model/PassiveDnsRecord.php | 221 +++++++ .../Model/ThreatIntelligence.php | 325 ++++++++++ .../Model/UnclassifiedArtifact.php | 85 +++ .../SecurityNamespace/Model/Vulnerability.php | 556 ++++++++++++++++++ .../Model/VulnerabilityComponent.php | 56 ++ .../Model/VulnerabilitySeverity.php | 38 ++ 80 files changed, 6922 insertions(+), 100 deletions(-) create mode 100644 src/Beta/Microsoft/Graph/ManagedTenants/Model/AppPerformance.php create mode 100644 src/Beta/Microsoft/Graph/ManagedTenants/Model/DelegatedRoleAssignedUser.php create mode 100644 src/Beta/Microsoft/Graph/ManagedTenants/Model/DeviceAppPerformance.php create mode 100644 src/Beta/Microsoft/Graph/ManagedTenants/Model/DeviceHealthStatus.php create mode 100644 src/Beta/Microsoft/Graph/Model/AllowedRolePrincipalTypes.php create mode 100644 src/Beta/Microsoft/Graph/Model/EmailSettings.php create mode 100644 src/Beta/Microsoft/Graph/Model/PrivilegeManagementElevation.php create mode 100644 src/Beta/Microsoft/Graph/Model/PrivilegeManagementElevationType.php create mode 100644 src/Beta/Microsoft/Graph/Model/PrivilegeManagementEndUserType.php create mode 100644 src/Beta/Microsoft/Graph/Model/TeamsAppAuthorization.php create mode 100644 src/Beta/Microsoft/Graph/Model/TeamsAppPermissionSet.php create mode 100644 src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermission.php create mode 100644 src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermissionType.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/Article.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/ArticleIndicator.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/Artifact.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/AutonomousSystem.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/ContentFormat.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/CvssSummary.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/FormattedContent.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/Host.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostComponent.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostCookie.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputation.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationClassification.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationRule.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostReputationRuleSeverity.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/HostTracker.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/Hostname.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/Hyperlink.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/Indicator.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/IndicatorSource.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfile.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileIndicator.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileKind.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/IntelligenceProfileSponsorState.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/IpAddress.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/PassiveDnsRecord.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/ThreatIntelligence.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/UnclassifiedArtifact.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/Vulnerability.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/VulnerabilityComponent.php create mode 100644 src/Beta/Microsoft/Graph/SecurityNamespace/Model/VulnerabilitySeverity.php 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 @@ + Date: Tue, 28 Mar 2023 15:06:45 +0300 Subject: [PATCH 3/7] Bump SDK version in GraphConstants.php --- src/Core/GraphConstants.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/GraphConstants.php b/src/Core/GraphConstants.php index 86d232c83d9..3a9c0ac57a1 100644 --- a/src/Core/GraphConstants.php +++ b/src/Core/GraphConstants.php @@ -23,7 +23,7 @@ final class GraphConstants const REST_ENDPOINT = "https://graph.microsoft.com/"; // Define HTTP request constants - const SDK_VERSION = "1.92.0"; + const SDK_VERSION = "1.93.0"; // Define error constants const MAX_PAGE_SIZE = 999; From 26545585677d0f535bda6932ce2ea3a1a7bb34a4 Mon Sep 17 00:00:00 2001 From: Philip Gichuhi Date: Tue, 28 Mar 2023 15:07:12 +0300 Subject: [PATCH 4/7] Bump SDK version README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de98050ee58..a139d92e169 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ You can install the PHP SDK with Composer, either run `composer require microsof ``` { "require": { - "microsoft/microsoft-graph": "^1.92.0" + "microsoft/microsoft-graph": "^1.93.0" } } ``` From 33cf75685f750c09df45f0f1e6f38fe75b25f04d Mon Sep 17 00:00:00 2001 From: Philip Gichuhi Date: Tue, 28 Mar 2023 15:08:32 +0300 Subject: [PATCH 5/7] Bump SDK version Microsoft-Graph-Core-GraphConstants.html --- docs/classes/Microsoft-Graph-Core-GraphConstants.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/classes/Microsoft-Graph-Core-GraphConstants.html b/docs/classes/Microsoft-Graph-Core-GraphConstants.html index 5e95bad7052..0e84ef1355a 100644 --- a/docs/classes/Microsoft-Graph-Core-GraphConstants.html +++ b/docs/classes/Microsoft-Graph-Core-GraphConstants.html @@ -181,7 +181,7 @@

SDK_VERSION -  = "1.89.0" +  = "1.93.0"
From 2a4ce9bfa86f5d93f86cc254d9441b5aa2bab696 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 4 Apr 2023 10:12:12 +0000 Subject: [PATCH 6/7] Update generated files with build 112037 --- src/Model/AccessReviewScheduleSettings.php | 8 +- src/Model/Application.php | 4 +- src/Model/ConditionalAccessUsers.php | 12 +- src/Model/DefaultUserRolePermissions.php | 26 ++ src/Model/RbacApplication.php | 28 ++ src/Model/Security.php | 62 +++ src/Model/ServicePrincipal.php | 4 +- src/Model/SignInActivity.php | 8 + src/Model/UnifiedRbacResourceAction.php | 189 ++++++++ src/Model/UnifiedRbacResourceNamespace.php | 82 ++++ src/Model/User.php | 2 + src/Model/WindowsAppX.php | 238 ++++++++++ .../WindowsAppXAppAssignmentSettings.php | 4 +- .../Model/EventPropagationResult.php | 143 +++++++ .../Model/EventPropagationStatus.php | 37 ++ src/SecurityNamespace/Model/EventQuery.php | 87 ++++ .../Model/EventStatusType.php | 37 ++ src/SecurityNamespace/Model/QueryType.php | 35 ++ .../Model/RetentionEvent.php | 405 ++++++++++++++++++ .../Model/RetentionEventStatus.php | 92 ++++ .../Model/RetentionEventType.php | 217 ++++++++++ .../Model/RetentionTrigger.php | 37 ++ .../Model/TriggerTypesRoot.php | 55 +++ src/SecurityNamespace/Model/TriggersRoot.php | 55 +++ 24 files changed, 1851 insertions(+), 16 deletions(-) create mode 100644 src/Model/UnifiedRbacResourceAction.php create mode 100644 src/Model/UnifiedRbacResourceNamespace.php create mode 100644 src/Model/WindowsAppX.php create mode 100644 src/SecurityNamespace/Model/EventPropagationResult.php create mode 100644 src/SecurityNamespace/Model/EventPropagationStatus.php create mode 100644 src/SecurityNamespace/Model/EventQuery.php create mode 100644 src/SecurityNamespace/Model/EventStatusType.php create mode 100644 src/SecurityNamespace/Model/QueryType.php create mode 100644 src/SecurityNamespace/Model/RetentionEvent.php create mode 100644 src/SecurityNamespace/Model/RetentionEventStatus.php create mode 100644 src/SecurityNamespace/Model/RetentionEventType.php create mode 100644 src/SecurityNamespace/Model/RetentionTrigger.php create mode 100644 src/SecurityNamespace/Model/TriggerTypesRoot.php create mode 100644 src/SecurityNamespace/Model/TriggersRoot.php diff --git a/src/Model/AccessReviewScheduleSettings.php b/src/Model/AccessReviewScheduleSettings.php index b52dae6ed22..1167beb3a64 100644 --- a/src/Model/AccessReviewScheduleSettings.php +++ b/src/Model/AccessReviewScheduleSettings.php @@ -58,7 +58,7 @@ public function setApplyActions($val) } /** * Gets the autoApplyDecisionsEnabled - * Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. + * Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond. * * @return bool|null The autoApplyDecisionsEnabled */ @@ -73,7 +73,7 @@ public function getAutoApplyDecisionsEnabled() /** * Sets the autoApplyDecisionsEnabled - * Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. + * Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond. * * @param bool $val The value of the autoApplyDecisionsEnabled * @@ -142,7 +142,7 @@ public function setDefaultDecision($val) } /** * Gets the defaultDecisionEnabled - * Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. + * Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond. * * @return bool|null The defaultDecisionEnabled */ @@ -157,7 +157,7 @@ public function getDefaultDecisionEnabled() /** * Sets the defaultDecisionEnabled - * Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. + * Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond. * * @param bool $val The value of the defaultDecisionEnabled * diff --git a/src/Model/Application.php b/src/Model/Application.php index 8da858d229c..cae8a7893a0 100644 --- a/src/Model/Application.php +++ b/src/Model/Application.php @@ -966,7 +966,7 @@ public function setSpa($val) /** * Gets the tags - * Custom strings that can be used to categorize and identify the application. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here will also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith). * * @return array|null The tags */ @@ -981,7 +981,7 @@ public function getTags() /** * Sets the tags - * Custom strings that can be used to categorize and identify the application. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here will also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith). * * @param string[] $val The tags * diff --git a/src/Model/ConditionalAccessUsers.php b/src/Model/ConditionalAccessUsers.php index 638af4788df..9b20d57e201 100644 --- a/src/Model/ConditionalAccessUsers.php +++ b/src/Model/ConditionalAccessUsers.php @@ -140,7 +140,7 @@ public function setExcludeUsers($val) } /** * Gets the includeGroups - * Group IDs in scope of policy unless explicitly excluded, or All. + * Group IDs in scope of policy unless explicitly excluded. * * @return string|null The includeGroups */ @@ -155,7 +155,7 @@ public function getIncludeGroups() /** * Sets the includeGroups - * Group IDs in scope of policy unless explicitly excluded, or All. + * Group IDs in scope of policy unless explicitly excluded. * * @param string $val The value of the includeGroups * @@ -199,7 +199,7 @@ public function setIncludeGuestsOrExternalUsers($val) } /** * Gets the includeRoles - * Role IDs in scope of policy unless explicitly excluded, or All. + * Role IDs in scope of policy unless explicitly excluded. * * @return string|null The includeRoles */ @@ -214,7 +214,7 @@ public function getIncludeRoles() /** * Sets the includeRoles - * Role IDs in scope of policy unless explicitly excluded, or All. + * Role IDs in scope of policy unless explicitly excluded. * * @param string $val The value of the includeRoles * @@ -227,7 +227,7 @@ public function setIncludeRoles($val) } /** * Gets the includeUsers - * User IDs in scope of policy unless explicitly excluded, or None or All or GuestsOrExternalUsers. + * User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers. * * @return string|null The includeUsers */ @@ -242,7 +242,7 @@ public function getIncludeUsers() /** * Sets the includeUsers - * User IDs in scope of policy unless explicitly excluded, or None or All or GuestsOrExternalUsers. + * User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers. * * @param string $val The value of the includeUsers * diff --git a/src/Model/DefaultUserRolePermissions.php b/src/Model/DefaultUserRolePermissions.php index ed4ee6d3a26..6d7609590d6 100644 --- a/src/Model/DefaultUserRolePermissions.php +++ b/src/Model/DefaultUserRolePermissions.php @@ -80,6 +80,32 @@ public function setAllowedToCreateSecurityGroups($val) return $this; } /** + * Gets the allowedToReadBitlockerKeysForOwnedDevice + * + * @return bool|null The allowedToReadBitlockerKeysForOwnedDevice + */ + public function getAllowedToReadBitlockerKeysForOwnedDevice() + { + if (array_key_exists("allowedToReadBitlockerKeysForOwnedDevice", $this->_propDict)) { + return $this->_propDict["allowedToReadBitlockerKeysForOwnedDevice"]; + } else { + return null; + } + } + + /** + * Sets the allowedToReadBitlockerKeysForOwnedDevice + * + * @param bool $val The value of the allowedToReadBitlockerKeysForOwnedDevice + * + * @return DefaultUserRolePermissions + */ + public function setAllowedToReadBitlockerKeysForOwnedDevice($val) + { + $this->_propDict["allowedToReadBitlockerKeysForOwnedDevice"] = $val; + return $this; + } + /** * Gets the allowedToReadOtherUsers * Indicates whether the default user role can read other users. * diff --git a/src/Model/RbacApplication.php b/src/Model/RbacApplication.php index e04281c78d2..c2e6822e687 100644 --- a/src/Model/RbacApplication.php +++ b/src/Model/RbacApplication.php @@ -25,6 +25,34 @@ class RbacApplication extends Entity { + /** + * Gets the resourceNamespaces + * + * @return array|null The resourceNamespaces + */ + public function getResourceNamespaces() + { + if (array_key_exists("resourceNamespaces", $this->_propDict)) { + return $this->_propDict["resourceNamespaces"]; + } else { + return null; + } + } + + /** + * Sets the resourceNamespaces + * + * @param UnifiedRbacResourceNamespace[] $val The resourceNamespaces + * + * @return RbacApplication + */ + public function setResourceNamespaces($val) + { + $this->_propDict["resourceNamespaces"] = $val; + return $this; + } + + /** * Gets the roleAssignments * Resource to grant access to users or groups. diff --git a/src/Model/Security.php b/src/Model/Security.php index 038fcf49efb..2f39819c59b 100644 --- a/src/Model/Security.php +++ b/src/Model/Security.php @@ -146,6 +146,68 @@ public function setAttackSimulation($val) return $this; } + /** + * Gets the triggers + * + * @return \Microsoft\Graph\SecurityNamespace\Model\TriggersRoot|null The triggers + */ + public function getTriggers() + { + if (array_key_exists("triggers", $this->_propDict)) { + if (is_a($this->_propDict["triggers"], "\Microsoft\Graph\SecurityNamespace\Model\TriggersRoot") || is_null($this->_propDict["triggers"])) { + return $this->_propDict["triggers"]; + } else { + $this->_propDict["triggers"] = new \Microsoft\Graph\SecurityNamespace\Model\TriggersRoot($this->_propDict["triggers"]); + return $this->_propDict["triggers"]; + } + } + return null; + } + + /** + * Sets the triggers + * + * @param \Microsoft\Graph\SecurityNamespace\Model\TriggersRoot $val The triggers + * + * @return Security + */ + public function setTriggers($val) + { + $this->_propDict["triggers"] = $val; + return $this; + } + + /** + * Gets the triggerTypes + * + * @return \Microsoft\Graph\SecurityNamespace\Model\TriggerTypesRoot|null The triggerTypes + */ + public function getTriggerTypes() + { + if (array_key_exists("triggerTypes", $this->_propDict)) { + if (is_a($this->_propDict["triggerTypes"], "\Microsoft\Graph\SecurityNamespace\Model\TriggerTypesRoot") || is_null($this->_propDict["triggerTypes"])) { + return $this->_propDict["triggerTypes"]; + } else { + $this->_propDict["triggerTypes"] = new \Microsoft\Graph\SecurityNamespace\Model\TriggerTypesRoot($this->_propDict["triggerTypes"]); + return $this->_propDict["triggerTypes"]; + } + } + return null; + } + + /** + * Sets the triggerTypes + * + * @param \Microsoft\Graph\SecurityNamespace\Model\TriggerTypesRoot $val The triggerTypes + * + * @return Security + */ + public function setTriggerTypes($val) + { + $this->_propDict["triggerTypes"] = $val; + return $this; + } + /** * Gets the alerts diff --git a/src/Model/ServicePrincipal.php b/src/Model/ServicePrincipal.php index 2fc35266a1f..0e4b7f4fa82 100644 --- a/src/Model/ServicePrincipal.php +++ b/src/Model/ServicePrincipal.php @@ -910,7 +910,7 @@ public function setSignInAudience($val) /** * Gets the tags - * Custom strings that can be used to categorize and identify the service principal. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Custom strings that can be used to categorize and identify the service principal. Not nullable. The value is the union of strings set here and on the associated application entity's tags property.Supports $filter (eq, not, ge, le, startsWith). * * @return array|null The tags */ @@ -925,7 +925,7 @@ public function getTags() /** * Sets the tags - * Custom strings that can be used to categorize and identify the service principal. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Custom strings that can be used to categorize and identify the service principal. Not nullable. The value is the union of strings set here and on the associated application entity's tags property.Supports $filter (eq, not, ge, le, startsWith). * * @param string[] $val The tags * diff --git a/src/Model/SignInActivity.php b/src/Model/SignInActivity.php index 1c1ba27e95d..f87d9bf0839 100644 --- a/src/Model/SignInActivity.php +++ b/src/Model/SignInActivity.php @@ -26,6 +26,7 @@ class SignInActivity extends Entity /** * Gets the lastNonInteractiveSignInDateTime + * The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client signed in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp 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'. Azure AD maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. * * @return \DateTime|null The lastNonInteractiveSignInDateTime */ @@ -44,6 +45,7 @@ public function getLastNonInteractiveSignInDateTime() /** * Sets the lastNonInteractiveSignInDateTime + * The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client signed in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp 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'. Azure AD maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. * * @param \DateTime $val The value to assign to the lastNonInteractiveSignInDateTime * @@ -56,6 +58,7 @@ public function setLastNonInteractiveSignInDateTime($val) } /** * Gets the lastNonInteractiveSignInRequestId + * Request identifier of the last non-interactive sign-in performed by this user. * * @return string|null The lastNonInteractiveSignInRequestId */ @@ -70,6 +73,7 @@ public function getLastNonInteractiveSignInRequestId() /** * Sets the lastNonInteractiveSignInRequestId + * Request identifier of the last non-interactive sign-in performed by this user. * * @param string $val The value of the lastNonInteractiveSignInRequestId * @@ -83,6 +87,7 @@ public function setLastNonInteractiveSignInRequestId($val) /** * Gets the lastSignInDateTime + * The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user signed in to the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp 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'. Azure AD maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. * * @return \DateTime|null The lastSignInDateTime */ @@ -101,6 +106,7 @@ public function getLastSignInDateTime() /** * Sets the lastSignInDateTime + * The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user signed in to the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp 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'. Azure AD maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Azure AD. * * @param \DateTime $val The value to assign to the lastSignInDateTime * @@ -113,6 +119,7 @@ public function setLastSignInDateTime($val) } /** * Gets the lastSignInRequestId + * Request identifier of the last interactive sign-in performed by this user. * * @return string|null The lastSignInRequestId */ @@ -127,6 +134,7 @@ public function getLastSignInRequestId() /** * Sets the lastSignInRequestId + * Request identifier of the last interactive sign-in performed by this user. * * @param string $val The value of the lastSignInRequestId * diff --git a/src/Model/UnifiedRbacResourceAction.php b/src/Model/UnifiedRbacResourceAction.php new file mode 100644 index 00000000000..3b116cdb65d --- /dev/null +++ b/src/Model/UnifiedRbacResourceAction.php @@ -0,0 +1,189 @@ +_propDict)) { + return $this->_propDict["actionVerb"]; + } else { + return null; + } + } + + /** + * Sets the actionVerb + * + * @param string $val The actionVerb + * + * @return UnifiedRbacResourceAction + */ + public function setActionVerb($val) + { + $this->_propDict["actionVerb"] = $val; + return $this; + } + + /** + * Gets the authenticationContextId + * + * @return string|null The authenticationContextId + */ + public function getAuthenticationContextId() + { + if (array_key_exists("authenticationContextId", $this->_propDict)) { + return $this->_propDict["authenticationContextId"]; + } else { + return null; + } + } + + /** + * Sets the authenticationContextId + * + * @param string $val The authenticationContextId + * + * @return UnifiedRbacResourceAction + */ + public function setAuthenticationContextId($val) + { + $this->_propDict["authenticationContextId"] = $val; + return $this; + } + + /** + * Gets the description + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * + * @param string $val The description + * + * @return UnifiedRbacResourceAction + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the isAuthenticationContextSettable + * + * @return bool|null The isAuthenticationContextSettable + */ + public function getIsAuthenticationContextSettable() + { + if (array_key_exists("isAuthenticationContextSettable", $this->_propDict)) { + return $this->_propDict["isAuthenticationContextSettable"]; + } else { + return null; + } + } + + /** + * Sets the isAuthenticationContextSettable + * + * @param bool $val The isAuthenticationContextSettable + * + * @return UnifiedRbacResourceAction + */ + public function setIsAuthenticationContextSettable($val) + { + $this->_propDict["isAuthenticationContextSettable"] = boolval($val); + return $this; + } + + /** + * Gets the name + * + * @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 + * + * @param string $val The name + * + * @return UnifiedRbacResourceAction + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + + /** + * Gets the resourceScopeId + * + * @return string|null The resourceScopeId + */ + public function getResourceScopeId() + { + if (array_key_exists("resourceScopeId", $this->_propDict)) { + return $this->_propDict["resourceScopeId"]; + } else { + return null; + } + } + + /** + * Sets the resourceScopeId + * + * @param string $val The resourceScopeId + * + * @return UnifiedRbacResourceAction + */ + public function setResourceScopeId($val) + { + $this->_propDict["resourceScopeId"] = $val; + return $this; + } + +} diff --git a/src/Model/UnifiedRbacResourceNamespace.php b/src/Model/UnifiedRbacResourceNamespace.php new file mode 100644 index 00000000000..3d239539fc5 --- /dev/null +++ b/src/Model/UnifiedRbacResourceNamespace.php @@ -0,0 +1,82 @@ +_propDict)) { + return $this->_propDict["name"]; + } else { + return null; + } + } + + /** + * Sets the name + * + * @param string $val The name + * + * @return UnifiedRbacResourceNamespace + */ + public function setName($val) + { + $this->_propDict["name"] = $val; + return $this; + } + + + /** + * Gets the resourceActions + * + * @return array|null The resourceActions + */ + public function getResourceActions() + { + if (array_key_exists("resourceActions", $this->_propDict)) { + return $this->_propDict["resourceActions"]; + } else { + return null; + } + } + + /** + * Sets the resourceActions + * + * @param UnifiedRbacResourceAction[] $val The resourceActions + * + * @return UnifiedRbacResourceNamespace + */ + public function setResourceActions($val) + { + $this->_propDict["resourceActions"] = $val; + return $this; + } + +} diff --git a/src/Model/User.php b/src/Model/User.php index f6a87eedb4d..bcc03bae7b8 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -26,6 +26,7 @@ class User extends DirectoryObject { /** * Gets the signInActivity + * Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.There's a known issue with retrieving this property.This property is not returned for a user who has never signed in or last signed in before April 2020. * * @return SignInActivity|null The signInActivity */ @@ -44,6 +45,7 @@ public function getSignInActivity() /** * Sets the signInActivity + * Get the last signed-in date and request ID of the sign-in for a given user. Read-only.Returned only on $select. Supports $filter (eq, ne, not, ge, le) but not with any other filterable properties. Note: Details for this property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.There's a known issue with retrieving this property.This property is not returned for a user who has never signed in or last signed in before April 2020. * * @param SignInActivity $val The signInActivity * diff --git a/src/Model/WindowsAppX.php b/src/Model/WindowsAppX.php new file mode 100644 index 00000000000..38dddda93eb --- /dev/null +++ b/src/Model/WindowsAppX.php @@ -0,0 +1,238 @@ +_propDict)) { + if (is_a($this->_propDict["applicableArchitectures"], "\Microsoft\Graph\Model\WindowsArchitecture") || is_null($this->_propDict["applicableArchitectures"])) { + return $this->_propDict["applicableArchitectures"]; + } else { + $this->_propDict["applicableArchitectures"] = new WindowsArchitecture($this->_propDict["applicableArchitectures"]); + return $this->_propDict["applicableArchitectures"]; + } + } + return null; + } + + /** + * Sets the applicableArchitectures + * 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. + * + * @param WindowsArchitecture $val The applicableArchitectures + * + * @return WindowsAppX + */ + public function setApplicableArchitectures($val) + { + $this->_propDict["applicableArchitectures"] = $val; + return $this; + } + + /** + * Gets the identityName + * The identity name of the uploaded app package. For example: 'Contoso.DemoApp'. + * + * @return string|null The identityName + */ + public function getIdentityName() + { + if (array_key_exists("identityName", $this->_propDict)) { + return $this->_propDict["identityName"]; + } else { + return null; + } + } + + /** + * Sets the identityName + * The identity name of the uploaded app package. For example: 'Contoso.DemoApp'. + * + * @param string $val The identityName + * + * @return WindowsAppX + */ + public function setIdentityName($val) + { + $this->_propDict["identityName"] = $val; + return $this; + } + + /** + * Gets the identityPublisherHash + * 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 + */ + public function getIdentityPublisherHash() + { + if (array_key_exists("identityPublisherHash", $this->_propDict)) { + return $this->_propDict["identityPublisherHash"]; + } else { + return null; + } + } + + /** + * Sets the identityPublisherHash + * 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 + * + * @return WindowsAppX + */ + public function setIdentityPublisherHash($val) + { + $this->_propDict["identityPublisherHash"] = $val; + return $this; + } + + /** + * Gets the identityResourceIdentifier + * The identity resource identifier of the uploaded app package. For example: 'TestResourceId'. + * + * @return string|null The identityResourceIdentifier + */ + public function getIdentityResourceIdentifier() + { + if (array_key_exists("identityResourceIdentifier", $this->_propDict)) { + return $this->_propDict["identityResourceIdentifier"]; + } else { + return null; + } + } + + /** + * Sets the identityResourceIdentifier + * The identity resource identifier of the uploaded app package. For example: 'TestResourceId'. + * + * @param string $val The identityResourceIdentifier + * + * @return WindowsAppX + */ + public function setIdentityResourceIdentifier($val) + { + $this->_propDict["identityResourceIdentifier"] = $val; + return $this; + } + + /** + * Gets the identityVersion + * The identity version of the uploaded app package. For example: '1.0.0.0'. + * + * @return string|null The identityVersion + */ + public function getIdentityVersion() + { + if (array_key_exists("identityVersion", $this->_propDict)) { + return $this->_propDict["identityVersion"]; + } else { + return null; + } + } + + /** + * Sets the identityVersion + * The identity version of the uploaded app package. For example: '1.0.0.0'. + * + * @param string $val The identityVersion + * + * @return WindowsAppX + */ + public function setIdentityVersion($val) + { + $this->_propDict["identityVersion"] = $val; + return $this; + } + + /** + * Gets the isBundle + * 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 + */ + public function getIsBundle() + { + if (array_key_exists("isBundle", $this->_propDict)) { + return $this->_propDict["isBundle"]; + } else { + return null; + } + } + + /** + * Sets the isBundle + * 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 + * + * @return WindowsAppX + */ + public function setIsBundle($val) + { + $this->_propDict["isBundle"] = boolval($val); + return $this; + } + + /** + * Gets the minimumSupportedOperatingSystem + * 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 + */ + public function getMinimumSupportedOperatingSystem() + { + if (array_key_exists("minimumSupportedOperatingSystem", $this->_propDict)) { + if (is_a($this->_propDict["minimumSupportedOperatingSystem"], "\Microsoft\Graph\Model\WindowsMinimumOperatingSystem") || is_null($this->_propDict["minimumSupportedOperatingSystem"])) { + return $this->_propDict["minimumSupportedOperatingSystem"]; + } else { + $this->_propDict["minimumSupportedOperatingSystem"] = new WindowsMinimumOperatingSystem($this->_propDict["minimumSupportedOperatingSystem"]); + return $this->_propDict["minimumSupportedOperatingSystem"]; + } + } + return null; + } + + /** + * Sets the minimumSupportedOperatingSystem + * 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 + * + * @return WindowsAppX + */ + public function setMinimumSupportedOperatingSystem($val) + { + $this->_propDict["minimumSupportedOperatingSystem"] = $val; + return $this; + } + +} diff --git a/src/Model/WindowsAppXAppAssignmentSettings.php b/src/Model/WindowsAppXAppAssignmentSettings.php index e9f9649e4a2..159ad0d6d5a 100644 --- a/src/Model/WindowsAppXAppAssignmentSettings.php +++ b/src/Model/WindowsAppXAppAssignmentSettings.php @@ -36,7 +36,7 @@ public function __construct($propDict = array()) /** * Gets the useDeviceContext - * Whether or not to use device execution context for Windows AppX mobile app. + * When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. * * @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 AppX mobile app. + * When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. * * @param bool $val The value of the useDeviceContext * diff --git a/src/SecurityNamespace/Model/EventPropagationResult.php b/src/SecurityNamespace/Model/EventPropagationResult.php new file mode 100644 index 00000000000..2d8794d08a1 --- /dev/null +++ b/src/SecurityNamespace/Model/EventPropagationResult.php @@ -0,0 +1,143 @@ +_propDict)) { + return $this->_propDict["location"]; + } else { + return null; + } + } + + /** + * Sets the location + * The name of the specific location in the workload associated with the event. + * + * @param string $val The value of the location + * + * @return EventPropagationResult + */ + public function setLocation($val) + { + $this->_propDict["location"] = $val; + return $this; + } + /** + * Gets the serviceName + * The name of the workload associated with the event. + * + * @return string|null The serviceName + */ + public function getServiceName() + { + if (array_key_exists("serviceName", $this->_propDict)) { + return $this->_propDict["serviceName"]; + } else { + return null; + } + } + + /** + * Sets the serviceName + * The name of the workload associated with the event. + * + * @param string $val The value of the serviceName + * + * @return EventPropagationResult + */ + public function setServiceName($val) + { + $this->_propDict["serviceName"] = $val; + return $this; + } + + /** + * Gets the status + * Indicates the status of the event creation request. The possible values are: none, inProcessing, failed, success, unknownFutureValue. + * + * @return EventPropagationStatus|null The status + */ + public function getStatus() + { + if (array_key_exists("status", $this->_propDict)) { + if (is_a($this->_propDict["status"], "\Microsoft\Graph\SecurityNamespace\Model\EventPropagationStatus") || is_null($this->_propDict["status"])) { + return $this->_propDict["status"]; + } else { + $this->_propDict["status"] = new EventPropagationStatus($this->_propDict["status"]); + return $this->_propDict["status"]; + } + } + return null; + } + + /** + * Sets the status + * Indicates the status of the event creation request. The possible values are: none, inProcessing, failed, success, unknownFutureValue. + * + * @param EventPropagationStatus $val The value to assign to the status + * + * @return EventPropagationResult The EventPropagationResult + */ + public function setStatus($val) + { + $this->_propDict["status"] = $val; + return $this; + } + /** + * Gets the statusInformation + * Additional information about the status of the event creation request. + * + * @return string|null The statusInformation + */ + public function getStatusInformation() + { + if (array_key_exists("statusInformation", $this->_propDict)) { + return $this->_propDict["statusInformation"]; + } else { + return null; + } + } + + /** + * Sets the statusInformation + * Additional information about the status of the event creation request. + * + * @param string $val The value of the statusInformation + * + * @return EventPropagationResult + */ + public function setStatusInformation($val) + { + $this->_propDict["statusInformation"] = $val; + return $this; + } +} diff --git a/src/SecurityNamespace/Model/EventPropagationStatus.php b/src/SecurityNamespace/Model/EventPropagationStatus.php new file mode 100644 index 00000000000..a1b96cfab80 --- /dev/null +++ b/src/SecurityNamespace/Model/EventPropagationStatus.php @@ -0,0 +1,37 @@ +_propDict)) { + return $this->_propDict["query"]; + } else { + return null; + } + } + + /** + * Sets the query + * Represents unique identification for the query. 'Asset ID' for SharePoint Online and OneDrive for Business, 'keywords' for Exchange Online. + * + * @param string $val The value of the query + * + * @return EventQuery + */ + public function setQuery($val) + { + $this->_propDict["query"] = $val; + return $this; + } + + /** + * Gets the queryType + * Represents the type of query associated with an event. 'files' for SPO and ODB and 'messages' for EXO.The possible values are: files, messages, unknownFutureValue. + * + * @return QueryType|null The queryType + */ + public function getQueryType() + { + if (array_key_exists("queryType", $this->_propDict)) { + if (is_a($this->_propDict["queryType"], "\Microsoft\Graph\SecurityNamespace\Model\QueryType") || is_null($this->_propDict["queryType"])) { + return $this->_propDict["queryType"]; + } else { + $this->_propDict["queryType"] = new QueryType($this->_propDict["queryType"]); + return $this->_propDict["queryType"]; + } + } + return null; + } + + /** + * Sets the queryType + * Represents the type of query associated with an event. 'files' for SPO and ODB and 'messages' for EXO.The possible values are: files, messages, unknownFutureValue. + * + * @param QueryType $val The value to assign to the queryType + * + * @return EventQuery The EventQuery + */ + public function setQueryType($val) + { + $this->_propDict["queryType"] = $val; + return $this; + } +} diff --git a/src/SecurityNamespace/Model/EventStatusType.php b/src/SecurityNamespace/Model/EventStatusType.php new file mode 100644 index 00000000000..d8f07a45c99 --- /dev/null +++ b/src/SecurityNamespace/Model/EventStatusType.php @@ -0,0 +1,37 @@ +_propDict)) { + if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["createdBy"])) { + return $this->_propDict["createdBy"]; + } else { + $this->_propDict["createdBy"] = new \Microsoft\Graph\Model\IdentitySet($this->_propDict["createdBy"]); + return $this->_propDict["createdBy"]; + } + } + return null; + } + + /** + * Sets the createdBy + * The user who created the retentionEvent. + * + * @param \Microsoft\Graph\Model\IdentitySet $val The createdBy + * + * @return RetentionEvent + */ + public function setCreatedBy($val) + { + $this->_propDict["createdBy"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * The date time when the retentionEvent was created. + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * The date time when the retentionEvent was created. + * + * @param \DateTime $val The createdDateTime + * + * @return RetentionEvent + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the description + * Optional information about the event. + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * Optional information about the event. + * + * @param string $val The description + * + * @return RetentionEvent + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the displayName + * Name of the event. + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * Name of the event. + * + * @param string $val The displayName + * + * @return RetentionEvent + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + + + /** + * Gets the eventPropagationResults + * + * @return array|null The eventPropagationResults + */ + public function getEventPropagationResults() + { + if (array_key_exists("eventPropagationResults", $this->_propDict)) { + return $this->_propDict["eventPropagationResults"]; + } else { + return null; + } + } + + /** + * Sets the eventPropagationResults + * + * @param EventPropagationResult[] $val The eventPropagationResults + * + * @return RetentionEvent + */ + public function setEventPropagationResults($val) + { + $this->_propDict["eventPropagationResults"] = $val; + return $this; + } + + + /** + * Gets the eventQueries + * Represents the workload (SharePoint Online, OneDrive for Business, Exchange Online) and identification information associated with a retention event. + * + * @return array|null The eventQueries + */ + public function getEventQueries() + { + if (array_key_exists("eventQueries", $this->_propDict)) { + return $this->_propDict["eventQueries"]; + } else { + return null; + } + } + + /** + * Sets the eventQueries + * Represents the workload (SharePoint Online, OneDrive for Business, Exchange Online) and identification information associated with a retention event. + * + * @param EventQuery[] $val The eventQueries + * + * @return RetentionEvent + */ + public function setEventQueries($val) + { + $this->_propDict["eventQueries"] = $val; + return $this; + } + + /** + * Gets the eventStatus + * + * @return RetentionEventStatus|null The eventStatus + */ + public function getEventStatus() + { + if (array_key_exists("eventStatus", $this->_propDict)) { + if (is_a($this->_propDict["eventStatus"], "\Microsoft\Graph\SecurityNamespace\Model\RetentionEventStatus") || is_null($this->_propDict["eventStatus"])) { + return $this->_propDict["eventStatus"]; + } else { + $this->_propDict["eventStatus"] = new RetentionEventStatus($this->_propDict["eventStatus"]); + return $this->_propDict["eventStatus"]; + } + } + return null; + } + + /** + * Sets the eventStatus + * + * @param RetentionEventStatus $val The eventStatus + * + * @return RetentionEvent + */ + public function setEventStatus($val) + { + $this->_propDict["eventStatus"] = $val; + return $this; + } + + /** + * Gets the eventTriggerDateTime + * Optional time when the event should be triggered. + * + * @return \DateTime|null The eventTriggerDateTime + */ + public function getEventTriggerDateTime() + { + if (array_key_exists("eventTriggerDateTime", $this->_propDict)) { + if (is_a($this->_propDict["eventTriggerDateTime"], "\DateTime") || is_null($this->_propDict["eventTriggerDateTime"])) { + return $this->_propDict["eventTriggerDateTime"]; + } else { + $this->_propDict["eventTriggerDateTime"] = new \DateTime($this->_propDict["eventTriggerDateTime"]); + return $this->_propDict["eventTriggerDateTime"]; + } + } + return null; + } + + /** + * Sets the eventTriggerDateTime + * Optional time when the event should be triggered. + * + * @param \DateTime $val The eventTriggerDateTime + * + * @return RetentionEvent + */ + public function setEventTriggerDateTime($val) + { + $this->_propDict["eventTriggerDateTime"] = $val; + return $this; + } + + /** + * Gets the lastModifiedBy + * The user who last modified the retentionEvent. + * + * @return \Microsoft\Graph\Model\IdentitySet|null The lastModifiedBy + */ + public function getLastModifiedBy() + { + if (array_key_exists("lastModifiedBy", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["lastModifiedBy"])) { + return $this->_propDict["lastModifiedBy"]; + } else { + $this->_propDict["lastModifiedBy"] = new \Microsoft\Graph\Model\IdentitySet($this->_propDict["lastModifiedBy"]); + return $this->_propDict["lastModifiedBy"]; + } + } + return null; + } + + /** + * Sets the lastModifiedBy + * The user who last modified the retentionEvent. + * + * @param \Microsoft\Graph\Model\IdentitySet $val The lastModifiedBy + * + * @return RetentionEvent + */ + public function setLastModifiedBy($val) + { + $this->_propDict["lastModifiedBy"] = $val; + return $this; + } + + /** + * Gets the lastModifiedDateTime + * The latest date time when the retentionEvent was modified. + * + * @return \DateTime|null The lastModifiedDateTime + */ + public function getLastModifiedDateTime() + { + if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { + return $this->_propDict["lastModifiedDateTime"]; + } else { + $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); + return $this->_propDict["lastModifiedDateTime"]; + } + } + return null; + } + + /** + * Sets the lastModifiedDateTime + * The latest date time when the retentionEvent was modified. + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return RetentionEvent + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + + /** + * Gets the lastStatusUpdateDateTime + * Last time the status of the event was updated. + * + * @return \DateTime|null The lastStatusUpdateDateTime + */ + public function getLastStatusUpdateDateTime() + { + if (array_key_exists("lastStatusUpdateDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastStatusUpdateDateTime"], "\DateTime") || is_null($this->_propDict["lastStatusUpdateDateTime"])) { + return $this->_propDict["lastStatusUpdateDateTime"]; + } else { + $this->_propDict["lastStatusUpdateDateTime"] = new \DateTime($this->_propDict["lastStatusUpdateDateTime"]); + return $this->_propDict["lastStatusUpdateDateTime"]; + } + } + return null; + } + + /** + * Sets the lastStatusUpdateDateTime + * Last time the status of the event was updated. + * + * @param \DateTime $val The lastStatusUpdateDateTime + * + * @return RetentionEvent + */ + public function setLastStatusUpdateDateTime($val) + { + $this->_propDict["lastStatusUpdateDateTime"] = $val; + return $this; + } + + /** + * Gets the retentionEventType + * Specifies the event that will start the retention period for labels that use this event type when an event is created. + * + * @return RetentionEventType|null The retentionEventType + */ + public function getRetentionEventType() + { + if (array_key_exists("retentionEventType", $this->_propDict)) { + if (is_a($this->_propDict["retentionEventType"], "\Microsoft\Graph\SecurityNamespace\Model\RetentionEventType") || is_null($this->_propDict["retentionEventType"])) { + return $this->_propDict["retentionEventType"]; + } else { + $this->_propDict["retentionEventType"] = new RetentionEventType($this->_propDict["retentionEventType"]); + return $this->_propDict["retentionEventType"]; + } + } + return null; + } + + /** + * Sets the retentionEventType + * Specifies the event that will start the retention period for labels that use this event type when an event is created. + * + * @param RetentionEventType $val The retentionEventType + * + * @return RetentionEvent + */ + public function setRetentionEventType($val) + { + $this->_propDict["retentionEventType"] = $val; + return $this; + } + +} diff --git a/src/SecurityNamespace/Model/RetentionEventStatus.php b/src/SecurityNamespace/Model/RetentionEventStatus.php new file mode 100644 index 00000000000..b735a00a138 --- /dev/null +++ b/src/SecurityNamespace/Model/RetentionEventStatus.php @@ -0,0 +1,92 @@ +_propDict)) { + if (is_a($this->_propDict["error"], "\Microsoft\Graph\Model\PublicError") || is_null($this->_propDict["error"])) { + return $this->_propDict["error"]; + } else { + $this->_propDict["error"] = new \Microsoft\Graph\Model\PublicError($this->_propDict["error"]); + return $this->_propDict["error"]; + } + } + return null; + } + + /** + * Sets the error + * The error if the status is not successful. + * + * @param \Microsoft\Graph\Model\PublicError $val The value to assign to the error + * + * @return RetentionEventStatus The RetentionEventStatus + */ + public function setError($val) + { + $this->_propDict["error"] = $val; + return $this; + } + + /** + * Gets the status + * The status of the distribution. The possible values are: pending, error, success, notAvaliable. + * + * @return EventStatusType|null The status + */ + public function getStatus() + { + if (array_key_exists("status", $this->_propDict)) { + if (is_a($this->_propDict["status"], "\Microsoft\Graph\SecurityNamespace\Model\EventStatusType") || is_null($this->_propDict["status"])) { + return $this->_propDict["status"]; + } else { + $this->_propDict["status"] = new EventStatusType($this->_propDict["status"]); + return $this->_propDict["status"]; + } + } + return null; + } + + /** + * Sets the status + * The status of the distribution. The possible values are: pending, error, success, notAvaliable. + * + * @param EventStatusType $val The value to assign to the status + * + * @return RetentionEventStatus The RetentionEventStatus + */ + public function setStatus($val) + { + $this->_propDict["status"] = $val; + return $this; + } +} diff --git a/src/SecurityNamespace/Model/RetentionEventType.php b/src/SecurityNamespace/Model/RetentionEventType.php new file mode 100644 index 00000000000..95a63494512 --- /dev/null +++ b/src/SecurityNamespace/Model/RetentionEventType.php @@ -0,0 +1,217 @@ +_propDict)) { + if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["createdBy"])) { + return $this->_propDict["createdBy"]; + } else { + $this->_propDict["createdBy"] = new \Microsoft\Graph\Model\IdentitySet($this->_propDict["createdBy"]); + return $this->_propDict["createdBy"]; + } + } + return null; + } + + /** + * Sets the createdBy + * The user who created the retentionEventType. + * + * @param \Microsoft\Graph\Model\IdentitySet $val The createdBy + * + * @return RetentionEventType + */ + public function setCreatedBy($val) + { + $this->_propDict["createdBy"] = $val; + return $this; + } + + /** + * Gets the createdDateTime + * The date time when the retentionEventType was created. + * + * @return \DateTime|null The createdDateTime + */ + public function getCreatedDateTime() + { + if (array_key_exists("createdDateTime", $this->_propDict)) { + if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { + return $this->_propDict["createdDateTime"]; + } else { + $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); + return $this->_propDict["createdDateTime"]; + } + } + return null; + } + + /** + * Sets the createdDateTime + * The date time when the retentionEventType was created. + * + * @param \DateTime $val The createdDateTime + * + * @return RetentionEventType + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + + /** + * Gets the description + * Optional information about the event type. + * + * @return string|null The description + */ + public function getDescription() + { + if (array_key_exists("description", $this->_propDict)) { + return $this->_propDict["description"]; + } else { + return null; + } + } + + /** + * Sets the description + * Optional information about the event type. + * + * @param string $val The description + * + * @return RetentionEventType + */ + public function setDescription($val) + { + $this->_propDict["description"] = $val; + return $this; + } + + /** + * Gets the displayName + * Name of the event type. + * + * @return string|null The displayName + */ + public function getDisplayName() + { + if (array_key_exists("displayName", $this->_propDict)) { + return $this->_propDict["displayName"]; + } else { + return null; + } + } + + /** + * Sets the displayName + * Name of the event type. + * + * @param string $val The displayName + * + * @return RetentionEventType + */ + public function setDisplayName($val) + { + $this->_propDict["displayName"] = $val; + return $this; + } + + /** + * Gets the lastModifiedBy + * The user who last modified the retentionEventType. + * + * @return \Microsoft\Graph\Model\IdentitySet|null The lastModifiedBy + */ + public function getLastModifiedBy() + { + if (array_key_exists("lastModifiedBy", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["lastModifiedBy"])) { + return $this->_propDict["lastModifiedBy"]; + } else { + $this->_propDict["lastModifiedBy"] = new \Microsoft\Graph\Model\IdentitySet($this->_propDict["lastModifiedBy"]); + return $this->_propDict["lastModifiedBy"]; + } + } + return null; + } + + /** + * Sets the lastModifiedBy + * The user who last modified the retentionEventType. + * + * @param \Microsoft\Graph\Model\IdentitySet $val The lastModifiedBy + * + * @return RetentionEventType + */ + public function setLastModifiedBy($val) + { + $this->_propDict["lastModifiedBy"] = $val; + return $this; + } + + /** + * Gets the lastModifiedDateTime + * The latest date time when the retentionEventType was modified. + * + * @return \DateTime|null The lastModifiedDateTime + */ + public function getLastModifiedDateTime() + { + if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { + if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { + return $this->_propDict["lastModifiedDateTime"]; + } else { + $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); + return $this->_propDict["lastModifiedDateTime"]; + } + } + return null; + } + + /** + * Sets the lastModifiedDateTime + * The latest date time when the retentionEventType was modified. + * + * @param \DateTime $val The lastModifiedDateTime + * + * @return RetentionEventType + */ + public function setLastModifiedDateTime($val) + { + $this->_propDict["lastModifiedDateTime"] = $val; + return $this; + } + +} diff --git a/src/SecurityNamespace/Model/RetentionTrigger.php b/src/SecurityNamespace/Model/RetentionTrigger.php new file mode 100644 index 00000000000..dae6c036255 --- /dev/null +++ b/src/SecurityNamespace/Model/RetentionTrigger.php @@ -0,0 +1,37 @@ +_propDict)) { + return $this->_propDict["retentionEventTypes"]; + } else { + return null; + } + } + + /** + * Sets the retentionEventTypes + * + * @param RetentionEventType[] $val The retentionEventTypes + * + * @return TriggerTypesRoot + */ + public function setRetentionEventTypes($val) + { + $this->_propDict["retentionEventTypes"] = $val; + return $this; + } + +} diff --git a/src/SecurityNamespace/Model/TriggersRoot.php b/src/SecurityNamespace/Model/TriggersRoot.php new file mode 100644 index 00000000000..883227a315e --- /dev/null +++ b/src/SecurityNamespace/Model/TriggersRoot.php @@ -0,0 +1,55 @@ +_propDict)) { + return $this->_propDict["retentionEvents"]; + } else { + return null; + } + } + + /** + * Sets the retentionEvents + * + * @param RetentionEvent[] $val The retentionEvents + * + * @return TriggersRoot + */ + public function setRetentionEvents($val) + { + $this->_propDict["retentionEvents"] = $val; + return $this; + } + +} From 14e49175389c4a1c7704a5b083b8362d6c137fed Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 4 Apr 2023 10:17:37 +0000 Subject: [PATCH 7/7] Update generated files with build 112037 --- .../Model/AccessReviewScheduleSettings.php | 8 +-- ...droidForWorkGeneralDeviceConfiguration.php | 62 +++++++++++++++++++ .../Model/AndroidWorkProfileAccountUse.php | 36 +++++++++++ ...dWorkProfileGeneralDeviceConfiguration.php | 62 +++++++++++++++++++ .../Microsoft/Graph/Model/Application.php | 4 +- .../Microsoft/Graph/Model/CallTranscript.php | 31 ++++++++++ .../ClassificationRequestContentMetaData.php | 52 ++++++++++++++++ .../Graph/Model/ConditionalAccessUsers.php | 12 ++-- ...ationChoiceSettingCollectionDefinition.php | 8 +-- ...rationSettingGroupCollectionDefinition.php | 8 +-- ...ationSimpleSettingCollectionDefinition.php | 8 +-- ...figurationStringSettingValueDefinition.php | 12 ++-- .../Graph/Model/DeviceManagementIntent.php | 29 +++++++++ .../Graph/Model/DevicePlatformType.php | 3 + src/Beta/Microsoft/Graph/Model/Directory.php | 2 + .../Microsoft/Graph/Model/EmailSettings.php | 4 +- .../Graph/Model/ExtensionProperty.php | 27 ++++++++ src/Beta/Microsoft/Graph/Model/Identity.php | 8 +-- .../Graph/Model/InboundSharedUserProfile.php | 8 +++ .../Model/IosLobAppAssignmentSettings.php | 28 +++++++++ .../Model/IosStoreAppAssignmentSettings.php | 28 +++++++++ .../Model/IosVppAppAssignmentSettings.php | 56 +++++++++++++++++ src/Beta/Microsoft/Graph/Model/KeyValue.php | 8 +-- .../Model/MacOSGeneralDeviceConfiguration.php | 29 +++++++++ .../Microsoft/Graph/Model/MacOSLobApp.php | 29 --------- .../Microsoft/Graph/Model/MacOSPriority.php | 35 +++++++++++ .../MacOSSoftwareUpdateConfiguration.php | 62 +++++++++++++++++++ .../Model/MacOsLobAppAssignmentSettings.php | 4 +- .../Model/MacOsVppAppAssignmentSettings.php | 56 +++++++++++++++++ .../Graph/Model/OutboundSharedUserProfile.php | 4 ++ .../Graph/Model/PlannerRecurrenceSchedule.php | 6 ++ .../Microsoft/Graph/Model/PlannerTask.php | 2 + .../Graph/Model/PlannerTaskRecurrence.php | 12 ++++ .../Graph/Model/ServicePrincipal.php | 4 +- .../Graph/Model/TeamsAppAuthorization.php | 2 + .../Graph/Model/TeamsAppDefinition.php | 2 + .../Graph/Model/TeamsAppInstallation.php | 2 + .../Graph/Model/TeamsAppPermissionSet.php | 2 + .../TeamsAppResourceSpecificPermission.php | 4 ++ .../Microsoft/Graph/Model/TenantReference.php | 2 + .../Graph/Model/TextClassificationRequest.php | 31 ++++++++++ .../Graph/Model/VpnTrafficDirection.php | 35 +++++++++++ .../Microsoft/Graph/Model/VpnTrafficRule.php | 33 ++++++++++ .../WindowsAppXAppAssignmentSettings.php | 4 +- .../WindowsUpdateForBusinessConfiguration.php | 30 --------- .../Graph/Model/ZebraFotaDeploymentStatus.php | 33 ++++++++++ .../Graph/Model/ZebraFotaErrorCode.php | 40 ++++++++++++ 47 files changed, 862 insertions(+), 105 deletions(-) create mode 100644 src/Beta/Microsoft/Graph/Model/AndroidWorkProfileAccountUse.php create mode 100644 src/Beta/Microsoft/Graph/Model/ClassificationRequestContentMetaData.php create mode 100644 src/Beta/Microsoft/Graph/Model/MacOSPriority.php create mode 100644 src/Beta/Microsoft/Graph/Model/VpnTrafficDirection.php create mode 100644 src/Beta/Microsoft/Graph/Model/ZebraFotaErrorCode.php diff --git a/src/Beta/Microsoft/Graph/Model/AccessReviewScheduleSettings.php b/src/Beta/Microsoft/Graph/Model/AccessReviewScheduleSettings.php index 9abc7e297ae..f03f3e3b8b0 100644 --- a/src/Beta/Microsoft/Graph/Model/AccessReviewScheduleSettings.php +++ b/src/Beta/Microsoft/Graph/Model/AccessReviewScheduleSettings.php @@ -58,7 +58,7 @@ public function setApplyActions($val) } /** * Gets the autoApplyDecisionsEnabled - * Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. + * Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond. * * @return bool|null The autoApplyDecisionsEnabled */ @@ -73,7 +73,7 @@ public function getAutoApplyDecisionsEnabled() /** * Sets the autoApplyDecisionsEnabled - * Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. + * Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond. * * @param bool $val The value of the autoApplyDecisionsEnabled * @@ -142,7 +142,7 @@ public function setDefaultDecision($val) } /** * Gets the defaultDecisionEnabled - * Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. + * Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond. * * @return bool|null The defaultDecisionEnabled */ @@ -157,7 +157,7 @@ public function getDefaultDecisionEnabled() /** * Sets the defaultDecisionEnabled - * Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. + * Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond. * * @param bool $val The value of the defaultDecisionEnabled * diff --git a/src/Beta/Microsoft/Graph/Model/AndroidForWorkGeneralDeviceConfiguration.php b/src/Beta/Microsoft/Graph/Model/AndroidForWorkGeneralDeviceConfiguration.php index 29c328e1808..6fd85bc7538 100644 --- a/src/Beta/Microsoft/Graph/Model/AndroidForWorkGeneralDeviceConfiguration.php +++ b/src/Beta/Microsoft/Graph/Model/AndroidForWorkGeneralDeviceConfiguration.php @@ -24,6 +24,35 @@ */ class AndroidForWorkGeneralDeviceConfiguration extends DeviceConfiguration { + /** + * Gets the allowedGoogleAccountDomains + * Determine domains allow-list for accounts that can be added to work profile. + * + * @return array|null The allowedGoogleAccountDomains + */ + public function getAllowedGoogleAccountDomains() + { + if (array_key_exists("allowedGoogleAccountDomains", $this->_propDict)) { + return $this->_propDict["allowedGoogleAccountDomains"]; + } else { + return null; + } + } + + /** + * Sets the allowedGoogleAccountDomains + * Determine domains allow-list for accounts that can be added to work profile. + * + * @param string[] $val The allowedGoogleAccountDomains + * + * @return AndroidForWorkGeneralDeviceConfiguration + */ + public function setAllowedGoogleAccountDomains($val) + { + $this->_propDict["allowedGoogleAccountDomains"] = $val; + return $this; + } + /** * Gets the passwordBlockFaceUnlock * Indicates whether or not to block face unlock. @@ -438,6 +467,39 @@ public function setVpnEnableAlwaysOnLockdownMode($val) return $this; } + /** + * Gets the workProfileAccountUse + * Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue. + * + * @return AndroidWorkProfileAccountUse|null The workProfileAccountUse + */ + public function getWorkProfileAccountUse() + { + if (array_key_exists("workProfileAccountUse", $this->_propDict)) { + if (is_a($this->_propDict["workProfileAccountUse"], "\Beta\Microsoft\Graph\Model\AndroidWorkProfileAccountUse") || is_null($this->_propDict["workProfileAccountUse"])) { + return $this->_propDict["workProfileAccountUse"]; + } else { + $this->_propDict["workProfileAccountUse"] = new AndroidWorkProfileAccountUse($this->_propDict["workProfileAccountUse"]); + return $this->_propDict["workProfileAccountUse"]; + } + } + return null; + } + + /** + * Sets the workProfileAccountUse + * Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue. + * + * @param AndroidWorkProfileAccountUse $val The workProfileAccountUse + * + * @return AndroidForWorkGeneralDeviceConfiguration + */ + public function setWorkProfileAccountUse($val) + { + $this->_propDict["workProfileAccountUse"] = $val; + return $this; + } + /** * Gets the workProfileAllowWidgets * Allow widgets from work profile apps. diff --git a/src/Beta/Microsoft/Graph/Model/AndroidWorkProfileAccountUse.php b/src/Beta/Microsoft/Graph/Model/AndroidWorkProfileAccountUse.php new file mode 100644 index 00000000000..6461e54eee6 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/AndroidWorkProfileAccountUse.php @@ -0,0 +1,36 @@ +_propDict)) { + return $this->_propDict["allowedGoogleAccountDomains"]; + } else { + return null; + } + } + + /** + * Sets the allowedGoogleAccountDomains + * Determine domains allow-list for accounts that can be added to work profile. + * + * @param string[] $val The allowedGoogleAccountDomains + * + * @return AndroidWorkProfileGeneralDeviceConfiguration + */ + public function setAllowedGoogleAccountDomains($val) + { + $this->_propDict["allowedGoogleAccountDomains"] = $val; + return $this; + } + /** * Gets the passwordBlockFaceUnlock * Indicates whether or not to block face unlock. @@ -438,6 +467,39 @@ public function setVpnEnableAlwaysOnLockdownMode($val) return $this; } + /** + * Gets the workProfileAccountUse + * Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue. + * + * @return AndroidWorkProfileAccountUse|null The workProfileAccountUse + */ + public function getWorkProfileAccountUse() + { + if (array_key_exists("workProfileAccountUse", $this->_propDict)) { + if (is_a($this->_propDict["workProfileAccountUse"], "\Beta\Microsoft\Graph\Model\AndroidWorkProfileAccountUse") || is_null($this->_propDict["workProfileAccountUse"])) { + return $this->_propDict["workProfileAccountUse"]; + } else { + $this->_propDict["workProfileAccountUse"] = new AndroidWorkProfileAccountUse($this->_propDict["workProfileAccountUse"]); + return $this->_propDict["workProfileAccountUse"]; + } + } + return null; + } + + /** + * Sets the workProfileAccountUse + * Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue. + * + * @param AndroidWorkProfileAccountUse $val The workProfileAccountUse + * + * @return AndroidWorkProfileGeneralDeviceConfiguration + */ + public function setWorkProfileAccountUse($val) + { + $this->_propDict["workProfileAccountUse"] = $val; + return $this; + } + /** * Gets the workProfileAllowAppInstallsFromUnknownSources * Indicates whether to allow installation of apps from unknown sources. diff --git a/src/Beta/Microsoft/Graph/Model/Application.php b/src/Beta/Microsoft/Graph/Model/Application.php index 115394f7db4..b1e4897d624 100644 --- a/src/Beta/Microsoft/Graph/Model/Application.php +++ b/src/Beta/Microsoft/Graph/Model/Application.php @@ -915,7 +915,7 @@ public function setSpa($val) /** * Gets the tags - * Custom strings that can be used to categorize and identify the application. Not nullable.Supports $filter (eq, not, ge, le, startsWith). + * Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here will also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith). * * @return array|null The tags */ @@ -930,7 +930,7 @@ public function getTags() /** * Sets the tags - * Custom strings that can be used to categorize and identify the application. Not nullable.Supports $filter (eq, not, ge, le, startsWith). + * Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here will also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith). * * @param string[] $val The tags * diff --git a/src/Beta/Microsoft/Graph/Model/CallTranscript.php b/src/Beta/Microsoft/Graph/Model/CallTranscript.php index 82a3564112f..4fa149a0bac 100644 --- a/src/Beta/Microsoft/Graph/Model/CallTranscript.php +++ b/src/Beta/Microsoft/Graph/Model/CallTranscript.php @@ -90,4 +90,35 @@ public function setCreatedDateTime($val) return $this; } + /** + * Gets the metadataContent + * + * @return \GuzzleHttp\Psr7\Stream|null The metadataContent + */ + public function getMetadataContent() + { + if (array_key_exists("metadataContent", $this->_propDict)) { + if (is_a($this->_propDict["metadataContent"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["metadataContent"])) { + return $this->_propDict["metadataContent"]; + } else { + $this->_propDict["metadataContent"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["metadataContent"]); + return $this->_propDict["metadataContent"]; + } + } + return null; + } + + /** + * Sets the metadataContent + * + * @param \GuzzleHttp\Psr7\Stream $val The metadataContent + * + * @return CallTranscript + */ + public function setMetadataContent($val) + { + $this->_propDict["metadataContent"] = $val; + return $this; + } + } diff --git a/src/Beta/Microsoft/Graph/Model/ClassificationRequestContentMetaData.php b/src/Beta/Microsoft/Graph/Model/ClassificationRequestContentMetaData.php new file mode 100644 index 00000000000..8c000789283 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/ClassificationRequestContentMetaData.php @@ -0,0 +1,52 @@ +_propDict)) { + return $this->_propDict["sourceId"]; + } else { + return null; + } + } + + /** + * Sets the sourceId + * + * @param string $val The value of the sourceId + * + * @return ClassificationRequestContentMetaData + */ + public function setSourceId($val) + { + $this->_propDict["sourceId"] = $val; + return $this; + } +} diff --git a/src/Beta/Microsoft/Graph/Model/ConditionalAccessUsers.php b/src/Beta/Microsoft/Graph/Model/ConditionalAccessUsers.php index e320fefc632..25f78ba39a7 100644 --- a/src/Beta/Microsoft/Graph/Model/ConditionalAccessUsers.php +++ b/src/Beta/Microsoft/Graph/Model/ConditionalAccessUsers.php @@ -142,7 +142,7 @@ public function setExcludeUsers($val) } /** * Gets the includeGroups - * Group IDs in scope of policy unless explicitly excluded, or All. + * Group IDs in scope of policy unless explicitly excluded. * * @return string|null The includeGroups */ @@ -157,7 +157,7 @@ public function getIncludeGroups() /** * Sets the includeGroups - * Group IDs in scope of policy unless explicitly excluded, or All. + * Group IDs in scope of policy unless explicitly excluded. * * @param string $val The value of the includeGroups * @@ -203,7 +203,7 @@ public function setIncludeGuestsOrExternalUsers($val) } /** * Gets the includeRoles - * Role IDs in scope of policy unless explicitly excluded, or All. + * Role IDs in scope of policy unless explicitly excluded. * * @return string|null The includeRoles */ @@ -218,7 +218,7 @@ public function getIncludeRoles() /** * Sets the includeRoles - * Role IDs in scope of policy unless explicitly excluded, or All. + * Role IDs in scope of policy unless explicitly excluded. * * @param string $val The value of the includeRoles * @@ -231,7 +231,7 @@ public function setIncludeRoles($val) } /** * Gets the includeUsers - * User IDs in scope of policy unless explicitly excluded, or None or All or GuestsOrExternalUsers. + * User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers. * * @return string|null The includeUsers */ @@ -246,7 +246,7 @@ public function getIncludeUsers() /** * Sets the includeUsers - * User IDs in scope of policy unless explicitly excluded, or None or All or GuestsOrExternalUsers. + * User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers. * * @param string $val The value of the includeUsers * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationChoiceSettingCollectionDefinition.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationChoiceSettingCollectionDefinition.php index 1dd8ea6b20b..772f407516e 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationChoiceSettingCollectionDefinition.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationChoiceSettingCollectionDefinition.php @@ -26,7 +26,7 @@ class DeviceManagementConfigurationChoiceSettingCollectionDefinition extends Dev { /** * Gets the maximumCount - * Maximum number of choices in the collection. Valid values 1 to 100 + * Maximum number of choices in the collection * * @return int|null The maximumCount */ @@ -41,7 +41,7 @@ public function getMaximumCount() /** * Sets the maximumCount - * Maximum number of choices in the collection. Valid values 1 to 100 + * Maximum number of choices in the collection * * @param int $val The maximumCount * @@ -55,7 +55,7 @@ public function setMaximumCount($val) /** * Gets the minimumCount - * Minimum number of choices in the collection. Valid values 1 to 100 + * Minimum number of choices in the collection * * @return int|null The minimumCount */ @@ -70,7 +70,7 @@ public function getMinimumCount() /** * Sets the minimumCount - * Minimum number of choices in the collection. Valid values 1 to 100 + * Minimum number of choices in the collection * * @param int $val The minimumCount * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingGroupCollectionDefinition.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSettingGroupCollectionDefinition.php index 84d921c2cdd..10e62e20a65 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. Valid values 1 to 100 + * Maximum number of setting group count in the collection * * @return int|null The maximumCount */ @@ -41,7 +41,7 @@ public function getMaximumCount() /** * Sets the maximumCount - * Maximum number of setting group count in the collection. Valid values 1 to 100 + * Maximum number of setting group count in the collection * * @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. Valid values 1 to 100 + * Minimum number of setting group count in the collection * * @return int|null The minimumCount */ @@ -70,7 +70,7 @@ public function getMinimumCount() /** * Sets the minimumCount - * Minimum number of setting group count in the collection. Valid values 1 to 100 + * Minimum number of setting group count in the collection * * @param int $val The minimumCount * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationSimpleSettingCollectionDefinition.php index 60995c914c7..68ed03d5cbc 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. Valid values 1 to 100 + * Maximum number of simple settings in the collection * * @return int|null The maximumCount */ @@ -41,7 +41,7 @@ public function getMaximumCount() /** * Sets the maximumCount - * Maximum number of simple settings in the collection. Valid values 1 to 100 + * Maximum number of simple settings in the collection * * @param int $val The maximumCount * @@ -55,7 +55,7 @@ public function setMaximumCount($val) /** * Gets the minimumCount - * Minimum number of simple settings in the collection. Valid values 1 to 100 + * Minimum number of simple settings in the collection * * @return int|null The minimumCount */ @@ -70,7 +70,7 @@ public function getMinimumCount() /** * Sets the minimumCount - * Minimum number of simple settings in the collection. Valid values 1 to 100 + * Minimum number of simple settings in the collection * * @param int $val The minimumCount * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationStringSettingValueDefinition.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationStringSettingValueDefinition.php index 323fd5206ff..4cbb970141f 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationStringSettingValueDefinition.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementConfigurationStringSettingValueDefinition.php @@ -54,7 +54,7 @@ public function setFileTypes($val) /** * Gets the format - * Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. + * Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. * * @return DeviceManagementConfigurationStringFormat|null The format */ @@ -73,7 +73,7 @@ public function getFormat() /** * Sets the format - * Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. + * Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. * * @param DeviceManagementConfigurationStringFormat $val The value to assign to the format * @@ -142,7 +142,7 @@ public function setIsSecret($val) } /** * Gets the maximumLength - * Maximum length of string + * Maximum length of string. Valid values 0 to 87516 * * @return int|null The maximumLength */ @@ -157,7 +157,7 @@ public function getMaximumLength() /** * Sets the maximumLength - * Maximum length of string + * Maximum length of string. Valid values 0 to 87516 * * @param int $val The value of the maximumLength * @@ -170,7 +170,7 @@ public function setMaximumLength($val) } /** * Gets the minimumLength - * Minimum length of string + * Minimum length of string. Valid values 0 to 87516 * * @return int|null The minimumLength */ @@ -185,7 +185,7 @@ public function getMinimumLength() /** * Sets the minimumLength - * Minimum length of string + * Minimum length of string. Valid values 0 to 87516 * * @param int $val The value of the minimumLength * diff --git a/src/Beta/Microsoft/Graph/Model/DeviceManagementIntent.php b/src/Beta/Microsoft/Graph/Model/DeviceManagementIntent.php index 0dc8e86eea2..3755e54aa2c 100644 --- a/src/Beta/Microsoft/Graph/Model/DeviceManagementIntent.php +++ b/src/Beta/Microsoft/Graph/Model/DeviceManagementIntent.php @@ -111,6 +111,35 @@ public function setIsAssigned($val) return $this; } + /** + * Gets the isMigratingToConfigurationPolicy + * Signifies whether or not the intent is being migrated to the configurationPolicies endpoint + * + * @return bool|null The isMigratingToConfigurationPolicy + */ + public function getIsMigratingToConfigurationPolicy() + { + if (array_key_exists("isMigratingToConfigurationPolicy", $this->_propDict)) { + return $this->_propDict["isMigratingToConfigurationPolicy"]; + } else { + return null; + } + } + + /** + * Sets the isMigratingToConfigurationPolicy + * Signifies whether or not the intent is being migrated to the configurationPolicies endpoint + * + * @param bool $val The isMigratingToConfigurationPolicy + * + * @return DeviceManagementIntent + */ + public function setIsMigratingToConfigurationPolicy($val) + { + $this->_propDict["isMigratingToConfigurationPolicy"] = boolval($val); + return $this; + } + /** * Gets the lastModifiedDateTime * When the intent was last modified diff --git a/src/Beta/Microsoft/Graph/Model/DevicePlatformType.php b/src/Beta/Microsoft/Graph/Model/DevicePlatformType.php index bfa7189caec..f116e0103de 100644 --- a/src/Beta/Microsoft/Graph/Model/DevicePlatformType.php +++ b/src/Beta/Microsoft/Graph/Model/DevicePlatformType.php @@ -39,4 +39,7 @@ class DevicePlatformType extends Enum const ANDROID_WORK_PROFILE = "androidWorkProfile"; const UNKNOWN = "unknown"; const ANDROID_AOSP = "androidAOSP"; + const ANDROID_MOBILE_APPLICATION_MANAGEMENT = "androidMobileApplicationManagement"; + const I_OS_MOBILE_APPLICATION_MANAGEMENT = "iOSMobileApplicationManagement"; + const UNKNOWN_FUTURE_VALUE = "unknownFutureValue"; } diff --git a/src/Beta/Microsoft/Graph/Model/Directory.php b/src/Beta/Microsoft/Graph/Model/Directory.php index 4776a8d80b2..e2b9826c7bb 100644 --- a/src/Beta/Microsoft/Graph/Model/Directory.php +++ b/src/Beta/Microsoft/Graph/Model/Directory.php @@ -233,6 +233,7 @@ public function setFederationConfigurations($val) /** * Gets the inboundSharedUserProfiles + * A collection of external Azure AD users whose profile data has been shared with the Azure AD tenant. Nullable. * * @return array|null The inboundSharedUserProfiles */ @@ -247,6 +248,7 @@ public function getInboundSharedUserProfiles() /** * Sets the inboundSharedUserProfiles + * A collection of external Azure AD users whose profile data has been shared with the Azure AD tenant. Nullable. * * @param InboundSharedUserProfile[] $val The inboundSharedUserProfiles * diff --git a/src/Beta/Microsoft/Graph/Model/EmailSettings.php b/src/Beta/Microsoft/Graph/Model/EmailSettings.php index 6d65c5da697..ccefd6d341a 100644 --- a/src/Beta/Microsoft/Graph/Model/EmailSettings.php +++ b/src/Beta/Microsoft/Graph/Model/EmailSettings.php @@ -25,7 +25,7 @@ class EmailSettings extends Entity { /** * Gets the senderDomain - * Specifies the domain that should be used when sending email notifications. This domain must be verified in order to be used. + * Specifies the domain that should be used when sending email notifications. This domain must be verified in order to be used. We recommend that you use a domain that has the appropriate DNS records to facilitate email validation, like SPF, DKIM, DMARC, and MX, because this then complies with the RFC compliance for sending and receiving email. For details, see Learn more about Exchange Online Email Routing. * * @return string|null The senderDomain */ @@ -40,7 +40,7 @@ public function getSenderDomain() /** * Sets the senderDomain - * Specifies the domain that should be used when sending email notifications. This domain must be verified in order to be used. + * Specifies the domain that should be used when sending email notifications. This domain must be verified in order to be used. We recommend that you use a domain that has the appropriate DNS records to facilitate email validation, like SPF, DKIM, DMARC, and MX, because this then complies with the RFC compliance for sending and receiving email. For details, see Learn more about Exchange Online Email Routing. * * @param string $val The value of the senderDomain * diff --git a/src/Beta/Microsoft/Graph/Model/ExtensionProperty.php b/src/Beta/Microsoft/Graph/Model/ExtensionProperty.php index bed04f51eae..ad1ed6247e2 100644 --- a/src/Beta/Microsoft/Graph/Model/ExtensionProperty.php +++ b/src/Beta/Microsoft/Graph/Model/ExtensionProperty.php @@ -82,6 +82,33 @@ public function setDataType($val) return $this; } + /** + * Gets the isMultiValued + * + * @return bool|null The isMultiValued + */ + public function getIsMultiValued() + { + if (array_key_exists("isMultiValued", $this->_propDict)) { + return $this->_propDict["isMultiValued"]; + } else { + return null; + } + } + + /** + * Sets the isMultiValued + * + * @param bool $val The isMultiValued + * + * @return ExtensionProperty + */ + public function setIsMultiValued($val) + { + $this->_propDict["isMultiValued"] = boolval($val); + return $this; + } + /** * Gets the isSyncedFromOnPremises * Indicates if this extension property was synced from on-premises active directory using Azure AD Connect. Read-only. diff --git a/src/Beta/Microsoft/Graph/Model/Identity.php b/src/Beta/Microsoft/Graph/Model/Identity.php index 03a9de8a01b..79a5705bc43 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. This property is read-only. + * 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. * * @return string|null The displayName */ @@ -40,7 +40,7 @@ public function getDisplayName() /** * Sets the displayName - * The display name of the identity. This property is read-only. + * 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. * * @param string $val The value of the displayName * @@ -53,7 +53,7 @@ public function setDisplayName($val) } /** * Gets the id - * The identifier of the identity. This property is read-only. + * Unique identifier for the identity. * * @return string|null The id */ @@ -68,7 +68,7 @@ public function getId() /** * Sets the id - * The identifier of the identity. This property is read-only. + * Unique identifier for the identity. * * @param string $val The value of the id * diff --git a/src/Beta/Microsoft/Graph/Model/InboundSharedUserProfile.php b/src/Beta/Microsoft/Graph/Model/InboundSharedUserProfile.php index d3dcafc70d9..e16d7109d44 100644 --- a/src/Beta/Microsoft/Graph/Model/InboundSharedUserProfile.php +++ b/src/Beta/Microsoft/Graph/Model/InboundSharedUserProfile.php @@ -57,6 +57,7 @@ public function getProperties() /** * Gets the displayName + * The name displayed in the address book for teh user at the time when the sharing record was created. Read-only. * * @return string|null The displayName */ @@ -71,6 +72,7 @@ public function getDisplayName() /** * Sets the displayName + * The name displayed in the address book for teh user at the time when the sharing record was created. Read-only. * * @param string $val The displayName * @@ -84,6 +86,7 @@ public function setDisplayName($val) /** * Gets the homeTenantId + * The home tenant id of the external user. Read-only. * * @return string|null The homeTenantId */ @@ -98,6 +101,7 @@ public function getHomeTenantId() /** * Sets the homeTenantId + * The home tenant id of the external user. Read-only. * * @param string $val The homeTenantId * @@ -111,6 +115,7 @@ public function setHomeTenantId($val) /** * Gets the userId + * The object id of the external user. Read-only. * * @return string|null The userId */ @@ -125,6 +130,7 @@ public function getUserId() /** * Sets the userId + * The object id of the external user. Read-only. * * @param string $val The userId * @@ -138,6 +144,7 @@ public function setUserId($val) /** * Gets the userPrincipalName + * The user principal name (UPN) of the external user. Read-only. * * @return string|null The userPrincipalName */ @@ -152,6 +159,7 @@ public function getUserPrincipalName() /** * Sets the userPrincipalName + * The user principal name (UPN) of the external user. Read-only. * * @param string $val The userPrincipalName * diff --git a/src/Beta/Microsoft/Graph/Model/IosLobAppAssignmentSettings.php b/src/Beta/Microsoft/Graph/Model/IosLobAppAssignmentSettings.php index 11ae44d89a1..e9899ff9340 100644 --- a/src/Beta/Microsoft/Graph/Model/IosLobAppAssignmentSettings.php +++ b/src/Beta/Microsoft/Graph/Model/IosLobAppAssignmentSettings.php @@ -63,6 +63,34 @@ public function setIsRemovable($val) return $this; } /** + * Gets the preventManagedAppBackup + * When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. + * + * @return bool|null The preventManagedAppBackup + */ + public function getPreventManagedAppBackup() + { + if (array_key_exists("preventManagedAppBackup", $this->_propDict)) { + return $this->_propDict["preventManagedAppBackup"]; + } else { + return null; + } + } + + /** + * Sets the preventManagedAppBackup + * When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. + * + * @param bool $val The value of the preventManagedAppBackup + * + * @return IosLobAppAssignmentSettings + */ + public function setPreventManagedAppBackup($val) + { + $this->_propDict["preventManagedAppBackup"] = $val; + return $this; + } + /** * Gets the uninstallOnDeviceRemoval * Whether or not to uninstall the app when device is removed from Intune. * diff --git a/src/Beta/Microsoft/Graph/Model/IosStoreAppAssignmentSettings.php b/src/Beta/Microsoft/Graph/Model/IosStoreAppAssignmentSettings.php index 932c4267a56..ac64ce93a1b 100644 --- a/src/Beta/Microsoft/Graph/Model/IosStoreAppAssignmentSettings.php +++ b/src/Beta/Microsoft/Graph/Model/IosStoreAppAssignmentSettings.php @@ -63,6 +63,34 @@ public function setIsRemovable($val) return $this; } /** + * Gets the preventManagedAppBackup + * When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. + * + * @return bool|null The preventManagedAppBackup + */ + public function getPreventManagedAppBackup() + { + if (array_key_exists("preventManagedAppBackup", $this->_propDict)) { + return $this->_propDict["preventManagedAppBackup"]; + } else { + return null; + } + } + + /** + * Sets the preventManagedAppBackup + * When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. + * + * @param bool $val The value of the preventManagedAppBackup + * + * @return IosStoreAppAssignmentSettings + */ + public function setPreventManagedAppBackup($val) + { + $this->_propDict["preventManagedAppBackup"] = $val; + return $this; + } + /** * Gets the uninstallOnDeviceRemoval * Whether or not to uninstall the app when device is removed from Intune. * diff --git a/src/Beta/Microsoft/Graph/Model/IosVppAppAssignmentSettings.php b/src/Beta/Microsoft/Graph/Model/IosVppAppAssignmentSettings.php index 50f7f846aee..c469624b7e3 100644 --- a/src/Beta/Microsoft/Graph/Model/IosVppAppAssignmentSettings.php +++ b/src/Beta/Microsoft/Graph/Model/IosVppAppAssignmentSettings.php @@ -63,6 +63,62 @@ public function setIsRemovable($val) return $this; } /** + * Gets the preventAutoAppUpdate + * When TRUE, indicates that the app should not be automatically updated with the latest version from Apple app store. When FALSE, indicates that the app may be auto updated. By default, this property is set to null which internally is treated as FALSE. + * + * @return bool|null The preventAutoAppUpdate + */ + public function getPreventAutoAppUpdate() + { + if (array_key_exists("preventAutoAppUpdate", $this->_propDict)) { + return $this->_propDict["preventAutoAppUpdate"]; + } else { + return null; + } + } + + /** + * Sets the preventAutoAppUpdate + * When TRUE, indicates that the app should not be automatically updated with the latest version from Apple app store. When FALSE, indicates that the app may be auto updated. By default, this property is set to null which internally is treated as FALSE. + * + * @param bool $val The value of the preventAutoAppUpdate + * + * @return IosVppAppAssignmentSettings + */ + public function setPreventAutoAppUpdate($val) + { + $this->_propDict["preventAutoAppUpdate"] = $val; + return $this; + } + /** + * Gets the preventManagedAppBackup + * When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. + * + * @return bool|null The preventManagedAppBackup + */ + public function getPreventManagedAppBackup() + { + if (array_key_exists("preventManagedAppBackup", $this->_propDict)) { + return $this->_propDict["preventManagedAppBackup"]; + } else { + return null; + } + } + + /** + * Sets the preventManagedAppBackup + * When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. + * + * @param bool $val The value of the preventManagedAppBackup + * + * @return IosVppAppAssignmentSettings + */ + public function setPreventManagedAppBackup($val) + { + $this->_propDict["preventManagedAppBackup"] = $val; + return $this; + } + /** * Gets the uninstallOnDeviceRemoval * Whether or not to uninstall the app when device is removed from Intune. * diff --git a/src/Beta/Microsoft/Graph/Model/KeyValue.php b/src/Beta/Microsoft/Graph/Model/KeyValue.php index 2dfdabba03a..7dfa6735406 100644 --- a/src/Beta/Microsoft/Graph/Model/KeyValue.php +++ b/src/Beta/Microsoft/Graph/Model/KeyValue.php @@ -25,7 +25,7 @@ class KeyValue extends Entity { /** * Gets the key - * Key. + * Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present. * * @return string|null The key */ @@ -40,7 +40,7 @@ public function getKey() /** * Sets the key - * Key. + * Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present. * * @param string $val The value of the key * @@ -53,7 +53,7 @@ public function setKey($val) } /** * Gets the value - * Value. + * Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false. * * @return string|null The value */ @@ -68,7 +68,7 @@ public function getValue() /** * Sets the value - * Value. + * Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false. * * @param string $val The value of the value * diff --git a/src/Beta/Microsoft/Graph/Model/MacOSGeneralDeviceConfiguration.php b/src/Beta/Microsoft/Graph/Model/MacOSGeneralDeviceConfiguration.php index c05fd5d3686..990a766e8d6 100644 --- a/src/Beta/Microsoft/Graph/Model/MacOSGeneralDeviceConfiguration.php +++ b/src/Beta/Microsoft/Graph/Model/MacOSGeneralDeviceConfiguration.php @@ -24,6 +24,35 @@ */ class MacOSGeneralDeviceConfiguration extends DeviceConfiguration { + /** + * Gets the activationLockWhenSupervisedAllowed + * When TRUE, activation lock is allowed when the devices is in the supervised mode. When FALSE, activation lock is not allowed. Default is false. + * + * @return bool|null The activationLockWhenSupervisedAllowed + */ + public function getActivationLockWhenSupervisedAllowed() + { + if (array_key_exists("activationLockWhenSupervisedAllowed", $this->_propDict)) { + return $this->_propDict["activationLockWhenSupervisedAllowed"]; + } else { + return null; + } + } + + /** + * Sets the activationLockWhenSupervisedAllowed + * When TRUE, activation lock is allowed when the devices is in the supervised mode. When FALSE, activation lock is not allowed. Default is false. + * + * @param bool $val The activationLockWhenSupervisedAllowed + * + * @return MacOSGeneralDeviceConfiguration + */ + public function setActivationLockWhenSupervisedAllowed($val) + { + $this->_propDict["activationLockWhenSupervisedAllowed"] = boolval($val); + return $this; + } + /** * Gets the addingGameCenterFriendsBlocked * Yes prevents users from adding friends to Game Center. Available for devices running macOS versions 10.13 and later. diff --git a/src/Beta/Microsoft/Graph/Model/MacOSLobApp.php b/src/Beta/Microsoft/Graph/Model/MacOSLobApp.php index fd80ba938b3..64b2683ff9b 100644 --- a/src/Beta/Microsoft/Graph/Model/MacOSLobApp.php +++ b/src/Beta/Microsoft/Graph/Model/MacOSLobApp.php @@ -112,35 +112,6 @@ public function setChildApps($val) return $this; } - /** - * Gets the identityVersion - * The identity version. This property is being deprecated in 2211(November 2022). - * - * @return string|null The identityVersion - */ - public function getIdentityVersion() - { - if (array_key_exists("identityVersion", $this->_propDict)) { - return $this->_propDict["identityVersion"]; - } else { - return null; - } - } - - /** - * Sets the identityVersion - * The identity version. This property is being deprecated in 2211(November 2022). - * - * @param string $val The identityVersion - * - * @return MacOSLobApp - */ - public function setIdentityVersion($val) - { - $this->_propDict["identityVersion"] = $val; - return $this; - } - /** * Gets the ignoreVersionDetection * When TRUE, indicates that the app's version will NOT be used to detect if the app is installed on a device. When FALSE, indicates that the app's version will be used to detect if the app is installed on a device. Set this to true for apps that use a self update feature. diff --git a/src/Beta/Microsoft/Graph/Model/MacOSPriority.php b/src/Beta/Microsoft/Graph/Model/MacOSPriority.php new file mode 100644 index 00000000000..eb1799e4355 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/MacOSPriority.php @@ -0,0 +1,35 @@ +_propDict)) { + return $this->_propDict["maxUserDeferralsCount"]; + } else { + return null; + } + } + + /** + * Sets the maxUserDeferralsCount + * The maximum number of times the system allows the user to postpone an update before it’s installed. Supported values: 0 - 366. Valid values 0 to 365 + * + * @param int $val The maxUserDeferralsCount + * + * @return MacOSSoftwareUpdateConfiguration + */ + public function setMaxUserDeferralsCount($val) + { + $this->_propDict["maxUserDeferralsCount"] = intval($val); + return $this; + } + + /** + * Gets the priority + * The scheduling priority for downloading and preparing the requested update. Default: Low. Possible values: Null, Low, High. Possible values are: low, high, unknownFutureValue. + * + * @return MacOSPriority|null The priority + */ + public function getPriority() + { + if (array_key_exists("priority", $this->_propDict)) { + if (is_a($this->_propDict["priority"], "\Beta\Microsoft\Graph\Model\MacOSPriority") || is_null($this->_propDict["priority"])) { + return $this->_propDict["priority"]; + } else { + $this->_propDict["priority"] = new MacOSPriority($this->_propDict["priority"]); + return $this->_propDict["priority"]; + } + } + return null; + } + + /** + * Sets the priority + * The scheduling priority for downloading and preparing the requested update. Default: Low. Possible values: Null, Low, High. Possible values are: low, high, unknownFutureValue. + * + * @param MacOSPriority $val The priority + * + * @return MacOSSoftwareUpdateConfiguration + */ + public function setPriority($val) + { + $this->_propDict["priority"] = $val; + return $this; + } + /** * Gets the updateScheduleType * Update schedule type. Possible values are: alwaysUpdate, updateDuringTimeWindows, updateOutsideOfTimeWindows. diff --git a/src/Beta/Microsoft/Graph/Model/MacOsLobAppAssignmentSettings.php b/src/Beta/Microsoft/Graph/Model/MacOsLobAppAssignmentSettings.php index a8b5c6204b4..d6de277022d 100644 --- a/src/Beta/Microsoft/Graph/Model/MacOsLobAppAssignmentSettings.php +++ b/src/Beta/Microsoft/Graph/Model/MacOsLobAppAssignmentSettings.php @@ -36,7 +36,7 @@ public function __construct($propDict = array()) /** * Gets the uninstallOnDeviceRemoval - * Whether or not to uninstall the app when device is removed from Intune. + * When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. * * @return bool|null The uninstallOnDeviceRemoval */ @@ -51,7 +51,7 @@ public function getUninstallOnDeviceRemoval() /** * Sets the uninstallOnDeviceRemoval - * Whether or not to uninstall the app when device is removed from Intune. + * When TRUE, indicates that the app should be uninstalled when the device is removed from Intune. When FALSE, indicates that the app will not be uninstalled when the device is removed from Intune. * * @param bool $val The value of the uninstallOnDeviceRemoval * diff --git a/src/Beta/Microsoft/Graph/Model/MacOsVppAppAssignmentSettings.php b/src/Beta/Microsoft/Graph/Model/MacOsVppAppAssignmentSettings.php index cf7eb5e8bdf..c2b67515f0a 100644 --- a/src/Beta/Microsoft/Graph/Model/MacOsVppAppAssignmentSettings.php +++ b/src/Beta/Microsoft/Graph/Model/MacOsVppAppAssignmentSettings.php @@ -34,6 +34,62 @@ public function __construct($propDict = array()) $this->setODataType("#microsoft.graph.macOsVppAppAssignmentSettings"); } + /** + * Gets the preventAutoAppUpdate + * When TRUE, indicates that the app should not be automatically updated with the latest version from Apple app store. When FALSE, indicates that the app may be auto updated. By default, this property is set to null which internally is treated as FALSE. + * + * @return bool|null The preventAutoAppUpdate + */ + public function getPreventAutoAppUpdate() + { + if (array_key_exists("preventAutoAppUpdate", $this->_propDict)) { + return $this->_propDict["preventAutoAppUpdate"]; + } else { + return null; + } + } + + /** + * Sets the preventAutoAppUpdate + * When TRUE, indicates that the app should not be automatically updated with the latest version from Apple app store. When FALSE, indicates that the app may be auto updated. By default, this property is set to null which internally is treated as FALSE. + * + * @param bool $val The value of the preventAutoAppUpdate + * + * @return MacOsVppAppAssignmentSettings + */ + public function setPreventAutoAppUpdate($val) + { + $this->_propDict["preventAutoAppUpdate"] = $val; + return $this; + } + /** + * Gets the preventManagedAppBackup + * When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. + * + * @return bool|null The preventManagedAppBackup + */ + public function getPreventManagedAppBackup() + { + if (array_key_exists("preventManagedAppBackup", $this->_propDict)) { + return $this->_propDict["preventManagedAppBackup"]; + } else { + return null; + } + } + + /** + * Sets the preventManagedAppBackup + * When TRUE, indicates that the app should not be backed up to iCloud. When FALSE, indicates that the app may be backed up to iCloud. By default, this property is set to null which internally is treated as FALSE. + * + * @param bool $val The value of the preventManagedAppBackup + * + * @return MacOsVppAppAssignmentSettings + */ + public function setPreventManagedAppBackup($val) + { + $this->_propDict["preventManagedAppBackup"] = $val; + return $this; + } /** * Gets the uninstallOnDeviceRemoval * Whether or not to uninstall the app when device is removed from Intune. diff --git a/src/Beta/Microsoft/Graph/Model/OutboundSharedUserProfile.php b/src/Beta/Microsoft/Graph/Model/OutboundSharedUserProfile.php index f742184e10f..b38f6bfc65b 100644 --- a/src/Beta/Microsoft/Graph/Model/OutboundSharedUserProfile.php +++ b/src/Beta/Microsoft/Graph/Model/OutboundSharedUserProfile.php @@ -57,6 +57,7 @@ public function getProperties() /** * Gets the userId + * The object id of the external user. Read-only. * * @return string|null The userId */ @@ -71,6 +72,7 @@ public function getUserId() /** * Sets the userId + * The object id of the external user. Read-only. * * @param string $val The userId * @@ -85,6 +87,7 @@ public function setUserId($val) /** * Gets the tenants + * The collection of external Azure AD tenants that the user has shared profile data with. Read-only. * * @return array|null The tenants */ @@ -99,6 +102,7 @@ public function getTenants() /** * Sets the tenants + * The collection of external Azure AD tenants that the user has shared profile data with. Read-only. * * @param TenantReference[] $val The tenants * diff --git a/src/Beta/Microsoft/Graph/Model/PlannerRecurrenceSchedule.php b/src/Beta/Microsoft/Graph/Model/PlannerRecurrenceSchedule.php index d0dd60b4278..44f8069788a 100644 --- a/src/Beta/Microsoft/Graph/Model/PlannerRecurrenceSchedule.php +++ b/src/Beta/Microsoft/Graph/Model/PlannerRecurrenceSchedule.php @@ -26,6 +26,7 @@ class PlannerRecurrenceSchedule extends Entity /** * Gets the nextOccurrenceDateTime + * The next date for this schedule. When a new task is instantiated to continue the recurrence series, this date is used for the dueDateTime of the new plannerTask. Auto-generated by the service. 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. Read-only. * * @return \DateTime|null The nextOccurrenceDateTime */ @@ -44,6 +45,7 @@ public function getNextOccurrenceDateTime() /** * Sets the nextOccurrenceDateTime + * The next date for this schedule. When a new task is instantiated to continue the recurrence series, this date is used for the dueDateTime of the new plannerTask. Auto-generated by the service. 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. Read-only. * * @param \DateTime $val The value to assign to the nextOccurrenceDateTime * @@ -57,6 +59,7 @@ public function setNextOccurrenceDateTime($val) /** * Gets the pattern + * The pattern for recurrence. Required. * * @return RecurrencePattern|null The pattern */ @@ -75,6 +78,7 @@ public function getPattern() /** * Sets the pattern + * The pattern for recurrence. Required. * * @param RecurrencePattern $val The value to assign to the pattern * @@ -88,6 +92,7 @@ public function setPattern($val) /** * Gets the patternStartDateTime + * The start date for the recurrence pattern. 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. Required. * * @return \DateTime|null The patternStartDateTime */ @@ -106,6 +111,7 @@ public function getPatternStartDateTime() /** * Sets the patternStartDateTime + * The start date for the recurrence pattern. 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. Required. * * @param \DateTime $val The value to assign to the patternStartDateTime * diff --git a/src/Beta/Microsoft/Graph/Model/PlannerTask.php b/src/Beta/Microsoft/Graph/Model/PlannerTask.php index 5e045c6854b..84f90e473ef 100644 --- a/src/Beta/Microsoft/Graph/Model/PlannerTask.php +++ b/src/Beta/Microsoft/Graph/Model/PlannerTask.php @@ -613,6 +613,7 @@ public function setPriority($val) /** * Gets the recurrence + * Defines active or inactive recurrence for the task. null when the recurrence has never been defined for the task. * * @return PlannerTaskRecurrence|null The recurrence */ @@ -631,6 +632,7 @@ public function getRecurrence() /** * Sets the recurrence + * Defines active or inactive recurrence for the task. null when the recurrence has never been defined for the task. * * @param PlannerTaskRecurrence $val The recurrence * diff --git a/src/Beta/Microsoft/Graph/Model/PlannerTaskRecurrence.php b/src/Beta/Microsoft/Graph/Model/PlannerTaskRecurrence.php index fcf17c3d330..d39b02a6d3c 100644 --- a/src/Beta/Microsoft/Graph/Model/PlannerTaskRecurrence.php +++ b/src/Beta/Microsoft/Graph/Model/PlannerTaskRecurrence.php @@ -25,6 +25,7 @@ class PlannerTaskRecurrence extends Entity { /** * Gets the nextInSeriesTaskId + * The taskId of the next task in this series. This value is assigned at the time the next task in the series is created, and is null prior to that time. * * @return string|null The nextInSeriesTaskId */ @@ -39,6 +40,7 @@ public function getNextInSeriesTaskId() /** * Sets the nextInSeriesTaskId + * The taskId of the next task in this series. This value is assigned at the time the next task in the series is created, and is null prior to that time. * * @param string $val The value of the nextInSeriesTaskId * @@ -51,6 +53,7 @@ public function setNextInSeriesTaskId($val) } /** * Gets the occurrenceId + * The 1-based index of this task within the recurrence series. The first task in a series has the value 1, the next task in the series has the value 2, and so on. * * @return int|null The occurrenceId */ @@ -65,6 +68,7 @@ public function getOccurrenceId() /** * Sets the occurrenceId + * The 1-based index of this task within the recurrence series. The first task in a series has the value 1, the next task in the series has the value 2, and so on. * * @param int $val The value of the occurrenceId * @@ -77,6 +81,7 @@ public function setOccurrenceId($val) } /** * Gets the previousInSeriesTaskId + * The taskId of the previous task in this series. null for the first task in a series since it has no predecessor. All subsequent tasks in the series have a value that corresponds to their predecessors. * * @return string|null The previousInSeriesTaskId */ @@ -91,6 +96,7 @@ public function getPreviousInSeriesTaskId() /** * Sets the previousInSeriesTaskId + * The taskId of the previous task in this series. null for the first task in a series since it has no predecessor. All subsequent tasks in the series have a value that corresponds to their predecessors. * * @param string $val The value of the previousInSeriesTaskId * @@ -104,6 +110,7 @@ public function setPreviousInSeriesTaskId($val) /** * Gets the recurrenceStartDateTime + * The date and time when this recurrence series begin. For the first task in a series (occurrenceId = 1) this value is copied from schedule.patternStartDateTime. For subsequent tasks in the series (occurrenceId >= 2) this value is copied from the previous task and never changes; it preserves the start date of the recurring series. 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 recurrenceStartDateTime */ @@ -122,6 +129,7 @@ public function getRecurrenceStartDateTime() /** * Sets the recurrenceStartDateTime + * The date and time when this recurrence series begin. For the first task in a series (occurrenceId = 1) this value is copied from schedule.patternStartDateTime. For subsequent tasks in the series (occurrenceId >= 2) this value is copied from the previous task and never changes; it preserves the start date of the recurring series. 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 value to assign to the recurrenceStartDateTime * @@ -135,6 +143,7 @@ public function setRecurrenceStartDateTime($val) /** * Gets the schedule + * The schedule for recurrence. Clients define and edit recurrence by specifying the schedule. If nextInSeriesTaskId isn't assigned, clients may terminate the series by assigning null to this property. * * @return PlannerRecurrenceSchedule|null The schedule */ @@ -153,6 +162,7 @@ public function getSchedule() /** * Sets the schedule + * The schedule for recurrence. Clients define and edit recurrence by specifying the schedule. If nextInSeriesTaskId isn't assigned, clients may terminate the series by assigning null to this property. * * @param PlannerRecurrenceSchedule $val The value to assign to the schedule * @@ -165,6 +175,7 @@ public function setSchedule($val) } /** * Gets the seriesId + * The recurrence series this task belongs to. A GUID-based value that serves as the unique identifier for a series. * * @return string|null The seriesId */ @@ -179,6 +190,7 @@ public function getSeriesId() /** * Sets the seriesId + * The recurrence series this task belongs to. A GUID-based value that serves as the unique identifier for a series. * * @param string $val The value of the seriesId * diff --git a/src/Beta/Microsoft/Graph/Model/ServicePrincipal.php b/src/Beta/Microsoft/Graph/Model/ServicePrincipal.php index eaef9d81b56..acb5f1dd19f 100644 --- a/src/Beta/Microsoft/Graph/Model/ServicePrincipal.php +++ b/src/Beta/Microsoft/Graph/Model/ServicePrincipal.php @@ -1066,7 +1066,7 @@ public function setSignInAudience($val) /** * Gets the tags - * Custom strings that can be used to categorize and identify the service principal. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Custom strings that can be used to categorize and identify the service principal. Not nullable. The value is the union of strings set here and on the associated application entity's tags property.Supports $filter (eq, not, ge, le, startsWith). * * @return array|null The tags */ @@ -1081,7 +1081,7 @@ public function getTags() /** * Sets the tags - * Custom strings that can be used to categorize and identify the service principal. Not nullable. Supports $filter (eq, not, ge, le, startsWith). + * Custom strings that can be used to categorize and identify the service principal. Not nullable. The value is the union of strings set here and on the associated application entity's tags property.Supports $filter (eq, not, ge, le, startsWith). * * @param string[] $val The tags * diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppAuthorization.php b/src/Beta/Microsoft/Graph/Model/TeamsAppAuthorization.php index 6c149a3d569..8f6fa9970f2 100644 --- a/src/Beta/Microsoft/Graph/Model/TeamsAppAuthorization.php +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppAuthorization.php @@ -26,6 +26,7 @@ class TeamsAppAuthorization extends Entity /** * Gets the requiredPermissionSet + * Set of permissions required by the teamsApp. * * @return TeamsAppPermissionSet|null The requiredPermissionSet */ @@ -44,6 +45,7 @@ public function getRequiredPermissionSet() /** * Sets the requiredPermissionSet + * Set of permissions required by the teamsApp. * * @param TeamsAppPermissionSet $val The value to assign to the requiredPermissionSet * diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppDefinition.php b/src/Beta/Microsoft/Graph/Model/TeamsAppDefinition.php index 5ec7aa620cc..015fe4117a3 100644 --- a/src/Beta/Microsoft/Graph/Model/TeamsAppDefinition.php +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppDefinition.php @@ -59,6 +59,7 @@ public function setAllowedInstallationScopes($val) /** * Gets the authorization + * Authorization requirements specified in the Teams app manifest. * * @return TeamsAppAuthorization|null The authorization */ @@ -77,6 +78,7 @@ public function getAuthorization() /** * Sets the authorization + * Authorization requirements specified in the Teams app manifest. * * @param TeamsAppAuthorization $val The authorization * diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppInstallation.php b/src/Beta/Microsoft/Graph/Model/TeamsAppInstallation.php index f11c148cc02..60bb45f256f 100644 --- a/src/Beta/Microsoft/Graph/Model/TeamsAppInstallation.php +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppInstallation.php @@ -26,6 +26,7 @@ class TeamsAppInstallation extends Entity { /** * Gets the consentedPermissionSet + * The set of resource-specific permissions consented to while installing or upgrading the teamsApp. * * @return TeamsAppPermissionSet|null The consentedPermissionSet */ @@ -44,6 +45,7 @@ public function getConsentedPermissionSet() /** * Sets the consentedPermissionSet + * The set of resource-specific permissions consented to while installing or upgrading the teamsApp. * * @param TeamsAppPermissionSet $val The consentedPermissionSet * diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppPermissionSet.php b/src/Beta/Microsoft/Graph/Model/TeamsAppPermissionSet.php index 8fc69a1e1ce..224d0aa1de5 100644 --- a/src/Beta/Microsoft/Graph/Model/TeamsAppPermissionSet.php +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppPermissionSet.php @@ -26,6 +26,7 @@ class TeamsAppPermissionSet extends Entity /** * Gets the resourceSpecificPermissions + * A collection of resource-specific permissions. * * @return TeamsAppResourceSpecificPermission|null The resourceSpecificPermissions */ @@ -44,6 +45,7 @@ public function getResourceSpecificPermissions() /** * Sets the resourceSpecificPermissions + * A collection of resource-specific permissions. * * @param TeamsAppResourceSpecificPermission $val The value to assign to the resourceSpecificPermissions * diff --git a/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermission.php b/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermission.php index 816fcd65547..1ff6f9dc6dd 100644 --- a/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermission.php +++ b/src/Beta/Microsoft/Graph/Model/TeamsAppResourceSpecificPermission.php @@ -26,6 +26,7 @@ class TeamsAppResourceSpecificPermission extends Entity /** * Gets the permissionType + * The type of resource-specific permission. * * @return TeamsAppResourceSpecificPermissionType|null The permissionType */ @@ -44,6 +45,7 @@ public function getPermissionType() /** * Sets the permissionType + * The type of resource-specific permission. * * @param TeamsAppResourceSpecificPermissionType $val The value to assign to the permissionType * @@ -56,6 +58,7 @@ public function setPermissionType($val) } /** * Gets the permissionValue + * The name of the resource-specific permission. * * @return string|null The permissionValue */ @@ -70,6 +73,7 @@ public function getPermissionValue() /** * Sets the permissionValue + * The name of the resource-specific permission. * * @param string $val The value of the permissionValue * diff --git a/src/Beta/Microsoft/Graph/Model/TenantReference.php b/src/Beta/Microsoft/Graph/Model/TenantReference.php index ac3b97233cd..9556afd19ad 100644 --- a/src/Beta/Microsoft/Graph/Model/TenantReference.php +++ b/src/Beta/Microsoft/Graph/Model/TenantReference.php @@ -57,6 +57,7 @@ public function getProperties() /** * Gets the tenantId + * The identifier of the Azure AD tenant. Read-only. Key. * * @return string|null The tenantId */ @@ -71,6 +72,7 @@ public function getTenantId() /** * Sets the tenantId + * The identifier of the Azure AD tenant. Read-only. Key. * * @param string $val The tenantId * diff --git a/src/Beta/Microsoft/Graph/Model/TextClassificationRequest.php b/src/Beta/Microsoft/Graph/Model/TextClassificationRequest.php index 80f38e6f458..5712f56d8ee 100644 --- a/src/Beta/Microsoft/Graph/Model/TextClassificationRequest.php +++ b/src/Beta/Microsoft/Graph/Model/TextClassificationRequest.php @@ -24,6 +24,37 @@ */ class TextClassificationRequest extends Entity { + /** + * Gets the contentMetaData + * + * @return ClassificationRequestContentMetaData|null The contentMetaData + */ + public function getContentMetaData() + { + if (array_key_exists("contentMetaData", $this->_propDict)) { + if (is_a($this->_propDict["contentMetaData"], "\Beta\Microsoft\Graph\Model\ClassificationRequestContentMetaData") || is_null($this->_propDict["contentMetaData"])) { + return $this->_propDict["contentMetaData"]; + } else { + $this->_propDict["contentMetaData"] = new ClassificationRequestContentMetaData($this->_propDict["contentMetaData"]); + return $this->_propDict["contentMetaData"]; + } + } + return null; + } + + /** + * Sets the contentMetaData + * + * @param ClassificationRequestContentMetaData $val The contentMetaData + * + * @return TextClassificationRequest + */ + public function setContentMetaData($val) + { + $this->_propDict["contentMetaData"] = $val; + return $this; + } + /** * Gets the fileExtension * diff --git a/src/Beta/Microsoft/Graph/Model/VpnTrafficDirection.php b/src/Beta/Microsoft/Graph/Model/VpnTrafficDirection.php new file mode 100644 index 00000000000..e564f115f4d --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/VpnTrafficDirection.php @@ -0,0 +1,35 @@ +_propDict["routingPolicyType"] = $val; return $this; } + + /** + * Gets the vpnTrafficDirection + * Specify whether the rule applies to inbound traffic or outbound traffic. Possible values are: outbound, inbound, unknownFutureValue. + * + * @return VpnTrafficDirection|null The vpnTrafficDirection + */ + public function getVpnTrafficDirection() + { + if (array_key_exists("vpnTrafficDirection", $this->_propDict)) { + if (is_a($this->_propDict["vpnTrafficDirection"], "\Beta\Microsoft\Graph\Model\VpnTrafficDirection") || is_null($this->_propDict["vpnTrafficDirection"])) { + return $this->_propDict["vpnTrafficDirection"]; + } else { + $this->_propDict["vpnTrafficDirection"] = new VpnTrafficDirection($this->_propDict["vpnTrafficDirection"]); + return $this->_propDict["vpnTrafficDirection"]; + } + } + return null; + } + + /** + * Sets the vpnTrafficDirection + * Specify whether the rule applies to inbound traffic or outbound traffic. Possible values are: outbound, inbound, unknownFutureValue. + * + * @param VpnTrafficDirection $val The value to assign to the vpnTrafficDirection + * + * @return VpnTrafficRule The VpnTrafficRule + */ + public function setVpnTrafficDirection($val) + { + $this->_propDict["vpnTrafficDirection"] = $val; + return $this; + } } diff --git a/src/Beta/Microsoft/Graph/Model/WindowsAppXAppAssignmentSettings.php b/src/Beta/Microsoft/Graph/Model/WindowsAppXAppAssignmentSettings.php index 35c1517fa90..c0565626007 100644 --- a/src/Beta/Microsoft/Graph/Model/WindowsAppXAppAssignmentSettings.php +++ b/src/Beta/Microsoft/Graph/Model/WindowsAppXAppAssignmentSettings.php @@ -36,7 +36,7 @@ public function __construct($propDict = array()) /** * Gets the useDeviceContext - * Whether or not to use device execution context for Windows AppX mobile app. + * When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. * * @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 AppX mobile app. + * When TRUE, indicates that device execution context will be used for the AppX mobile app. When FALSE, indicates that user context will be used for the AppX mobile app. By default, this property is set to FALSE. Once this property has been set to TRUE it cannot be changed. * * @param bool $val The value of the useDeviceContext * diff --git a/src/Beta/Microsoft/Graph/Model/WindowsUpdateForBusinessConfiguration.php b/src/Beta/Microsoft/Graph/Model/WindowsUpdateForBusinessConfiguration.php index 0ddc24e28c0..322c2b7a60a 100644 --- a/src/Beta/Microsoft/Graph/Model/WindowsUpdateForBusinessConfiguration.php +++ b/src/Beta/Microsoft/Graph/Model/WindowsUpdateForBusinessConfiguration.php @@ -1132,34 +1132,4 @@ public function setUserWindowsUpdateScanAccess($val) return $this; } - - /** - * Gets the deviceUpdateStates - * Windows update for business configuration device states. This collection can contain a maximum of 500 elements. - * - * @return array|null The deviceUpdateStates - */ - public function getDeviceUpdateStates() - { - if (array_key_exists("deviceUpdateStates", $this->_propDict)) { - return $this->_propDict["deviceUpdateStates"]; - } else { - return null; - } - } - - /** - * Sets the deviceUpdateStates - * Windows update for business configuration device states. This collection can contain a maximum of 500 elements. - * - * @param WindowsUpdateState[] $val The deviceUpdateStates - * - * @return WindowsUpdateForBusinessConfiguration - */ - public function setDeviceUpdateStates($val) - { - $this->_propDict["deviceUpdateStates"] = $val; - return $this; - } - } diff --git a/src/Beta/Microsoft/Graph/Model/ZebraFotaDeploymentStatus.php b/src/Beta/Microsoft/Graph/Model/ZebraFotaDeploymentStatus.php index 6ce1ed60202..a31ff3a1b32 100644 --- a/src/Beta/Microsoft/Graph/Model/ZebraFotaDeploymentStatus.php +++ b/src/Beta/Microsoft/Graph/Model/ZebraFotaDeploymentStatus.php @@ -85,6 +85,39 @@ public function setCompleteOrCanceledDateTime($val) return $this; } + /** + * Gets the errorCode + * An error code indicating the failure reason, when the deployment state is createFailed. Possible values: See zebraFotaErrorCode enum. Possible values are: success, noDevicesFoundInSelectedAadGroups, noIntuneDevicesFoundInSelectedAadGroups, noZebraFotaEnrolledDevicesFoundForCurrentTenant, noZebraFotaEnrolledDevicesFoundInSelectedAadGroups, noZebraFotaDevicesFoundForSelectedDeviceModel, zebraFotaCreateDeploymentRequestFailure, unknownFutureValue. + * + * @return ZebraFotaErrorCode|null The errorCode + */ + public function getErrorCode() + { + if (array_key_exists("errorCode", $this->_propDict)) { + if (is_a($this->_propDict["errorCode"], "\Beta\Microsoft\Graph\Model\ZebraFotaErrorCode") || is_null($this->_propDict["errorCode"])) { + return $this->_propDict["errorCode"]; + } else { + $this->_propDict["errorCode"] = new ZebraFotaErrorCode($this->_propDict["errorCode"]); + return $this->_propDict["errorCode"]; + } + } + return null; + } + + /** + * Sets the errorCode + * An error code indicating the failure reason, when the deployment state is createFailed. Possible values: See zebraFotaErrorCode enum. Possible values are: success, noDevicesFoundInSelectedAadGroups, noIntuneDevicesFoundInSelectedAadGroups, noZebraFotaEnrolledDevicesFoundForCurrentTenant, noZebraFotaEnrolledDevicesFoundInSelectedAadGroups, noZebraFotaDevicesFoundForSelectedDeviceModel, zebraFotaCreateDeploymentRequestFailure, unknownFutureValue. + * + * @param ZebraFotaErrorCode $val The value to assign to the errorCode + * + * @return ZebraFotaDeploymentStatus The ZebraFotaDeploymentStatus + */ + public function setErrorCode($val) + { + $this->_propDict["errorCode"] = $val; + return $this; + } + /** * Gets the lastUpdatedDateTime * Date and time when the deployment status was updated from Zebra diff --git a/src/Beta/Microsoft/Graph/Model/ZebraFotaErrorCode.php b/src/Beta/Microsoft/Graph/Model/ZebraFotaErrorCode.php new file mode 100644 index 00000000000..be4d5fda465 --- /dev/null +++ b/src/Beta/Microsoft/Graph/Model/ZebraFotaErrorCode.php @@ -0,0 +1,40 @@ +