Skip to content

Commit

Permalink
Merge pull request microsoftgraph#948 from microsoftgraph/v1.0/pipeli…
Browse files Browse the repository at this point in the history
…nebuild/80520

Generated models using Typewriter
  • Loading branch information
Ndiritu committed Jul 20, 2022
2 parents aea8ee7 + 6fc7754 commit 62a84b0
Show file tree
Hide file tree
Showing 23 changed files with 989 additions and 28 deletions.
31 changes: 31 additions & 0 deletions src/Model/AccessPackageAssignmentPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,37 @@ public function setAllowedTargetScope($val)
return $this;
}

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

/**
* Sets the automaticRequestSettings
*
* @param AccessPackageAutomaticRequestSettings $val The automaticRequestSettings
*
* @return AccessPackageAssignmentPolicy
*/
public function setAutomaticRequestSettings($val)
{
$this->_propDict["automaticRequestSettings"] = $val;
return $this;
}

/**
* Gets the createdDateTime
* The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z
Expand Down
109 changes: 109 additions & 0 deletions src/Model/AccessPackageAutomaticRequestSettings.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.
*
* 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;
}
}
29 changes: 29 additions & 0 deletions src/Model/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,35 @@ public function setRequiredResourceAccess($val)
return $this;
}

/**
* Gets the samlMetadataUrl
* The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable.
*
* @return string|null The samlMetadataUrl
*/
public function getSamlMetadataUrl()
{
if (array_key_exists("samlMetadataUrl", $this->_propDict)) {
return $this->_propDict["samlMetadataUrl"];
} else {
return null;
}
}

/**
* Sets the samlMetadataUrl
* The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable.
*
* @param string $val The samlMetadataUrl
*
* @return Application
*/
public function setSamlMetadataUrl($val)
{
$this->_propDict["samlMetadataUrl"] = $val;
return $this;
}

/**
* Gets the serviceManagementReference
* References application or service contact information from a Service or Asset Management database. Nullable.
Expand Down
89 changes: 89 additions & 0 deletions src/Model/AttributeRuleMembers.php
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;
}
}
88 changes: 88 additions & 0 deletions src/Model/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,36 @@
class Authentication extends Entity
{

/**
* Gets the emailMethods
* Represents the email addresses registered to a user for authentication.
*
* @return array|null The emailMethods
*/
public function getEmailMethods()
{
if (array_key_exists("emailMethods", $this->_propDict)) {
return $this->_propDict["emailMethods"];
} else {
return null;
}
}

/**
* Sets the emailMethods
* Represents the email addresses registered to a user for authentication.
*
* @param EmailAuthenticationMethod[] $val The emailMethods
*
* @return Authentication
*/
public function setEmailMethods($val)
{
$this->_propDict["emailMethods"] = $val;
return $this;
}


/**
* Gets the fido2Methods
* Represents the FIDO2 security keys registered to a user for authentication.
Expand Down Expand Up @@ -173,6 +203,64 @@ public function setPasswordMethods($val)
}


/**
* Gets the phoneMethods
* Represents the phone registered to a user for authentication.
*
* @return array|null The phoneMethods
*/
public function getPhoneMethods()
{
if (array_key_exists("phoneMethods", $this->_propDict)) {
return $this->_propDict["phoneMethods"];
} else {
return null;
}
}

/**
* Sets the phoneMethods
* Represents the phone registered to a user for authentication.
*
* @param PhoneAuthenticationMethod[] $val The phoneMethods
*
* @return Authentication
*/
public function setPhoneMethods($val)
{
$this->_propDict["phoneMethods"] = $val;
return $this;
}


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

/**
* Sets the softwareOathMethods
*
* @param SoftwareOathAuthenticationMethod[] $val The softwareOathMethods
*
* @return Authentication
*/
public function setSoftwareOathMethods($val)
{
$this->_propDict["softwareOathMethods"] = $val;
return $this;
}


/**
* Gets the temporaryAccessPassMethods
* Represents a Temporary Access Pass registered to a user for authentication through time-limited passcodes.
Expand Down
Loading

0 comments on commit 62a84b0

Please sign in to comment.