Skip to content

Commit

Permalink
Merge pull request #1328 from microsoftgraph/v1.0/pipelinebuild/123864
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
Ndiritu authored Aug 30, 2023
2 parents 141710f + bfea562 commit afec190
Show file tree
Hide file tree
Showing 17 changed files with 827 additions and 10 deletions.
33 changes: 33 additions & 0 deletions src/Model/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,39 @@ public function setServiceManagementReference($val)
return $this;
}

/**
* Gets the servicePrincipalLockConfiguration
* Specifies whether sensitive properties of a multi-tenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default.
*
* @return ServicePrincipalLockConfiguration|null The servicePrincipalLockConfiguration
*/
public function getServicePrincipalLockConfiguration()
{
if (array_key_exists("servicePrincipalLockConfiguration", $this->_propDict)) {
if (is_a($this->_propDict["servicePrincipalLockConfiguration"], "\Microsoft\Graph\Model\ServicePrincipalLockConfiguration") || is_null($this->_propDict["servicePrincipalLockConfiguration"])) {
return $this->_propDict["servicePrincipalLockConfiguration"];
} else {
$this->_propDict["servicePrincipalLockConfiguration"] = new ServicePrincipalLockConfiguration($this->_propDict["servicePrincipalLockConfiguration"]);
return $this->_propDict["servicePrincipalLockConfiguration"];
}
}
return null;
}

/**
* Sets the servicePrincipalLockConfiguration
* Specifies whether sensitive properties of a multi-tenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default.
*
* @param ServicePrincipalLockConfiguration $val The servicePrincipalLockConfiguration
*
* @return Application
*/
public function setServicePrincipalLockConfiguration($val)
{
$this->_propDict["servicePrincipalLockConfiguration"] = $val;
return $this;
}

/**
* Gets the signInAudience
* Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg, AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount (default), and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first. For more information, see Validation differences for signInAudience.Supports $filter (eq, ne, not).
Expand Down
12 changes: 6 additions & 6 deletions src/Model/BaseItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BaseItem extends Entity
{
/**
* Gets the createdBy
* Identity of the user, device, or application which created the item. Read-only.
* Identity of the user, device, or application that created the item. Read-only.
*
* @return IdentitySet|null The createdBy
*/
Expand All @@ -45,7 +45,7 @@ public function getCreatedBy()

/**
* Sets the createdBy
* Identity of the user, device, or application which created the item. Read-only.
* Identity of the user, device, or application that created the item. Read-only.
*
* @param IdentitySet $val The createdBy
*
Expand Down Expand Up @@ -150,7 +150,7 @@ public function setETag($val)

/**
* Gets the lastModifiedBy
* Identity of the user, device, and application which last modified the item. Read-only.
* Identity of the user, device, and application that last modified the item. Read-only.
*
* @return IdentitySet|null The lastModifiedBy
*/
Expand All @@ -169,7 +169,7 @@ public function getLastModifiedBy()

/**
* Sets the lastModifiedBy
* Identity of the user, device, and application which last modified the item. Read-only.
* Identity of the user, device, and application that last modified the item. Read-only.
*
* @param IdentitySet $val The lastModifiedBy
*
Expand Down Expand Up @@ -278,7 +278,7 @@ public function setParentReference($val)

/**
* Gets the webUrl
* URL that displays the resource in the browser. Read-only.
* URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only.
*
* @return string|null The webUrl
*/
Expand All @@ -293,7 +293,7 @@ public function getWebUrl()

/**
* Sets the webUrl
* URL that displays the resource in the browser. Read-only.
* URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only.
*
* @param string $val The webUrl
*
Expand Down
2 changes: 2 additions & 0 deletions src/Model/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ public function setMessages($val)

/**
* Gets the permissionGrants
* A collection of permissions granted to apps for the chat.
*
* @return array|null The permissionGrants
*/
Expand All @@ -416,6 +417,7 @@ public function getPermissionGrants()

/**
* Sets the permissionGrants
* A collection of permissions granted to apps for the chat.
*
* @param ResourceSpecificPermissionGrant[] $val The permissionGrants
*
Expand Down
120 changes: 120 additions & 0 deletions src/Model/CommentAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CommentAction 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;
/**
* CommentAction 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 CommentAction extends Entity
{
/**
* Gets the isReply
* If true, this activity was a reply to an existing comment thread.
*
* @return bool|null The isReply
*/
public function getIsReply()
{
if (array_key_exists("isReply", $this->_propDict)) {
return $this->_propDict["isReply"];
} else {
return null;
}
}

/**
* Sets the isReply
* If true, this activity was a reply to an existing comment thread.
*
* @param bool $val The value of the isReply
*
* @return CommentAction
*/
public function setIsReply($val)
{
$this->_propDict["isReply"] = $val;
return $this;
}

/**
* Gets the parentAuthor
* The identity of the user who started the comment thread.
*
* @return IdentitySet|null The parentAuthor
*/
public function getParentAuthor()
{
if (array_key_exists("parentAuthor", $this->_propDict)) {
if (is_a($this->_propDict["parentAuthor"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["parentAuthor"])) {
return $this->_propDict["parentAuthor"];
} else {
$this->_propDict["parentAuthor"] = new IdentitySet($this->_propDict["parentAuthor"]);
return $this->_propDict["parentAuthor"];
}
}
return null;
}

/**
* Sets the parentAuthor
* The identity of the user who started the comment thread.
*
* @param IdentitySet $val The value to assign to the parentAuthor
*
* @return CommentAction The CommentAction
*/
public function setParentAuthor($val)
{
$this->_propDict["parentAuthor"] = $val;
return $this;
}

/**
* Gets the participants
* The identities of the users participating in this comment thread.
*
* @return IdentitySet|null The participants
*/
public function getParticipants()
{
if (array_key_exists("participants", $this->_propDict)) {
if (is_a($this->_propDict["participants"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["participants"])) {
return $this->_propDict["participants"];
} else {
$this->_propDict["participants"] = new IdentitySet($this->_propDict["participants"]);
return $this->_propDict["participants"];
}
}
return null;
}

/**
* Sets the participants
* The identities of the users participating in this comment thread.
*
* @param IdentitySet $val The value to assign to the participants
*
* @return CommentAction The CommentAction
*/
public function setParticipants($val)
{
$this->_propDict["participants"] = $val;
return $this;
}
}
26 changes: 26 additions & 0 deletions src/Model/CreateAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* CreateAction 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;
/**
* CreateAction 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 CreateAction extends Entity
{
}
82 changes: 82 additions & 0 deletions src/Model/DeleteAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* DeleteAction 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;
/**
* DeleteAction 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 DeleteAction extends Entity
{
/**
* Gets the name
* The name of the item that was deleted.
*
* @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 item that was deleted.
*
* @param string $val The value of the name
*
* @return DeleteAction
*/
public function setName($val)
{
$this->_propDict["name"] = $val;
return $this;
}
/**
* Gets the objectType
* File or Folder, depending on the type of the deleted item.
*
* @return string|null The objectType
*/
public function getObjectType()
{
if (array_key_exists("objectType", $this->_propDict)) {
return $this->_propDict["objectType"];
} else {
return null;
}
}

/**
* Sets the objectType
* File or Folder, depending on the type of the deleted item.
*
* @param string $val The value of the objectType
*
* @return DeleteAction
*/
public function setObjectType($val)
{
$this->_propDict["objectType"] = $val;
return $this;
}
}
26 changes: 26 additions & 0 deletions src/Model/EditAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* EditAction 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;
/**
* EditAction 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 EditAction extends Entity
{
}
4 changes: 2 additions & 2 deletions src/Model/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getProperties()

/**
* Gets the id
* The unique idenfier for an entity. Read-only.
* The unique identifier for an entity. Read-only.
*
* @return string|null The id
*/
Expand All @@ -72,7 +72,7 @@ public function getId()

/**
* Sets the id
* The unique idenfier for an entity. Read-only.
* The unique identifier for an entity. Read-only.
*
* @param string $val The id
*
Expand Down
Loading

0 comments on commit afec190

Please sign in to comment.