|
| 1 | + |
| 2 | +# ---------------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# Unless required by applicable law or agreed to in writing, software |
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing permissions and |
| 12 | +# limitations under the License. |
| 13 | +# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code |
| 14 | +# is regenerated. |
| 15 | +# ---------------------------------------------------------------------------------- |
| 16 | + |
| 17 | +<# |
| 18 | +.Synopsis |
| 19 | +Create an in-memory object for DataBoxCustomerDiskJobDetails. |
| 20 | +.Description |
| 21 | +Create an in-memory object for DataBoxCustomerDiskJobDetails. |
| 22 | +
|
| 23 | +.Outputs |
| 24 | +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails |
| 25 | +.Link |
| 26 | +https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxCustomerDiskJobDetailsObject |
| 27 | +#> |
| 28 | +function New-AzDataBoxCustomerDiskJobDetailsObject { |
| 29 | + [OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails')] |
| 30 | + [CmdletBinding(PositionalBinding=$false)] |
| 31 | + Param( |
| 32 | + |
| 33 | + [Parameter(HelpMessage="Contains the map of disk serial number to the disk details for import jobs.")] |
| 34 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection] |
| 35 | + $ImportDiskDetailsCollection, |
| 36 | + [Parameter(HelpMessage="Contains the map of disk serial number to the disk details for export jobs.")] |
| 37 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection] |
| 38 | + $ExportDiskDetailsCollection, |
| 39 | + [Parameter(HelpMessage="Carrier Account Number of customer for customer disk.")] |
| 40 | + [string] |
| 41 | + $ReturnToCustomerPackageDetailCarrierAccountNumber, |
| 42 | + [Parameter(Mandatory, HelpMessage="Contact details for notification and shipping.")] |
| 43 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] |
| 44 | + $ContactDetail, |
| 45 | + [Parameter(HelpMessage="Details of the data to be exported from azure.")] |
| 46 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] |
| 47 | + $DataExportDetail, |
| 48 | + [Parameter(HelpMessage="Details of the data to be imported into azure.")] |
| 49 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] |
| 50 | + $DataImportDetail, |
| 51 | + [Parameter(HelpMessage="The expected size of the data, which needs to be transferred in this job, in terabytes.")] |
| 52 | + [int] |
| 53 | + $ExpectedDataSizeInTeraByte, |
| 54 | + [Parameter(HelpMessage="Details about which key encryption type is being used.")] |
| 55 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] |
| 56 | + $KeyEncryptionKey, |
| 57 | + [Parameter(HelpMessage="Preferences for the order.")] |
| 58 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] |
| 59 | + $Preference, |
| 60 | + [Parameter(HelpMessage="Optional Reverse Shipping details for order.")] |
| 61 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] |
| 62 | + $ReverseShippingDetail, |
| 63 | + [Parameter(HelpMessage="Shipping address of the customer.")] |
| 64 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] |
| 65 | + $ShippingAddress, |
| 66 | + [Parameter(Mandatory, HelpMessage="Indicates the type of job details.")] |
| 67 | + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator])] |
| 68 | + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator] |
| 69 | + $Type |
| 70 | + ) |
| 71 | + |
| 72 | + process { |
| 73 | + $Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails]::New() |
| 74 | + |
| 75 | + if ($PSBoundParameters.ContainsKey('ImportDiskDetailsCollection')) { |
| 76 | + $Object.ImportDiskDetailsCollection = $ImportDiskDetailsCollection |
| 77 | + } |
| 78 | + if ($PSBoundParameters.ContainsKey('ExportDiskDetailsCollection')) { |
| 79 | + $Object.ExportDiskDetailsCollection = $ExportDiskDetailsCollection |
| 80 | + } |
| 81 | + if ($PSBoundParameters.ContainsKey('ReturnToCustomerPackageDetailCarrierAccountNumber')) { |
| 82 | + $Object.ReturnToCustomerPackageDetailCarrierAccountNumber = $ReturnToCustomerPackageDetailCarrierAccountNumber |
| 83 | + } |
| 84 | + if ($PSBoundParameters.ContainsKey('ContactDetail')) { |
| 85 | + $Object.ContactDetail = $ContactDetail |
| 86 | + } |
| 87 | + if ($PSBoundParameters.ContainsKey('DataExportDetail')) { |
| 88 | + $Object.DataExportDetail = $DataExportDetail |
| 89 | + } |
| 90 | + if ($PSBoundParameters.ContainsKey('DataImportDetail')) { |
| 91 | + $Object.DataImportDetail = $DataImportDetail |
| 92 | + } |
| 93 | + if ($PSBoundParameters.ContainsKey('ExpectedDataSizeInTeraByte')) { |
| 94 | + $Object.ExpectedDataSizeInTeraByte = $ExpectedDataSizeInTeraByte |
| 95 | + } |
| 96 | + if ($PSBoundParameters.ContainsKey('KeyEncryptionKey')) { |
| 97 | + $Object.KeyEncryptionKey = $KeyEncryptionKey |
| 98 | + } |
| 99 | + if ($PSBoundParameters.ContainsKey('Preference')) { |
| 100 | + $Object.Preference = $Preference |
| 101 | + } |
| 102 | + if ($PSBoundParameters.ContainsKey('ReverseShippingDetail')) { |
| 103 | + $Object.ReverseShippingDetail = $ReverseShippingDetail |
| 104 | + } |
| 105 | + if ($PSBoundParameters.ContainsKey('ShippingAddress')) { |
| 106 | + $Object.ShippingAddress = $ShippingAddress |
| 107 | + } |
| 108 | + if ($PSBoundParameters.ContainsKey('Type')) { |
| 109 | + $Object.Type = $Type |
| 110 | + } |
| 111 | + return $Object |
| 112 | + } |
| 113 | +} |
| 114 | + |
0 commit comments