forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoftgraph#948 from microsoftgraph/v1.0/pipeli…
…nebuild/80520 Generated models using Typewriter
- Loading branch information
Showing
23 changed files
with
989 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
* | ||
* AccessPackageAutomaticRequestSettings 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; | ||
/** | ||
* AccessPackageAutomaticRequestSettings 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 AccessPackageAutomaticRequestSettings extends Entity | ||
{ | ||
|
||
/** | ||
* Gets the gracePeriodBeforeAccessRemoval | ||
* | ||
* @return \DateInterval|null The gracePeriodBeforeAccessRemoval | ||
*/ | ||
public function getGracePeriodBeforeAccessRemoval() | ||
{ | ||
if (array_key_exists("gracePeriodBeforeAccessRemoval", $this->_propDict)) { | ||
if (is_a($this->_propDict["gracePeriodBeforeAccessRemoval"], "\DateInterval") || is_null($this->_propDict["gracePeriodBeforeAccessRemoval"])) { | ||
return $this->_propDict["gracePeriodBeforeAccessRemoval"]; | ||
} else { | ||
$this->_propDict["gracePeriodBeforeAccessRemoval"] = new \DateInterval($this->_propDict["gracePeriodBeforeAccessRemoval"]); | ||
return $this->_propDict["gracePeriodBeforeAccessRemoval"]; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
/** | ||
* Sets the gracePeriodBeforeAccessRemoval | ||
* | ||
* @param \DateInterval $val The value to assign to the gracePeriodBeforeAccessRemoval | ||
* | ||
* @return AccessPackageAutomaticRequestSettings The AccessPackageAutomaticRequestSettings | ||
*/ | ||
public function setGracePeriodBeforeAccessRemoval($val) | ||
{ | ||
$this->_propDict["gracePeriodBeforeAccessRemoval"] = $val; | ||
return $this; | ||
} | ||
/** | ||
* Gets the removeAccessWhenTargetLeavesAllowedTargets | ||
* | ||
* @return bool|null The removeAccessWhenTargetLeavesAllowedTargets | ||
*/ | ||
public function getRemoveAccessWhenTargetLeavesAllowedTargets() | ||
{ | ||
if (array_key_exists("removeAccessWhenTargetLeavesAllowedTargets", $this->_propDict)) { | ||
return $this->_propDict["removeAccessWhenTargetLeavesAllowedTargets"]; | ||
} else { | ||
return null; | ||
} | ||
} | ||
|
||
/** | ||
* Sets the removeAccessWhenTargetLeavesAllowedTargets | ||
* | ||
* @param bool $val The value of the removeAccessWhenTargetLeavesAllowedTargets | ||
* | ||
* @return AccessPackageAutomaticRequestSettings | ||
*/ | ||
public function setRemoveAccessWhenTargetLeavesAllowedTargets($val) | ||
{ | ||
$this->_propDict["removeAccessWhenTargetLeavesAllowedTargets"] = $val; | ||
return $this; | ||
} | ||
/** | ||
* Gets the requestAccessForAllowedTargets | ||
* | ||
* @return bool|null The requestAccessForAllowedTargets | ||
*/ | ||
public function getRequestAccessForAllowedTargets() | ||
{ | ||
if (array_key_exists("requestAccessForAllowedTargets", $this->_propDict)) { | ||
return $this->_propDict["requestAccessForAllowedTargets"]; | ||
} else { | ||
return null; | ||
} | ||
} | ||
|
||
/** | ||
* Sets the requestAccessForAllowedTargets | ||
* | ||
* @param bool $val The value of the requestAccessForAllowedTargets | ||
* | ||
* @return AccessPackageAutomaticRequestSettings | ||
*/ | ||
public function setRequestAccessForAllowedTargets($val) | ||
{ | ||
$this->_propDict["requestAccessForAllowedTargets"] = $val; | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?php | ||
/** | ||
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. | ||
* | ||
* AttributeRuleMembers 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; | ||
/** | ||
* AttributeRuleMembers 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 AttributeRuleMembers extends SubjectSet | ||
{ | ||
/** | ||
* 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.attributeRuleMembers"); | ||
} | ||
|
||
/** | ||
* 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 value of the description | ||
* | ||
* @return AttributeRuleMembers | ||
*/ | ||
public function setDescription($val) | ||
{ | ||
$this->_propDict["description"] = $val; | ||
return $this; | ||
} | ||
/** | ||
* Gets the membershipRule | ||
* | ||
* @return string|null The membershipRule | ||
*/ | ||
public function getMembershipRule() | ||
{ | ||
if (array_key_exists("membershipRule", $this->_propDict)) { | ||
return $this->_propDict["membershipRule"]; | ||
} else { | ||
return null; | ||
} | ||
} | ||
|
||
/** | ||
* Sets the membershipRule | ||
* | ||
* @param string $val The value of the membershipRule | ||
* | ||
* @return AttributeRuleMembers | ||
*/ | ||
public function setMembershipRule($val) | ||
{ | ||
$this->_propDict["membershipRule"] = $val; | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.