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 beta models and request builders #1193

Merged
merged 1 commit into from
Apr 4, 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
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function setApplyActions($val)
}
/**
* Gets the autoApplyDecisionsEnabled
* Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false.
* Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond.
*
* @return bool|null The autoApplyDecisionsEnabled
*/
Expand All @@ -73,7 +73,7 @@ public function getAutoApplyDecisionsEnabled()

/**
* Sets the autoApplyDecisionsEnabled
* Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false.
* Indicates whether decisions are automatically applied. When set to false, an admin must apply the decisions manually once the reviewer completes the access review. When set to true, decisions are applied automatically after the access review instance duration ends, whether or not the reviewers have responded. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond.
*
* @param bool $val The value of the autoApplyDecisionsEnabled
*
Expand Down Expand Up @@ -142,7 +142,7 @@ public function setDefaultDecision($val)
}
/**
* Gets the defaultDecisionEnabled
* Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false.
* Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond.
*
* @return bool|null The defaultDecisionEnabled
*/
Expand All @@ -157,7 +157,7 @@ public function getDefaultDecisionEnabled()

/**
* Sets the defaultDecisionEnabled
* Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false.
* Indicates whether the default decision is enabled or disabled when reviewers do not respond. Default value is false. CAUTION: If both autoApplyDecisionsEnabled and defaultDecisionEnabled are true, all access for the principals to the resource risks being revoked if the reviewers fail to respond.
*
* @param bool $val The value of the defaultDecisionEnabled
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,35 @@
*/
class AndroidForWorkGeneralDeviceConfiguration extends DeviceConfiguration
{
/**
* Gets the allowedGoogleAccountDomains
* Determine domains allow-list for accounts that can be added to work profile.
*
* @return array|null The allowedGoogleAccountDomains
*/
public function getAllowedGoogleAccountDomains()
{
if (array_key_exists("allowedGoogleAccountDomains", $this->_propDict)) {
return $this->_propDict["allowedGoogleAccountDomains"];
} else {
return null;
}
}

/**
* Sets the allowedGoogleAccountDomains
* Determine domains allow-list for accounts that can be added to work profile.
*
* @param string[] $val The allowedGoogleAccountDomains
*
* @return AndroidForWorkGeneralDeviceConfiguration
*/
public function setAllowedGoogleAccountDomains($val)
{
$this->_propDict["allowedGoogleAccountDomains"] = $val;
return $this;
}

/**
* Gets the passwordBlockFaceUnlock
* Indicates whether or not to block face unlock.
Expand Down Expand Up @@ -438,6 +467,39 @@ public function setVpnEnableAlwaysOnLockdownMode($val)
return $this;
}

/**
* Gets the workProfileAccountUse
* Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue.
*
* @return AndroidWorkProfileAccountUse|null The workProfileAccountUse
*/
public function getWorkProfileAccountUse()
{
if (array_key_exists("workProfileAccountUse", $this->_propDict)) {
if (is_a($this->_propDict["workProfileAccountUse"], "\Beta\Microsoft\Graph\Model\AndroidWorkProfileAccountUse") || is_null($this->_propDict["workProfileAccountUse"])) {
return $this->_propDict["workProfileAccountUse"];
} else {
$this->_propDict["workProfileAccountUse"] = new AndroidWorkProfileAccountUse($this->_propDict["workProfileAccountUse"]);
return $this->_propDict["workProfileAccountUse"];
}
}
return null;
}

/**
* Sets the workProfileAccountUse
* Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue.
*
* @param AndroidWorkProfileAccountUse $val The workProfileAccountUse
*
* @return AndroidForWorkGeneralDeviceConfiguration
*/
public function setWorkProfileAccountUse($val)
{
$this->_propDict["workProfileAccountUse"] = $val;
return $this;
}

/**
* Gets the workProfileAllowWidgets
* Allow widgets from work profile apps.
Expand Down
36 changes: 36 additions & 0 deletions src/Beta/Microsoft/Graph/Model/AndroidWorkProfileAccountUse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AndroidWorkProfileAccountUse 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 Beta\Microsoft\Graph\Model;

use Microsoft\Graph\Core\Enum;

/**
* AndroidWorkProfileAccountUse 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 AndroidWorkProfileAccountUse extends Enum
{
/**
* The Enum AndroidWorkProfileAccountUse
*/
const ALLOW_ALL_EXCEPT_GOOGLE_ACCOUNTS = "allowAllExceptGoogleAccounts";
const BLOCK_ALL = "blockAll";
const ALLOW_ALL = "allowAll";
const UNKNOWN_FUTURE_VALUE = "unknownFutureValue";
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,35 @@
*/
class AndroidWorkProfileGeneralDeviceConfiguration extends DeviceConfiguration
{
/**
* Gets the allowedGoogleAccountDomains
* Determine domains allow-list for accounts that can be added to work profile.
*
* @return array|null The allowedGoogleAccountDomains
*/
public function getAllowedGoogleAccountDomains()
{
if (array_key_exists("allowedGoogleAccountDomains", $this->_propDict)) {
return $this->_propDict["allowedGoogleAccountDomains"];
} else {
return null;
}
}

/**
* Sets the allowedGoogleAccountDomains
* Determine domains allow-list for accounts that can be added to work profile.
*
* @param string[] $val The allowedGoogleAccountDomains
*
* @return AndroidWorkProfileGeneralDeviceConfiguration
*/
public function setAllowedGoogleAccountDomains($val)
{
$this->_propDict["allowedGoogleAccountDomains"] = $val;
return $this;
}

/**
* Gets the passwordBlockFaceUnlock
* Indicates whether or not to block face unlock.
Expand Down Expand Up @@ -438,6 +467,39 @@ public function setVpnEnableAlwaysOnLockdownMode($val)
return $this;
}

/**
* Gets the workProfileAccountUse
* Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue.
*
* @return AndroidWorkProfileAccountUse|null The workProfileAccountUse
*/
public function getWorkProfileAccountUse()
{
if (array_key_exists("workProfileAccountUse", $this->_propDict)) {
if (is_a($this->_propDict["workProfileAccountUse"], "\Beta\Microsoft\Graph\Model\AndroidWorkProfileAccountUse") || is_null($this->_propDict["workProfileAccountUse"])) {
return $this->_propDict["workProfileAccountUse"];
} else {
$this->_propDict["workProfileAccountUse"] = new AndroidWorkProfileAccountUse($this->_propDict["workProfileAccountUse"]);
return $this->_propDict["workProfileAccountUse"];
}
}
return null;
}

/**
* Sets the workProfileAccountUse
* Control user's ability to add accounts in work profile including Google accounts. Possible values are: allowAllExceptGoogleAccounts, blockAll, allowAll, unknownFutureValue.
*
* @param AndroidWorkProfileAccountUse $val The workProfileAccountUse
*
* @return AndroidWorkProfileGeneralDeviceConfiguration
*/
public function setWorkProfileAccountUse($val)
{
$this->_propDict["workProfileAccountUse"] = $val;
return $this;
}

/**
* Gets the workProfileAllowAppInstallsFromUnknownSources
* Indicates whether to allow installation of apps from unknown sources.
Expand Down
4 changes: 2 additions & 2 deletions src/Beta/Microsoft/Graph/Model/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ public function setSpa($val)

/**
* Gets the tags
* Custom strings that can be used to categorize and identify the application. Not nullable.Supports $filter (eq, not, ge, le, startsWith).
* Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here will also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith).
*
* @return array|null The tags
*/
Expand All @@ -930,7 +930,7 @@ public function getTags()

/**
* Sets the tags
* Custom strings that can be used to categorize and identify the application. Not nullable.Supports $filter (eq, not, ge, le, startsWith).
* Custom strings that can be used to categorize and identify the application. Not nullable. Strings added here will also appear in the tags property of any associated service principals.Supports $filter (eq, not, ge, le, startsWith).
*
* @param string[] $val The tags
*
Expand Down
31 changes: 31 additions & 0 deletions src/Beta/Microsoft/Graph/Model/CallTranscript.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,35 @@ public function setCreatedDateTime($val)
return $this;
}

/**
* Gets the metadataContent
*
* @return \GuzzleHttp\Psr7\Stream|null The metadataContent
*/
public function getMetadataContent()
{
if (array_key_exists("metadataContent", $this->_propDict)) {
if (is_a($this->_propDict["metadataContent"], "\GuzzleHttp\Psr7\Stream") || is_null($this->_propDict["metadataContent"])) {
return $this->_propDict["metadataContent"];
} else {
$this->_propDict["metadataContent"] = \GuzzleHttp\Psr7\Utils::streamFor($this->_propDict["metadataContent"]);
return $this->_propDict["metadataContent"];
}
}
return null;
}

/**
* Sets the metadataContent
*
* @param \GuzzleHttp\Psr7\Stream $val The metadataContent
*
* @return CallTranscript
*/
public function setMetadataContent($val)
{
$this->_propDict["metadataContent"] = $val;
return $this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* ClassificationRequestContentMetaData 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 Beta\Microsoft\Graph\Model;
/**
* ClassificationRequestContentMetaData 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 ClassificationRequestContentMetaData extends Entity
{
/**
* Gets the sourceId
*
* @return string|null The sourceId
*/
public function getSourceId()
{
if (array_key_exists("sourceId", $this->_propDict)) {
return $this->_propDict["sourceId"];
} else {
return null;
}
}

/**
* Sets the sourceId
*
* @param string $val The value of the sourceId
*
* @return ClassificationRequestContentMetaData
*/
public function setSourceId($val)
{
$this->_propDict["sourceId"] = $val;
return $this;
}
}
12 changes: 6 additions & 6 deletions src/Beta/Microsoft/Graph/Model/ConditionalAccessUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function setExcludeUsers($val)
}
/**
* Gets the includeGroups
* Group IDs in scope of policy unless explicitly excluded, or All.
* Group IDs in scope of policy unless explicitly excluded.
*
* @return string|null The includeGroups
*/
Expand All @@ -157,7 +157,7 @@ public function getIncludeGroups()

/**
* Sets the includeGroups
* Group IDs in scope of policy unless explicitly excluded, or All.
* Group IDs in scope of policy unless explicitly excluded.
*
* @param string $val The value of the includeGroups
*
Expand Down Expand Up @@ -203,7 +203,7 @@ public function setIncludeGuestsOrExternalUsers($val)
}
/**
* Gets the includeRoles
* Role IDs in scope of policy unless explicitly excluded, or All.
* Role IDs in scope of policy unless explicitly excluded.
*
* @return string|null The includeRoles
*/
Expand All @@ -218,7 +218,7 @@ public function getIncludeRoles()

/**
* Sets the includeRoles
* Role IDs in scope of policy unless explicitly excluded, or All.
* Role IDs in scope of policy unless explicitly excluded.
*
* @param string $val The value of the includeRoles
*
Expand All @@ -231,7 +231,7 @@ public function setIncludeRoles($val)
}
/**
* Gets the includeUsers
* User IDs in scope of policy unless explicitly excluded, or None or All or GuestsOrExternalUsers.
* User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers.
*
* @return string|null The includeUsers
*/
Expand All @@ -246,7 +246,7 @@ public function getIncludeUsers()

/**
* Sets the includeUsers
* User IDs in scope of policy unless explicitly excluded, or None or All or GuestsOrExternalUsers.
* User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers.
*
* @param string $val The value of the includeUsers
*
Expand Down
Loading