in ecd-20200930/src/Models/DescribePolicyGroupsResponseBody/describePolicyGroups.php [698:1206]
public function toArray($noStream = false)
{
$res = [];
if (null !== $this->adminAccess) {
$res['AdminAccess'] = $this->adminAccess;
}
if (null !== $this->appContentProtection) {
$res['AppContentProtection'] = $this->appContentProtection;
}
if (null !== $this->authorizeAccessPolicyRules) {
if (\is_array($this->authorizeAccessPolicyRules)) {
$res['AuthorizeAccessPolicyRules'] = [];
$n1 = 0;
foreach ($this->authorizeAccessPolicyRules as $item1) {
$res['AuthorizeAccessPolicyRules'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->authorizeSecurityPolicyRules) {
if (\is_array($this->authorizeSecurityPolicyRules)) {
$res['AuthorizeSecurityPolicyRules'] = [];
$n1 = 0;
foreach ($this->authorizeSecurityPolicyRules as $item1) {
$res['AuthorizeSecurityPolicyRules'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->cameraRedirect) {
$res['CameraRedirect'] = $this->cameraRedirect;
}
if (null !== $this->clientTypes) {
if (\is_array($this->clientTypes)) {
$res['ClientTypes'] = [];
$n1 = 0;
foreach ($this->clientTypes as $item1) {
$res['ClientTypes'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->clipboard) {
$res['Clipboard'] = $this->clipboard;
}
if (null !== $this->colorEnhancement) {
$res['ColorEnhancement'] = $this->colorEnhancement;
}
if (null !== $this->cpuDownGradeDuration) {
$res['CpuDownGradeDuration'] = $this->cpuDownGradeDuration;
}
if (null !== $this->cpuProcessors) {
if (\is_array($this->cpuProcessors)) {
$res['CpuProcessors'] = [];
$n1 = 0;
foreach ($this->cpuProcessors as $item1) {
$res['CpuProcessors'][$n1++] = $item1;
}
}
}
if (null !== $this->cpuProtectedMode) {
$res['CpuProtectedMode'] = $this->cpuProtectedMode;
}
if (null !== $this->cpuRateLimit) {
$res['CpuRateLimit'] = $this->cpuRateLimit;
}
if (null !== $this->cpuSampleDuration) {
$res['CpuSampleDuration'] = $this->cpuSampleDuration;
}
if (null !== $this->cpuSingleRateLimit) {
$res['CpuSingleRateLimit'] = $this->cpuSingleRateLimit;
}
if (null !== $this->desktopCount) {
$res['DesktopCount'] = $this->desktopCount;
}
if (null !== $this->desktopGroupCount) {
$res['DesktopGroupCount'] = $this->desktopGroupCount;
}
if (null !== $this->deviceConnectHint) {
$res['DeviceConnectHint'] = $this->deviceConnectHint;
}
if (null !== $this->deviceRedirects) {
if (\is_array($this->deviceRedirects)) {
$res['DeviceRedirects'] = [];
$n1 = 0;
foreach ($this->deviceRedirects as $item1) {
$res['DeviceRedirects'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->deviceRules) {
if (\is_array($this->deviceRules)) {
$res['DeviceRules'] = [];
$n1 = 0;
foreach ($this->deviceRules as $item1) {
$res['DeviceRules'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->displayMode) {
$res['DisplayMode'] = $this->displayMode;
}
if (null !== $this->domainList) {
$res['DomainList'] = $this->domainList;
}
if (null !== $this->domainResolveRule) {
if (\is_array($this->domainResolveRule)) {
$res['DomainResolveRule'] = [];
$n1 = 0;
foreach ($this->domainResolveRule as $item1) {
$res['DomainResolveRule'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->domainResolveRuleType) {
$res['DomainResolveRuleType'] = $this->domainResolveRuleType;
}
if (null !== $this->edsCount) {
$res['EdsCount'] = $this->edsCount;
}
if (null !== $this->endUserApplyAdminCoordinate) {
$res['EndUserApplyAdminCoordinate'] = $this->endUserApplyAdminCoordinate;
}
if (null !== $this->endUserGroupCoordinate) {
$res['EndUserGroupCoordinate'] = $this->endUserGroupCoordinate;
}
if (null !== $this->fileMigrate) {
$res['FileMigrate'] = $this->fileMigrate;
}
if (null !== $this->fileTransfer) {
$res['FileTransfer'] = $this->fileTransfer;
}
if (null !== $this->gpuAcceleration) {
$res['GpuAcceleration'] = $this->gpuAcceleration;
}
if (null !== $this->html5Access) {
$res['Html5Access'] = $this->html5Access;
}
if (null !== $this->html5FileTransfer) {
$res['Html5FileTransfer'] = $this->html5FileTransfer;
}
if (null !== $this->internetCommunicationProtocol) {
$res['InternetCommunicationProtocol'] = $this->internetCommunicationProtocol;
}
if (null !== $this->internetPrinter) {
$res['InternetPrinter'] = $this->internetPrinter;
}
if (null !== $this->localDrive) {
$res['LocalDrive'] = $this->localDrive;
}
if (null !== $this->maxReconnectTime) {
$res['MaxReconnectTime'] = $this->maxReconnectTime;
}
if (null !== $this->memoryDownGradeDuration) {
$res['MemoryDownGradeDuration'] = $this->memoryDownGradeDuration;
}
if (null !== $this->memoryProcessors) {
if (\is_array($this->memoryProcessors)) {
$res['MemoryProcessors'] = [];
$n1 = 0;
foreach ($this->memoryProcessors as $item1) {
$res['MemoryProcessors'][$n1++] = $item1;
}
}
}
if (null !== $this->memoryProtectedMode) {
$res['MemoryProtectedMode'] = $this->memoryProtectedMode;
}
if (null !== $this->memoryRateLimit) {
$res['MemoryRateLimit'] = $this->memoryRateLimit;
}
if (null !== $this->memorySampleDuration) {
$res['MemorySampleDuration'] = $this->memorySampleDuration;
}
if (null !== $this->memorySingleRateLimit) {
$res['MemorySingleRateLimit'] = $this->memorySingleRateLimit;
}
if (null !== $this->mobileRestart) {
$res['MobileRestart'] = $this->mobileRestart;
}
if (null !== $this->mobileShutdown) {
$res['MobileShutdown'] = $this->mobileShutdown;
}
if (null !== $this->name) {
$res['Name'] = $this->name;
}
if (null !== $this->netRedirect) {
$res['NetRedirect'] = $this->netRedirect;
}
if (null !== $this->netRedirectRule) {
if (\is_array($this->netRedirectRule)) {
$res['NetRedirectRule'] = [];
$n1 = 0;
foreach ($this->netRedirectRule as $item1) {
$res['NetRedirectRule'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->policyGroupId) {
$res['PolicyGroupId'] = $this->policyGroupId;
}
if (null !== $this->policyGroupType) {
$res['PolicyGroupType'] = $this->policyGroupType;
}
if (null !== $this->policyStatus) {
$res['PolicyStatus'] = $this->policyStatus;
}
if (null !== $this->preemptLogin) {
$res['PreemptLogin'] = $this->preemptLogin;
}
if (null !== $this->preemptLoginUsers) {
if (\is_array($this->preemptLoginUsers)) {
$res['PreemptLoginUsers'] = [];
$n1 = 0;
foreach ($this->preemptLoginUsers as $item1) {
$res['PreemptLoginUsers'][$n1++] = $item1;
}
}
}
if (null !== $this->printerRedirection) {
$res['PrinterRedirection'] = $this->printerRedirection;
}
if (null !== $this->qualityEnhancement) {
$res['QualityEnhancement'] = $this->qualityEnhancement;
}
if (null !== $this->recordContent) {
$res['RecordContent'] = $this->recordContent;
}
if (null !== $this->recordContentExpires) {
$res['RecordContentExpires'] = $this->recordContentExpires;
}
if (null !== $this->recordEventDuration) {
$res['RecordEventDuration'] = $this->recordEventDuration;
}
if (null !== $this->recordEventFilePaths) {
if (\is_array($this->recordEventFilePaths)) {
$res['RecordEventFilePaths'] = [];
$n1 = 0;
foreach ($this->recordEventFilePaths as $item1) {
$res['RecordEventFilePaths'][$n1++] = $item1;
}
}
}
if (null !== $this->recordEventRegisters) {
if (\is_array($this->recordEventRegisters)) {
$res['RecordEventRegisters'] = [];
$n1 = 0;
foreach ($this->recordEventRegisters as $item1) {
$res['RecordEventRegisters'][$n1++] = $item1;
}
}
}
if (null !== $this->recording) {
$res['Recording'] = $this->recording;
}
if (null !== $this->recordingAudio) {
$res['RecordingAudio'] = $this->recordingAudio;
}
if (null !== $this->recordingDuration) {
$res['RecordingDuration'] = $this->recordingDuration;
}
if (null !== $this->recordingEndTime) {
$res['RecordingEndTime'] = $this->recordingEndTime;
}
if (null !== $this->recordingExpires) {
$res['RecordingExpires'] = $this->recordingExpires;
}
if (null !== $this->recordingFps) {
$res['RecordingFps'] = $this->recordingFps;
}
if (null !== $this->recordingStartTime) {
$res['RecordingStartTime'] = $this->recordingStartTime;
}
if (null !== $this->recordingUserNotify) {
$res['RecordingUserNotify'] = $this->recordingUserNotify;
}
if (null !== $this->recordingUserNotifyMessage) {
$res['RecordingUserNotifyMessage'] = $this->recordingUserNotifyMessage;
}
if (null !== $this->remoteCoordinate) {
$res['RemoteCoordinate'] = $this->remoteCoordinate;
}
if (null !== $this->resetDesktop) {
$res['ResetDesktop'] = $this->resetDesktop;
}
if (null !== $this->resolutionHeight) {
$res['ResolutionHeight'] = $this->resolutionHeight;
}
if (null !== $this->resolutionModel) {
$res['ResolutionModel'] = $this->resolutionModel;
}
if (null !== $this->resolutionWidth) {
$res['ResolutionWidth'] = $this->resolutionWidth;
}
if (null !== $this->resourceGroupCount) {
$res['ResourceGroupCount'] = $this->resourceGroupCount;
}
if (null !== $this->resourceRegionId) {
$res['ResourceRegionId'] = $this->resourceRegionId;
}
if (null !== $this->safeMenu) {
$res['SafeMenu'] = $this->safeMenu;
}
if (null !== $this->scope) {
$res['Scope'] = $this->scope;
}
if (null !== $this->scopeValue) {
if (\is_array($this->scopeValue)) {
$res['ScopeValue'] = [];
$n1 = 0;
foreach ($this->scopeValue as $item1) {
$res['ScopeValue'][$n1++] = $item1;
}
}
}
if (null !== $this->smoothEnhancement) {
$res['SmoothEnhancement'] = $this->smoothEnhancement;
}
if (null !== $this->statusMonitor) {
$res['StatusMonitor'] = $this->statusMonitor;
}
if (null !== $this->streamingMode) {
$res['StreamingMode'] = $this->streamingMode;
}
if (null !== $this->targetFps) {
$res['TargetFps'] = $this->targetFps;
}
if (null !== $this->usbRedirect) {
$res['UsbRedirect'] = $this->usbRedirect;
}
if (null !== $this->usbSupplyRedirectRule) {
if (\is_array($this->usbSupplyRedirectRule)) {
$res['UsbSupplyRedirectRule'] = [];
$n1 = 0;
foreach ($this->usbSupplyRedirectRule as $item1) {
$res['UsbSupplyRedirectRule'][$n1++] = null !== $item1 ? $item1->toArray($noStream) : $item1;
}
}
}
if (null !== $this->videoEncAvgKbps) {
$res['VideoEncAvgKbps'] = $this->videoEncAvgKbps;
}
if (null !== $this->videoEncMaxQP) {
$res['VideoEncMaxQP'] = $this->videoEncMaxQP;
}
if (null !== $this->videoEncMinQP) {
$res['VideoEncMinQP'] = $this->videoEncMinQP;
}
if (null !== $this->videoEncPeakKbps) {
$res['VideoEncPeakKbps'] = $this->videoEncPeakKbps;
}
if (null !== $this->videoEncPolicy) {
$res['VideoEncPolicy'] = $this->videoEncPolicy;
}
if (null !== $this->videoRedirect) {
$res['VideoRedirect'] = $this->videoRedirect;
}
if (null !== $this->visualQuality) {
$res['VisualQuality'] = $this->visualQuality;
}
if (null !== $this->watermark) {
$res['Watermark'] = $this->watermark;
}
if (null !== $this->watermarkAntiCam) {
$res['WatermarkAntiCam'] = $this->watermarkAntiCam;
}
if (null !== $this->watermarkColor) {
$res['WatermarkColor'] = $this->watermarkColor;
}
if (null !== $this->watermarkCustomText) {
$res['WatermarkCustomText'] = $this->watermarkCustomText;
}
if (null !== $this->watermarkDegree) {
$res['WatermarkDegree'] = $this->watermarkDegree;
}
if (null !== $this->watermarkFontSize) {
$res['WatermarkFontSize'] = $this->watermarkFontSize;
}
if (null !== $this->watermarkFontStyle) {
$res['WatermarkFontStyle'] = $this->watermarkFontStyle;
}
if (null !== $this->watermarkPower) {
$res['WatermarkPower'] = $this->watermarkPower;
}
if (null !== $this->watermarkRowAmount) {
$res['WatermarkRowAmount'] = $this->watermarkRowAmount;
}
if (null !== $this->watermarkSecurity) {
$res['WatermarkSecurity'] = $this->watermarkSecurity;
}
if (null !== $this->watermarkTransparency) {
$res['WatermarkTransparency'] = $this->watermarkTransparency;
}
if (null !== $this->watermarkTransparencyValue) {
$res['WatermarkTransparencyValue'] = $this->watermarkTransparencyValue;
}
if (null !== $this->watermarkType) {
$res['WatermarkType'] = $this->watermarkType;
}
if (null !== $this->wuyingKeeper) {
$res['WuyingKeeper'] = $this->wuyingKeeper;
}
if (null !== $this->wyAssistant) {
$res['WyAssistant'] = $this->wyAssistant;
}
return $res;
}