Model/TeamChatPolicyModel.ps1
|
# # Fly SDK API # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # Version: 1.0 # Contact: support@avepoint.com # Generated by OpenAPI Generator: https://openapi-generator.tech # <# .SYNOPSIS No summary available. .DESCRIPTION No description available. .PARAMETER IsMigrateAllChats No description available. .PARAMETER MigrateChatLaterThan No description available. .PARAMETER IsMigrateChatFiles No description available. .PARAMETER ChatFileConflictResolution * `Skip` = 0 * `Overwrite` = 1 * `Merge` = 2 * `OverwriteByLastModifiedTime` = 3 * `Append` = 4 .PARAMETER ManageLabelCondition * `KeepExisting` = 0 * `DoNotCopy` = 1 * `ApplySame` = 2 * `ConfigureCustom` = 3 .PARAMETER FileLabelMappingProfileId No description available. .PARAMETER IsProvideDestinationDomain No description available. .PARAMETER IsArchiveMessageAsHtml No description available. .PARAMETER IsConversationHtmlInChat No description available. .PARAMETER IsMigrateExternalUsers No description available. .PARAMETER IsSyncPinnedMessage No description available. .PARAMETER MessageTimeZoneId No description available. .PARAMETER IsMigrateWithoutOneDrive No description available. .PARAMETER DestinationDomain No description available. .PARAMETER UrlMappingProfileId No description available. .PARAMETER UserMappingProfileId No description available. .PARAMETER UserMappingRules No description available. .PARAMETER IsMigrateChatTabs No description available. .PARAMETER MigrationModuleType * `Exchange` = 0 * `Teams` = 1 * `SharePoint` = 2 * `OneDrive` = 3 * `M365Group` = 4 * `TeamChat` = 5 * `HostedExchange` = 6 * `PowerPlatform` = 7 * `Gmail` = 8 * `GoogleDrive` = 9 * `ActiveDirectory` = 10 * `Entra` = 11 * `DeviceToActiveDirectory` = 14 * `SPOToGDrive` = 21 * `ODriveToGDrive` = 22 * `GDriveToGDrive` = 23 * `ExchangeToGmail` = 24 * `TeamsToGoogleChat` = 25 * `TeamChatToGoogleDM` = 26 * `M365GroupToGoogleGroup` = 27 * `TeamChatToGoogleChat` = 28 .PARAMETER IsDefault No description available. .PARAMETER Notification No description available. .PARAMETER CustomizeFeatures No description available. .PARAMETER Name The name of the object .PARAMETER Description The description of the object .PARAMETER CreateTime The creation time of the object .PARAMETER CreateBy The user who create this object .PARAMETER LastModifyTime The last modified time of the object .PARAMETER LastModifyBy The user who last modified the object .PARAMETER Id The GUID of the object .OUTPUTS TeamChatPolicyModel<PSCustomObject> #> function Initialize-FlyTeamChatPolicyModel { [CmdletBinding()] Param ( [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsMigrateAllChats}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int64]] ${MigrateChatLaterThan}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsMigrateChatFiles}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${ChatFileConflictResolution}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${ManageLabelCondition}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${FileLabelMappingProfileId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsProvideDestinationDomain}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsArchiveMessageAsHtml}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsConversationHtmlInChat}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsMigrateExternalUsers}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsSyncPinnedMessage}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${MessageTimeZoneId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsMigrateWithoutOneDrive}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${DestinationDomain}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${UrlMappingProfileId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${UserMappingProfileId}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject[]] ${UserMappingRules}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsMigrateChatTabs}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${MigrationModuleType}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Boolean]] ${IsDefault}, [Parameter(ValueFromPipelineByPropertyName = $true)] [PSCustomObject] ${Notification}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String[]] ${CustomizeFeatures}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Name}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Description}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int64]] ${CreateTime}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${CreateBy}, [Parameter(ValueFromPipelineByPropertyName = $true)] [System.Nullable[Int64]] ${LastModifyTime}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${LastModifyBy}, [Parameter(ValueFromPipelineByPropertyName = $true)] [String] ${Id} ) Process { 'Creating PSCustomObject: Fly.Client => FlyTeamChatPolicyModel' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $PSO = [PSCustomObject]@{ "isMigrateAllChats" = ${IsMigrateAllChats} "migrateChatLaterThan" = ${MigrateChatLaterThan} "isMigrateChatFiles" = ${IsMigrateChatFiles} "chatFileConflictResolution" = ${ChatFileConflictResolution} "manageLabelCondition" = ${ManageLabelCondition} "fileLabelMappingProfileId" = ${FileLabelMappingProfileId} "isProvideDestinationDomain" = ${IsProvideDestinationDomain} "isArchiveMessageAsHtml" = ${IsArchiveMessageAsHtml} "isConversationHtmlInChat" = ${IsConversationHtmlInChat} "isMigrateExternalUsers" = ${IsMigrateExternalUsers} "isSyncPinnedMessage" = ${IsSyncPinnedMessage} "messageTimeZoneId" = ${MessageTimeZoneId} "isMigrateWithoutOneDrive" = ${IsMigrateWithoutOneDrive} "destinationDomain" = ${DestinationDomain} "urlMappingProfileId" = ${UrlMappingProfileId} "userMappingProfileId" = ${UserMappingProfileId} "userMappingRules" = ${UserMappingRules} "isMigrateChatTabs" = ${IsMigrateChatTabs} "migrationModuleType" = ${MigrationModuleType} "isDefault" = ${IsDefault} "notification" = ${Notification} "customizeFeatures" = ${CustomizeFeatures} "name" = ${Name} "description" = ${Description} "createTime" = ${CreateTime} "createBy" = ${CreateBy} "lastModifyTime" = ${LastModifyTime} "lastModifyBy" = ${LastModifyBy} "id" = ${Id} } return $PSO } } <# .SYNOPSIS Convert from JSON to TeamChatPolicyModel<PSCustomObject> .DESCRIPTION Convert from JSON to TeamChatPolicyModel<PSCustomObject> .PARAMETER Json Json object .OUTPUTS TeamChatPolicyModel<PSCustomObject> #> function ConvertFrom-FlyJsonToTeamChatPolicyModel { Param( [AllowEmptyString()] [string]$Json ) Process { 'Converting JSON to PSCustomObject: Fly.Client => FlyTeamChatPolicyModel' | Write-Debug $PSBoundParameters | Out-DebugParameter | Write-Debug $JsonParameters = ConvertFrom-Json -InputObject $Json # check if Json contains properties not defined in FlyTeamChatPolicyModel $AllProperties = ("isMigrateAllChats", "migrateChatLaterThan", "isMigrateChatFiles", "chatFileConflictResolution", "manageLabelCondition", "fileLabelMappingProfileId", "isProvideDestinationDomain", "isArchiveMessageAsHtml", "isConversationHtmlInChat", "isMigrateExternalUsers", "isSyncPinnedMessage", "messageTimeZoneId", "isMigrateWithoutOneDrive", "destinationDomain", "urlMappingProfileId", "userMappingProfileId", "userMappingRules", "isMigrateChatTabs", "migrationModuleType", "isDefault", "notification", "customizeFeatures", "name", "description", "createTime", "createBy", "lastModifyTime", "lastModifyBy", "id") foreach ($name in $JsonParameters.PsObject.Properties.Name) { if (!($AllProperties.Contains($name))) { throw "Error! JSON key '$name' not found in the properties: $($AllProperties)" } } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isMigrateAllChats"))) { #optional property not found $IsMigrateAllChats = $null } else { $IsMigrateAllChats = $JsonParameters.PSobject.Properties["isMigrateAllChats"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "migrateChatLaterThan"))) { #optional property not found $MigrateChatLaterThan = $null } else { $MigrateChatLaterThan = $JsonParameters.PSobject.Properties["migrateChatLaterThan"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isMigrateChatFiles"))) { #optional property not found $IsMigrateChatFiles = $null } else { $IsMigrateChatFiles = $JsonParameters.PSobject.Properties["isMigrateChatFiles"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "chatFileConflictResolution"))) { #optional property not found $ChatFileConflictResolution = $null } else { $ChatFileConflictResolution = $JsonParameters.PSobject.Properties["chatFileConflictResolution"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "manageLabelCondition"))) { #optional property not found $ManageLabelCondition = $null } else { $ManageLabelCondition = $JsonParameters.PSobject.Properties["manageLabelCondition"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "fileLabelMappingProfileId"))) { #optional property not found $FileLabelMappingProfileId = $null } else { $FileLabelMappingProfileId = $JsonParameters.PSobject.Properties["fileLabelMappingProfileId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isProvideDestinationDomain"))) { #optional property not found $IsProvideDestinationDomain = $null } else { $IsProvideDestinationDomain = $JsonParameters.PSobject.Properties["isProvideDestinationDomain"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isArchiveMessageAsHtml"))) { #optional property not found $IsArchiveMessageAsHtml = $null } else { $IsArchiveMessageAsHtml = $JsonParameters.PSobject.Properties["isArchiveMessageAsHtml"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isConversationHtmlInChat"))) { #optional property not found $IsConversationHtmlInChat = $null } else { $IsConversationHtmlInChat = $JsonParameters.PSobject.Properties["isConversationHtmlInChat"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isMigrateExternalUsers"))) { #optional property not found $IsMigrateExternalUsers = $null } else { $IsMigrateExternalUsers = $JsonParameters.PSobject.Properties["isMigrateExternalUsers"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isSyncPinnedMessage"))) { #optional property not found $IsSyncPinnedMessage = $null } else { $IsSyncPinnedMessage = $JsonParameters.PSobject.Properties["isSyncPinnedMessage"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "messageTimeZoneId"))) { #optional property not found $MessageTimeZoneId = $null } else { $MessageTimeZoneId = $JsonParameters.PSobject.Properties["messageTimeZoneId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isMigrateWithoutOneDrive"))) { #optional property not found $IsMigrateWithoutOneDrive = $null } else { $IsMigrateWithoutOneDrive = $JsonParameters.PSobject.Properties["isMigrateWithoutOneDrive"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "destinationDomain"))) { #optional property not found $DestinationDomain = $null } else { $DestinationDomain = $JsonParameters.PSobject.Properties["destinationDomain"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "urlMappingProfileId"))) { #optional property not found $UrlMappingProfileId = $null } else { $UrlMappingProfileId = $JsonParameters.PSobject.Properties["urlMappingProfileId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "userMappingProfileId"))) { #optional property not found $UserMappingProfileId = $null } else { $UserMappingProfileId = $JsonParameters.PSobject.Properties["userMappingProfileId"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "userMappingRules"))) { #optional property not found $UserMappingRules = $null } else { $UserMappingRules = $JsonParameters.PSobject.Properties["userMappingRules"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isMigrateChatTabs"))) { #optional property not found $IsMigrateChatTabs = $null } else { $IsMigrateChatTabs = $JsonParameters.PSobject.Properties["isMigrateChatTabs"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "migrationModuleType"))) { #optional property not found $MigrationModuleType = $null } else { $MigrationModuleType = $JsonParameters.PSobject.Properties["migrationModuleType"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "isDefault"))) { #optional property not found $IsDefault = $null } else { $IsDefault = $JsonParameters.PSobject.Properties["isDefault"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "notification"))) { #optional property not found $Notification = $null } else { $Notification = $JsonParameters.PSobject.Properties["notification"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "customizeFeatures"))) { #optional property not found $CustomizeFeatures = $null } else { $CustomizeFeatures = $JsonParameters.PSobject.Properties["customizeFeatures"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "name"))) { #optional property not found $Name = $null } else { $Name = $JsonParameters.PSobject.Properties["name"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "description"))) { #optional property not found $Description = $null } else { $Description = $JsonParameters.PSobject.Properties["description"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "createTime"))) { #optional property not found $CreateTime = $null } else { $CreateTime = $JsonParameters.PSobject.Properties["createTime"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "createBy"))) { #optional property not found $CreateBy = $null } else { $CreateBy = $JsonParameters.PSobject.Properties["createBy"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "lastModifyTime"))) { #optional property not found $LastModifyTime = $null } else { $LastModifyTime = $JsonParameters.PSobject.Properties["lastModifyTime"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "lastModifyBy"))) { #optional property not found $LastModifyBy = $null } else { $LastModifyBy = $JsonParameters.PSobject.Properties["lastModifyBy"].value } if (!([bool]($JsonParameters.PSobject.Properties.name -match "id"))) { #optional property not found $Id = $null } else { $Id = $JsonParameters.PSobject.Properties["id"].value } $PSO = [PSCustomObject]@{ "isMigrateAllChats" = ${IsMigrateAllChats} "migrateChatLaterThan" = ${MigrateChatLaterThan} "isMigrateChatFiles" = ${IsMigrateChatFiles} "chatFileConflictResolution" = ${ChatFileConflictResolution} "manageLabelCondition" = ${ManageLabelCondition} "fileLabelMappingProfileId" = ${FileLabelMappingProfileId} "isProvideDestinationDomain" = ${IsProvideDestinationDomain} "isArchiveMessageAsHtml" = ${IsArchiveMessageAsHtml} "isConversationHtmlInChat" = ${IsConversationHtmlInChat} "isMigrateExternalUsers" = ${IsMigrateExternalUsers} "isSyncPinnedMessage" = ${IsSyncPinnedMessage} "messageTimeZoneId" = ${MessageTimeZoneId} "isMigrateWithoutOneDrive" = ${IsMigrateWithoutOneDrive} "destinationDomain" = ${DestinationDomain} "urlMappingProfileId" = ${UrlMappingProfileId} "userMappingProfileId" = ${UserMappingProfileId} "userMappingRules" = ${UserMappingRules} "isMigrateChatTabs" = ${IsMigrateChatTabs} "migrationModuleType" = ${MigrationModuleType} "isDefault" = ${IsDefault} "notification" = ${Notification} "customizeFeatures" = ${CustomizeFeatures} "name" = ${Name} "description" = ${Description} "createTime" = ${CreateTime} "createBy" = ${CreateBy} "lastModifyTime" = ${LastModifyTime} "lastModifyBy" = ${LastModifyBy} "id" = ${Id} } return $PSO } } |