Model/ApiMyGroup.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 ObjectId
No description available.

.PARAMETER PolicyId
No description available.

.PARAMETER TenantId
No description available.

.PARAMETER GroupName
No description available.

.PARAMETER Email
No description available.

.PARAMETER Language
No description available.

.PARAMETER ApplyPolicyStatus
No description available.

.PARAMETER EnableTeamCollaboration
No description available.

.PARAMETER GroupType
No description available.

.PARAMETER CreatedTime
No description available.

.PARAMETER Owners
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

ApiMyGroup<PSCustomObject>
#>


function New-ApiMyGroup {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${ObjectId},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${PolicyId},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${TenantId},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${GroupName},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Email},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${Language},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${ApplyPolicyStatus},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableTeamCollaboration},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [String]
        ${GroupType},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[System.DateTime]]
        ${CreatedTime},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${Owners},
        [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 => ApiMyGroup' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug

        $PSO = [PSCustomObject]@{
            "objectId" = ${ObjectId}
            "policyId" = ${PolicyId}
            "tenantId" = ${TenantId}
            "groupName" = ${GroupName}
            "email" = ${Email}
            "language" = ${Language}
            "applyPolicyStatus" = ${ApplyPolicyStatus}
            "enableTeamCollaboration" = ${EnableTeamCollaboration}
            "groupType" = ${GroupType}
            "createdTime" = ${CreatedTime}
            "owners" = ${Owners}
            "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
    }
}