Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
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
20 changes: 20 additions & 0 deletions lib/services/databoxManagement/lib/models/copyProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ class CopyProgress {
* of now.
* @member {number} [totalBytesToProcess] Total amount of data to be
* processed by the job.
* @member {number} [filesProcessed] Number of files processed by the job as
* of now.
* @member {number} [totalFilesToProcess] Total number of files to be
* processed by the job.
*/
constructor() {
}
Expand Down Expand Up @@ -74,6 +78,22 @@ class CopyProgress {
type: {
name: 'Number'
}
},
filesProcessed: {
required: false,
readOnly: true,
serializedName: 'filesProcessed',
type: {
name: 'Number'
}
},
totalFilesToProcess: {
required: false,
readOnly: true,
serializedName: 'totalFilesToProcess',
type: {
name: 'Number'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ class DataBoxDiskJobDetails extends models['JobDetails'] {
serializedName: 'DestinationAccountDetailsElementType',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'dataDestinationType',
clientName: 'dataDestinationType'
},
uberParent: 'DestinationAccountDetails',
className: 'DestinationAccountDetails'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const models = require('./index');

/**
* Copy log details for a storage account for Databox heavy
* Copy log details for a storage account for DataBoxHeavy
*
* @extends models['CopyLogDetails']
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const models = require('./index');

/**
* Databox Heavy Device Job Details
* DataBoxHeavy Device Job Details
*
* @extends models['JobDetails']
*/
Expand Down Expand Up @@ -112,6 +112,11 @@ class DataBoxHeavyJobDetails extends models['JobDetails'] {
serializedName: 'DestinationAccountDetailsElementType',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'dataDestinationType',
clientName: 'dataDestinationType'
},
uberParent: 'DestinationAccountDetails',
className: 'DestinationAccountDetails'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
const models = require('./index');

/**
* The secrets related to a databox heavy job.
* The secrets related to a DataBoxHeavy job.
*
* @extends models['JobSecrets']
*/
class DataBoxHeavyJobSecrets extends models['JobSecrets'] {
/**
* Create a DataBoxHeavyJobSecrets.
* @member {array} [cabinetPodSecrets] Contains the list of secret objects
* for a databox heavy job.
* for a DataBoxHeavy job.
*/
constructor() {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'use strict';

/**
* The secrets related to a databox heavy.
* The secrets related to a DataBoxHeavy.
*
*/
class DataBoxHeavySecret {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const models = require('./index');

/**
* Databox Job Details
* DataBox Job Details
*
* @extends models['JobDetails']
*/
Expand Down Expand Up @@ -112,6 +112,11 @@ class DataBoxJobDetails extends models['JobDetails'] {
serializedName: 'DestinationAccountDetailsElementType',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'dataDestinationType',
clientName: 'dataDestinationType'
},
uberParent: 'DestinationAccountDetails',
className: 'DestinationAccountDetails'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
const models = require('./index');

/**
* The secrets related to a databox job.
* The secrets related to a DataBox job.
*
* @extends models['JobSecrets']
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
'use strict';

/**
* Details for the destination account.
* Details of the destination of the data
*
*/
class DestinationAccountDetails {
/**
* Create a DestinationAccountDetails.
* @member {string} accountId Destination storage account id.
* @member {string} [accountId] Arm Id of the destination where the data has
* to be moved.
* @member {string} dataDestinationType Polymorphic Discriminator
*/
constructor() {
}
Expand All @@ -34,14 +36,27 @@ class DestinationAccountDetails {
serializedName: 'DestinationAccountDetails',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'dataDestinationType',
clientName: 'dataDestinationType'
},
uberParent: 'DestinationAccountDetails',
className: 'DestinationAccountDetails',
modelProperties: {
accountId: {
required: true,
required: false,
serializedName: 'accountId',
type: {
name: 'String'
}
},
dataDestinationType: {
required: true,
serializedName: 'dataDestinationType',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Details for the destination compute disks.
*
* @extends models['DestinationAccountDetails']
*/
class DestinationManagedDiskDetails extends models['DestinationAccountDetails'] {
/**
* Create a DestinationManagedDiskDetails.
* @member {string} resourceGroupId Destination Resource Group Id where the
* Compute disks should be created.
* @member {string} stagingStorageAccountId Arm Id of the storage account
* that can be used to copy the vhd for staging.
*/
constructor() {
super();
}

/**
* Defines the metadata of DestinationManagedDiskDetails
*
* @returns {object} metadata of DestinationManagedDiskDetails
*
*/
mapper() {
return {
required: false,
serializedName: 'ManagedDisk',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'dataDestinationType',
clientName: 'dataDestinationType'
},
uberParent: 'DestinationAccountDetails',
className: 'DestinationManagedDiskDetails',
modelProperties: {
accountId: {
required: false,
serializedName: 'accountId',
type: {
name: 'String'
}
},
dataDestinationType: {
required: true,
serializedName: 'dataDestinationType',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
resourceGroupId: {
required: true,
serializedName: 'resourceGroupId',
type: {
name: 'String'
}
},
stagingStorageAccountId: {
required: true,
serializedName: 'stagingStorageAccountId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DestinationManagedDiskDetails;
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Details for the destination storage account.
*
* @extends models['DestinationAccountDetails']
*/
class DestinationStorageAccountDetails extends models['DestinationAccountDetails'] {
/**
* Create a DestinationStorageAccountDetails.
* @member {string} storageAccountId Destination Storage Account Arm Id.
*/
constructor() {
super();
}

/**
* Defines the metadata of DestinationStorageAccountDetails
*
* @returns {object} metadata of DestinationStorageAccountDetails
*
*/
mapper() {
return {
required: false,
serializedName: 'StorageAccount',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'dataDestinationType',
clientName: 'dataDestinationType'
},
uberParent: 'DestinationAccountDetails',
className: 'DestinationStorageAccountDetails',
modelProperties: {
accountId: {
required: false,
serializedName: 'accountId',
type: {
name: 'String'
}
},
dataDestinationType: {
required: true,
serializedName: 'dataDestinationType',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
storageAccountId: {
required: true,
serializedName: 'storageAccountId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DestinationStorageAccountDetails;
Loading