Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/DataBox/DataBox.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataBox")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.3")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.3")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

4 changes: 2 additions & 2 deletions src/DataBox/DataBox.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
# You need to specify your swagger files here.
- $(repo)/specification/databox/resource-manager/Microsoft.DataBox/stable/2022-12-01/databox.json
- "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/cb5ef7fc4cb443bd5f6b21d02cbce41051beb6ae/specification/databox/resource-manager/Microsoft.DataBox/stable/2025-02-01/databox.json"
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
# - (this-folder)/relative-path-to-your-swagger

Expand Down Expand Up @@ -148,7 +148,7 @@ directive:

- from: source-file-csharp
where: $
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobSecrets', 'public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20210301.IJobSecrets');
transform: $ = $.replace('internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets', 'public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets');

- model-cmdlet:
- DataBoxDiskJobDetails
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "jobs",
"apiVersion": "2022-12-01",
"apiVersion": "2025-02-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.databox"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,47 +21,47 @@ Create an in-memory object for DataBoxCustomerDiskJobDetails.
Create an in-memory object for DataBoxCustomerDiskJobDetails.

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails
Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails
.Link
https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxCustomerDiskJobDetailsObject
#>
function New-AzDataBoxCustomerDiskJobDetailsObject {
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails')]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails')]
[CmdletBinding(PositionalBinding=$false)]
Param(

[Parameter(HelpMessage="Contains the map of disk serial number to the disk details for import jobs.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection]
$ImportDiskDetailsCollection,
[Parameter(HelpMessage="Contains the map of disk serial number to the disk details for export jobs.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection]
$ExportDiskDetailsCollection,
[Parameter(HelpMessage="Carrier Account Number of customer for customer disk.")]
[string]
$ReturnToCustomerPackageDetailCarrierAccountNumber,
[Parameter(Mandatory, HelpMessage="Contact details for notification and shipping.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails]
$ContactDetail,
[Parameter(HelpMessage="Details of the data to be exported from azure.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]]
$DataExportDetail,
[Parameter(HelpMessage="Details of the data to be imported into azure.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]]
$DataImportDetail,
[Parameter(HelpMessage="The expected size of the data, which needs to be transferred in this job, in terabytes.")]
[int]
$ExpectedDataSizeInTeraByte,
[Parameter(HelpMessage="Details about which key encryption type is being used.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey]
$KeyEncryptionKey,
[Parameter(HelpMessage="Preferences for the order.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences]
$Preference,
[Parameter(HelpMessage="Optional Reverse Shipping details for order.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails]
$ReverseShippingDetail,
[Parameter(HelpMessage="Shipping address of the customer.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress]
$ShippingAddress,
[Parameter(Mandatory, HelpMessage="Indicates the type of job details.")]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator])]
Expand All @@ -70,7 +70,7 @@ function New-AzDataBoxCustomerDiskJobDetailsObject {
)

process {
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails]::New()
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails]::New()

if ($PSBoundParameters.ContainsKey('ImportDiskDetailsCollection')) {
$Object.ImportDiskDetailsCollection = $ImportDiskDetailsCollection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Create an in-memory object for ContactDetails.
Create an in-memory object for ContactDetails.

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails
Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails
.Link
https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxContactDetailsObject
#>
function New-AzDataBoxContactDetailsObject {
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails')]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails')]
[CmdletBinding(PositionalBinding=$false)]
Param(

Expand All @@ -40,7 +40,7 @@ function New-AzDataBoxContactDetailsObject {
[string]
$Mobile,
[Parameter(HelpMessage="Notification preference for a job stage.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[]]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[]]
$NotificationPreference,
[Parameter(Mandatory, HelpMessage="Phone number of the contact person.")]
[string]
Expand All @@ -51,7 +51,7 @@ function New-AzDataBoxContactDetailsObject {
)

process {
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails]::New()
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails]::New()

if ($PSBoundParameters.ContainsKey('ContactName')) {
$Object.ContactName = $ContactName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,44 +21,44 @@ Create an in-memory object for DataBoxDiskJobDetails.
Create an in-memory object for DataBoxDiskJobDetails.

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails
Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails
.Link
https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxDiskJobDetailsObject
#>
function New-AzDataBoxDiskJobDetailsObject {
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails')]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails')]
[CmdletBinding(PositionalBinding=$false)]
Param(

[Parameter(HelpMessage="User entered passkey for DataBox Disk job.")]
[string]
$Passkey,
[Parameter(HelpMessage="User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks]
$PreferredDisk,
[Parameter(Mandatory, HelpMessage="Contact details for notification and shipping.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails]
$ContactDetail,
[Parameter(HelpMessage="Details of the data to be exported from azure.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]]
$DataExportDetail,
[Parameter(HelpMessage="Details of the data to be imported into azure.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]]
$DataImportDetail,
[Parameter(HelpMessage="The expected size of the data, which needs to be transferred in this job, in terabytes.")]
[int]
$ExpectedDataSizeInTeraByte,
[Parameter(HelpMessage="Details about which key encryption type is being used.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey]
$KeyEncryptionKey,
[Parameter(HelpMessage="Preferences for the order.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences]
$Preference,
[Parameter(HelpMessage="Optional Reverse Shipping details for order.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails]
$ReverseShippingDetail,
[Parameter(HelpMessage="Shipping address of the customer.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress]
$ShippingAddress,
[Parameter(Mandatory, HelpMessage="Indicates the type of job details.")]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator])]
Expand All @@ -67,7 +67,7 @@ function New-AzDataBoxDiskJobDetailsObject {
)

process {
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails]::New()
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails]::New()

if ($PSBoundParameters.ContainsKey('Passkey')) {
$Object.Passkey = $Passkey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,41 @@ Create an in-memory object for DataBoxHeavyJobDetails.
Create an in-memory object for DataBoxHeavyJobDetails.

.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails
Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails
.Link
https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxHeavyJobDetailsObject
#>
function New-AzDataBoxHeavyJobDetailsObject {
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails')]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails')]
[CmdletBinding(PositionalBinding=$false)]
Param(

[Parameter(HelpMessage="Set Device password for unlocking Databox Heavy. Should not be passed for TransferType:ExportFromAzure jobs. If this is not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+.")]
[string]
$DevicePassword,
[Parameter(Mandatory, HelpMessage="Contact details for notification and shipping.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails]
$ContactDetail,
[Parameter(HelpMessage="Details of the data to be exported from azure.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]]
$DataExportDetail,
[Parameter(HelpMessage="Details of the data to be imported into azure.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]]
$DataImportDetail,
[Parameter(HelpMessage="The expected size of the data, which needs to be transferred in this job, in terabytes.")]
[int]
$ExpectedDataSizeInTeraByte,
[Parameter(HelpMessage="Details about which key encryption type is being used.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey]
$KeyEncryptionKey,
[Parameter(HelpMessage="Preferences for the order.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences]
$Preference,
[Parameter(HelpMessage="Optional Reverse Shipping details for order.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails]
$ReverseShippingDetail,
[Parameter(HelpMessage="Shipping address of the customer.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress]
[Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress]
$ShippingAddress,
[Parameter(Mandatory, HelpMessage="Indicates the type of job details.")]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator])]
Expand All @@ -64,7 +64,7 @@ function New-AzDataBoxHeavyJobDetailsObject {
)

process {
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails]::New()
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails]::New()

if ($PSBoundParameters.ContainsKey('DevicePassword')) {
$Object.DevicePassword = $DevicePassword
Expand Down
Loading