Model/MySite.ps1

#
# Cloud Governance Api
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
# Version: 1.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

<#
.SYNOPSIS

No summary available.

.DESCRIPTION

No description available.

.PARAMETER FullUrl
No description available.

.PARAMETER Title
No description available.

.PARAMETER Department
No description available.

.PARAMETER Description
No description available.

.PARAMETER Size
No description available.

.PARAMETER Type
No description available.

.PARAMETER MySiteType
No description available.

.PARAMETER CreatedTime
No description available.

.PARAMETER StorageUsed
No description available.

.PARAMETER PrimaryAdministrator
No description available.

.PARAMETER AdditionalAdministrator
No description available.

.PARAMETER PreferredDataLocation
No description available.

.PARAMETER PreferredDataLocationName
No description available.

.PARAMETER Id
No description available.

.PARAMETER Phase
No description available.

.PARAMETER PhaseStartTime
No description available.

.PARAMETER PhaseDescription
No description available.

.PARAMETER AutoImportProfileId
No description available.

.PARAMETER AutoImportProfileName
No description available.

.PARAMETER PolicyName
No description available.

.PARAMETER PolicyDescription
No description available.

.PARAMETER IsCurrentRenewer
No description available.

.PARAMETER PhaseAssignees
No description available.

.PARAMETER PhaseDueDate
No description available.

.PARAMETER Metadatas
No description available.

.PARAMETER PrimaryContact
No description available.

.PARAMETER SecondaryContact
No description available.

.OUTPUTS

MySite<PSCustomObject>
#>


function New-MySite {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${FullUrl},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Title},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Department},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Description},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int64]]
        ${Size},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Type},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${MySiteType},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${CreatedTime},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${StorageUsed},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${PrimaryAdministrator},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${AdditionalAdministrator},
        [Parameter(Position = 11, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${PreferredDataLocation},
        [Parameter(Position = 12, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${PreferredDataLocationName},
        [Parameter(Position = 13, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Id},
        [Parameter(Position = 14, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${Phase},
        [Parameter(Position = 15, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${PhaseStartTime},
        [Parameter(Position = 16, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${PhaseDescription},
        [Parameter(Position = 17, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${AutoImportProfileId},
        [Parameter(Position = 18, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${AutoImportProfileName},
        [Parameter(Position = 19, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${PolicyName},
        [Parameter(Position = 20, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${PolicyDescription},
        [Parameter(Position = 21, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsCurrentRenewer},
        [Parameter(Position = 22, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${PhaseAssignees},
        [Parameter(Position = 23, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${PhaseDueDate},
        [Parameter(Position = 24, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${Metadatas},
        [Parameter(Position = 25, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${PrimaryContact},
        [Parameter(Position = 26, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${SecondaryContact}
    )

    Process {
        'Creating object: Cloud.Governance.Client => MySite' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug

        $PSO = [PSCustomObject]@{
            "fullUrl" = ${FullUrl}
            "title" = ${Title}
            "department" = ${Department}
            "description" = ${Description}
            "size" = ${Size}
            "type" = ${Type}
            "mySiteType" = ${MySiteType}
            "createdTime" = ${CreatedTime}
            "storageUsed" = ${StorageUsed}
            "primaryAdministrator" = ${PrimaryAdministrator}
            "additionalAdministrator" = ${AdditionalAdministrator}
            "preferredDataLocation" = ${PreferredDataLocation}
            "preferredDataLocationName" = ${PreferredDataLocationName}
            "id" = ${Id}
            "phase" = ${Phase}
            "phaseStartTime" = ${PhaseStartTime}
            "phaseDescription" = ${PhaseDescription}
            "autoImportProfileId" = ${AutoImportProfileId}
            "autoImportProfileName" = ${AutoImportProfileName}
            "policyName" = ${PolicyName}
            "policyDescription" = ${PolicyDescription}
            "isCurrentRenewer" = ${IsCurrentRenewer}
            "phaseAssignees" = ${PhaseAssignees}
            "phaseDueDate" = ${PhaseDueDate}
            "metadatas" = ${Metadatas}
            "primaryContact" = ${PrimaryContact}
            "secondaryContact" = ${SecondaryContact}
        }

        return $PSO
    }
}