diff --git a/README.md b/README.md index b22976c0f1f..266db52807f 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.104.0" + "microsoft/microsoft-graph": "^1.105.0" } } ``` diff --git a/src/Core/GraphConstants.php b/src/Core/GraphConstants.php index e2021bcf190..6d79abd5db8 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.104.0"; + const SDK_VERSION = "1.105.0"; // Define error constants const MAX_PAGE_SIZE = 999; diff --git a/src/Model/ConditionalAccessPolicy.php b/src/Model/ConditionalAccessPolicy.php index 872f89c3bbf..3b6ee8456c0 100644 --- a/src/Model/ConditionalAccessPolicy.php +++ b/src/Model/ConditionalAccessPolicy.php @@ -278,4 +278,31 @@ public function setState($val) return $this; } + /** + * Gets the templateId + * + * @return string|null The templateId + */ + public function getTemplateId() + { + if (array_key_exists("templateId", $this->_propDict)) { + return $this->_propDict["templateId"]; + } else { + return null; + } + } + + /** + * Sets the templateId + * + * @param string $val The templateId + * + * @return ConditionalAccessPolicy + */ + public function setTemplateId($val) + { + $this->_propDict["templateId"] = $val; + return $this; + } + } diff --git a/src/Model/Group.php b/src/Model/Group.php index 864418a477d..dab8b693327 100644 --- a/src/Model/Group.php +++ b/src/Model/Group.php @@ -884,6 +884,34 @@ public function setSecurityIdentifier($val) return $this; } + + /** + * Gets the serviceProvisioningErrors + * + * @return array|null The serviceProvisioningErrors + */ + public function getServiceProvisioningErrors() + { + if (array_key_exists("serviceProvisioningErrors", $this->_propDict)) { + return $this->_propDict["serviceProvisioningErrors"]; + } else { + return null; + } + } + + /** + * Sets the serviceProvisioningErrors + * + * @param ServiceProvisioningError[] $val The serviceProvisioningErrors + * + * @return Group + */ + public function setServiceProvisioningErrors($val) + { + $this->_propDict["serviceProvisioningErrors"] = $val; + return $this; + } + /** * Gets the theme * Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange or Red. Returned by default. @@ -915,7 +943,7 @@ public function setTheme($val) /** * Gets the visibility - * Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. See group visibility options to learn more. Returned by default. Nullable. + * Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Returned by default. Nullable. * * @return string|null The visibility */ @@ -930,7 +958,7 @@ public function getVisibility() /** * Sets the visibility - * Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. See group visibility options to learn more. Returned by default. Nullable. + * Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups, when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value is not specified during group creation on Microsoft Graph, a security group is created as Private by default and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Returned by default. Nullable. * * @param string $val The visibility * diff --git a/src/Model/OrgContact.php b/src/Model/OrgContact.php index 3a13e73fe9e..e0928768ccd 100644 --- a/src/Model/OrgContact.php +++ b/src/Model/OrgContact.php @@ -408,6 +408,34 @@ public function setProxyAddresses($val) return $this; } + + /** + * Gets the serviceProvisioningErrors + * + * @return array|null The serviceProvisioningErrors + */ + public function getServiceProvisioningErrors() + { + if (array_key_exists("serviceProvisioningErrors", $this->_propDict)) { + return $this->_propDict["serviceProvisioningErrors"]; + } else { + return null; + } + } + + /** + * Sets the serviceProvisioningErrors + * + * @param ServiceProvisioningError[] $val The serviceProvisioningErrors + * + * @return OrgContact + */ + public function setServiceProvisioningErrors($val) + { + $this->_propDict["serviceProvisioningErrors"] = $val; + return $this; + } + /** * Gets the surname * Last name for this organizational contact. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq for null values). diff --git a/src/Model/ServicePrincipal.php b/src/Model/ServicePrincipal.php index 835281bf19c..4373f910004 100644 --- a/src/Model/ServicePrincipal.php +++ b/src/Model/ServicePrincipal.php @@ -318,6 +318,7 @@ public function setAppRoles($val) /** * Gets the customSecurityAttributes + * An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). Filter value is case sensitive. * * @return CustomSecurityAttributeValue|null The customSecurityAttributes */ @@ -336,6 +337,7 @@ public function getCustomSecurityAttributes() /** * Sets the customSecurityAttributes + * An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). Filter value is case sensitive. * * @param CustomSecurityAttributeValue $val The customSecurityAttributes * @@ -1359,7 +1361,7 @@ public function setOauth2PermissionGrants($val) /** * Gets the ownedObjects - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * * @return array|null The ownedObjects */ @@ -1374,7 +1376,7 @@ public function getOwnedObjects() /** * Sets the ownedObjects - * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). + * Directory objects that are owned by this service principal. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * * @param DirectoryObject[] $val The ownedObjects * diff --git a/src/Model/ServiceProvisioningError.php b/src/Model/ServiceProvisioningError.php new file mode 100644 index 00000000000..9c5be329347 --- /dev/null +++ b/src/Model/ServiceProvisioningError.php @@ -0,0 +1,109 @@ +_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 + * + * @param \DateTime $val The value to assign to the createdDateTime + * + * @return ServiceProvisioningError The ServiceProvisioningError + */ + public function setCreatedDateTime($val) + { + $this->_propDict["createdDateTime"] = $val; + return $this; + } + /** + * Gets the isResolved + * + * @return bool|null The isResolved + */ + public function getIsResolved() + { + if (array_key_exists("isResolved", $this->_propDict)) { + return $this->_propDict["isResolved"]; + } else { + return null; + } + } + + /** + * Sets the isResolved + * + * @param bool $val The value of the isResolved + * + * @return ServiceProvisioningError + */ + public function setIsResolved($val) + { + $this->_propDict["isResolved"] = $val; + return $this; + } + /** + * Gets the serviceInstance + * + * @return string|null The serviceInstance + */ + public function getServiceInstance() + { + if (array_key_exists("serviceInstance", $this->_propDict)) { + return $this->_propDict["serviceInstance"]; + } else { + return null; + } + } + + /** + * Sets the serviceInstance + * + * @param string $val The value of the serviceInstance + * + * @return ServiceProvisioningError + */ + public function setServiceInstance($val) + { + $this->_propDict["serviceInstance"] = $val; + return $this; + } +} diff --git a/src/Model/ServiceProvisioningXmlError.php b/src/Model/ServiceProvisioningXmlError.php new file mode 100644 index 00000000000..570a6a46faa --- /dev/null +++ b/src/Model/ServiceProvisioningXmlError.php @@ -0,0 +1,63 @@ +setODataType("#microsoft.graph.serviceProvisioningXmlError"); + } + + /** + * Gets the errorDetail + * + * @return string|null The errorDetail + */ + public function getErrorDetail() + { + if (array_key_exists("errorDetail", $this->_propDict)) { + return $this->_propDict["errorDetail"]; + } else { + return null; + } + } + + /** + * Sets the errorDetail + * + * @param string $val The value of the errorDetail + * + * @return ServiceProvisioningXmlError + */ + public function setErrorDetail($val) + { + $this->_propDict["errorDetail"] = $val; + return $this; + } +} diff --git a/src/Model/User.php b/src/Model/User.php index f73b6000210..9236b29a396 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -415,6 +415,7 @@ public function setCreationType($val) /** * Gets the customSecurityAttributes + * An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). Filter value is case sensitive. * * @return CustomSecurityAttributeValue|null The customSecurityAttributes */ @@ -433,6 +434,7 @@ public function getCustomSecurityAttributes() /** * Sets the customSecurityAttributes + * An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Returned only on $select. Supports $filter (eq, ne, not, startsWith). Filter value is case sensitive. * * @param CustomSecurityAttributeValue $val The customSecurityAttributes * @@ -1669,6 +1671,34 @@ public function setSecurityIdentifier($val) return $this; } + + /** + * Gets the serviceProvisioningErrors + * + * @return array|null The serviceProvisioningErrors + */ + public function getServiceProvisioningErrors() + { + if (array_key_exists("serviceProvisioningErrors", $this->_propDict)) { + return $this->_propDict["serviceProvisioningErrors"]; + } else { + return null; + } + } + + /** + * Sets the serviceProvisioningErrors + * + * @param ServiceProvisioningError[] $val The serviceProvisioningErrors + * + * @return User + */ + public function setServiceProvisioningErrors($val) + { + $this->_propDict["serviceProvisioningErrors"] = $val; + return $this; + } + /** * Gets the showInAddressList * Do not use in Microsoft Graph. Manage this property through the Microsoft 365 admin center instead. Represents whether the user should be included in the Outlook global address list. See Known issue. @@ -2540,7 +2570,7 @@ public function setOwnedDevices($val) /** * Gets the ownedObjects - * Directory objects that are owned by the user. Read-only. Nullable. Supports $expand. + * Directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * * @return array|null The ownedObjects */ @@ -2555,7 +2585,7 @@ public function getOwnedObjects() /** * Sets the ownedObjects - * Directory objects that are owned by the user. Read-only. Nullable. Supports $expand. + * Directory objects that are owned by the user. Read-only. Nullable. Supports $expand, $select nested in $expand, and $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1). * * @param DirectoryObject[] $val The ownedObjects * diff --git a/src/SecurityNamespace/Model/Alert.php b/src/SecurityNamespace/Model/Alert.php index 06dba31874f..9a8ae30536c 100644 --- a/src/SecurityNamespace/Model/Alert.php +++ b/src/SecurityNamespace/Model/Alert.php @@ -200,7 +200,7 @@ public function setCategory($val) /** * Gets the classification - * Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, benignPositive, unknownFutureValue. + * Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. * * @return AlertClassification|null The classification */ @@ -219,7 +219,7 @@ public function getClassification() /** * Sets the classification - * Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, benignPositive, unknownFutureValue. + * Specifies whether the alert represents a true threat. Possible values are: unknown, falsePositive, truePositive, informationalExpectedActivity, unknownFutureValue. * * @param AlertClassification $val The classification *