Skip to content

Commit

Permalink
Merge pull request #1323 from microsoftgraph/v1.0/pipelinebuild/123456
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
Ndiritu authored Aug 22, 2023
2 parents 2ab054e + 6160d89 commit 514bfa5
Show file tree
Hide file tree
Showing 10 changed files with 297 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/Core/GraphConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
27 changes: 27 additions & 0 deletions src/Model/ConditionalAccessPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
32 changes: 30 additions & 2 deletions src/Model/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
*/
Expand All @@ -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
*
Expand Down
28 changes: 28 additions & 0 deletions src/Model/OrgContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
6 changes: 4 additions & 2 deletions src/Model/ServicePrincipal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*
Expand Down Expand Up @@ -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
*/
Expand All @@ -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
*
Expand Down
109 changes: 109 additions & 0 deletions src/Model/ServiceProvisioningError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ServiceProvisioningError File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
/**
* ServiceProvisioningError class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class ServiceProvisioningError extends Entity
{

/**
* Gets the createdDateTime
*
* @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
*
* @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;
}
}
63 changes: 63 additions & 0 deletions src/Model/ServiceProvisioningXmlError.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ServiceProvisioningXmlError File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\Model;
/**
* ServiceProvisioningXmlError class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class ServiceProvisioningXmlError extends ServiceProvisioningError
{
/**
* Set the @odata.type since this type is immediately descended from an abstract
* type that is referenced as the type in an entity.
* @param array $propDict The property dictionary
*/
public function __construct($propDict = array())
{
parent::__construct($propDict);
$this->setODataType("#microsoft.graph.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;
}
}
Loading

0 comments on commit 514bfa5

Please sign in to comment.