Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders #1337

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Model/LearningSelfInitiatedCourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class LearningSelfInitiatedCourse extends LearningCourseActivity
{
/**
* Gets the startedDateTime
* The date time value on which the self-initiated course was started by the learner. Optional.
* The date and time on which the self-initiated course was started by the learner. Optional.
*
* @return \DateTime|null The startedDateTime
*/
Expand All @@ -45,7 +45,7 @@ public function getStartedDateTime()

/**
* Sets the startedDateTime
* The date time value on which the self-initiated course was started by the learner. Optional.
* The date and time on which the self-initiated course was started by the learner. Optional.
*
* @param \DateTime $val The startedDateTime
*
Expand Down
31 changes: 31 additions & 0 deletions src/Model/Presence.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,35 @@ public function setAvailability($val)
return $this;
}

/**
* Gets the statusMessage
*
* @return PresenceStatusMessage|null The statusMessage
*/
public function getStatusMessage()
{
if (array_key_exists("statusMessage", $this->_propDict)) {
if (is_a($this->_propDict["statusMessage"], "\Microsoft\Graph\Model\PresenceStatusMessage") || is_null($this->_propDict["statusMessage"])) {
return $this->_propDict["statusMessage"];
} else {
$this->_propDict["statusMessage"] = new PresenceStatusMessage($this->_propDict["statusMessage"]);
return $this->_propDict["statusMessage"];
}
}
return null;
}

/**
* Sets the statusMessage
*
* @param PresenceStatusMessage $val The statusMessage
*
* @return Presence
*/
public function setStatusMessage($val)
{
$this->_propDict["statusMessage"] = $val;
return $this;
}

}
119 changes: 119 additions & 0 deletions src/Model/PresenceStatusMessage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* PresenceStatusMessage 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;
/**
* PresenceStatusMessage 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 PresenceStatusMessage extends Entity
{

/**
* Gets the expiryDateTime
*
* @return DateTimeTimeZone|null The expiryDateTime
*/
public function getExpiryDateTime()
{
if (array_key_exists("expiryDateTime", $this->_propDict)) {
if (is_a($this->_propDict["expiryDateTime"], "\Microsoft\Graph\Model\DateTimeTimeZone") || is_null($this->_propDict["expiryDateTime"])) {
return $this->_propDict["expiryDateTime"];
} else {
$this->_propDict["expiryDateTime"] = new DateTimeTimeZone($this->_propDict["expiryDateTime"]);
return $this->_propDict["expiryDateTime"];
}
}
return null;
}

/**
* Sets the expiryDateTime
*
* @param DateTimeTimeZone $val The value to assign to the expiryDateTime
*
* @return PresenceStatusMessage The PresenceStatusMessage
*/
public function setExpiryDateTime($val)
{
$this->_propDict["expiryDateTime"] = $val;
return $this;
}

/**
* Gets the message
*
* @return ItemBody|null The message
*/
public function getMessage()
{
if (array_key_exists("message", $this->_propDict)) {
if (is_a($this->_propDict["message"], "\Microsoft\Graph\Model\ItemBody") || is_null($this->_propDict["message"])) {
return $this->_propDict["message"];
} else {
$this->_propDict["message"] = new ItemBody($this->_propDict["message"]);
return $this->_propDict["message"];
}
}
return null;
}

/**
* Sets the message
*
* @param ItemBody $val The value to assign to the message
*
* @return PresenceStatusMessage The PresenceStatusMessage
*/
public function setMessage($val)
{
$this->_propDict["message"] = $val;
return $this;
}

/**
* Gets the publishedDateTime
*
* @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
*
* @param \DateTime $val The value to assign to the publishedDateTime
*
* @return PresenceStatusMessage The PresenceStatusMessage
*/
public function setPublishedDateTime($val)
{
$this->_propDict["publishedDateTime"] = $val;
return $this;
}
}
2 changes: 2 additions & 0 deletions src/Model/PublicationFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class PublicationFacet extends Entity

/**
* Gets the checkedOutBy
* User who has checked out the file.
*
* @return IdentitySet|null The checkedOutBy
*/
Expand All @@ -44,6 +45,7 @@ public function getCheckedOutBy()

/**
* Sets the checkedOutBy
* User who has checked out the file.
*
* @param IdentitySet $val The value to assign to the checkedOutBy
*
Expand Down
28 changes: 28 additions & 0 deletions src/Model/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,34 @@
*/
class Security extends Entity
{

/**
* Gets the subjectRightsRequests
*
* @return array|null The subjectRightsRequests
*/
public function getSubjectRightsRequests()
{
if (array_key_exists("subjectRightsRequests", $this->_propDict)) {
return $this->_propDict["subjectRightsRequests"];
} else {
return null;
}
}

/**
* Sets the subjectRightsRequests
*
* @param SubjectRightsRequest[] $val The subjectRightsRequests
*
* @return Security
*/
public function setSubjectRightsRequests($val)
{
$this->_propDict["subjectRightsRequests"] = $val;
return $this;
}

/**
* Gets the cases
*
Expand Down
Loading