[AutoPR databox/resource-manager] specs changes for azure databox ga (#3588)
* Generated from 49931f3ebc246efd5e3bfa2211c1b261d809a8ed specs changes for azure databox ga * Generated from 365114419cd2d4e7d6a506b949a10597e81d7a0c 1) Fixing readme.md for build 2) Moving to stable folder * Generated from 080d60a60e65dbe37c8cf60da7e033aa86cf4a2a updating readme to include sdk for all languages * Generated from 7f973829ece4bbb07ce56743d36064b46435e531 Addition of optional list of sku names for filter while getting skuinfo
This commit is contained in:
Родитель
f871fc7f20
Коммит
ba6f5bd6a1
|
@ -1,21 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
|
|
@ -1,40 +1,40 @@
|
|||
---
|
||||
uid: azure-arm-databox
|
||||
summary: *content
|
||||
|
||||
---
|
||||
# Microsoft Azure SDK for Node.js - DataBoxManagementClient
|
||||
This project provides a Node.js package for accessing Azure. Right now it supports:
|
||||
- **Node.js version 6.x.x or higher**
|
||||
|
||||
## Features
|
||||
|
||||
|
||||
## How to Install
|
||||
|
||||
```bash
|
||||
npm install azure-arm-databox
|
||||
```
|
||||
|
||||
## How to use
|
||||
|
||||
### Authentication, client creation and list operations as an example.
|
||||
|
||||
```javascript
|
||||
const msRestAzure = require("ms-rest-azure");
|
||||
const DataBoxManagementClient = require("azure-arm-databox");
|
||||
msRestAzure.interactiveLogin().then((creds) => {
|
||||
const subscriptionId = "<Subscription_Id>";
|
||||
const client = new DataBoxManagementClient(creds, subscriptionId);
|
||||
return client.operations.list().then((result) => {
|
||||
console.log("The result is:");
|
||||
console.log(result);
|
||||
});
|
||||
}).catch((err) => {
|
||||
console.log('An error occurred:');
|
||||
console.dir(err, {depth: null, colors: true});
|
||||
});
|
||||
|
||||
## Related projects
|
||||
|
||||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
|
||||
---
|
||||
uid: azure-arm-databox
|
||||
summary: *content
|
||||
|
||||
---
|
||||
# Microsoft Azure SDK for Node.js - DataBoxManagementClient
|
||||
This project provides a Node.js package for accessing Azure. Right now it supports:
|
||||
- **Node.js version 6.x.x or higher**
|
||||
|
||||
## Features
|
||||
|
||||
|
||||
## How to Install
|
||||
|
||||
```bash
|
||||
npm install azure-arm-databox
|
||||
```
|
||||
|
||||
## How to use
|
||||
|
||||
### Authentication, client creation and list operations as an example.
|
||||
|
||||
```javascript
|
||||
const msRestAzure = require("ms-rest-azure");
|
||||
const DataBoxManagementClient = require("azure-arm-databox");
|
||||
msRestAzure.interactiveLogin().then((creds) => {
|
||||
const subscriptionId = "<Subscription_Id>";
|
||||
const client = new DataBoxManagementClient(creds, subscriptionId);
|
||||
return client.operations.list().then((result) => {
|
||||
console.log("The result is:");
|
||||
console.log(result);
|
||||
});
|
||||
}).catch((err) => {
|
||||
console.log('An error occurred:');
|
||||
console.dir(err, {depth: null, colors: true});
|
||||
});
|
||||
|
||||
## Related projects
|
||||
|
||||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
|
||||
|
|
|
@ -20,8 +20,10 @@ class AccountCredentialDetails {
|
|||
/**
|
||||
* Create a AccountCredentialDetails.
|
||||
* @member {string} [accountName] Name of the account.
|
||||
* @member {array} shareCredentialDetails Per share level unencrypted access
|
||||
* credentials.
|
||||
* @member {string} [accountConnectionString] Connection string of the
|
||||
* account endpoint to use the account as a storage endpoint on the device.
|
||||
* @member {array} [shareCredentialDetails] Per share level unencrypted
|
||||
* access credentials.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -42,13 +44,23 @@ class AccountCredentialDetails {
|
|||
modelProperties: {
|
||||
accountName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountConnectionString: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountConnectionString',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
shareCredentialDetails: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'shareCredentialDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
|
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The Network Adapter configuration of a DataBox.
|
||||
*
|
||||
*/
|
||||
class ApplianceNetworkConfiguration {
|
||||
/**
|
||||
* Create a ApplianceNetworkConfiguration.
|
||||
* @member {string} [name] Name of the network
|
||||
* @member {string} [macAddress] Mac Address
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplianceNetworkConfiguration
|
||||
*
|
||||
* @returns {object} metadata of ApplianceNetworkConfiguration
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplianceNetworkConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplianceNetworkConfiguration',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: false,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
macAddress: {
|
||||
required: false,
|
||||
serializedName: 'macAddress',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplianceNetworkConfiguration;
|
|
@ -37,7 +37,8 @@ class AvailableSkusResult extends Array {
|
|||
className: 'AvailableSkusResult',
|
||||
modelProperties: {
|
||||
value: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: '',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
|
|
|
@ -19,7 +19,7 @@ const models = require('./index');
|
|||
class ContactDetails {
|
||||
/**
|
||||
* Create a ContactDetails.
|
||||
* @member {string} [contactName] Contact name of the person.
|
||||
* @member {string} contactName Contact name of the person.
|
||||
* @member {string} phone Phone number of the contact person.
|
||||
* @member {string} [phoneExtension] Phone extension number of the contact
|
||||
* person.
|
||||
|
@ -47,7 +47,7 @@ class ContactDetails {
|
|||
className: 'ContactDetails',
|
||||
modelProperties: {
|
||||
contactName: {
|
||||
required: false,
|
||||
required: true,
|
||||
serializedName: 'contactName',
|
||||
type: {
|
||||
name: 'String'
|
||||
|
|
|
@ -19,6 +19,8 @@ class CopyProgress {
|
|||
* Create a CopyProgress.
|
||||
* @member {string} [storageAccountName] Name of the storage account where
|
||||
* the data needs to be uploaded.
|
||||
* @member {string} [accountId] Id of the account where the data needs to be
|
||||
* uploaded.
|
||||
* @member {number} [bytesSentToCloud] Amount of data uploaded by the job as
|
||||
* of now.
|
||||
* @member {number} [totalBytesToProcess] Total amount of data to be
|
||||
|
@ -48,6 +50,13 @@ class CopyProgress {
|
|||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountId: {
|
||||
required: false,
|
||||
serializedName: 'accountId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
bytesSentToCloud: {
|
||||
required: false,
|
||||
serializedName: 'bytesSentToCloud',
|
||||
|
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Copy log details for a storage account of a DataBox job
|
||||
*
|
||||
* @extends models['CopyLogDetails']
|
||||
*/
|
||||
class DataBoxAccountCopyLogDetails extends models['CopyLogDetails'] {
|
||||
/**
|
||||
* Create a DataBoxAccountCopyLogDetails.
|
||||
* @member {string} [accountName] Destination account name.
|
||||
* @member {string} [copyLogLink] Link for copy logs.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxAccountCopyLogDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxAccountCopyLogDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBox',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'DataBoxAccountCopyLogDetails',
|
||||
modelProperties: {
|
||||
copyLogDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'copyLogDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copyLogLink: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxAccountCopyLogDetails;
|
|
@ -0,0 +1,88 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Copy Log Details for a disk
|
||||
*
|
||||
* @extends models['CopyLogDetails']
|
||||
*/
|
||||
class DataBoxDiskCopyLogDetails extends models['CopyLogDetails'] {
|
||||
/**
|
||||
* Create a DataBoxDiskCopyLogDetails.
|
||||
* @member {string} [diskSerialNumber] Disk Serial Number.
|
||||
* @member {string} [errorLogLink] Link for copy error logs.
|
||||
* @member {string} [verboseLogLink] Link for copy verbose logs.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxDiskCopyLogDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxDiskCopyLogDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDisk',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'DataBoxDiskCopyLogDetails',
|
||||
modelProperties: {
|
||||
copyLogDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'copyLogDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
diskSerialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'diskSerialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
errorLogLink: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorLogLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
verboseLogLink: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'verboseLogLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxDiskCopyLogDetails;
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* DataBox Disk Copy Progress
|
||||
*
|
||||
*/
|
||||
class DataBoxDiskCopyProgress {
|
||||
/**
|
||||
* Create a DataBoxDiskCopyProgress.
|
||||
* @member {string} [serialNumber] The serial number of the disk
|
||||
* @member {number} [bytesCopied] Bytes copied during the copy of disk.
|
||||
* @member {number} [percentComplete] Indicates the percentage completed for
|
||||
* the copy of the disk.
|
||||
* @member {string} [status] The Status of the copy. Possible values include:
|
||||
* 'NotStarted', 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed',
|
||||
* 'NotReturned'
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxDiskCopyProgress
|
||||
*
|
||||
* @returns {object} metadata of DataBoxDiskCopyProgress
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDiskCopyProgress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxDiskCopyProgress',
|
||||
modelProperties: {
|
||||
serialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'serialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
bytesCopied: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'bytesCopied',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
percentComplete: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'percentComplete',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'status',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'NotStarted', 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed', 'NotReturned' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxDiskCopyProgress;
|
|
@ -0,0 +1,255 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* DataBox Disk Job Details.
|
||||
*
|
||||
* @extends models['JobDetails']
|
||||
*/
|
||||
class DataBoxDiskJobDetails extends models['JobDetails'] {
|
||||
/**
|
||||
* Create a DataBoxDiskJobDetails.
|
||||
* @member {object} [preferredDisks] 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.
|
||||
* @member {array} [copyProgress] Copy progress per disk.
|
||||
* @member {object} [disksAndSizeDetails] Contains the map of disk serial
|
||||
* number to the disk size being used for the job. Is returned only after the
|
||||
* disks are shipped to the customer.
|
||||
* @member {string} [passkey] User entered passkey for DataBox Disk job.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxDiskJobDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxDiskJobDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDisk',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobDetailsType',
|
||||
clientName: 'jobDetailsType'
|
||||
},
|
||||
uberParent: 'JobDetails',
|
||||
className: 'DataBoxDiskJobDetails',
|
||||
modelProperties: {
|
||||
expectedDataSizeInTeraBytes: {
|
||||
required: false,
|
||||
serializedName: 'expectedDataSizeInTeraBytes',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
jobStages: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStages',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobStagesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobStages'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
contactDetails: {
|
||||
required: true,
|
||||
serializedName: 'contactDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContactDetails'
|
||||
}
|
||||
},
|
||||
shippingAddress: {
|
||||
required: true,
|
||||
serializedName: 'shippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
preferences: {
|
||||
required: false,
|
||||
serializedName: 'preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences'
|
||||
}
|
||||
},
|
||||
copyLogDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reverseShipmentLabelSasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'reverseShipmentLabelSasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chainOfCustodySasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'chainOfCustodySasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'jobDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
preferredDisks: {
|
||||
required: false,
|
||||
serializedName: 'preferredDisks',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: 'NumberElementType',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
copyProgress: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyProgress',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDiskCopyProgressElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxDiskCopyProgress'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
disksAndSizeDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'disksAndSizeDetails',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: 'NumberElementType',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
passkey: {
|
||||
required: false,
|
||||
serializedName: 'passkey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxDiskJobDetails;
|
|
@ -0,0 +1,98 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* The secrets related to disk job.
|
||||
*
|
||||
* @extends models['JobSecrets']
|
||||
*/
|
||||
class DataBoxDiskJobSecrets extends models['JobSecrets'] {
|
||||
/**
|
||||
* Create a DataBoxDiskJobSecrets.
|
||||
* @member {array} [diskSecrets] Contains the list of secrets object for that
|
||||
* device.
|
||||
* @member {string} [passKey] PassKey for the disk Job.
|
||||
* @member {boolean} [isPasskeyUserDefined] Whether passkey was provided by
|
||||
* user.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxDiskJobSecrets
|
||||
*
|
||||
* @returns {object} metadata of DataBoxDiskJobSecrets
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDisk',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobSecretsType',
|
||||
clientName: 'jobSecretsType'
|
||||
},
|
||||
uberParent: 'JobSecrets',
|
||||
className: 'DataBoxDiskJobSecrets',
|
||||
modelProperties: {
|
||||
jobSecretsType: {
|
||||
required: true,
|
||||
serializedName: 'jobSecretsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
diskSecrets: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'diskSecrets',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DiskSecretElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiskSecret'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
passKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'passKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
isPasskeyUserDefined: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'isPasskeyUserDefined',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxDiskJobSecrets;
|
|
@ -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');
|
||||
|
||||
/**
|
||||
* Copy log details for a storage account for Databox heavy
|
||||
*
|
||||
* @extends models['CopyLogDetails']
|
||||
*/
|
||||
class DataBoxHeavyAccountCopyLogDetails extends models['CopyLogDetails'] {
|
||||
/**
|
||||
* Create a DataBoxHeavyAccountCopyLogDetails.
|
||||
* @member {string} [accountName] Destination account name.
|
||||
* @member {array} [copyLogLink] Link for copy logs.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxHeavyAccountCopyLogDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxHeavyAccountCopyLogDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'DataBoxHeavyAccountCopyLogDetails',
|
||||
modelProperties: {
|
||||
copyLogDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'copyLogDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copyLogLink: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogLink',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxHeavyAccountCopyLogDetails;
|
|
@ -0,0 +1,211 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Databox Heavy Device Job Details
|
||||
*
|
||||
* @extends models['JobDetails']
|
||||
*/
|
||||
class DataBoxHeavyJobDetails extends models['JobDetails'] {
|
||||
/**
|
||||
* Create a DataBoxHeavyJobDetails.
|
||||
* @member {array} [copyProgress] Copy progress per account.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxHeavyJobDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxHeavyJobDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobDetailsType',
|
||||
clientName: 'jobDetailsType'
|
||||
},
|
||||
uberParent: 'JobDetails',
|
||||
className: 'DataBoxHeavyJobDetails',
|
||||
modelProperties: {
|
||||
expectedDataSizeInTeraBytes: {
|
||||
required: false,
|
||||
serializedName: 'expectedDataSizeInTeraBytes',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
jobStages: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStages',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobStagesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobStages'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
contactDetails: {
|
||||
required: true,
|
||||
serializedName: 'contactDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContactDetails'
|
||||
}
|
||||
},
|
||||
shippingAddress: {
|
||||
required: true,
|
||||
serializedName: 'shippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
preferences: {
|
||||
required: false,
|
||||
serializedName: 'preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences'
|
||||
}
|
||||
},
|
||||
copyLogDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reverseShipmentLabelSasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'reverseShipmentLabelSasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chainOfCustodySasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'chainOfCustodySasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'jobDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copyProgress: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyProgress',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyProgressElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'CopyProgress'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxHeavyJobDetails;
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* The secrets related to a databox heavy 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.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxHeavyJobSecrets
|
||||
*
|
||||
* @returns {object} metadata of DataBoxHeavyJobSecrets
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobSecretsType',
|
||||
clientName: 'jobSecretsType'
|
||||
},
|
||||
uberParent: 'JobSecrets',
|
||||
className: 'DataBoxHeavyJobSecrets',
|
||||
modelProperties: {
|
||||
jobSecretsType: {
|
||||
required: true,
|
||||
serializedName: 'jobSecretsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
cabinetPodSecrets: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'cabinetPodSecrets',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavySecretElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxHeavySecret'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxHeavyJobSecrets;
|
|
@ -0,0 +1,112 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* The secrets related to a databox heavy.
|
||||
*
|
||||
*/
|
||||
class DataBoxHeavySecret {
|
||||
/**
|
||||
* Create a DataBoxHeavySecret.
|
||||
* @member {string} [deviceSerialNumber] Serial number of the assigned
|
||||
* device.
|
||||
* @member {string} [devicePassword] Password for out of the box experience
|
||||
* on device.
|
||||
* @member {array} [networkConfigurations] Network configuration of the
|
||||
* appliance.
|
||||
* @member {string} [encodedValidationCertPubKey] The base 64 encoded public
|
||||
* key to authenticate with the device
|
||||
* @member {array} [accountCredentialDetails] Per account level access
|
||||
* credentials.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxHeavySecret
|
||||
*
|
||||
* @returns {object} metadata of DataBoxHeavySecret
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavySecret',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxHeavySecret',
|
||||
modelProperties: {
|
||||
deviceSerialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deviceSerialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
devicePassword: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'devicePassword',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
networkConfigurations: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'networkConfigurations',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ApplianceNetworkConfigurationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplianceNetworkConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
encodedValidationCertPubKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'encodedValidationCertPubKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountCredentialDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountCredentialDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'AccountCredentialDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AccountCredentialDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxHeavySecret;
|
|
@ -0,0 +1,211 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Databox Job Details
|
||||
*
|
||||
* @extends models['JobDetails']
|
||||
*/
|
||||
class DataBoxJobDetails extends models['JobDetails'] {
|
||||
/**
|
||||
* Create a DataBoxJobDetails.
|
||||
* @member {array} [copyProgress] Copy progress per storage account.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxJobDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxJobDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBox',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobDetailsType',
|
||||
clientName: 'jobDetailsType'
|
||||
},
|
||||
uberParent: 'JobDetails',
|
||||
className: 'DataBoxJobDetails',
|
||||
modelProperties: {
|
||||
expectedDataSizeInTeraBytes: {
|
||||
required: false,
|
||||
serializedName: 'expectedDataSizeInTeraBytes',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
jobStages: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStages',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobStagesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobStages'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
contactDetails: {
|
||||
required: true,
|
||||
serializedName: 'contactDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContactDetails'
|
||||
}
|
||||
},
|
||||
shippingAddress: {
|
||||
required: true,
|
||||
serializedName: 'shippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
preferences: {
|
||||
required: false,
|
||||
serializedName: 'preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences'
|
||||
}
|
||||
},
|
||||
copyLogDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reverseShipmentLabelSasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'reverseShipmentLabelSasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chainOfCustodySasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'chainOfCustodySasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'jobDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copyProgress: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyProgress',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyProgressElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'CopyProgress'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxJobDetails;
|
|
@ -0,0 +1,112 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* The secrets related to a DataBox.
|
||||
*
|
||||
*/
|
||||
class DataBoxSecret {
|
||||
/**
|
||||
* Create a DataBoxSecret.
|
||||
* @member {string} [deviceSerialNumber] Serial number of the assigned
|
||||
* device.
|
||||
* @member {string} [devicePassword] Password for out of the box experience
|
||||
* on device.
|
||||
* @member {array} [networkConfigurations] Network configuration of the
|
||||
* appliance.
|
||||
* @member {string} [encodedValidationCertPubKey] The base 64 encoded public
|
||||
* key to authenticate with the device
|
||||
* @member {array} [accountCredentialDetails] Per account level access
|
||||
* credentials.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxSecret
|
||||
*
|
||||
* @returns {object} metadata of DataBoxSecret
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxSecret',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxSecret',
|
||||
modelProperties: {
|
||||
deviceSerialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deviceSerialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
devicePassword: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'devicePassword',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
networkConfigurations: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'networkConfigurations',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ApplianceNetworkConfigurationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplianceNetworkConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
encodedValidationCertPubKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'encodedValidationCertPubKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountCredentialDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountCredentialDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'AccountCredentialDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AccountCredentialDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxSecret;
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* The secrets related to a databox job.
|
||||
*
|
||||
* @extends models['JobSecrets']
|
||||
*/
|
||||
class DataboxJobSecrets extends models['JobSecrets'] {
|
||||
/**
|
||||
* Create a DataboxJobSecrets.
|
||||
* @member {array} [podSecrets] Contains the list of secret objects for a
|
||||
* job.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataboxJobSecrets
|
||||
*
|
||||
* @returns {object} metadata of DataboxJobSecrets
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBox',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobSecretsType',
|
||||
clientName: 'jobSecretsType'
|
||||
},
|
||||
uberParent: 'JobSecrets',
|
||||
className: 'DataboxJobSecrets',
|
||||
modelProperties: {
|
||||
jobSecretsType: {
|
||||
required: true,
|
||||
serializedName: 'jobSecretsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
podSecrets: {
|
||||
required: false,
|
||||
serializedName: 'podSecrets',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DataBoxSecretElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxSecret'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataboxJobSecrets;
|
|
@ -18,6 +18,14 @@ class DestinationAccountDetails {
|
|||
/**
|
||||
* Create a DestinationAccountDetails.
|
||||
* @member {string} accountId Destination storage account id.
|
||||
* @member {string} [sharedAccessSignature] Shared access signature for the
|
||||
* storage account.
|
||||
* @member {string} [accountType] Account type. Possible values include:
|
||||
* 'UnknownType', 'GeneralPurposeStorage', 'BlobStorage'
|
||||
* @member {string} [storageAccessTier] Access tier of the account. Possible
|
||||
* values include: 'Invalid', 'Hot', 'Cool', 'Cold'
|
||||
* @member {string} [storagePerformanceTier] Performance tier of the account.
|
||||
* Possible values include: 'Standard', 'Premium'
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -42,6 +50,37 @@ class DestinationAccountDetails {
|
|||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
sharedAccessSignature: {
|
||||
required: false,
|
||||
serializedName: 'sharedAccessSignature',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountType: {
|
||||
required: false,
|
||||
serializedName: 'accountType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'UnknownType', 'GeneralPurposeStorage', 'BlobStorage' ]
|
||||
}
|
||||
},
|
||||
storageAccessTier: {
|
||||
required: false,
|
||||
serializedName: 'storageAccessTier',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Invalid', 'Hot', 'Cool', 'Cold' ]
|
||||
}
|
||||
},
|
||||
storagePerformanceTier: {
|
||||
required: false,
|
||||
serializedName: 'storagePerformanceTier',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Standard', 'Premium' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ class DiskSecret {
|
|||
modelProperties: {
|
||||
diskSerialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'diskSerialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
|
@ -47,6 +48,7 @@ class DiskSecret {
|
|||
},
|
||||
bitLockerKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'bitLockerKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
|
|
|
@ -16,32 +16,6 @@ export { BaseResource } from 'ms-rest-azure';
|
|||
export { CloudError } from 'ms-rest-azure';
|
||||
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the CopyLogDetails class.
|
||||
* @constructor
|
||||
* Details for log generated during copy.
|
||||
*
|
||||
* @member {string} copyLogDetailsType Polymorphic Discriminator
|
||||
*/
|
||||
export interface CopyLogDetails {
|
||||
copyLogDetailsType: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the AccountCopyLogDetails class.
|
||||
* @constructor
|
||||
* Copy log details for an storage account
|
||||
*
|
||||
* @member {string} accountName Destination account name.
|
||||
* @member {string} copyLogLink Link for copy logs.
|
||||
*/
|
||||
export interface AccountCopyLogDetails extends CopyLogDetails {
|
||||
accountName: string;
|
||||
copyLogLink: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the ShareCredentialDetails class.
|
||||
|
@ -49,13 +23,19 @@ export interface AccountCopyLogDetails extends CopyLogDetails {
|
|||
* Credential details of the shares in account.
|
||||
*
|
||||
* @member {string} [shareName] Name of the share.
|
||||
* @member {string} [shareType] Type of the share. Possible values include:
|
||||
* 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile', 'HDC'
|
||||
* @member {string} [userName] User name for the share.
|
||||
* @member {string} [password] Password for the share.
|
||||
* @member {array} [supportedAccessProtocols] Access protocols supported on the
|
||||
* device.
|
||||
*/
|
||||
export interface ShareCredentialDetails {
|
||||
shareName?: string;
|
||||
userName?: string;
|
||||
password?: string;
|
||||
readonly shareName?: string;
|
||||
readonly shareType?: string;
|
||||
readonly userName?: string;
|
||||
readonly password?: string;
|
||||
readonly supportedAccessProtocols?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,12 +45,15 @@ export interface ShareCredentialDetails {
|
|||
* Credential details of the account.
|
||||
*
|
||||
* @member {string} [accountName] Name of the account.
|
||||
* @member {array} shareCredentialDetails Per share level unencrypted access
|
||||
* @member {string} [accountConnectionString] Connection string of the account
|
||||
* endpoint to use the account as a storage endpoint on the device.
|
||||
* @member {array} [shareCredentialDetails] Per share level unencrypted access
|
||||
* credentials.
|
||||
*/
|
||||
export interface AccountCredentialDetails {
|
||||
accountName?: string;
|
||||
shareCredentialDetails: ShareCredentialDetails[];
|
||||
readonly accountName?: string;
|
||||
readonly accountConnectionString?: string;
|
||||
readonly shareCredentialDetails?: ShareCredentialDetails[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -119,6 +102,20 @@ export interface AddressValidationOutput {
|
|||
alternateAddresses?: ShippingAddress[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the ApplianceNetworkConfiguration class.
|
||||
* @constructor
|
||||
* The Network Adapter configuration of a DataBox.
|
||||
*
|
||||
* @member {string} [name] Name of the network
|
||||
* @member {string} [macAddress] Mac Address
|
||||
*/
|
||||
export interface ApplianceNetworkConfiguration {
|
||||
name?: string;
|
||||
macAddress?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the ArmBaseObject class.
|
||||
|
@ -158,7 +155,8 @@ export interface AvailableSkuRequest {
|
|||
* @constructor
|
||||
* The Sku.
|
||||
*
|
||||
* @member {string} name The sku name.
|
||||
* @member {string} name The sku name. Possible values include: 'DataBox',
|
||||
* 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [displayName] The display name of the sku.
|
||||
* @member {string} [family] The sku family.
|
||||
*/
|
||||
|
@ -202,12 +200,12 @@ export interface SkuCapacity {
|
|||
* @constructor
|
||||
* Describes metadata for retrieving price info.
|
||||
*
|
||||
* @member {string} meterId Meter id of the Sku.
|
||||
* @member {string} meterType The type of the meter.
|
||||
* @member {string} [meterId] Meter id of the Sku.
|
||||
* @member {string} [meterType] The type of the meter.
|
||||
*/
|
||||
export interface SkuCost {
|
||||
meterId: string;
|
||||
meterType: string;
|
||||
readonly meterId?: string;
|
||||
readonly meterType?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -216,71 +214,35 @@ export interface SkuCost {
|
|||
* @constructor
|
||||
* Information of the sku.
|
||||
*
|
||||
* @member {object} sku The Sku.
|
||||
* @member {string} [sku.name] The sku name.
|
||||
* @member {object} [sku] The Sku.
|
||||
* @member {string} [sku.name] The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [sku.displayName] The display name of the sku.
|
||||
* @member {string} [sku.family] The sku family.
|
||||
* @member {boolean} enabled The sku is enabled or not.
|
||||
* @member {boolean} [enabled] The sku is enabled or not.
|
||||
* @member {array} [destinationToServiceLocationMap] The map of destination
|
||||
* location to service location.
|
||||
* @member {object} capacity Capacity of the Sku.
|
||||
* @member {object} [capacity] Capacity of the Sku.
|
||||
* @member {string} [capacity.usable] Usable capacity in TB.
|
||||
* @member {string} [capacity.maximum] Maximum capacity in TB.
|
||||
* @member {array} costs Cost of the Sku.
|
||||
* @member {array} apiVersions Api versions that support this Sku.
|
||||
* @member {string} [disabledReason] Reason why the Sku is disabled.
|
||||
* @member {array} [costs] Cost of the Sku.
|
||||
* @member {array} [apiVersions] Api versions that support this Sku.
|
||||
* @member {string} [disabledReason] Reason why the Sku is disabled. Possible
|
||||
* values include: 'None', 'Country', 'Region', 'Feature', 'OfferType'
|
||||
* @member {string} [disabledReasonMessage] Message for why the Sku is
|
||||
* disabled.
|
||||
* @member {string} [requiredFeature] Required feature to access the sku.
|
||||
*/
|
||||
export interface SkuInformation {
|
||||
sku: Sku;
|
||||
enabled: boolean;
|
||||
destinationToServiceLocationMap?: DestinationToServiceLocationMap[];
|
||||
capacity: SkuCapacity;
|
||||
costs: SkuCost[];
|
||||
apiVersions: string[];
|
||||
disabledReason?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the CabinetPodSecret class.
|
||||
* @constructor
|
||||
* The secrets related to a cabinet pod.
|
||||
*
|
||||
* @member {string} [deviceSerialNumber] Serial number of the assigned device.
|
||||
* @member {string} [devicePassword] Password for out of the box experience on
|
||||
* device.
|
||||
* @member {array} [accountCredentialDetails] Per account level access
|
||||
* credentials.
|
||||
*/
|
||||
export interface CabinetPodSecret {
|
||||
deviceSerialNumber?: string;
|
||||
devicePassword?: string;
|
||||
accountCredentialDetails?: AccountCredentialDetails[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the JobSecrets class.
|
||||
* @constructor
|
||||
* The base class for the secrets
|
||||
*
|
||||
* @member {string} jobSecretsType Polymorphic Discriminator
|
||||
*/
|
||||
export interface JobSecrets {
|
||||
jobSecretsType: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the CabinetJobSecrets class.
|
||||
* @constructor
|
||||
* The secrets related to a cabinet job.
|
||||
*
|
||||
* @member {array} [cabinetPodSecrets] Contains the list of secret objects for
|
||||
* a cabinet job.
|
||||
*/
|
||||
export interface CabinetJobSecrets extends JobSecrets {
|
||||
cabinetPodSecrets?: CabinetPodSecret[];
|
||||
readonly sku?: Sku;
|
||||
readonly enabled?: boolean;
|
||||
readonly destinationToServiceLocationMap?: DestinationToServiceLocationMap[];
|
||||
readonly capacity?: SkuCapacity;
|
||||
readonly costs?: SkuCost[];
|
||||
readonly apiVersions?: string[];
|
||||
readonly disabledReason?: string;
|
||||
readonly disabledReasonMessage?: string;
|
||||
readonly requiredFeature?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -317,7 +279,7 @@ export interface NotificationPreference {
|
|||
* @constructor
|
||||
* Contact Details.
|
||||
*
|
||||
* @member {string} [contactName] Contact name of the person.
|
||||
* @member {string} contactName Contact name of the person.
|
||||
* @member {string} phone Phone number of the contact person.
|
||||
* @member {string} [phoneExtension] Phone extension number of the contact
|
||||
* person.
|
||||
|
@ -328,7 +290,7 @@ export interface NotificationPreference {
|
|||
* stage.
|
||||
*/
|
||||
export interface ContactDetails {
|
||||
contactName?: string;
|
||||
contactName: string;
|
||||
phone: string;
|
||||
phoneExtension?: string;
|
||||
mobile?: string;
|
||||
|
@ -336,6 +298,18 @@ export interface ContactDetails {
|
|||
notificationPreference?: NotificationPreference[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the CopyLogDetails class.
|
||||
* @constructor
|
||||
* Details for log generated during copy.
|
||||
*
|
||||
* @member {string} copyLogDetailsType Polymorphic Discriminator
|
||||
*/
|
||||
export interface CopyLogDetails {
|
||||
copyLogDetailsType: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the CopyProgress class.
|
||||
|
@ -344,6 +318,8 @@ export interface ContactDetails {
|
|||
*
|
||||
* @member {string} [storageAccountName] Name of the storage account where the
|
||||
* data needs to be uploaded.
|
||||
* @member {string} [accountId] Id of the account where the data needs to be
|
||||
* uploaded.
|
||||
* @member {number} [bytesSentToCloud] Amount of data uploaded by the job as of
|
||||
* now.
|
||||
* @member {number} [totalBytesToProcess] Total amount of data to be processed
|
||||
|
@ -351,54 +327,60 @@ export interface ContactDetails {
|
|||
*/
|
||||
export interface CopyProgress {
|
||||
storageAccountName?: string;
|
||||
accountId?: string;
|
||||
bytesSentToCloud?: number;
|
||||
totalBytesToProcess?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DestinationAccountDetails class.
|
||||
* Initializes a new instance of the DataBoxAccountCopyLogDetails class.
|
||||
* @constructor
|
||||
* Details for the destination account.
|
||||
* Copy log details for a storage account of a DataBox job
|
||||
*
|
||||
* @member {string} accountId Destination storage account id.
|
||||
* @member {string} [accountName] Destination account name.
|
||||
* @member {string} [copyLogLink] Link for copy logs.
|
||||
*/
|
||||
export interface DestinationAccountDetails {
|
||||
accountId: string;
|
||||
export interface DataBoxAccountCopyLogDetails extends CopyLogDetails {
|
||||
readonly accountName?: string;
|
||||
readonly copyLogLink?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DiskCopyLogDetails class.
|
||||
* Initializes a new instance of the DataBoxDiskCopyLogDetails class.
|
||||
* @constructor
|
||||
* Copy Log Details for a disk
|
||||
*
|
||||
* @member {string} diskSerialNumber Disk Serial Number.
|
||||
* @member {string} errorLogLink Link for copy error logs.
|
||||
* @member {string} verboseLogLink Link for copy verbose logs.
|
||||
* @member {string} [diskSerialNumber] Disk Serial Number.
|
||||
* @member {string} [errorLogLink] Link for copy error logs.
|
||||
* @member {string} [verboseLogLink] Link for copy verbose logs.
|
||||
*/
|
||||
export interface DiskCopyLogDetails extends CopyLogDetails {
|
||||
diskSerialNumber: string;
|
||||
errorLogLink: string;
|
||||
verboseLogLink: string;
|
||||
export interface DataBoxDiskCopyLogDetails extends CopyLogDetails {
|
||||
readonly diskSerialNumber?: string;
|
||||
readonly errorLogLink?: string;
|
||||
readonly verboseLogLink?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DiskCopyProgress class.
|
||||
* Initializes a new instance of the DataBoxDiskCopyProgress class.
|
||||
* @constructor
|
||||
* Disk Copy Progress
|
||||
* DataBox Disk Copy Progress
|
||||
*
|
||||
* @member {string} [serialNumber] The serial number of the disk
|
||||
* @member {number} [bytesCopied] Bytes copied during the copy of disk.
|
||||
* @member {number} [percentComplete] Indicates the percentage completed for
|
||||
* the copy of the disk.
|
||||
* @member {string} [status] The Status of the copy. Possible values include:
|
||||
* 'NotStarted', 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed'
|
||||
* 'NotStarted', 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed',
|
||||
* 'NotReturned'
|
||||
*/
|
||||
export interface DiskCopyProgress {
|
||||
serialNumber?: string;
|
||||
percentComplete?: number;
|
||||
status?: string;
|
||||
export interface DataBoxDiskCopyProgress {
|
||||
readonly serialNumber?: string;
|
||||
readonly bytesCopied?: number;
|
||||
readonly percentComplete?: number;
|
||||
readonly status?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -435,23 +417,48 @@ export interface DiskCopyProgress {
|
|||
* @member {string} [shippingAddress.companyName] Name of the company.
|
||||
* @member {string} [shippingAddress.addressType] Type of address. Possible
|
||||
* values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {object} [deliveryPackage] Delivery package shipping details.
|
||||
* @member {string} [deliveryPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [deliveryPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [deliveryPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {object} [returnPackage] Return package shipping details.
|
||||
* @member {string} [returnPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [returnPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [returnPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {array} destinationAccountDetails Destination account details.
|
||||
* @member {array} [errorDetails] Error details for failure. This is optional.
|
||||
* @member {object} [preferences] Preferences for the order.
|
||||
* @member {array} [preferences.preferredDataCenterRegion]
|
||||
* @member {array} [copyLogDetails] List of copy log details.
|
||||
* @member {string} [reverseShipmentLabelSasKey] Shared access key to download
|
||||
* the return shipment label
|
||||
* @member {string} [chainOfCustodySasKey] Shared access key to download the
|
||||
* chain of custody logs
|
||||
* @member {string} jobDetailsType Polymorphic Discriminator
|
||||
*/
|
||||
export interface JobDetails {
|
||||
expectedDataSizeInTeraBytes?: number;
|
||||
jobStages?: JobStages[];
|
||||
readonly jobStages?: JobStages[];
|
||||
contactDetails: ContactDetails;
|
||||
shippingAddress: ShippingAddress;
|
||||
errorDetails?: JobErrorDetails[];
|
||||
readonly deliveryPackage?: PackageShippingDetails;
|
||||
readonly returnPackage?: PackageShippingDetails;
|
||||
destinationAccountDetails: DestinationAccountDetails[];
|
||||
readonly errorDetails?: JobErrorDetails[];
|
||||
preferences?: Preferences;
|
||||
readonly copyLogDetails?: CopyLogDetails[];
|
||||
readonly reverseShipmentLabelSasKey?: string;
|
||||
readonly chainOfCustodySasKey?: string;
|
||||
jobDetailsType: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DiskJobDetails class.
|
||||
* Initializes a new instance of the DataBoxDiskJobDetails class.
|
||||
* @constructor
|
||||
* Disk Job Details.
|
||||
* DataBox Disk Job Details.
|
||||
*
|
||||
* @member {object} [preferredDisks] User preference on what size disks are
|
||||
* needed for the job. The map is from the disk size in TB to the count. Eg.
|
||||
|
@ -461,11 +468,13 @@ export interface JobDetails {
|
|||
* @member {object} [disksAndSizeDetails] Contains the map of disk serial
|
||||
* number to the disk size being used for the job. Is returned only after the
|
||||
* disks are shipped to the customer.
|
||||
* @member {string} [passkey] User entered passkey for DataBox Disk job.
|
||||
*/
|
||||
export interface DiskJobDetails extends JobDetails {
|
||||
export interface DataBoxDiskJobDetails extends JobDetails {
|
||||
preferredDisks?: { [propertyName: string]: number };
|
||||
copyProgress?: DiskCopyProgress[];
|
||||
disksAndSizeDetails?: { [propertyName: string]: number };
|
||||
readonly copyProgress?: DataBoxDiskCopyProgress[];
|
||||
readonly disksAndSizeDetails?: { [propertyName: string]: number };
|
||||
passkey?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -479,21 +488,173 @@ export interface DiskJobDetails extends JobDetails {
|
|||
* to unlock the disk to copy data.
|
||||
*/
|
||||
export interface DiskSecret {
|
||||
diskSerialNumber?: string;
|
||||
bitLockerKey?: string;
|
||||
readonly diskSerialNumber?: string;
|
||||
readonly bitLockerKey?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DiskJobSecrets class.
|
||||
* Initializes a new instance of the JobSecrets class.
|
||||
* @constructor
|
||||
* The base class for the secrets
|
||||
*
|
||||
* @member {string} jobSecretsType Polymorphic Discriminator
|
||||
*/
|
||||
export interface JobSecrets {
|
||||
jobSecretsType: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DataBoxDiskJobSecrets class.
|
||||
* @constructor
|
||||
* The secrets related to disk job.
|
||||
*
|
||||
* @member {array} [diskSecrets] Contains the list of secrets object for that
|
||||
* device.
|
||||
* @member {string} [passKey] PassKey for the disk Job.
|
||||
* @member {boolean} [isPasskeyUserDefined] Whether passkey was provided by
|
||||
* user.
|
||||
*/
|
||||
export interface DiskJobSecrets extends JobSecrets {
|
||||
diskSecrets?: DiskSecret[];
|
||||
export interface DataBoxDiskJobSecrets extends JobSecrets {
|
||||
readonly diskSecrets?: DiskSecret[];
|
||||
readonly passKey?: string;
|
||||
readonly isPasskeyUserDefined?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DataBoxHeavyAccountCopyLogDetails class.
|
||||
* @constructor
|
||||
* Copy log details for a storage account for Databox heavy
|
||||
*
|
||||
* @member {string} [accountName] Destination account name.
|
||||
* @member {array} [copyLogLink] Link for copy logs.
|
||||
*/
|
||||
export interface DataBoxHeavyAccountCopyLogDetails extends CopyLogDetails {
|
||||
readonly accountName?: string;
|
||||
readonly copyLogLink?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DataBoxHeavyJobDetails class.
|
||||
* @constructor
|
||||
* Databox Heavy Device Job Details
|
||||
*
|
||||
* @member {array} [copyProgress] Copy progress per account.
|
||||
*/
|
||||
export interface DataBoxHeavyJobDetails extends JobDetails {
|
||||
readonly copyProgress?: CopyProgress[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DataBoxHeavySecret class.
|
||||
* @constructor
|
||||
* The secrets related to a databox heavy.
|
||||
*
|
||||
* @member {string} [deviceSerialNumber] Serial number of the assigned device.
|
||||
* @member {string} [devicePassword] Password for out of the box experience on
|
||||
* device.
|
||||
* @member {array} [networkConfigurations] Network configuration of the
|
||||
* appliance.
|
||||
* @member {string} [encodedValidationCertPubKey] The base 64 encoded public
|
||||
* key to authenticate with the device
|
||||
* @member {array} [accountCredentialDetails] Per account level access
|
||||
* credentials.
|
||||
*/
|
||||
export interface DataBoxHeavySecret {
|
||||
readonly deviceSerialNumber?: string;
|
||||
readonly devicePassword?: string;
|
||||
readonly networkConfigurations?: ApplianceNetworkConfiguration[];
|
||||
readonly encodedValidationCertPubKey?: string;
|
||||
readonly accountCredentialDetails?: AccountCredentialDetails[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DataBoxHeavyJobSecrets class.
|
||||
* @constructor
|
||||
* The secrets related to a databox heavy job.
|
||||
*
|
||||
* @member {array} [cabinetPodSecrets] Contains the list of secret objects for
|
||||
* a databox heavy job.
|
||||
*/
|
||||
export interface DataBoxHeavyJobSecrets extends JobSecrets {
|
||||
readonly cabinetPodSecrets?: DataBoxHeavySecret[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DataBoxJobDetails class.
|
||||
* @constructor
|
||||
* Databox Job Details
|
||||
*
|
||||
* @member {array} [copyProgress] Copy progress per storage account.
|
||||
*/
|
||||
export interface DataBoxJobDetails extends JobDetails {
|
||||
readonly copyProgress?: CopyProgress[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DataBoxSecret class.
|
||||
* @constructor
|
||||
* The secrets related to a DataBox.
|
||||
*
|
||||
* @member {string} [deviceSerialNumber] Serial number of the assigned device.
|
||||
* @member {string} [devicePassword] Password for out of the box experience on
|
||||
* device.
|
||||
* @member {array} [networkConfigurations] Network configuration of the
|
||||
* appliance.
|
||||
* @member {string} [encodedValidationCertPubKey] The base 64 encoded public
|
||||
* key to authenticate with the device
|
||||
* @member {array} [accountCredentialDetails] Per account level access
|
||||
* credentials.
|
||||
*/
|
||||
export interface DataBoxSecret {
|
||||
readonly deviceSerialNumber?: string;
|
||||
readonly devicePassword?: string;
|
||||
readonly networkConfigurations?: ApplianceNetworkConfiguration[];
|
||||
readonly encodedValidationCertPubKey?: string;
|
||||
readonly accountCredentialDetails?: AccountCredentialDetails[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DataboxJobSecrets class.
|
||||
* @constructor
|
||||
* The secrets related to a databox job.
|
||||
*
|
||||
* @member {array} [podSecrets] Contains the list of secret objects for a job.
|
||||
*/
|
||||
export interface DataboxJobSecrets extends JobSecrets {
|
||||
podSecrets?: DataBoxSecret[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the DestinationAccountDetails class.
|
||||
* @constructor
|
||||
* Details for the destination account.
|
||||
*
|
||||
* @member {string} accountId Destination storage account id.
|
||||
* @member {string} [sharedAccessSignature] Shared access signature for the
|
||||
* storage account.
|
||||
* @member {string} [accountType] Account type. Possible values include:
|
||||
* 'UnknownType', 'GeneralPurposeStorage', 'BlobStorage'
|
||||
* @member {string} [storageAccessTier] Access tier of the account. Possible
|
||||
* values include: 'Invalid', 'Hot', 'Cool', 'Cold'
|
||||
* @member {string} [storagePerformanceTier] Performance tier of the account.
|
||||
* Possible values include: 'Standard', 'Premium'
|
||||
*/
|
||||
export interface DestinationAccountDetails {
|
||||
accountId: string;
|
||||
sharedAccessSignature?: string;
|
||||
accountType?: string;
|
||||
storageAccessTier?: string;
|
||||
storagePerformanceTier?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -512,20 +673,6 @@ export interface ErrorModel {
|
|||
message?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the GetCopyLogsUriOutput class.
|
||||
* @constructor
|
||||
* Output for the GetCopyLogsUri.
|
||||
*
|
||||
* @member {string} [logType] Type/Level of the log.
|
||||
* @member {array} [copyLogDetails] List of copy log details.
|
||||
*/
|
||||
export interface GetCopyLogsUriOutput {
|
||||
logType?: string;
|
||||
copyLogDetails?: CopyLogDetails[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the JobErrorDetails class.
|
||||
|
@ -554,7 +701,8 @@ export interface JobErrorDetails {
|
|||
* @member {string} stageName Name of the job stage. Possible values include:
|
||||
* 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp',
|
||||
* 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', 'Cancelled',
|
||||
* 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
* 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC',
|
||||
* 'Aborted', 'Current'
|
||||
* @member {string} [displayName] Display name of the job stage.
|
||||
* @member {string} stageStatus Status of the job stage. Possible values
|
||||
* include: 'None', 'InProgress', 'Succeeded', 'Failed', 'Cancelled',
|
||||
|
@ -588,6 +736,18 @@ export interface PackageShippingDetails {
|
|||
trackingUrl?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the Preferences class.
|
||||
* @constructor
|
||||
* Preferences related to the order
|
||||
*
|
||||
* @member {array} [preferredDataCenterRegion]
|
||||
*/
|
||||
export interface Preferences {
|
||||
preferredDataCenterRegion?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the Resource class.
|
||||
|
@ -602,7 +762,8 @@ export interface PackageShippingDetails {
|
|||
* resource. These tags can be used in viewing and grouping this resource
|
||||
* (across resource groups).
|
||||
* @member {object} sku The sku type.
|
||||
* @member {string} [sku.name] The sku name.
|
||||
* @member {string} [sku.name] The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [sku.displayName] The display name of the sku.
|
||||
* @member {string} [sku.family] The sku family.
|
||||
*/
|
||||
|
@ -618,17 +779,17 @@ export interface Resource extends BaseResource {
|
|||
* @constructor
|
||||
* Job Resource.
|
||||
*
|
||||
* @member {string} [deviceType] Type of the device to be used for the job.
|
||||
* Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @member {boolean} [isCancellable] Describes whether the job is cancellable
|
||||
* or not.
|
||||
* @member {boolean} [isDeletable] Describes whether the job is deletable or
|
||||
* not.
|
||||
* @member {boolean} [isShippingAddressEditable] Describes whether the shipping
|
||||
* address is editable or not.
|
||||
* @member {string} [status] Name of the stage which is in progress. Possible
|
||||
* values include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched',
|
||||
* 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
|
||||
* 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer',
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted', 'Current'
|
||||
* @member {date} [startTime] Time at which the job was started in UTC ISO 8601
|
||||
* format.
|
||||
* @member {object} [error] Top level error for the job.
|
||||
|
@ -636,17 +797,6 @@ export interface Resource extends BaseResource {
|
|||
* programmatically identify the error.
|
||||
* @member {string} [error.message] Describes the error in detail and provides
|
||||
* debugging information.
|
||||
* @member {object} [deliveryPackage] Delivery package shipping details.
|
||||
* @member {string} [deliveryPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [deliveryPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [deliveryPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {object} [returnPackage] Return package shipping details.
|
||||
* @member {string} [returnPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [returnPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [returnPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {array} destinationAccountDetails Destination account details.
|
||||
* @member {object} [details] Details of a job run. This field will only be
|
||||
* sent for expand details filter.
|
||||
* @member {number} [details.expectedDataSizeInTeraBytes] The expected size of
|
||||
|
@ -683,8 +833,29 @@ export interface Resource extends BaseResource {
|
|||
* @member {string} [details.shippingAddress.companyName] Name of the company.
|
||||
* @member {string} [details.shippingAddress.addressType] Type of address.
|
||||
* Possible values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {object} [details.deliveryPackage] Delivery package shipping
|
||||
* details.
|
||||
* @member {string} [details.deliveryPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [details.deliveryPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
* @member {string} [details.deliveryPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
* @member {object} [details.returnPackage] Return package shipping details.
|
||||
* @member {string} [details.returnPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [details.returnPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [details.returnPackage.trackingUrl] Url where shipment can
|
||||
* be tracked.
|
||||
* @member {array} [details.destinationAccountDetails] Destination account
|
||||
* details.
|
||||
* @member {array} [details.errorDetails] Error details for failure. This is
|
||||
* optional.
|
||||
* @member {object} [details.preferences] Preferences for the order.
|
||||
* @member {array} [details.preferences.preferredDataCenterRegion]
|
||||
* @member {array} [details.copyLogDetails] List of copy log details.
|
||||
* @member {string} [details.reverseShipmentLabelSasKey] Shared access key to
|
||||
* download the return shipment label
|
||||
* @member {string} [details.chainOfCustodySasKey] Shared access key to
|
||||
* download the chain of custody logs
|
||||
* @member {string} [details.jobDetailsType] Polymorphic Discriminator
|
||||
* @member {string} [cancellationReason] Reason for cancellation.
|
||||
* @member {string} [name] Name of the object.
|
||||
|
@ -692,15 +863,12 @@ export interface Resource extends BaseResource {
|
|||
* @member {string} [type] Type of the object.
|
||||
*/
|
||||
export interface JobResource extends Resource {
|
||||
deviceType?: string;
|
||||
isCancellable?: boolean;
|
||||
isShippingAddressEditable?: boolean;
|
||||
status?: string;
|
||||
startTime?: Date;
|
||||
error?: ErrorModel;
|
||||
deliveryPackage?: PackageShippingDetails;
|
||||
returnPackage?: PackageShippingDetails;
|
||||
destinationAccountDetails: DestinationAccountDetails[];
|
||||
readonly isCancellable?: boolean;
|
||||
readonly isDeletable?: boolean;
|
||||
readonly isShippingAddressEditable?: boolean;
|
||||
readonly status?: string;
|
||||
readonly startTime?: Date;
|
||||
readonly error?: ErrorModel;
|
||||
details?: JobDetails;
|
||||
cancellationReason?: string;
|
||||
readonly name?: string;
|
||||
|
@ -751,7 +919,7 @@ export interface UpdateJobDetails {
|
|||
* @constructor
|
||||
* The JobResourceUpdateParameter.
|
||||
*
|
||||
* @member {object} details Details of a job to be updated.
|
||||
* @member {object} [details] Details of a job to be updated.
|
||||
* @member {object} [details.contactDetails] Contact details for notification
|
||||
* and shipping.
|
||||
* @member {string} [details.contactDetails.contactName] Contact name of the
|
||||
|
@ -783,12 +951,14 @@ export interface UpdateJobDetails {
|
|||
* @member {string} [details.shippingAddress.companyName] Name of the company.
|
||||
* @member {string} [details.shippingAddress.addressType] Type of address.
|
||||
* Possible values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {array} [destinationAccountDetails] Destination account details.
|
||||
* @member {object} [tags] The list of key value pairs that describe the
|
||||
* resource. These tags can be used in viewing and grouping this resource
|
||||
* (across resource groups).
|
||||
*/
|
||||
export interface JobResourceUpdateParameter {
|
||||
details: UpdateJobDetails;
|
||||
details?: UpdateJobDetails;
|
||||
destinationAccountDetails?: DestinationAccountDetails[];
|
||||
tags?: { [propertyName: string]: string };
|
||||
}
|
||||
|
||||
|
@ -818,85 +988,56 @@ export interface OperationDisplay {
|
|||
* @constructor
|
||||
* Operation entity.
|
||||
*
|
||||
* @member {string} name Name of the operation. Format:
|
||||
* @member {string} [name] Name of the operation. Format:
|
||||
* {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}
|
||||
* @member {object} display Operation display values.
|
||||
* @member {object} [display] Operation display values.
|
||||
* @member {string} [display.provider] Provider name.
|
||||
* @member {string} [display.resource] Resource name.
|
||||
* @member {string} [display.operation] Localized name of the operation for
|
||||
* display purpose.
|
||||
* @member {string} [display.description] Localized description of the
|
||||
* operation for display purpose.
|
||||
* @member {object} properties Operation properties.
|
||||
* @member {string} origin Origin of the operation. Can be :
|
||||
* @member {object} [properties] Operation properties.
|
||||
* @member {string} [origin] Origin of the operation. Can be :
|
||||
* user|system|user,system
|
||||
*/
|
||||
export interface Operation {
|
||||
name: string;
|
||||
display: OperationDisplay;
|
||||
properties: any;
|
||||
origin: string;
|
||||
readonly name?: string;
|
||||
readonly display?: OperationDisplay;
|
||||
readonly properties?: any;
|
||||
readonly origin?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the PodJobDetails class.
|
||||
* Initializes a new instance of the ServiceHealthResponse class.
|
||||
* @constructor
|
||||
* Pod Job Details
|
||||
* Response of the GetServiceHealth api.
|
||||
*
|
||||
* @member {array} [copyProgress] Copy progress per account.
|
||||
* @member {string} [connectorType] Name of the connector.
|
||||
* @member {date} [startTime] Time when the action was triggered.
|
||||
* @member {date} [endTime] Time when the action got completed.
|
||||
* @member {boolean} [status] Status of the service.
|
||||
*/
|
||||
export interface PodJobDetails extends JobDetails {
|
||||
copyProgress?: CopyProgress[];
|
||||
export interface ServiceHealthResponse {
|
||||
connectorType?: string;
|
||||
startTime?: Date;
|
||||
endTime?: Date;
|
||||
status?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the PodSecret class.
|
||||
* Initializes a new instance of the ServiceHealthResponseList class.
|
||||
* @constructor
|
||||
* The secrets related to a Pod.
|
||||
* List of service health response.
|
||||
*
|
||||
* @member {string} [deviceSerialNumber] Serial number of the assigned device.
|
||||
* @member {string} [devicePassword] Password for out of the box experience on
|
||||
* device.
|
||||
* @member {array} [accountCredentialDetails] Per account level access
|
||||
* credentials.
|
||||
* @member {array} [dependencies] List of ServiceHealthResponse.
|
||||
* @member {string} [serviceVersion] Version of the service.
|
||||
*/
|
||||
export interface PodSecret {
|
||||
deviceSerialNumber?: string;
|
||||
devicePassword?: string;
|
||||
accountCredentialDetails?: AccountCredentialDetails[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the PodJobSecrets class.
|
||||
* @constructor
|
||||
* The secrets related to a pod job.
|
||||
*
|
||||
* @member {array} [podSecrets] Contains the list of secret objects for a job.
|
||||
*/
|
||||
export interface PodJobSecrets extends JobSecrets {
|
||||
podSecrets?: PodSecret[];
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the ReportIssueDetails class.
|
||||
* @constructor
|
||||
* Details of the reported issue.
|
||||
*
|
||||
* @member {string} [issueType] Issue Type. Possible values include:
|
||||
* 'DeviceMismatch', 'ValidationStringMismatch', 'CredentialNotWorking',
|
||||
* 'DeviceFailure'
|
||||
* @member {string} [deviceIssueType] Device Issue Type. Only used for Device
|
||||
* failure issue. Possible values include: 'DeviceTampering',
|
||||
* 'DeviceNotBootingUp', 'DeviceHealthCheckShowFailures', 'NICsAreNotWorking',
|
||||
* 'Misc'
|
||||
*/
|
||||
export interface ReportIssueDetails {
|
||||
issueType?: string;
|
||||
deviceIssueType?: string;
|
||||
export interface ServiceHealthResponseList {
|
||||
dependencies?: ServiceHealthResponse[];
|
||||
serviceVersion?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -905,17 +1046,17 @@ export interface ReportIssueDetails {
|
|||
* @constructor
|
||||
* Shipment pick up request details.
|
||||
*
|
||||
* @member {date} [startTime] Minimum date after which the pick up should
|
||||
* @member {date} startTime Minimum date after which the pick up should
|
||||
* commence, this must be in local time of pick up area.
|
||||
* @member {date} [endTime] Maximum date before which the pick up should
|
||||
* @member {date} endTime Maximum date before which the pick up should
|
||||
* commence, this must be in local time of pick up area.
|
||||
* @member {string} [shipmentLocation] Shipment Location in the pickup place.
|
||||
* @member {string} shipmentLocation Shipment Location in the pickup place.
|
||||
* Eg.front desk
|
||||
*/
|
||||
export interface ShipmentPickUpRequest {
|
||||
startTime?: Date;
|
||||
endTime?: Date;
|
||||
shipmentLocation?: string;
|
||||
startTime: Date;
|
||||
endTime: Date;
|
||||
shipmentLocation: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -930,39 +1071,23 @@ export interface ShipmentPickUpRequest {
|
|||
* up, this is in local time of pick up area.
|
||||
*/
|
||||
export interface ShipmentPickUpResponse {
|
||||
confirmationNumber?: string;
|
||||
readyByTime?: Date;
|
||||
readonly confirmationNumber?: string;
|
||||
readonly readyByTime?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the ShippingLabelDetails class.
|
||||
* Initializes a new instance of the UnencryptedCredentials class.
|
||||
* @constructor
|
||||
* Details for the shipping label.
|
||||
* Unencrypted credentials for accessing device.
|
||||
*
|
||||
* @member {string} shippingLabelSasUri Sas uri for accessing the shipping
|
||||
* label.
|
||||
*/
|
||||
export interface ShippingLabelDetails {
|
||||
shippingLabelSasUri: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the UnencryptedSecrets class.
|
||||
* @constructor
|
||||
* Unencrypted secrets for accessing device.
|
||||
*
|
||||
* @member {string} jobName Name of the job.
|
||||
* @member {string} [deviceType] The Device Type used in the job. Possible
|
||||
* values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @member {string} [jobName] Name of the job.
|
||||
* @member {object} [jobSecrets] Secrets related to this job.
|
||||
* @member {string} [jobSecrets.jobSecretsType] Polymorphic Discriminator
|
||||
*/
|
||||
export interface UnencryptedSecrets {
|
||||
jobName: string;
|
||||
deviceType?: string;
|
||||
jobSecrets?: JobSecrets;
|
||||
export interface UnencryptedCredentials {
|
||||
readonly jobName?: string;
|
||||
readonly jobSecrets?: JobSecrets;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -972,7 +1097,7 @@ export interface UnencryptedSecrets {
|
|||
* The requirements to validate customer address where the device needs to be
|
||||
* shipped.
|
||||
*
|
||||
* @member {object} [shippingAddress] Shipping address of the customer.
|
||||
* @member {object} shippingAddress Shipping address of the customer.
|
||||
* @member {string} [shippingAddress.streetAddress1] Street Address line 1.
|
||||
* @member {string} [shippingAddress.streetAddress2] Street Address line 2.
|
||||
* @member {string} [shippingAddress.streetAddress3] Street Address line 3.
|
||||
|
@ -985,12 +1110,12 @@ export interface UnencryptedSecrets {
|
|||
* @member {string} [shippingAddress.companyName] Name of the company.
|
||||
* @member {string} [shippingAddress.addressType] Type of address. Possible
|
||||
* values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {string} [deviceType] Device type to be used for the job. Possible
|
||||
* values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @member {string} deviceType Device type to be used for the job. Possible
|
||||
* values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*/
|
||||
export interface ValidateAddress {
|
||||
shippingAddress?: ShippingAddress;
|
||||
deviceType?: string;
|
||||
shippingAddress: ShippingAddress;
|
||||
deviceType: string;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1018,6 +1143,19 @@ export interface JobResourceList extends Array<JobResource> {
|
|||
nextLink?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the UnencryptedCredentialsList class.
|
||||
* @constructor
|
||||
* List of unencrypted credentials for accessing device.
|
||||
*
|
||||
* @member {string} [nextLink] Link for the next set of unencrypted
|
||||
* credentials.
|
||||
*/
|
||||
export interface UnencryptedCredentialsList extends Array<UnencryptedCredentials> {
|
||||
nextLink?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @class
|
||||
* Initializes a new instance of the AvailableSkusResult class.
|
||||
|
|
|
@ -18,12 +18,11 @@ var msRestAzure = require('ms-rest-azure');
|
|||
|
||||
exports.BaseResource = msRestAzure.BaseResource;
|
||||
exports.CloudError = msRestAzure.CloudError;
|
||||
exports.CopyLogDetails = require('./copyLogDetails');
|
||||
exports.AccountCopyLogDetails = require('./accountCopyLogDetails');
|
||||
exports.ShareCredentialDetails = require('./shareCredentialDetails');
|
||||
exports.AccountCredentialDetails = require('./accountCredentialDetails');
|
||||
exports.ShippingAddress = require('./shippingAddress');
|
||||
exports.AddressValidationOutput = require('./addressValidationOutput');
|
||||
exports.ApplianceNetworkConfiguration = require('./applianceNetworkConfiguration');
|
||||
exports.ArmBaseObject = require('./armBaseObject');
|
||||
exports.AvailableSkuRequest = require('./availableSkuRequest');
|
||||
exports.Sku = require('./sku');
|
||||
|
@ -31,52 +30,59 @@ exports.DestinationToServiceLocationMap = require('./destinationToServiceLocatio
|
|||
exports.SkuCapacity = require('./skuCapacity');
|
||||
exports.SkuCost = require('./skuCost');
|
||||
exports.SkuInformation = require('./skuInformation');
|
||||
exports.CabinetPodSecret = require('./cabinetPodSecret');
|
||||
exports.JobSecrets = require('./jobSecrets');
|
||||
exports.CabinetJobSecrets = require('./cabinetJobSecrets');
|
||||
exports.CancellationReason = require('./cancellationReason');
|
||||
exports.NotificationPreference = require('./notificationPreference');
|
||||
exports.ContactDetails = require('./contactDetails');
|
||||
exports.CopyLogDetails = require('./copyLogDetails');
|
||||
exports.CopyProgress = require('./copyProgress');
|
||||
exports.DestinationAccountDetails = require('./destinationAccountDetails');
|
||||
exports.DiskCopyLogDetails = require('./diskCopyLogDetails');
|
||||
exports.DiskCopyProgress = require('./diskCopyProgress');
|
||||
exports.DataBoxAccountCopyLogDetails = require('./dataBoxAccountCopyLogDetails');
|
||||
exports.DataBoxDiskCopyLogDetails = require('./dataBoxDiskCopyLogDetails');
|
||||
exports.DataBoxDiskCopyProgress = require('./dataBoxDiskCopyProgress');
|
||||
exports.JobDetails = require('./jobDetails');
|
||||
exports.DiskJobDetails = require('./diskJobDetails');
|
||||
exports.DataBoxDiskJobDetails = require('./dataBoxDiskJobDetails');
|
||||
exports.DiskSecret = require('./diskSecret');
|
||||
exports.DiskJobSecrets = require('./diskJobSecrets');
|
||||
exports.JobSecrets = require('./jobSecrets');
|
||||
exports.DataBoxDiskJobSecrets = require('./dataBoxDiskJobSecrets');
|
||||
exports.DataBoxHeavyAccountCopyLogDetails = require('./dataBoxHeavyAccountCopyLogDetails');
|
||||
exports.DataBoxHeavyJobDetails = require('./dataBoxHeavyJobDetails');
|
||||
exports.DataBoxHeavySecret = require('./dataBoxHeavySecret');
|
||||
exports.DataBoxHeavyJobSecrets = require('./dataBoxHeavyJobSecrets');
|
||||
exports.DataBoxJobDetails = require('./dataBoxJobDetails');
|
||||
exports.DataBoxSecret = require('./dataBoxSecret');
|
||||
exports.DataboxJobSecrets = require('./databoxJobSecrets');
|
||||
exports.DestinationAccountDetails = require('./destinationAccountDetails');
|
||||
exports.ErrorModel = require('./errorModel');
|
||||
exports.GetCopyLogsUriOutput = require('./getCopyLogsUriOutput');
|
||||
exports.JobErrorDetails = require('./jobErrorDetails');
|
||||
exports.JobStages = require('./jobStages');
|
||||
exports.PackageShippingDetails = require('./packageShippingDetails');
|
||||
exports.Preferences = require('./preferences');
|
||||
exports.Resource = require('./resource');
|
||||
exports.JobResource = require('./jobResource');
|
||||
exports.UpdateJobDetails = require('./updateJobDetails');
|
||||
exports.JobResourceUpdateParameter = require('./jobResourceUpdateParameter');
|
||||
exports.OperationDisplay = require('./operationDisplay');
|
||||
exports.Operation = require('./operation');
|
||||
exports.PodJobDetails = require('./podJobDetails');
|
||||
exports.PodSecret = require('./podSecret');
|
||||
exports.PodJobSecrets = require('./podJobSecrets');
|
||||
exports.ReportIssueDetails = require('./reportIssueDetails');
|
||||
exports.ServiceHealthResponse = require('./serviceHealthResponse');
|
||||
exports.ServiceHealthResponseList = require('./serviceHealthResponseList');
|
||||
exports.ShipmentPickUpRequest = require('./shipmentPickUpRequest');
|
||||
exports.ShipmentPickUpResponse = require('./shipmentPickUpResponse');
|
||||
exports.ShippingLabelDetails = require('./shippingLabelDetails');
|
||||
exports.UnencryptedSecrets = require('./unencryptedSecrets');
|
||||
exports.UnencryptedCredentials = require('./unencryptedCredentials');
|
||||
exports.ValidateAddress = require('./validateAddress');
|
||||
exports.OperationList = require('./operationList');
|
||||
exports.JobResourceList = require('./jobResourceList');
|
||||
exports.UnencryptedCredentialsList = require('./unencryptedCredentialsList');
|
||||
exports.AvailableSkusResult = require('./availableSkusResult');
|
||||
exports.discriminators = {
|
||||
'CopyLogDetails.Pod' : exports.AccountCopyLogDetails,
|
||||
'JobSecrets.Cabinet' : exports.CabinetJobSecrets,
|
||||
'CopyLogDetails' : exports.CopyLogDetails,
|
||||
'CopyLogDetails.Disk' : exports.DiskCopyLogDetails,
|
||||
'JobDetails.Disk' : exports.DiskJobDetails,
|
||||
'JobSecrets.Disk' : exports.DiskJobSecrets,
|
||||
'CopyLogDetails.DataBox' : exports.DataBoxAccountCopyLogDetails,
|
||||
'CopyLogDetails.DataBoxDisk' : exports.DataBoxDiskCopyLogDetails,
|
||||
'JobDetails.DataBoxDisk' : exports.DataBoxDiskJobDetails,
|
||||
'JobSecrets.DataBoxDisk' : exports.DataBoxDiskJobSecrets,
|
||||
'CopyLogDetails.DataBoxHeavy' : exports.DataBoxHeavyAccountCopyLogDetails,
|
||||
'JobDetails.DataBoxHeavy' : exports.DataBoxHeavyJobDetails,
|
||||
'JobSecrets.DataBoxHeavy' : exports.DataBoxHeavyJobSecrets,
|
||||
'JobDetails.DataBox' : exports.DataBoxJobDetails,
|
||||
'JobSecrets.DataBox' : exports.DataboxJobSecrets,
|
||||
'JobDetails' : exports.JobDetails,
|
||||
'JobSecrets' : exports.JobSecrets,
|
||||
'JobDetails.Pod' : exports.PodJobDetails,
|
||||
'JobSecrets.Pod' : exports.PodJobSecrets
|
||||
'JobSecrets' : exports.JobSecrets
|
||||
};
|
||||
|
|
|
@ -48,8 +48,26 @@ class JobDetails {
|
|||
* @member {string} [shippingAddress.companyName] Name of the company.
|
||||
* @member {string} [shippingAddress.addressType] Type of address. Possible
|
||||
* values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {object} [deliveryPackage] Delivery package shipping details.
|
||||
* @member {string} [deliveryPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [deliveryPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [deliveryPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {object} [returnPackage] Return package shipping details.
|
||||
* @member {string} [returnPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [returnPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [returnPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {array} destinationAccountDetails Destination account details.
|
||||
* @member {array} [errorDetails] Error details for failure. This is
|
||||
* optional.
|
||||
* @member {object} [preferences] Preferences for the order.
|
||||
* @member {array} [preferences.preferredDataCenterRegion]
|
||||
* @member {array} [copyLogDetails] List of copy log details.
|
||||
* @member {string} [reverseShipmentLabelSasKey] Shared access key to
|
||||
* download the return shipment label
|
||||
* @member {string} [chainOfCustodySasKey] Shared access key to download the
|
||||
* chain of custody logs
|
||||
* @member {string} jobDetailsType Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
|
@ -83,6 +101,7 @@ class JobDetails {
|
|||
},
|
||||
jobStages: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStages',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
|
@ -112,8 +131,42 @@ class JobDetails {
|
|||
className: 'ShippingAddress'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
|
@ -127,6 +180,51 @@ class JobDetails {
|
|||
}
|
||||
}
|
||||
},
|
||||
preferences: {
|
||||
required: false,
|
||||
serializedName: 'preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences'
|
||||
}
|
||||
},
|
||||
copyLogDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reverseShipmentLabelSasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'reverseShipmentLabelSasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chainOfCustodySasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'chainOfCustodySasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'jobDetailsType',
|
||||
|
|
|
@ -20,17 +20,17 @@ const models = require('./index');
|
|||
class JobResource extends models['Resource'] {
|
||||
/**
|
||||
* Create a JobResource.
|
||||
* @member {string} [deviceType] Type of the device to be used for the job.
|
||||
* Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @member {boolean} [isCancellable] Describes whether the job is cancellable
|
||||
* or not.
|
||||
* @member {boolean} [isDeletable] Describes whether the job is deletable or
|
||||
* not.
|
||||
* @member {boolean} [isShippingAddressEditable] Describes whether the
|
||||
* shipping address is editable or not.
|
||||
* @member {string} [status] Name of the stage which is in progress. Possible
|
||||
* values include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched',
|
||||
* 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
|
||||
* 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer',
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted', 'Current'
|
||||
* @member {date} [startTime] Time at which the job was started in UTC ISO
|
||||
* 8601 format.
|
||||
* @member {object} [error] Top level error for the job.
|
||||
|
@ -38,17 +38,6 @@ class JobResource extends models['Resource'] {
|
|||
* programmatically identify the error.
|
||||
* @member {string} [error.message] Describes the error in detail and
|
||||
* provides debugging information.
|
||||
* @member {object} [deliveryPackage] Delivery package shipping details.
|
||||
* @member {string} [deliveryPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [deliveryPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [deliveryPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {object} [returnPackage] Return package shipping details.
|
||||
* @member {string} [returnPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [returnPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [returnPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {array} destinationAccountDetails Destination account details.
|
||||
* @member {object} [details] Details of a job run. This field will only be
|
||||
* sent for expand details filter.
|
||||
* @member {number} [details.expectedDataSizeInTeraBytes] The expected size
|
||||
|
@ -87,8 +76,31 @@ class JobResource extends models['Resource'] {
|
|||
* company.
|
||||
* @member {string} [details.shippingAddress.addressType] Type of address.
|
||||
* Possible values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {object} [details.deliveryPackage] Delivery package shipping
|
||||
* details.
|
||||
* @member {string} [details.deliveryPackage.carrierName] Name of the
|
||||
* carrier.
|
||||
* @member {string} [details.deliveryPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
* @member {string} [details.deliveryPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
* @member {object} [details.returnPackage] Return package shipping details.
|
||||
* @member {string} [details.returnPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [details.returnPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
* @member {string} [details.returnPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
* @member {array} [details.destinationAccountDetails] Destination account
|
||||
* details.
|
||||
* @member {array} [details.errorDetails] Error details for failure. This is
|
||||
* optional.
|
||||
* @member {object} [details.preferences] Preferences for the order.
|
||||
* @member {array} [details.preferences.preferredDataCenterRegion]
|
||||
* @member {array} [details.copyLogDetails] List of copy log details.
|
||||
* @member {string} [details.reverseShipmentLabelSasKey] Shared access key to
|
||||
* download the return shipment label
|
||||
* @member {string} [details.chainOfCustodySasKey] Shared access key to
|
||||
* download the chain of custody logs
|
||||
* @member {string} [details.jobDetailsType] Polymorphic Discriminator
|
||||
* @member {string} [cancellationReason] Reason for cancellation.
|
||||
* @member {string} [name] Name of the object.
|
||||
|
@ -142,23 +154,25 @@ class JobResource extends models['Resource'] {
|
|||
className: 'Sku'
|
||||
}
|
||||
},
|
||||
deviceType: {
|
||||
required: false,
|
||||
serializedName: 'properties.deviceType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Pod', 'Disk', 'Cabinet' ]
|
||||
}
|
||||
},
|
||||
isCancellable: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.isCancellable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
isDeletable: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.isDeletable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
isShippingAddressEditable: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.isShippingAddressEditable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
|
@ -166,14 +180,16 @@ class JobResource extends models['Resource'] {
|
|||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.status',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', 'Aborted' ]
|
||||
allowedValues: [ 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', 'Aborted', 'Current' ]
|
||||
}
|
||||
},
|
||||
startTime: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.startTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
|
@ -181,43 +197,13 @@ class JobResource extends models['Resource'] {
|
|||
},
|
||||
error: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.error',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ErrorModel'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
serializedName: 'properties.deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
serializedName: 'properties.returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'properties.destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
details: {
|
||||
required: false,
|
||||
serializedName: 'properties.details',
|
||||
|
|
|
@ -19,7 +19,7 @@ const models = require('./index');
|
|||
class JobResourceUpdateParameter {
|
||||
/**
|
||||
* Create a JobResourceUpdateParameter.
|
||||
* @member {object} details Details of a job to be updated.
|
||||
* @member {object} [details] Details of a job to be updated.
|
||||
* @member {object} [details.contactDetails] Contact details for notification
|
||||
* and shipping.
|
||||
* @member {string} [details.contactDetails.contactName] Contact name of the
|
||||
|
@ -53,6 +53,7 @@ class JobResourceUpdateParameter {
|
|||
* company.
|
||||
* @member {string} [details.shippingAddress.addressType] Type of address.
|
||||
* Possible values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {array} [destinationAccountDetails] Destination account details.
|
||||
* @member {object} [tags] The list of key value pairs that describe the
|
||||
* resource. These tags can be used in viewing and grouping this resource
|
||||
* (across resource groups).
|
||||
|
@ -75,13 +76,28 @@ class JobResourceUpdateParameter {
|
|||
className: 'JobResourceUpdateParameter',
|
||||
modelProperties: {
|
||||
details: {
|
||||
required: true,
|
||||
required: false,
|
||||
serializedName: 'properties.details',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'UpdateJobDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: false,
|
||||
serializedName: 'properties.destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
required: false,
|
||||
serializedName: 'tags',
|
||||
|
|
|
@ -23,7 +23,7 @@ class JobStages {
|
|||
* 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp',
|
||||
* 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', 'Cancelled',
|
||||
* 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC',
|
||||
* 'Aborted'
|
||||
* 'Aborted', 'Current'
|
||||
* @member {string} [displayName] Display name of the job stage.
|
||||
* @member {string} stageStatus Status of the job stage. Possible values
|
||||
* include: 'None', 'InProgress', 'Succeeded', 'Failed', 'Cancelled',
|
||||
|
@ -54,7 +54,7 @@ class JobStages {
|
|||
serializedName: 'stageName',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', 'Aborted' ]
|
||||
allowedValues: [ 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', 'Aborted', 'Current' ]
|
||||
}
|
||||
},
|
||||
displayName: {
|
||||
|
|
|
@ -19,17 +19,17 @@ const models = require('./index');
|
|||
class Operation {
|
||||
/**
|
||||
* Create a Operation.
|
||||
* @member {string} name Name of the operation. Format:
|
||||
* @member {string} [name] Name of the operation. Format:
|
||||
* {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}
|
||||
* @member {object} display Operation display values.
|
||||
* @member {object} [display] Operation display values.
|
||||
* @member {string} [display.provider] Provider name.
|
||||
* @member {string} [display.resource] Resource name.
|
||||
* @member {string} [display.operation] Localized name of the operation for
|
||||
* display purpose.
|
||||
* @member {string} [display.description] Localized description of the
|
||||
* operation for display purpose.
|
||||
* @member {object} properties Operation properties.
|
||||
* @member {string} origin Origin of the operation. Can be :
|
||||
* @member {object} [properties] Operation properties.
|
||||
* @member {string} [origin] Origin of the operation. Can be :
|
||||
* user|system|user,system
|
||||
*/
|
||||
constructor() {
|
||||
|
@ -50,14 +50,16 @@ class Operation {
|
|||
className: 'Operation',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
|
@ -65,14 +67,16 @@ class Operation {
|
|||
}
|
||||
},
|
||||
properties: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties',
|
||||
type: {
|
||||
name: 'Object'
|
||||
}
|
||||
},
|
||||
origin: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'origin',
|
||||
type: {
|
||||
name: 'String'
|
||||
|
|
|
@ -38,6 +38,7 @@ class OperationList extends Array {
|
|||
modelProperties: {
|
||||
value: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: '',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Preferences related to the order
|
||||
*
|
||||
*/
|
||||
class Preferences {
|
||||
/**
|
||||
* Create a Preferences.
|
||||
* @member {array} [preferredDataCenterRegion]
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of Preferences
|
||||
*
|
||||
* @returns {object} metadata of Preferences
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences',
|
||||
modelProperties: {
|
||||
preferredDataCenterRegion: {
|
||||
required: false,
|
||||
serializedName: 'preferredDataCenterRegion',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Preferences;
|
|
@ -29,7 +29,8 @@ class Resource extends models['BaseResource'] {
|
|||
* resource. These tags can be used in viewing and grouping this resource
|
||||
* (across resource groups).
|
||||
* @member {object} sku The sku type.
|
||||
* @member {string} [sku.name] The sku name.
|
||||
* @member {string} [sku.name] The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [sku.displayName] The display name of the sku.
|
||||
* @member {string} [sku.family] The sku family.
|
||||
*/
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
class ServiceHealthResponse {
|
||||
/**
|
||||
* Create a ServiceHealthResponse.
|
||||
* @member {string} [connectorType]
|
||||
* @member {date} [startTime]
|
||||
* @member {date} [endTime]
|
||||
* @member {boolean} [status]
|
||||
* @member {string} [connectorType] Name of the connector.
|
||||
* @member {date} [startTime] Time when the action was triggered.
|
||||
* @member {date} [endTime] Time when the action got completed.
|
||||
* @member {boolean} [status] Status of the service.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
|
|
@ -19,8 +19,8 @@ const models = require('./index');
|
|||
class ServiceHealthResponseList {
|
||||
/**
|
||||
* Create a ServiceHealthResponseList.
|
||||
* @member {string} [serviceVersion]
|
||||
* @member {array} [dependencies] List of ServiceHealthResponse.
|
||||
* @member {string} [serviceVersion] Version of the service.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -39,13 +39,6 @@ class ServiceHealthResponseList {
|
|||
name: 'Composite',
|
||||
className: 'ServiceHealthResponseList',
|
||||
modelProperties: {
|
||||
serviceVersion: {
|
||||
required: false,
|
||||
serializedName: 'serviceVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
dependencies: {
|
||||
required: false,
|
||||
serializedName: 'dependencies',
|
||||
|
@ -60,6 +53,13 @@ class ServiceHealthResponseList {
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
serviceVersion: {
|
||||
required: false,
|
||||
serializedName: 'serviceVersion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,12 @@ class ShareCredentialDetails {
|
|||
/**
|
||||
* Create a ShareCredentialDetails.
|
||||
* @member {string} [shareName] Name of the share.
|
||||
* @member {string} [shareType] Type of the share. Possible values include:
|
||||
* 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile', 'HDC'
|
||||
* @member {string} [userName] User name for the share.
|
||||
* @member {string} [password] Password for the share.
|
||||
* @member {array} [supportedAccessProtocols] Access protocols supported on
|
||||
* the device.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -40,13 +44,24 @@ class ShareCredentialDetails {
|
|||
modelProperties: {
|
||||
shareName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'shareName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
shareType: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'shareType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile', 'HDC' ]
|
||||
}
|
||||
},
|
||||
userName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'userName',
|
||||
type: {
|
||||
name: 'String'
|
||||
|
@ -54,10 +69,27 @@ class ShareCredentialDetails {
|
|||
},
|
||||
password: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'password',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
supportedAccessProtocols: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'supportedAccessProtocols',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'AccessProtocolElementType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'SMB', 'NFS' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
class ShipmentPickUpRequest {
|
||||
/**
|
||||
* Create a ShipmentPickUpRequest.
|
||||
* @member {date} [startTime] Minimum date after which the pick up should
|
||||
* @member {date} startTime Minimum date after which the pick up should
|
||||
* commence, this must be in local time of pick up area.
|
||||
* @member {date} [endTime] Maximum date before which the pick up should
|
||||
* @member {date} endTime Maximum date before which the pick up should
|
||||
* commence, this must be in local time of pick up area.
|
||||
* @member {string} [shipmentLocation] Shipment Location in the pickup place.
|
||||
* @member {string} shipmentLocation Shipment Location in the pickup place.
|
||||
* Eg.front desk
|
||||
*/
|
||||
constructor() {
|
||||
|
@ -42,21 +42,21 @@ class ShipmentPickUpRequest {
|
|||
className: 'ShipmentPickUpRequest',
|
||||
modelProperties: {
|
||||
startTime: {
|
||||
required: false,
|
||||
required: true,
|
||||
serializedName: 'startTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
endTime: {
|
||||
required: false,
|
||||
required: true,
|
||||
serializedName: 'endTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
shipmentLocation: {
|
||||
required: false,
|
||||
required: true,
|
||||
serializedName: 'shipmentLocation',
|
||||
type: {
|
||||
name: 'String'
|
||||
|
|
|
@ -41,6 +41,7 @@ class ShipmentPickUpResponse {
|
|||
modelProperties: {
|
||||
confirmationNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'confirmationNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
|
@ -48,6 +49,7 @@ class ShipmentPickUpResponse {
|
|||
},
|
||||
readyByTime: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'readyByTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
class Sku {
|
||||
/**
|
||||
* Create a Sku.
|
||||
* @member {string} name The sku name.
|
||||
* @member {string} name The sku name. Possible values include: 'DataBox',
|
||||
* 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [displayName] The display name of the sku.
|
||||
* @member {string} [family] The sku family.
|
||||
*/
|
||||
|
@ -42,7 +43,8 @@ class Sku {
|
|||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' ]
|
||||
}
|
||||
},
|
||||
displayName: {
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
class SkuCost {
|
||||
/**
|
||||
* Create a SkuCost.
|
||||
* @member {string} meterId Meter id of the Sku.
|
||||
* @member {string} meterType The type of the meter.
|
||||
* @member {string} [meterId] Meter id of the Sku.
|
||||
* @member {string} [meterType] The type of the meter.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -38,14 +38,16 @@ class SkuCost {
|
|||
className: 'SkuCost',
|
||||
modelProperties: {
|
||||
meterId: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'meterId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
meterType: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'meterType',
|
||||
type: {
|
||||
name: 'String'
|
||||
|
|
|
@ -19,19 +19,24 @@ const models = require('./index');
|
|||
class SkuInformation {
|
||||
/**
|
||||
* Create a SkuInformation.
|
||||
* @member {object} sku The Sku.
|
||||
* @member {string} [sku.name] The sku name.
|
||||
* @member {object} [sku] The Sku.
|
||||
* @member {string} [sku.name] The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [sku.displayName] The display name of the sku.
|
||||
* @member {string} [sku.family] The sku family.
|
||||
* @member {boolean} enabled The sku is enabled or not.
|
||||
* @member {boolean} [enabled] The sku is enabled or not.
|
||||
* @member {array} [destinationToServiceLocationMap] The map of destination
|
||||
* location to service location.
|
||||
* @member {object} capacity Capacity of the Sku.
|
||||
* @member {object} [capacity] Capacity of the Sku.
|
||||
* @member {string} [capacity.usable] Usable capacity in TB.
|
||||
* @member {string} [capacity.maximum] Maximum capacity in TB.
|
||||
* @member {array} costs Cost of the Sku.
|
||||
* @member {array} apiVersions Api versions that support this Sku.
|
||||
* @member {string} [disabledReason] Reason why the Sku is disabled.
|
||||
* @member {array} [costs] Cost of the Sku.
|
||||
* @member {array} [apiVersions] Api versions that support this Sku.
|
||||
* @member {string} [disabledReason] Reason why the Sku is disabled. Possible
|
||||
* values include: 'None', 'Country', 'Region', 'Feature', 'OfferType'
|
||||
* @member {string} [disabledReasonMessage] Message for why the Sku is
|
||||
* disabled.
|
||||
* @member {string} [requiredFeature] Required feature to access the sku.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -51,7 +56,8 @@ class SkuInformation {
|
|||
className: 'SkuInformation',
|
||||
modelProperties: {
|
||||
sku: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
|
@ -59,7 +65,8 @@ class SkuInformation {
|
|||
}
|
||||
},
|
||||
enabled: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'enabled',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
|
@ -67,6 +74,7 @@ class SkuInformation {
|
|||
},
|
||||
destinationToServiceLocationMap: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.destinationToServiceLocationMap',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
|
@ -81,7 +89,8 @@ class SkuInformation {
|
|||
}
|
||||
},
|
||||
capacity: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.capacity',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
|
@ -89,7 +98,8 @@ class SkuInformation {
|
|||
}
|
||||
},
|
||||
costs: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.costs',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
|
@ -104,7 +114,8 @@ class SkuInformation {
|
|||
}
|
||||
},
|
||||
apiVersions: {
|
||||
required: true,
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.apiVersions',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
|
@ -119,7 +130,25 @@ class SkuInformation {
|
|||
},
|
||||
disabledReason: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.disabledReason',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'None', 'Country', 'Region', 'Feature', 'OfferType' ]
|
||||
}
|
||||
},
|
||||
disabledReasonMessage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.disabledReasonMessage',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
requiredFeature: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.requiredFeature',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
|
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Unencrypted credentials for accessing device.
|
||||
*
|
||||
*/
|
||||
class UnencryptedCredentials {
|
||||
/**
|
||||
* Create a UnencryptedCredentials.
|
||||
* @member {string} [jobName] Name of the job.
|
||||
* @member {object} [jobSecrets] Secrets related to this job.
|
||||
* @member {string} [jobSecrets.jobSecretsType] Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of UnencryptedCredentials
|
||||
*
|
||||
* @returns {object} metadata of UnencryptedCredentials
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'UnencryptedCredentials',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'UnencryptedCredentials',
|
||||
modelProperties: {
|
||||
jobName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobSecrets: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobSecrets',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobSecretsType',
|
||||
clientName: 'jobSecretsType'
|
||||
},
|
||||
uberParent: 'JobSecrets',
|
||||
className: 'JobSecrets'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = UnencryptedCredentials;
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* List of unencrypted credentials for accessing device.
|
||||
*/
|
||||
class UnencryptedCredentialsList extends Array {
|
||||
/**
|
||||
* Create a UnencryptedCredentialsList.
|
||||
* @member {string} [nextLink] Link for the next set of unencrypted
|
||||
* credentials.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of UnencryptedCredentialsList
|
||||
*
|
||||
* @returns {object} metadata of UnencryptedCredentialsList
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'UnencryptedCredentialsList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'UnencryptedCredentialsList',
|
||||
modelProperties: {
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: '',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'UnencryptedCredentialsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'UnencryptedCredentials'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = UnencryptedCredentialsList;
|
|
@ -20,7 +20,7 @@ const models = require('./index');
|
|||
class ValidateAddress {
|
||||
/**
|
||||
* Create a ValidateAddress.
|
||||
* @member {object} [shippingAddress] Shipping address of the customer.
|
||||
* @member {object} shippingAddress Shipping address of the customer.
|
||||
* @member {string} [shippingAddress.streetAddress1] Street Address line 1.
|
||||
* @member {string} [shippingAddress.streetAddress2] Street Address line 2.
|
||||
* @member {string} [shippingAddress.streetAddress3] Street Address line 3.
|
||||
|
@ -33,8 +33,8 @@ class ValidateAddress {
|
|||
* @member {string} [shippingAddress.companyName] Name of the company.
|
||||
* @member {string} [shippingAddress.addressType] Type of address. Possible
|
||||
* values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {string} [deviceType] Device type to be used for the job. Possible
|
||||
* values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @member {string} deviceType Device type to be used for the job. Possible
|
||||
* values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ class ValidateAddress {
|
|||
className: 'ValidateAddress',
|
||||
modelProperties: {
|
||||
shippingAddress: {
|
||||
required: false,
|
||||
required: true,
|
||||
serializedName: 'shippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
|
@ -62,11 +62,11 @@ class ValidateAddress {
|
|||
}
|
||||
},
|
||||
deviceType: {
|
||||
required: false,
|
||||
required: true,
|
||||
serializedName: 'deviceType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Pod', 'Disk', 'Cabinet' ]
|
||||
allowedValues: [ 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -337,48 +337,6 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} jobResource Job details from request body.
|
||||
*
|
||||
* @param {string} [jobResource.deviceType] Type of the device to be used for
|
||||
* the job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
*
|
||||
* @param {boolean} [jobResource.isCancellable] Describes whether the job is
|
||||
* cancellable or not.
|
||||
*
|
||||
* @param {boolean} [jobResource.isShippingAddressEditable] Describes whether
|
||||
* the shipping address is editable or not.
|
||||
*
|
||||
* @param {string} [jobResource.status] Name of the stage which is in progress.
|
||||
* Possible values include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched',
|
||||
* 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
|
||||
* 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer',
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
*
|
||||
* @param {date} [jobResource.startTime] Time at which the job was started in
|
||||
* UTC ISO 8601 format.
|
||||
*
|
||||
* @param {object} [jobResource.error] Top level error for the job.
|
||||
*
|
||||
* @param {string} jobResource.error.code Error code that can be used to
|
||||
* programmatically identify the error.
|
||||
*
|
||||
* @param {string} [jobResource.error.message] Describes the error in detail
|
||||
* and provides debugging information.
|
||||
*
|
||||
* @param {object} [jobResource.deliveryPackage] Delivery package shipping
|
||||
* details.
|
||||
*
|
||||
* @param {object} [jobResource.returnPackage] Return package shipping details.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.carrierName] Name of the carrier.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
*
|
||||
* @param {array} jobResource.destinationAccountDetails Destination account
|
||||
* details.
|
||||
*
|
||||
* @param {object} [jobResource.details] Details of a job run. This field will
|
||||
* only be sent for expand details filter.
|
||||
*
|
||||
|
@ -386,14 +344,11 @@ export interface Jobs {
|
|||
* expected size of the data, which needs to be transfered in this job, in tera
|
||||
* bytes.
|
||||
*
|
||||
* @param {array} [jobResource.details.jobStages] List of stages that run in
|
||||
* the job.
|
||||
*
|
||||
* @param {object} jobResource.details.contactDetails Contact details for
|
||||
* notification and shipping.
|
||||
*
|
||||
* @param {string} [jobResource.details.contactDetails.contactName] Contact
|
||||
* name of the person.
|
||||
* @param {string} jobResource.details.contactDetails.contactName Contact name
|
||||
* of the person.
|
||||
*
|
||||
* @param {string} jobResource.details.contactDetails.phone Phone number of the
|
||||
* contact person.
|
||||
|
@ -441,8 +396,12 @@ export interface Jobs {
|
|||
* @param {string} [jobResource.details.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {array} [jobResource.details.errorDetails] Error details for failure.
|
||||
* This is optional.
|
||||
* @param {array} jobResource.details.destinationAccountDetails Destination
|
||||
* account details.
|
||||
*
|
||||
* @param {object} [jobResource.details.preferences] Preferences for the order.
|
||||
*
|
||||
* @param {array} [jobResource.details.preferences.preferredDataCenterRegion]
|
||||
*
|
||||
* @param {string} jobResource.details.jobDetailsType Polymorphic Discriminator
|
||||
*
|
||||
|
@ -460,7 +419,8 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} jobResource.sku The sku type.
|
||||
*
|
||||
* @param {string} jobResource.sku.name The sku name.
|
||||
* @param {string} jobResource.sku.name The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {string} [jobResource.sku.displayName] The display name of the sku.
|
||||
*
|
||||
|
@ -491,48 +451,6 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} jobResource Job details from request body.
|
||||
*
|
||||
* @param {string} [jobResource.deviceType] Type of the device to be used for
|
||||
* the job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
*
|
||||
* @param {boolean} [jobResource.isCancellable] Describes whether the job is
|
||||
* cancellable or not.
|
||||
*
|
||||
* @param {boolean} [jobResource.isShippingAddressEditable] Describes whether
|
||||
* the shipping address is editable or not.
|
||||
*
|
||||
* @param {string} [jobResource.status] Name of the stage which is in progress.
|
||||
* Possible values include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched',
|
||||
* 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
|
||||
* 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer',
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
*
|
||||
* @param {date} [jobResource.startTime] Time at which the job was started in
|
||||
* UTC ISO 8601 format.
|
||||
*
|
||||
* @param {object} [jobResource.error] Top level error for the job.
|
||||
*
|
||||
* @param {string} jobResource.error.code Error code that can be used to
|
||||
* programmatically identify the error.
|
||||
*
|
||||
* @param {string} [jobResource.error.message] Describes the error in detail
|
||||
* and provides debugging information.
|
||||
*
|
||||
* @param {object} [jobResource.deliveryPackage] Delivery package shipping
|
||||
* details.
|
||||
*
|
||||
* @param {object} [jobResource.returnPackage] Return package shipping details.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.carrierName] Name of the carrier.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
*
|
||||
* @param {array} jobResource.destinationAccountDetails Destination account
|
||||
* details.
|
||||
*
|
||||
* @param {object} [jobResource.details] Details of a job run. This field will
|
||||
* only be sent for expand details filter.
|
||||
*
|
||||
|
@ -540,14 +458,11 @@ export interface Jobs {
|
|||
* expected size of the data, which needs to be transfered in this job, in tera
|
||||
* bytes.
|
||||
*
|
||||
* @param {array} [jobResource.details.jobStages] List of stages that run in
|
||||
* the job.
|
||||
*
|
||||
* @param {object} jobResource.details.contactDetails Contact details for
|
||||
* notification and shipping.
|
||||
*
|
||||
* @param {string} [jobResource.details.contactDetails.contactName] Contact
|
||||
* name of the person.
|
||||
* @param {string} jobResource.details.contactDetails.contactName Contact name
|
||||
* of the person.
|
||||
*
|
||||
* @param {string} jobResource.details.contactDetails.phone Phone number of the
|
||||
* contact person.
|
||||
|
@ -595,8 +510,12 @@ export interface Jobs {
|
|||
* @param {string} [jobResource.details.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {array} [jobResource.details.errorDetails] Error details for failure.
|
||||
* This is optional.
|
||||
* @param {array} jobResource.details.destinationAccountDetails Destination
|
||||
* account details.
|
||||
*
|
||||
* @param {object} [jobResource.details.preferences] Preferences for the order.
|
||||
*
|
||||
* @param {array} [jobResource.details.preferences.preferredDataCenterRegion]
|
||||
*
|
||||
* @param {string} jobResource.details.jobDetailsType Polymorphic Discriminator
|
||||
*
|
||||
|
@ -614,7 +533,8 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} jobResource.sku The sku type.
|
||||
*
|
||||
* @param {string} jobResource.sku.name The sku name.
|
||||
* @param {string} jobResource.sku.name The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {string} [jobResource.sku.displayName] The display name of the sku.
|
||||
*
|
||||
|
@ -726,14 +646,14 @@ export interface Jobs {
|
|||
* @param {object} jobResourceUpdateParameter Job update parameters from
|
||||
* request body.
|
||||
*
|
||||
* @param {object} jobResourceUpdateParameter.details Details of a job to be
|
||||
* @param {object} [jobResourceUpdateParameter.details] Details of a job to be
|
||||
* updated.
|
||||
*
|
||||
* @param {object} [jobResourceUpdateParameter.details.contactDetails] Contact
|
||||
* details for notification and shipping.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobResourceUpdateParameter.details.contactDetails.contactName] Contact name
|
||||
* jobResourceUpdateParameter.details.contactDetails.contactName Contact name
|
||||
* of the person.
|
||||
*
|
||||
* @param {string} jobResourceUpdateParameter.details.contactDetails.phone
|
||||
|
@ -793,6 +713,9 @@ export interface Jobs {
|
|||
* [jobResourceUpdateParameter.details.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {array} [jobResourceUpdateParameter.destinationAccountDetails]
|
||||
* Destination account details.
|
||||
*
|
||||
* @param {object} [jobResourceUpdateParameter.tags] The list of key value
|
||||
* pairs that describe the resource. These tags can be used in viewing and
|
||||
* grouping this resource (across resource groups).
|
||||
|
@ -826,14 +749,14 @@ export interface Jobs {
|
|||
* @param {object} jobResourceUpdateParameter Job update parameters from
|
||||
* request body.
|
||||
*
|
||||
* @param {object} jobResourceUpdateParameter.details Details of a job to be
|
||||
* @param {object} [jobResourceUpdateParameter.details] Details of a job to be
|
||||
* updated.
|
||||
*
|
||||
* @param {object} [jobResourceUpdateParameter.details.contactDetails] Contact
|
||||
* details for notification and shipping.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobResourceUpdateParameter.details.contactDetails.contactName] Contact name
|
||||
* jobResourceUpdateParameter.details.contactDetails.contactName Contact name
|
||||
* of the person.
|
||||
*
|
||||
* @param {string} jobResourceUpdateParameter.details.contactDetails.phone
|
||||
|
@ -893,6 +816,9 @@ export interface Jobs {
|
|||
* [jobResourceUpdateParameter.details.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {array} [jobResourceUpdateParameter.destinationAccountDetails]
|
||||
* Destination account details.
|
||||
*
|
||||
* @param {object} [jobResourceUpdateParameter.tags] The list of key value
|
||||
* pairs that describe the resource. These tags can be used in viewing and
|
||||
* grouping this resource (across resource groups).
|
||||
|
@ -944,14 +870,14 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} shipmentPickUpRequest Details of shipment pick up request.
|
||||
*
|
||||
* @param {date} [shipmentPickUpRequest.startTime] Minimum date after which the
|
||||
* @param {date} shipmentPickUpRequest.startTime Minimum date after which the
|
||||
* pick up should commence, this must be in local time of pick up area.
|
||||
*
|
||||
* @param {date} [shipmentPickUpRequest.endTime] Maximum date before which the
|
||||
* @param {date} shipmentPickUpRequest.endTime Maximum date before which the
|
||||
* pick up should commence, this must be in local time of pick up area.
|
||||
*
|
||||
* @param {string} [shipmentPickUpRequest.shipmentLocation] Shipment Location
|
||||
* in the pickup place. Eg.front desk
|
||||
* @param {string} shipmentPickUpRequest.shipmentLocation Shipment Location in
|
||||
* the pickup place. Eg.front desk
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -977,14 +903,14 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} shipmentPickUpRequest Details of shipment pick up request.
|
||||
*
|
||||
* @param {date} [shipmentPickUpRequest.startTime] Minimum date after which the
|
||||
* @param {date} shipmentPickUpRequest.startTime Minimum date after which the
|
||||
* pick up should commence, this must be in local time of pick up area.
|
||||
*
|
||||
* @param {date} [shipmentPickUpRequest.endTime] Maximum date before which the
|
||||
* @param {date} shipmentPickUpRequest.endTime Maximum date before which the
|
||||
* pick up should commence, this must be in local time of pick up area.
|
||||
*
|
||||
* @param {string} [shipmentPickUpRequest.shipmentLocation] Shipment Location
|
||||
* in the pickup place. Eg.front desk
|
||||
* @param {string} shipmentPickUpRequest.shipmentLocation Shipment Location in
|
||||
* the pickup place. Eg.front desk
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -1089,132 +1015,6 @@ export interface Jobs {
|
|||
cancel(resourceGroupName: string, jobName: string, cancellationReason: models.CancellationReason, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;
|
||||
|
||||
|
||||
/**
|
||||
* Provides list of copy logs uri.
|
||||
*
|
||||
* @param {string} resourceGroupName The Resource Group Name
|
||||
*
|
||||
* @param {string} jobName The name of the job Resource within the specified
|
||||
* resource group. job names must be between 3 and 24 characters in length and
|
||||
* use any alphanumeric and underscore only
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @returns {Promise} A promise is returned
|
||||
*
|
||||
* @resolve {HttpOperationResponse<GetCopyLogsUriOutput>} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*/
|
||||
getCopyLogsUriWithHttpOperationResponse(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.GetCopyLogsUriOutput>>;
|
||||
|
||||
/**
|
||||
* Provides list of copy logs uri.
|
||||
*
|
||||
* @param {string} resourceGroupName The Resource Group Name
|
||||
*
|
||||
* @param {string} jobName The name of the job Resource within the specified
|
||||
* resource group. job names must be between 3 and 24 characters in length and
|
||||
* use any alphanumeric and underscore only
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @param {ServiceCallback} [optionalCallback] - The optional callback.
|
||||
*
|
||||
* @returns {ServiceCallback|Promise} If a callback was passed as the last
|
||||
* parameter then it returns the callback else returns a Promise.
|
||||
*
|
||||
* {Promise} A promise is returned.
|
||||
*
|
||||
* @resolve {GetCopyLogsUriOutput} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*
|
||||
* {ServiceCallback} optionalCallback(err, result, request, response)
|
||||
*
|
||||
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
|
||||
*
|
||||
* {GetCopyLogsUriOutput} [result] - The deserialized result object if an error did not occur.
|
||||
* See {@link GetCopyLogsUriOutput} for more information.
|
||||
*
|
||||
* {WebResource} [request] - The HTTP Request object if an error did not occur.
|
||||
*
|
||||
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
|
||||
*/
|
||||
getCopyLogsUri(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.GetCopyLogsUriOutput>;
|
||||
getCopyLogsUri(resourceGroupName: string, jobName: string, callback: ServiceCallback<models.GetCopyLogsUriOutput>): void;
|
||||
getCopyLogsUri(resourceGroupName: string, jobName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.GetCopyLogsUriOutput>): void;
|
||||
|
||||
|
||||
/**
|
||||
* Get shipping label sas uri.
|
||||
*
|
||||
* @param {string} resourceGroupName The Resource Group Name
|
||||
*
|
||||
* @param {string} jobName The name of the job Resource within the specified
|
||||
* resource group. job names must be between 3 and 24 characters in length and
|
||||
* use any alphanumeric and underscore only
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @returns {Promise} A promise is returned
|
||||
*
|
||||
* @resolve {HttpOperationResponse<ShippingLabelDetails>} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*/
|
||||
downloadShippingLabelUriWithHttpOperationResponse(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.ShippingLabelDetails>>;
|
||||
|
||||
/**
|
||||
* Get shipping label sas uri.
|
||||
*
|
||||
* @param {string} resourceGroupName The Resource Group Name
|
||||
*
|
||||
* @param {string} jobName The name of the job Resource within the specified
|
||||
* resource group. job names must be between 3 and 24 characters in length and
|
||||
* use any alphanumeric and underscore only
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @param {ServiceCallback} [optionalCallback] - The optional callback.
|
||||
*
|
||||
* @returns {ServiceCallback|Promise} If a callback was passed as the last
|
||||
* parameter then it returns the callback else returns a Promise.
|
||||
*
|
||||
* {Promise} A promise is returned.
|
||||
*
|
||||
* @resolve {ShippingLabelDetails} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*
|
||||
* {ServiceCallback} optionalCallback(err, result, request, response)
|
||||
*
|
||||
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
|
||||
*
|
||||
* {ShippingLabelDetails} [result] - The deserialized result object if an error did not occur.
|
||||
* See {@link ShippingLabelDetails} for more information.
|
||||
*
|
||||
* {WebResource} [request] - The HTTP Request object if an error did not occur.
|
||||
*
|
||||
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
|
||||
*/
|
||||
downloadShippingLabelUri(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.ShippingLabelDetails>;
|
||||
downloadShippingLabelUri(resourceGroupName: string, jobName: string, callback: ServiceCallback<models.ShippingLabelDetails>): void;
|
||||
downloadShippingLabelUri(resourceGroupName: string, jobName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.ShippingLabelDetails>): void;
|
||||
|
||||
|
||||
/**
|
||||
* This method gets the unencrypted secrets related to the job.
|
||||
*
|
||||
|
@ -1231,11 +1031,11 @@ export interface Jobs {
|
|||
*
|
||||
* @returns {Promise} A promise is returned
|
||||
*
|
||||
* @resolve {HttpOperationResponse<UnencryptedSecrets>} - The deserialized result object.
|
||||
* @resolve {HttpOperationResponse<UnencryptedCredentialsList>} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*/
|
||||
listSecretsWithHttpOperationResponse(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.UnencryptedSecrets>>;
|
||||
listCredentialsWithHttpOperationResponse(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.UnencryptedCredentialsList>>;
|
||||
|
||||
/**
|
||||
* This method gets the unencrypted secrets related to the job.
|
||||
|
@ -1258,7 +1058,7 @@ export interface Jobs {
|
|||
*
|
||||
* {Promise} A promise is returned.
|
||||
*
|
||||
* @resolve {UnencryptedSecrets} - The deserialized result object.
|
||||
* @resolve {UnencryptedCredentialsList} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*
|
||||
|
@ -1266,100 +1066,17 @@ export interface Jobs {
|
|||
*
|
||||
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
|
||||
*
|
||||
* {UnencryptedSecrets} [result] - The deserialized result object if an error did not occur.
|
||||
* See {@link UnencryptedSecrets} for more information.
|
||||
* {UnencryptedCredentialsList} [result] - The deserialized result object if an error did not occur.
|
||||
* See {@link UnencryptedCredentialsList} for more
|
||||
* information.
|
||||
*
|
||||
* {WebResource} [request] - The HTTP Request object if an error did not occur.
|
||||
*
|
||||
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
|
||||
*/
|
||||
listSecrets(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.UnencryptedSecrets>;
|
||||
listSecrets(resourceGroupName: string, jobName: string, callback: ServiceCallback<models.UnencryptedSecrets>): void;
|
||||
listSecrets(resourceGroupName: string, jobName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.UnencryptedSecrets>): void;
|
||||
|
||||
|
||||
/**
|
||||
* Reports an issue.
|
||||
*
|
||||
* @param {string} resourceGroupName The Resource Group Name
|
||||
*
|
||||
* @param {string} jobName The name of the job Resource within the specified
|
||||
* resource group. job names must be between 3 and 24 characters in length and
|
||||
* use any alphanumeric and underscore only
|
||||
*
|
||||
* @param {object} reportIssueDetails Details of reported issue.
|
||||
*
|
||||
* @param {string} [reportIssueDetails.issueType] Issue Type. Possible values
|
||||
* include: 'DeviceMismatch', 'ValidationStringMismatch',
|
||||
* 'CredentialNotWorking', 'DeviceFailure'
|
||||
*
|
||||
* @param {string} [reportIssueDetails.deviceIssueType] Device Issue Type. Only
|
||||
* used for Device failure issue. Possible values include: 'DeviceTampering',
|
||||
* 'DeviceNotBootingUp', 'DeviceHealthCheckShowFailures', 'NICsAreNotWorking',
|
||||
* 'Misc'
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @returns {Promise} A promise is returned
|
||||
*
|
||||
* @resolve {HttpOperationResponse<null>} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*/
|
||||
reportIssueWithHttpOperationResponse(resourceGroupName: string, jobName: string, reportIssueDetails: models.ReportIssueDetails, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<void>>;
|
||||
|
||||
/**
|
||||
* Reports an issue.
|
||||
*
|
||||
* @param {string} resourceGroupName The Resource Group Name
|
||||
*
|
||||
* @param {string} jobName The name of the job Resource within the specified
|
||||
* resource group. job names must be between 3 and 24 characters in length and
|
||||
* use any alphanumeric and underscore only
|
||||
*
|
||||
* @param {object} reportIssueDetails Details of reported issue.
|
||||
*
|
||||
* @param {string} [reportIssueDetails.issueType] Issue Type. Possible values
|
||||
* include: 'DeviceMismatch', 'ValidationStringMismatch',
|
||||
* 'CredentialNotWorking', 'DeviceFailure'
|
||||
*
|
||||
* @param {string} [reportIssueDetails.deviceIssueType] Device Issue Type. Only
|
||||
* used for Device failure issue. Possible values include: 'DeviceTampering',
|
||||
* 'DeviceNotBootingUp', 'DeviceHealthCheckShowFailures', 'NICsAreNotWorking',
|
||||
* 'Misc'
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @param {ServiceCallback} [optionalCallback] - The optional callback.
|
||||
*
|
||||
* @returns {ServiceCallback|Promise} If a callback was passed as the last
|
||||
* parameter then it returns the callback else returns a Promise.
|
||||
*
|
||||
* {Promise} A promise is returned.
|
||||
*
|
||||
* @resolve {null} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*
|
||||
* {ServiceCallback} optionalCallback(err, result, request, response)
|
||||
*
|
||||
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
|
||||
*
|
||||
* {null} [result] - The deserialized result object if an error did not occur.
|
||||
*
|
||||
* {WebResource} [request] - The HTTP Request object if an error did not occur.
|
||||
*
|
||||
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
|
||||
*/
|
||||
reportIssue(resourceGroupName: string, jobName: string, reportIssueDetails: models.ReportIssueDetails, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<void>;
|
||||
reportIssue(resourceGroupName: string, jobName: string, reportIssueDetails: models.ReportIssueDetails, callback: ServiceCallback<void>): void;
|
||||
reportIssue(resourceGroupName: string, jobName: string, reportIssueDetails: models.ReportIssueDetails, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;
|
||||
listCredentials(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<models.UnencryptedCredentialsList>;
|
||||
listCredentials(resourceGroupName: string, jobName: string, callback: ServiceCallback<models.UnencryptedCredentialsList>): void;
|
||||
listCredentials(resourceGroupName: string, jobName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.UnencryptedCredentialsList>): void;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1374,48 +1091,6 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} jobResource Job details from request body.
|
||||
*
|
||||
* @param {string} [jobResource.deviceType] Type of the device to be used for
|
||||
* the job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
*
|
||||
* @param {boolean} [jobResource.isCancellable] Describes whether the job is
|
||||
* cancellable or not.
|
||||
*
|
||||
* @param {boolean} [jobResource.isShippingAddressEditable] Describes whether
|
||||
* the shipping address is editable or not.
|
||||
*
|
||||
* @param {string} [jobResource.status] Name of the stage which is in progress.
|
||||
* Possible values include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched',
|
||||
* 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
|
||||
* 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer',
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
*
|
||||
* @param {date} [jobResource.startTime] Time at which the job was started in
|
||||
* UTC ISO 8601 format.
|
||||
*
|
||||
* @param {object} [jobResource.error] Top level error for the job.
|
||||
*
|
||||
* @param {string} jobResource.error.code Error code that can be used to
|
||||
* programmatically identify the error.
|
||||
*
|
||||
* @param {string} [jobResource.error.message] Describes the error in detail
|
||||
* and provides debugging information.
|
||||
*
|
||||
* @param {object} [jobResource.deliveryPackage] Delivery package shipping
|
||||
* details.
|
||||
*
|
||||
* @param {object} [jobResource.returnPackage] Return package shipping details.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.carrierName] Name of the carrier.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
*
|
||||
* @param {array} jobResource.destinationAccountDetails Destination account
|
||||
* details.
|
||||
*
|
||||
* @param {object} [jobResource.details] Details of a job run. This field will
|
||||
* only be sent for expand details filter.
|
||||
*
|
||||
|
@ -1423,14 +1098,11 @@ export interface Jobs {
|
|||
* expected size of the data, which needs to be transfered in this job, in tera
|
||||
* bytes.
|
||||
*
|
||||
* @param {array} [jobResource.details.jobStages] List of stages that run in
|
||||
* the job.
|
||||
*
|
||||
* @param {object} jobResource.details.contactDetails Contact details for
|
||||
* notification and shipping.
|
||||
*
|
||||
* @param {string} [jobResource.details.contactDetails.contactName] Contact
|
||||
* name of the person.
|
||||
* @param {string} jobResource.details.contactDetails.contactName Contact name
|
||||
* of the person.
|
||||
*
|
||||
* @param {string} jobResource.details.contactDetails.phone Phone number of the
|
||||
* contact person.
|
||||
|
@ -1478,8 +1150,12 @@ export interface Jobs {
|
|||
* @param {string} [jobResource.details.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {array} [jobResource.details.errorDetails] Error details for failure.
|
||||
* This is optional.
|
||||
* @param {array} jobResource.details.destinationAccountDetails Destination
|
||||
* account details.
|
||||
*
|
||||
* @param {object} [jobResource.details.preferences] Preferences for the order.
|
||||
*
|
||||
* @param {array} [jobResource.details.preferences.preferredDataCenterRegion]
|
||||
*
|
||||
* @param {string} jobResource.details.jobDetailsType Polymorphic Discriminator
|
||||
*
|
||||
|
@ -1497,7 +1173,8 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} jobResource.sku The sku type.
|
||||
*
|
||||
* @param {string} jobResource.sku.name The sku name.
|
||||
* @param {string} jobResource.sku.name The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {string} [jobResource.sku.displayName] The display name of the sku.
|
||||
*
|
||||
|
@ -1528,48 +1205,6 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} jobResource Job details from request body.
|
||||
*
|
||||
* @param {string} [jobResource.deviceType] Type of the device to be used for
|
||||
* the job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
*
|
||||
* @param {boolean} [jobResource.isCancellable] Describes whether the job is
|
||||
* cancellable or not.
|
||||
*
|
||||
* @param {boolean} [jobResource.isShippingAddressEditable] Describes whether
|
||||
* the shipping address is editable or not.
|
||||
*
|
||||
* @param {string} [jobResource.status] Name of the stage which is in progress.
|
||||
* Possible values include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched',
|
||||
* 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
|
||||
* 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer',
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
*
|
||||
* @param {date} [jobResource.startTime] Time at which the job was started in
|
||||
* UTC ISO 8601 format.
|
||||
*
|
||||
* @param {object} [jobResource.error] Top level error for the job.
|
||||
*
|
||||
* @param {string} jobResource.error.code Error code that can be used to
|
||||
* programmatically identify the error.
|
||||
*
|
||||
* @param {string} [jobResource.error.message] Describes the error in detail
|
||||
* and provides debugging information.
|
||||
*
|
||||
* @param {object} [jobResource.deliveryPackage] Delivery package shipping
|
||||
* details.
|
||||
*
|
||||
* @param {object} [jobResource.returnPackage] Return package shipping details.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.carrierName] Name of the carrier.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
*
|
||||
* @param {string} [jobResource.returnPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
*
|
||||
* @param {array} jobResource.destinationAccountDetails Destination account
|
||||
* details.
|
||||
*
|
||||
* @param {object} [jobResource.details] Details of a job run. This field will
|
||||
* only be sent for expand details filter.
|
||||
*
|
||||
|
@ -1577,14 +1212,11 @@ export interface Jobs {
|
|||
* expected size of the data, which needs to be transfered in this job, in tera
|
||||
* bytes.
|
||||
*
|
||||
* @param {array} [jobResource.details.jobStages] List of stages that run in
|
||||
* the job.
|
||||
*
|
||||
* @param {object} jobResource.details.contactDetails Contact details for
|
||||
* notification and shipping.
|
||||
*
|
||||
* @param {string} [jobResource.details.contactDetails.contactName] Contact
|
||||
* name of the person.
|
||||
* @param {string} jobResource.details.contactDetails.contactName Contact name
|
||||
* of the person.
|
||||
*
|
||||
* @param {string} jobResource.details.contactDetails.phone Phone number of the
|
||||
* contact person.
|
||||
|
@ -1632,8 +1264,12 @@ export interface Jobs {
|
|||
* @param {string} [jobResource.details.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {array} [jobResource.details.errorDetails] Error details for failure.
|
||||
* This is optional.
|
||||
* @param {array} jobResource.details.destinationAccountDetails Destination
|
||||
* account details.
|
||||
*
|
||||
* @param {object} [jobResource.details.preferences] Preferences for the order.
|
||||
*
|
||||
* @param {array} [jobResource.details.preferences.preferredDataCenterRegion]
|
||||
*
|
||||
* @param {string} jobResource.details.jobDetailsType Polymorphic Discriminator
|
||||
*
|
||||
|
@ -1651,7 +1287,8 @@ export interface Jobs {
|
|||
*
|
||||
* @param {object} jobResource.sku The sku type.
|
||||
*
|
||||
* @param {string} jobResource.sku.name The sku name.
|
||||
* @param {string} jobResource.sku.name The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {string} [jobResource.sku.displayName] The display name of the sku.
|
||||
*
|
||||
|
@ -1689,6 +1326,68 @@ export interface Jobs {
|
|||
beginCreate(resourceGroupName: string, jobName: string, jobResource: models.JobResource, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.JobResource>): void;
|
||||
|
||||
|
||||
/**
|
||||
* Deletes a job.
|
||||
*
|
||||
* @param {string} resourceGroupName The Resource Group Name
|
||||
*
|
||||
* @param {string} jobName The name of the job Resource within the specified
|
||||
* resource group. job names must be between 3 and 24 characters in length and
|
||||
* use any alphanumeric and underscore only
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @returns {Promise} A promise is returned
|
||||
*
|
||||
* @resolve {HttpOperationResponse<null>} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*/
|
||||
beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<void>>;
|
||||
|
||||
/**
|
||||
* Deletes a job.
|
||||
*
|
||||
* @param {string} resourceGroupName The Resource Group Name
|
||||
*
|
||||
* @param {string} jobName The name of the job Resource within the specified
|
||||
* resource group. job names must be between 3 and 24 characters in length and
|
||||
* use any alphanumeric and underscore only
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
* @param {object} [options.customHeaders] Headers that will be added to the
|
||||
* request
|
||||
*
|
||||
* @param {ServiceCallback} [optionalCallback] - The optional callback.
|
||||
*
|
||||
* @returns {ServiceCallback|Promise} If a callback was passed as the last
|
||||
* parameter then it returns the callback else returns a Promise.
|
||||
*
|
||||
* {Promise} A promise is returned.
|
||||
*
|
||||
* @resolve {null} - The deserialized result object.
|
||||
*
|
||||
* @reject {Error|ServiceError} - The error object.
|
||||
*
|
||||
* {ServiceCallback} optionalCallback(err, result, request, response)
|
||||
*
|
||||
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
|
||||
*
|
||||
* {null} [result] - The deserialized result object if an error did not occur.
|
||||
*
|
||||
* {WebResource} [request] - The HTTP Request object if an error did not occur.
|
||||
*
|
||||
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
|
||||
*/
|
||||
beginDeleteMethod(resourceGroupName: string, jobName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise<void>;
|
||||
beginDeleteMethod(resourceGroupName: string, jobName: string, callback: ServiceCallback<void>): void;
|
||||
beginDeleteMethod(resourceGroupName: string, jobName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<void>): void;
|
||||
|
||||
|
||||
/**
|
||||
* Updates the properties of an existing job.
|
||||
*
|
||||
|
@ -1701,14 +1400,14 @@ export interface Jobs {
|
|||
* @param {object} jobResourceUpdateParameter Job update parameters from
|
||||
* request body.
|
||||
*
|
||||
* @param {object} jobResourceUpdateParameter.details Details of a job to be
|
||||
* @param {object} [jobResourceUpdateParameter.details] Details of a job to be
|
||||
* updated.
|
||||
*
|
||||
* @param {object} [jobResourceUpdateParameter.details.contactDetails] Contact
|
||||
* details for notification and shipping.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobResourceUpdateParameter.details.contactDetails.contactName] Contact name
|
||||
* jobResourceUpdateParameter.details.contactDetails.contactName Contact name
|
||||
* of the person.
|
||||
*
|
||||
* @param {string} jobResourceUpdateParameter.details.contactDetails.phone
|
||||
|
@ -1768,6 +1467,9 @@ export interface Jobs {
|
|||
* [jobResourceUpdateParameter.details.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {array} [jobResourceUpdateParameter.destinationAccountDetails]
|
||||
* Destination account details.
|
||||
*
|
||||
* @param {object} [jobResourceUpdateParameter.tags] The list of key value
|
||||
* pairs that describe the resource. These tags can be used in viewing and
|
||||
* grouping this resource (across resource groups).
|
||||
|
@ -1801,14 +1503,14 @@ export interface Jobs {
|
|||
* @param {object} jobResourceUpdateParameter Job update parameters from
|
||||
* request body.
|
||||
*
|
||||
* @param {object} jobResourceUpdateParameter.details Details of a job to be
|
||||
* @param {object} [jobResourceUpdateParameter.details] Details of a job to be
|
||||
* updated.
|
||||
*
|
||||
* @param {object} [jobResourceUpdateParameter.details.contactDetails] Contact
|
||||
* details for notification and shipping.
|
||||
*
|
||||
* @param {string}
|
||||
* [jobResourceUpdateParameter.details.contactDetails.contactName] Contact name
|
||||
* jobResourceUpdateParameter.details.contactDetails.contactName Contact name
|
||||
* of the person.
|
||||
*
|
||||
* @param {string} jobResourceUpdateParameter.details.contactDetails.phone
|
||||
|
@ -1868,6 +1570,9 @@ export interface Jobs {
|
|||
* [jobResourceUpdateParameter.details.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {array} [jobResourceUpdateParameter.destinationAccountDetails]
|
||||
* Destination account details.
|
||||
*
|
||||
* @param {object} [jobResourceUpdateParameter.tags] The list of key value
|
||||
* pairs that describe the resource. These tags can be used in viewing and
|
||||
* grouping this resource (across resource groups).
|
||||
|
@ -2116,7 +1821,7 @@ export interface Service {
|
|||
*
|
||||
* @param {object} validateAddress Shipping address of the customer.
|
||||
*
|
||||
* @param {object} [validateAddress.shippingAddress] Shipping address of the
|
||||
* @param {object} validateAddress.shippingAddress Shipping address of the
|
||||
* customer.
|
||||
*
|
||||
* @param {string} validateAddress.shippingAddress.streetAddress1 Street
|
||||
|
@ -2146,8 +1851,8 @@ export interface Service {
|
|||
* @param {string} [validateAddress.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {string} [validateAddress.deviceType] Device type to be used for the
|
||||
* job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @param {string} validateAddress.deviceType Device type to be used for the
|
||||
* job. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -2170,7 +1875,7 @@ export interface Service {
|
|||
*
|
||||
* @param {object} validateAddress Shipping address of the customer.
|
||||
*
|
||||
* @param {object} [validateAddress.shippingAddress] Shipping address of the
|
||||
* @param {object} validateAddress.shippingAddress Shipping address of the
|
||||
* customer.
|
||||
*
|
||||
* @param {string} validateAddress.shippingAddress.streetAddress1 Street
|
||||
|
@ -2200,8 +1905,8 @@ export interface Service {
|
|||
* @param {string} [validateAddress.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {string} [validateAddress.deviceType] Device type to be used for the
|
||||
* job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @param {string} validateAddress.deviceType Device type to be used for the
|
||||
* job. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -193,7 +193,7 @@ function _listAvailableSkus(location, availableSkuRequest, options, callback) {
|
|||
*
|
||||
* @param {object} validateAddress Shipping address of the customer.
|
||||
*
|
||||
* @param {object} [validateAddress.shippingAddress] Shipping address of the
|
||||
* @param {object} validateAddress.shippingAddress Shipping address of the
|
||||
* customer.
|
||||
*
|
||||
* @param {string} validateAddress.shippingAddress.streetAddress1 Street
|
||||
|
@ -223,8 +223,8 @@ function _listAvailableSkus(location, availableSkuRequest, options, callback) {
|
|||
* @param {string} [validateAddress.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {string} [validateAddress.deviceType] Device type to be used for the
|
||||
* job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @param {string} validateAddress.deviceType Device type to be used for the
|
||||
* job. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -631,7 +631,7 @@ class Service {
|
|||
*
|
||||
* @param {object} validateAddress Shipping address of the customer.
|
||||
*
|
||||
* @param {object} [validateAddress.shippingAddress] Shipping address of the
|
||||
* @param {object} validateAddress.shippingAddress Shipping address of the
|
||||
* customer.
|
||||
*
|
||||
* @param {string} validateAddress.shippingAddress.streetAddress1 Street
|
||||
|
@ -661,8 +661,8 @@ class Service {
|
|||
* @param {string} [validateAddress.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {string} [validateAddress.deviceType] Device type to be used for the
|
||||
* job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @param {string} validateAddress.deviceType Device type to be used for the
|
||||
* job. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
@ -697,7 +697,7 @@ class Service {
|
|||
*
|
||||
* @param {object} validateAddress Shipping address of the customer.
|
||||
*
|
||||
* @param {object} [validateAddress.shippingAddress] Shipping address of the
|
||||
* @param {object} validateAddress.shippingAddress Shipping address of the
|
||||
* customer.
|
||||
*
|
||||
* @param {string} validateAddress.shippingAddress.streetAddress1 Street
|
||||
|
@ -727,8 +727,8 @@ class Service {
|
|||
* @param {string} [validateAddress.shippingAddress.addressType] Type of
|
||||
* address. Possible values include: 'None', 'Residential', 'Commercial'
|
||||
*
|
||||
* @param {string} [validateAddress.deviceType] Device type to be used for the
|
||||
* job. Possible values include: 'Pod', 'Disk', 'Cabinet'
|
||||
* @param {string} validateAddress.deviceType Device type to be used for the
|
||||
* job. Possible values include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
*
|
||||
* @param {object} [options] Optional Parameters.
|
||||
*
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "azure-arm-databox",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "DataBoxManagementClient Library with typescript type definitions for node",
|
||||
"version": "1.0.0-preview",
|
||||
"version": "",
|
||||
"dependencies": {
|
||||
"ms-rest": "^2.3.3",
|
||||
"ms-rest-azure": "^2.5.5"
|
||||
|
@ -14,7 +14,7 @@
|
|||
"license": "MIT",
|
||||
"main": "./lib/dataBoxManagementClient.js",
|
||||
"types": "./lib/dataBoxManagementClient.d.ts",
|
||||
"homepage": "https://github.com/azure/azure-sdk-for-node/lib/services/databox",
|
||||
"homepage": "https://github.com/azure/azure-sdk-for-node",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/azure/azure-sdk-for-node.git"
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
uid: azure-arm-databox
|
||||
summary: *content
|
||||
|
||||
---
|
||||
# Microsoft Azure SDK for Node.js - DataBoxManagementClient
|
||||
This project provides a Node.js package for accessing Azure. Right now it supports:
|
||||
- **Node.js version 6.x.x or higher**
|
||||
|
||||
## Features
|
||||
|
||||
|
||||
## How to Install
|
||||
|
||||
```bash
|
||||
npm install azure-arm-databox
|
||||
```
|
||||
|
||||
## How to use
|
||||
|
||||
### Authentication, client creation and list operations as an example.
|
||||
|
||||
```javascript
|
||||
const msRestAzure = require("ms-rest-azure");
|
||||
const DataBoxManagementClient = require("azure-arm-databox");
|
||||
msRestAzure.interactiveLogin().then((creds) => {
|
||||
const subscriptionId = "<Subscription_Id>";
|
||||
const client = new DataBoxManagementClient(creds, subscriptionId);
|
||||
return client.operations.list().then((result) => {
|
||||
console.log("The result is:");
|
||||
console.log(result);
|
||||
});
|
||||
}).catch((err) => {
|
||||
console.log('An error occurred:');
|
||||
console.dir(err, {depth: null, colors: true});
|
||||
});
|
||||
|
||||
## Related projects
|
||||
|
||||
- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { ServiceClientCredentials } from 'ms-rest';
|
||||
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
|
||||
import * as models from "./models";
|
||||
import * as operations from "./operations";
|
||||
|
||||
export default class DataBoxManagementClient extends AzureServiceClient {
|
||||
/**
|
||||
* Initializes a new instance of the DataBoxManagementClient class.
|
||||
* @constructor
|
||||
*
|
||||
* @class
|
||||
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
|
||||
*
|
||||
* @param {string} subscriptionId - The Subscription Id
|
||||
*
|
||||
* @param {string} [baseUri] - The base URI of the service.
|
||||
*
|
||||
* @param {object} [options] - The parameter options
|
||||
*
|
||||
* @param {Array} [options.filters] - Filters to be added to the request pipeline
|
||||
*
|
||||
* @param {object} [options.requestOptions] - Options for the underlying request object
|
||||
* {@link https://github.com/request/request#requestoptions-callback Options doc}
|
||||
*
|
||||
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
|
||||
*
|
||||
* @param {string} [options.acceptLanguage] - The preferred language for the response.
|
||||
*
|
||||
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
|
||||
*
|
||||
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
|
||||
*
|
||||
*/
|
||||
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
|
||||
|
||||
credentials: ServiceClientCredentials;
|
||||
|
||||
apiVersion: string;
|
||||
|
||||
subscriptionId: string;
|
||||
|
||||
acceptLanguage: string;
|
||||
|
||||
longRunningOperationRetryTimeout: number;
|
||||
|
||||
generateClientRequestId: boolean;
|
||||
|
||||
// Operation groups
|
||||
operations: operations.Operations;
|
||||
jobs: operations.Jobs;
|
||||
service: operations.Service;
|
||||
}
|
||||
|
||||
export { DataBoxManagementClient, models as DataBoxManagementModels };
|
|
@ -0,0 +1,87 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* jshint latedef:false */
|
||||
/* jshint forin:false */
|
||||
/* jshint noempty:false */
|
||||
|
||||
'use strict';
|
||||
|
||||
const msRest = require('ms-rest');
|
||||
const msRestAzure = require('ms-rest-azure');
|
||||
const ServiceClient = msRestAzure.AzureServiceClient;
|
||||
|
||||
const models = require('./models');
|
||||
const operations = require('./operations');
|
||||
|
||||
|
||||
/** Class representing a DataBoxManagementClient. */
|
||||
class DataBoxManagementClient extends ServiceClient {
|
||||
/**
|
||||
* Create a DataBoxManagementClient.
|
||||
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
|
||||
* @param {string} subscriptionId - The Subscription Id
|
||||
* @param {string} [baseUri] - The base URI of the service.
|
||||
* @param {object} [options] - The parameter options
|
||||
* @param {Array} [options.filters] - Filters to be added to the request pipeline
|
||||
* @param {object} [options.requestOptions] - Options for the underlying request object
|
||||
* {@link https://github.com/request/request#requestoptions-callback Options doc}
|
||||
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
|
||||
* @param {string} [options.acceptLanguage] - The preferred language for the response.
|
||||
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
|
||||
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
|
||||
*/
|
||||
constructor(credentials, subscriptionId, baseUri, options) {
|
||||
if (credentials === null || credentials === undefined) {
|
||||
throw new Error('\'credentials\' cannot be null.');
|
||||
}
|
||||
if (subscriptionId === null || subscriptionId === undefined) {
|
||||
throw new Error('\'subscriptionId\' cannot be null.');
|
||||
}
|
||||
|
||||
if (!options) options = {};
|
||||
|
||||
super(credentials, options);
|
||||
|
||||
this.apiVersion = '2018-01-01';
|
||||
this.acceptLanguage = 'en-US';
|
||||
this.longRunningOperationRetryTimeout = 30;
|
||||
this.generateClientRequestId = true;
|
||||
this.baseUri = baseUri;
|
||||
if (!this.baseUri) {
|
||||
this.baseUri = 'https://management.azure.com';
|
||||
}
|
||||
this.credentials = credentials;
|
||||
this.subscriptionId = subscriptionId;
|
||||
|
||||
let packageInfo = this.getPackageJsonInfo(__dirname);
|
||||
this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
|
||||
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
||||
this.acceptLanguage = options.acceptLanguage;
|
||||
}
|
||||
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
||||
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
||||
}
|
||||
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
|
||||
this.generateClientRequestId = options.generateClientRequestId;
|
||||
}
|
||||
this.operations = new operations.Operations(this);
|
||||
this.jobs = new operations.Jobs(this);
|
||||
this.service = new operations.Service(this);
|
||||
this.models = models;
|
||||
msRest.addSerializationMixin(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = DataBoxManagementClient;
|
||||
module.exports['default'] = DataBoxManagementClient;
|
||||
module.exports.DataBoxManagementClient = DataBoxManagementClient;
|
||||
module.exports.DataBoxManagementModels = models;
|
|
@ -0,0 +1,81 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Credential details of the account.
|
||||
*
|
||||
*/
|
||||
class AccountCredentialDetails {
|
||||
/**
|
||||
* Create a AccountCredentialDetails.
|
||||
* @member {string} [accountName] Name of the account.
|
||||
* @member {string} [accountConnectionString] Connection string of the
|
||||
* account endpoint to use the account as a storage endpoint on the device.
|
||||
* @member {array} [shareCredentialDetails] Per share level unencrypted
|
||||
* access credentials.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AccountCredentialDetails
|
||||
*
|
||||
* @returns {object} metadata of AccountCredentialDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AccountCredentialDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AccountCredentialDetails',
|
||||
modelProperties: {
|
||||
accountName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountConnectionString: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountConnectionString',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
shareCredentialDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'shareCredentialDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ShareCredentialDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShareCredentialDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AccountCredentialDetails;
|
|
@ -0,0 +1,72 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Output of the address validation api.
|
||||
*
|
||||
*/
|
||||
class AddressValidationOutput {
|
||||
/**
|
||||
* Create a AddressValidationOutput.
|
||||
* @member {string} [validationStatus] The address validation status.
|
||||
* Possible values include: 'Valid', 'Invalid', 'Ambiguous'
|
||||
* @member {array} [alternateAddresses] List of alternate addresses.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AddressValidationOutput
|
||||
*
|
||||
* @returns {object} metadata of AddressValidationOutput
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AddressValidationOutput',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AddressValidationOutput',
|
||||
modelProperties: {
|
||||
validationStatus: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.validationStatus',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'Valid', 'Invalid', 'Ambiguous' ]
|
||||
}
|
||||
},
|
||||
alternateAddresses: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.alternateAddresses',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ShippingAddressElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AddressValidationOutput;
|
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The Network Adapter configuration of a DataBox.
|
||||
*
|
||||
*/
|
||||
class ApplianceNetworkConfiguration {
|
||||
/**
|
||||
* Create a ApplianceNetworkConfiguration.
|
||||
* @member {string} [name] Name of the network.
|
||||
* @member {string} [macAddress] Mac Address.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ApplianceNetworkConfiguration
|
||||
*
|
||||
* @returns {object} metadata of ApplianceNetworkConfiguration
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ApplianceNetworkConfiguration',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplianceNetworkConfiguration',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
macAddress: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'macAddress',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ApplianceNetworkConfiguration;
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Base class for all objects under resource.
|
||||
*
|
||||
*/
|
||||
class ArmBaseObject {
|
||||
/**
|
||||
* Create a ArmBaseObject.
|
||||
* @member {string} [name] Name of the object.
|
||||
* @member {string} [id] Id of the object.
|
||||
* @member {string} [type] Type of the object.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ArmBaseObject
|
||||
*
|
||||
* @returns {object} metadata of ArmBaseObject
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ArmBaseObject',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ArmBaseObject',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ArmBaseObject;
|
|
@ -0,0 +1,88 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The filters for showing the available skus.
|
||||
*
|
||||
*/
|
||||
class AvailableSkuRequest {
|
||||
/**
|
||||
* Create a AvailableSkuRequest.
|
||||
* @member {string} country ISO country code. Country for hardware shipment.
|
||||
* For codes check:
|
||||
* https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
|
||||
* @member {string} location Location for data transfer. For locations check:
|
||||
* https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
|
||||
* @member {array} [skuNames] Sku Names to filter for available skus
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AvailableSkuRequest
|
||||
*
|
||||
* @returns {object} metadata of AvailableSkuRequest
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AvailableSkuRequest',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AvailableSkuRequest',
|
||||
modelProperties: {
|
||||
transferType: {
|
||||
required: true,
|
||||
isConstant: true,
|
||||
serializedName: 'transferType',
|
||||
defaultValue: 'ImportToAzure',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
country: {
|
||||
required: true,
|
||||
serializedName: 'country',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
location: {
|
||||
required: true,
|
||||
serializedName: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
skuNames: {
|
||||
required: false,
|
||||
serializedName: 'skuNames',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'SkuNameElementType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AvailableSkuRequest;
|
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The available skus operation response.
|
||||
*/
|
||||
class AvailableSkusResult extends Array {
|
||||
/**
|
||||
* Create a AvailableSkusResult.
|
||||
* @member {string} [nextLink] Link for the next set of skus.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of AvailableSkusResult
|
||||
*
|
||||
* @returns {object} metadata of AvailableSkusResult
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'AvailableSkusResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AvailableSkusResult',
|
||||
modelProperties: {
|
||||
value: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: '',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'SkuInformationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'SkuInformation'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
nextLink: {
|
||||
required: false,
|
||||
serializedName: 'nextLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = AvailableSkusResult;
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Reason for cancellation.
|
||||
*
|
||||
*/
|
||||
class CancellationReason {
|
||||
/**
|
||||
* Create a CancellationReason.
|
||||
* @member {string} reason Reason for cancellation.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of CancellationReason
|
||||
*
|
||||
* @returns {object} metadata of CancellationReason
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'CancellationReason',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'CancellationReason',
|
||||
modelProperties: {
|
||||
reason: {
|
||||
required: true,
|
||||
serializedName: 'reason',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CancellationReason;
|
|
@ -0,0 +1,110 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Contact Details.
|
||||
*
|
||||
*/
|
||||
class ContactDetails {
|
||||
/**
|
||||
* Create a ContactDetails.
|
||||
* @member {string} contactName Contact name of the person.
|
||||
* @member {string} phone Phone number of the contact person.
|
||||
* @member {string} [phoneExtension] Phone extension number of the contact
|
||||
* person.
|
||||
* @member {string} [mobile] Mobile number of the contact person.
|
||||
* @member {array} emailList List of Email-ids to be notified about job
|
||||
* progress.
|
||||
* @member {array} [notificationPreference] Notification preference for a job
|
||||
* stage.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ContactDetails
|
||||
*
|
||||
* @returns {object} metadata of ContactDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ContactDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContactDetails',
|
||||
modelProperties: {
|
||||
contactName: {
|
||||
required: true,
|
||||
serializedName: 'contactName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
phone: {
|
||||
required: true,
|
||||
serializedName: 'phone',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
phoneExtension: {
|
||||
required: false,
|
||||
serializedName: 'phoneExtension',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
mobile: {
|
||||
required: false,
|
||||
serializedName: 'mobile',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
emailList: {
|
||||
required: true,
|
||||
serializedName: 'emailList',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
notificationPreference: {
|
||||
required: false,
|
||||
serializedName: 'notificationPreference',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'NotificationPreferenceElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'NotificationPreference'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ContactDetails;
|
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Details for log generated during copy.
|
||||
*
|
||||
*/
|
||||
class CopyLogDetails {
|
||||
/**
|
||||
* Create a CopyLogDetails.
|
||||
* @member {string} copyLogDetailsType Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of CopyLogDetails
|
||||
*
|
||||
* @returns {object} metadata of CopyLogDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails',
|
||||
modelProperties: {
|
||||
copyLogDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'copyLogDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CopyLogDetails;
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Copy progress.
|
||||
*
|
||||
*/
|
||||
class CopyProgress {
|
||||
/**
|
||||
* Create a CopyProgress.
|
||||
* @member {string} [storageAccountName] Name of the storage account where
|
||||
* the data needs to be uploaded.
|
||||
* @member {string} [accountId] Id of the account where the data needs to be
|
||||
* uploaded.
|
||||
* @member {number} [bytesSentToCloud] Amount of data uploaded by the job as
|
||||
* of now.
|
||||
* @member {number} [totalBytesToProcess] Total amount of data to be
|
||||
* processed by the job.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of CopyProgress
|
||||
*
|
||||
* @returns {object} metadata of CopyProgress
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'CopyProgress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'CopyProgress',
|
||||
modelProperties: {
|
||||
storageAccountName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'storageAccountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountId: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
bytesSentToCloud: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'bytesSentToCloud',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
totalBytesToProcess: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'totalBytesToProcess',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = CopyProgress;
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Copy log details for a storage account of a DataBox job
|
||||
*
|
||||
* @extends models['CopyLogDetails']
|
||||
*/
|
||||
class DataBoxAccountCopyLogDetails extends models['CopyLogDetails'] {
|
||||
/**
|
||||
* Create a DataBoxAccountCopyLogDetails.
|
||||
* @member {string} [accountName] Destination account name.
|
||||
* @member {string} [copyLogLink] Link for copy logs.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxAccountCopyLogDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxAccountCopyLogDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBox',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'DataBoxAccountCopyLogDetails',
|
||||
modelProperties: {
|
||||
copyLogDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'copyLogDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copyLogLink: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxAccountCopyLogDetails;
|
|
@ -0,0 +1,88 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Copy Log Details for a disk
|
||||
*
|
||||
* @extends models['CopyLogDetails']
|
||||
*/
|
||||
class DataBoxDiskCopyLogDetails extends models['CopyLogDetails'] {
|
||||
/**
|
||||
* Create a DataBoxDiskCopyLogDetails.
|
||||
* @member {string} [diskSerialNumber] Disk Serial Number.
|
||||
* @member {string} [errorLogLink] Link for copy error logs.
|
||||
* @member {string} [verboseLogLink] Link for copy verbose logs.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxDiskCopyLogDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxDiskCopyLogDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDisk',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'DataBoxDiskCopyLogDetails',
|
||||
modelProperties: {
|
||||
copyLogDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'copyLogDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
diskSerialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'diskSerialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
errorLogLink: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorLogLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
verboseLogLink: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'verboseLogLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxDiskCopyLogDetails;
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* DataBox Disk Copy Progress
|
||||
*
|
||||
*/
|
||||
class DataBoxDiskCopyProgress {
|
||||
/**
|
||||
* Create a DataBoxDiskCopyProgress.
|
||||
* @member {string} [serialNumber] The serial number of the disk
|
||||
* @member {number} [bytesCopied] Bytes copied during the copy of disk.
|
||||
* @member {number} [percentComplete] Indicates the percentage completed for
|
||||
* the copy of the disk.
|
||||
* @member {string} [status] The Status of the copy. Possible values include:
|
||||
* 'NotStarted', 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed',
|
||||
* 'NotReturned'
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxDiskCopyProgress
|
||||
*
|
||||
* @returns {object} metadata of DataBoxDiskCopyProgress
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDiskCopyProgress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxDiskCopyProgress',
|
||||
modelProperties: {
|
||||
serialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'serialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
bytesCopied: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'bytesCopied',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
percentComplete: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'percentComplete',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'status',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'NotStarted', 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed', 'NotReturned' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxDiskCopyProgress;
|
|
@ -0,0 +1,255 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* DataBox Disk Job Details.
|
||||
*
|
||||
* @extends models['JobDetails']
|
||||
*/
|
||||
class DataBoxDiskJobDetails extends models['JobDetails'] {
|
||||
/**
|
||||
* Create a DataBoxDiskJobDetails.
|
||||
* @member {object} [preferredDisks] 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.
|
||||
* @member {array} [copyProgress] Copy progress per disk.
|
||||
* @member {object} [disksAndSizeDetails] Contains the map of disk serial
|
||||
* number to the disk size being used for the job. Is returned only after the
|
||||
* disks are shipped to the customer.
|
||||
* @member {string} [passkey] User entered passkey for DataBox Disk job.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxDiskJobDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxDiskJobDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDisk',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobDetailsType',
|
||||
clientName: 'jobDetailsType'
|
||||
},
|
||||
uberParent: 'JobDetails',
|
||||
className: 'DataBoxDiskJobDetails',
|
||||
modelProperties: {
|
||||
expectedDataSizeInTeraBytes: {
|
||||
required: false,
|
||||
serializedName: 'expectedDataSizeInTeraBytes',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
jobStages: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStages',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobStagesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobStages'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
contactDetails: {
|
||||
required: true,
|
||||
serializedName: 'contactDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContactDetails'
|
||||
}
|
||||
},
|
||||
shippingAddress: {
|
||||
required: true,
|
||||
serializedName: 'shippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
preferences: {
|
||||
required: false,
|
||||
serializedName: 'preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences'
|
||||
}
|
||||
},
|
||||
copyLogDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reverseShipmentLabelSasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'reverseShipmentLabelSasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chainOfCustodySasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'chainOfCustodySasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'jobDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
preferredDisks: {
|
||||
required: false,
|
||||
serializedName: 'preferredDisks',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: 'NumberElementType',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
copyProgress: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyProgress',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDiskCopyProgressElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxDiskCopyProgress'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
disksAndSizeDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'disksAndSizeDetails',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: 'NumberElementType',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
passkey: {
|
||||
required: false,
|
||||
serializedName: 'passkey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxDiskJobDetails;
|
|
@ -0,0 +1,98 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* The secrets related to disk job.
|
||||
*
|
||||
* @extends models['JobSecrets']
|
||||
*/
|
||||
class DataBoxDiskJobSecrets extends models['JobSecrets'] {
|
||||
/**
|
||||
* Create a DataBoxDiskJobSecrets.
|
||||
* @member {array} [diskSecrets] Contains the list of secrets object for that
|
||||
* device.
|
||||
* @member {string} [passKey] PassKey for the disk Job.
|
||||
* @member {boolean} [isPasskeyUserDefined] Whether passkey was provided by
|
||||
* user.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxDiskJobSecrets
|
||||
*
|
||||
* @returns {object} metadata of DataBoxDiskJobSecrets
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxDisk',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobSecretsType',
|
||||
clientName: 'jobSecretsType'
|
||||
},
|
||||
uberParent: 'JobSecrets',
|
||||
className: 'DataBoxDiskJobSecrets',
|
||||
modelProperties: {
|
||||
jobSecretsType: {
|
||||
required: true,
|
||||
serializedName: 'jobSecretsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
diskSecrets: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'diskSecrets',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DiskSecretElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiskSecret'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
passKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'passKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
isPasskeyUserDefined: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'isPasskeyUserDefined',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxDiskJobSecrets;
|
|
@ -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');
|
||||
|
||||
/**
|
||||
* Copy log details for a storage account for Databox heavy
|
||||
*
|
||||
* @extends models['CopyLogDetails']
|
||||
*/
|
||||
class DataBoxHeavyAccountCopyLogDetails extends models['CopyLogDetails'] {
|
||||
/**
|
||||
* Create a DataBoxHeavyAccountCopyLogDetails.
|
||||
* @member {string} [accountName] Destination account name.
|
||||
* @member {array} [copyLogLink] Link for copy logs.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxHeavyAccountCopyLogDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxHeavyAccountCopyLogDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'DataBoxHeavyAccountCopyLogDetails',
|
||||
modelProperties: {
|
||||
copyLogDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'copyLogDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copyLogLink: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogLink',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxHeavyAccountCopyLogDetails;
|
|
@ -0,0 +1,211 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Databox Heavy Device Job Details
|
||||
*
|
||||
* @extends models['JobDetails']
|
||||
*/
|
||||
class DataBoxHeavyJobDetails extends models['JobDetails'] {
|
||||
/**
|
||||
* Create a DataBoxHeavyJobDetails.
|
||||
* @member {array} [copyProgress] Copy progress per account.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxHeavyJobDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxHeavyJobDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobDetailsType',
|
||||
clientName: 'jobDetailsType'
|
||||
},
|
||||
uberParent: 'JobDetails',
|
||||
className: 'DataBoxHeavyJobDetails',
|
||||
modelProperties: {
|
||||
expectedDataSizeInTeraBytes: {
|
||||
required: false,
|
||||
serializedName: 'expectedDataSizeInTeraBytes',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
jobStages: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStages',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobStagesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobStages'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
contactDetails: {
|
||||
required: true,
|
||||
serializedName: 'contactDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContactDetails'
|
||||
}
|
||||
},
|
||||
shippingAddress: {
|
||||
required: true,
|
||||
serializedName: 'shippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
preferences: {
|
||||
required: false,
|
||||
serializedName: 'preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences'
|
||||
}
|
||||
},
|
||||
copyLogDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reverseShipmentLabelSasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'reverseShipmentLabelSasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chainOfCustodySasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'chainOfCustodySasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'jobDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copyProgress: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyProgress',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyProgressElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'CopyProgress'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxHeavyJobDetails;
|
|
@ -0,0 +1,79 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* The secrets related to a databox heavy 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.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxHeavyJobSecrets
|
||||
*
|
||||
* @returns {object} metadata of DataBoxHeavyJobSecrets
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavy',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobSecretsType',
|
||||
clientName: 'jobSecretsType'
|
||||
},
|
||||
uberParent: 'JobSecrets',
|
||||
className: 'DataBoxHeavyJobSecrets',
|
||||
modelProperties: {
|
||||
jobSecretsType: {
|
||||
required: true,
|
||||
serializedName: 'jobSecretsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
cabinetPodSecrets: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'cabinetPodSecrets',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavySecretElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxHeavySecret'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxHeavyJobSecrets;
|
|
@ -0,0 +1,110 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The secrets related to a databox heavy.
|
||||
*
|
||||
*/
|
||||
class DataBoxHeavySecret {
|
||||
/**
|
||||
* Create a DataBoxHeavySecret.
|
||||
* @member {string} [deviceSerialNumber] Serial number of the assigned
|
||||
* device.
|
||||
* @member {string} [devicePassword] Password for out of the box experience
|
||||
* on device.
|
||||
* @member {array} [networkConfigurations] Network configuration of the
|
||||
* appliance.
|
||||
* @member {string} [encodedValidationCertPubKey] The base 64 encoded public
|
||||
* key to authenticate with the device
|
||||
* @member {array} [accountCredentialDetails] Per account level access
|
||||
* credentials.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxHeavySecret
|
||||
*
|
||||
* @returns {object} metadata of DataBoxHeavySecret
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxHeavySecret',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxHeavySecret',
|
||||
modelProperties: {
|
||||
deviceSerialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deviceSerialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
devicePassword: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'devicePassword',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
networkConfigurations: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'networkConfigurations',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ApplianceNetworkConfigurationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplianceNetworkConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
encodedValidationCertPubKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'encodedValidationCertPubKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountCredentialDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountCredentialDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'AccountCredentialDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AccountCredentialDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxHeavySecret;
|
|
@ -0,0 +1,211 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Databox Job Details
|
||||
*
|
||||
* @extends models['JobDetails']
|
||||
*/
|
||||
class DataBoxJobDetails extends models['JobDetails'] {
|
||||
/**
|
||||
* Create a DataBoxJobDetails.
|
||||
* @member {array} [copyProgress] Copy progress per storage account.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxJobDetails
|
||||
*
|
||||
* @returns {object} metadata of DataBoxJobDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBox',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobDetailsType',
|
||||
clientName: 'jobDetailsType'
|
||||
},
|
||||
uberParent: 'JobDetails',
|
||||
className: 'DataBoxJobDetails',
|
||||
modelProperties: {
|
||||
expectedDataSizeInTeraBytes: {
|
||||
required: false,
|
||||
serializedName: 'expectedDataSizeInTeraBytes',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
jobStages: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStages',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobStagesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobStages'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
contactDetails: {
|
||||
required: true,
|
||||
serializedName: 'contactDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContactDetails'
|
||||
}
|
||||
},
|
||||
shippingAddress: {
|
||||
required: true,
|
||||
serializedName: 'shippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
preferences: {
|
||||
required: false,
|
||||
serializedName: 'preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences'
|
||||
}
|
||||
},
|
||||
copyLogDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reverseShipmentLabelSasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'reverseShipmentLabelSasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chainOfCustodySasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'chainOfCustodySasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'jobDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
copyProgress: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyProgress',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyProgressElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'CopyProgress'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxJobDetails;
|
|
@ -0,0 +1,110 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The secrets related to a DataBox.
|
||||
*
|
||||
*/
|
||||
class DataBoxSecret {
|
||||
/**
|
||||
* Create a DataBoxSecret.
|
||||
* @member {string} [deviceSerialNumber] Serial number of the assigned
|
||||
* device.
|
||||
* @member {string} [devicePassword] Password for out of the box experience
|
||||
* on device.
|
||||
* @member {array} [networkConfigurations] Network configuration of the
|
||||
* appliance.
|
||||
* @member {string} [encodedValidationCertPubKey] The base 64 encoded public
|
||||
* key to authenticate with the device
|
||||
* @member {array} [accountCredentialDetails] Per account level access
|
||||
* credentials.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataBoxSecret
|
||||
*
|
||||
* @returns {object} metadata of DataBoxSecret
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBoxSecret',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxSecret',
|
||||
modelProperties: {
|
||||
deviceSerialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deviceSerialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
devicePassword: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'devicePassword',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
networkConfigurations: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'networkConfigurations',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'ApplianceNetworkConfigurationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ApplianceNetworkConfiguration'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
encodedValidationCertPubKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'encodedValidationCertPubKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
accountCredentialDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'accountCredentialDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'AccountCredentialDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'AccountCredentialDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataBoxSecret;
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* The secrets related to a databox job.
|
||||
*
|
||||
* @extends models['JobSecrets']
|
||||
*/
|
||||
class DataboxJobSecrets extends models['JobSecrets'] {
|
||||
/**
|
||||
* Create a DataboxJobSecrets.
|
||||
* @member {array} [podSecrets] Contains the list of secret objects for a
|
||||
* job.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DataboxJobSecrets
|
||||
*
|
||||
* @returns {object} metadata of DataboxJobSecrets
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DataBox',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobSecretsType',
|
||||
clientName: 'jobSecretsType'
|
||||
},
|
||||
uberParent: 'JobSecrets',
|
||||
className: 'DataboxJobSecrets',
|
||||
modelProperties: {
|
||||
jobSecretsType: {
|
||||
required: true,
|
||||
serializedName: 'jobSecretsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
podSecrets: {
|
||||
required: false,
|
||||
serializedName: 'podSecrets',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DataBoxSecretElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DataBoxSecret'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DataboxJobSecrets;
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Details for the destination account.
|
||||
*
|
||||
*/
|
||||
class DestinationAccountDetails {
|
||||
/**
|
||||
* Create a DestinationAccountDetails.
|
||||
* @member {string} accountId Destination storage account id.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DestinationAccountDetails
|
||||
*
|
||||
* @returns {object} metadata of DestinationAccountDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails',
|
||||
modelProperties: {
|
||||
accountId: {
|
||||
required: true,
|
||||
serializedName: 'accountId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DestinationAccountDetails;
|
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Map of destination location to service location
|
||||
*
|
||||
*/
|
||||
class DestinationToServiceLocationMap {
|
||||
/**
|
||||
* Create a DestinationToServiceLocationMap.
|
||||
* @member {string} [destinationLocation] Location of the destination.
|
||||
* @member {string} [serviceLocation] Location of the service.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DestinationToServiceLocationMap
|
||||
*
|
||||
* @returns {object} metadata of DestinationToServiceLocationMap
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DestinationToServiceLocationMap',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationToServiceLocationMap',
|
||||
modelProperties: {
|
||||
destinationLocation: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'destinationLocation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
serviceLocation: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'serviceLocation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DestinationToServiceLocationMap;
|
|
@ -0,0 +1,63 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Contains all the secrets of a Disk.
|
||||
*
|
||||
*/
|
||||
class DiskSecret {
|
||||
/**
|
||||
* Create a DiskSecret.
|
||||
* @member {string} [diskSerialNumber] Serial number of the assigned disk.
|
||||
* @member {string} [bitLockerKey] Bit Locker key of the disk which can be
|
||||
* used to unlock the disk to copy data.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of DiskSecret
|
||||
*
|
||||
* @returns {object} metadata of DiskSecret
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'DiskSecret',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DiskSecret',
|
||||
modelProperties: {
|
||||
diskSerialNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'diskSerialNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
bitLockerKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'bitLockerKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = DiskSecret;
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Top level error for the job.
|
||||
*
|
||||
*/
|
||||
class ErrorModel {
|
||||
/**
|
||||
* Create a ErrorModel.
|
||||
* @member {string} [code] Error code that can be used to programmatically
|
||||
* identify the error.
|
||||
* @member {string} [message] Describes the error in detail and provides
|
||||
* debugging information.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ErrorModel
|
||||
*
|
||||
* @returns {object} metadata of ErrorModel
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Error',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ErrorModel',
|
||||
modelProperties: {
|
||||
code: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'code',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
message: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'message',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ErrorModel;
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -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.
|
||||
*/
|
||||
|
||||
/* jshint latedef:false */
|
||||
/* jshint forin:false */
|
||||
/* jshint noempty:false */
|
||||
|
||||
'use strict';
|
||||
|
||||
var msRestAzure = require('ms-rest-azure');
|
||||
|
||||
exports.BaseResource = msRestAzure.BaseResource;
|
||||
exports.CloudError = msRestAzure.CloudError;
|
||||
exports.ShareCredentialDetails = require('./shareCredentialDetails');
|
||||
exports.AccountCredentialDetails = require('./accountCredentialDetails');
|
||||
exports.ShippingAddress = require('./shippingAddress');
|
||||
exports.AddressValidationOutput = require('./addressValidationOutput');
|
||||
exports.ApplianceNetworkConfiguration = require('./applianceNetworkConfiguration');
|
||||
exports.ArmBaseObject = require('./armBaseObject');
|
||||
exports.AvailableSkuRequest = require('./availableSkuRequest');
|
||||
exports.Sku = require('./sku');
|
||||
exports.DestinationToServiceLocationMap = require('./destinationToServiceLocationMap');
|
||||
exports.SkuCapacity = require('./skuCapacity');
|
||||
exports.SkuCost = require('./skuCost');
|
||||
exports.SkuInformation = require('./skuInformation');
|
||||
exports.CancellationReason = require('./cancellationReason');
|
||||
exports.NotificationPreference = require('./notificationPreference');
|
||||
exports.ContactDetails = require('./contactDetails');
|
||||
exports.CopyLogDetails = require('./copyLogDetails');
|
||||
exports.CopyProgress = require('./copyProgress');
|
||||
exports.DataBoxAccountCopyLogDetails = require('./dataBoxAccountCopyLogDetails');
|
||||
exports.DataBoxDiskCopyLogDetails = require('./dataBoxDiskCopyLogDetails');
|
||||
exports.DataBoxDiskCopyProgress = require('./dataBoxDiskCopyProgress');
|
||||
exports.JobDetails = require('./jobDetails');
|
||||
exports.DataBoxDiskJobDetails = require('./dataBoxDiskJobDetails');
|
||||
exports.DiskSecret = require('./diskSecret');
|
||||
exports.JobSecrets = require('./jobSecrets');
|
||||
exports.DataBoxDiskJobSecrets = require('./dataBoxDiskJobSecrets');
|
||||
exports.DataBoxHeavyAccountCopyLogDetails = require('./dataBoxHeavyAccountCopyLogDetails');
|
||||
exports.DataBoxHeavyJobDetails = require('./dataBoxHeavyJobDetails');
|
||||
exports.DataBoxHeavySecret = require('./dataBoxHeavySecret');
|
||||
exports.DataBoxHeavyJobSecrets = require('./dataBoxHeavyJobSecrets');
|
||||
exports.DataBoxJobDetails = require('./dataBoxJobDetails');
|
||||
exports.DataBoxSecret = require('./dataBoxSecret');
|
||||
exports.DataboxJobSecrets = require('./databoxJobSecrets');
|
||||
exports.DestinationAccountDetails = require('./destinationAccountDetails');
|
||||
exports.ErrorModel = require('./errorModel');
|
||||
exports.JobErrorDetails = require('./jobErrorDetails');
|
||||
exports.JobStages = require('./jobStages');
|
||||
exports.PackageShippingDetails = require('./packageShippingDetails');
|
||||
exports.Preferences = require('./preferences');
|
||||
exports.Resource = require('./resource');
|
||||
exports.JobResource = require('./jobResource');
|
||||
exports.UpdateJobDetails = require('./updateJobDetails');
|
||||
exports.JobResourceUpdateParameter = require('./jobResourceUpdateParameter');
|
||||
exports.OperationDisplay = require('./operationDisplay');
|
||||
exports.Operation = require('./operation');
|
||||
exports.ShipmentPickUpRequest = require('./shipmentPickUpRequest');
|
||||
exports.ShipmentPickUpResponse = require('./shipmentPickUpResponse');
|
||||
exports.UnencryptedCredentials = require('./unencryptedCredentials');
|
||||
exports.ValidateAddress = require('./validateAddress');
|
||||
exports.OperationList = require('./operationList');
|
||||
exports.JobResourceList = require('./jobResourceList');
|
||||
exports.UnencryptedCredentialsList = require('./unencryptedCredentialsList');
|
||||
exports.AvailableSkusResult = require('./availableSkusResult');
|
||||
exports.discriminators = {
|
||||
'CopyLogDetails' : exports.CopyLogDetails,
|
||||
'CopyLogDetails.DataBox' : exports.DataBoxAccountCopyLogDetails,
|
||||
'CopyLogDetails.DataBoxDisk' : exports.DataBoxDiskCopyLogDetails,
|
||||
'JobDetails.DataBoxDisk' : exports.DataBoxDiskJobDetails,
|
||||
'JobSecrets.DataBoxDisk' : exports.DataBoxDiskJobSecrets,
|
||||
'CopyLogDetails.DataBoxHeavy' : exports.DataBoxHeavyAccountCopyLogDetails,
|
||||
'JobDetails.DataBoxHeavy' : exports.DataBoxHeavyJobDetails,
|
||||
'JobSecrets.DataBoxHeavy' : exports.DataBoxHeavyJobSecrets,
|
||||
'JobDetails.DataBox' : exports.DataBoxJobDetails,
|
||||
'JobSecrets.DataBox' : exports.DataboxJobSecrets,
|
||||
'JobDetails' : exports.JobDetails,
|
||||
'JobSecrets' : exports.JobSecrets
|
||||
};
|
|
@ -0,0 +1,240 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Job details.
|
||||
*
|
||||
*/
|
||||
class JobDetails {
|
||||
/**
|
||||
* Create a JobDetails.
|
||||
* @member {number} [expectedDataSizeInTeraBytes] The expected size of the
|
||||
* data, which needs to be transfered in this job, in tera bytes.
|
||||
* @member {array} [jobStages] List of stages that run in the job.
|
||||
* @member {object} contactDetails Contact details for notification and
|
||||
* shipping.
|
||||
* @member {string} [contactDetails.contactName] Contact name of the person.
|
||||
* @member {string} [contactDetails.phone] Phone number of the contact
|
||||
* person.
|
||||
* @member {string} [contactDetails.phoneExtension] Phone extension number of
|
||||
* the contact person.
|
||||
* @member {string} [contactDetails.mobile] Mobile number of the contact
|
||||
* person.
|
||||
* @member {array} [contactDetails.emailList] List of Email-ids to be
|
||||
* notified about job progress.
|
||||
* @member {array} [contactDetails.notificationPreference] Notification
|
||||
* preference for a job stage.
|
||||
* @member {object} shippingAddress Shipping address of the customer.
|
||||
* @member {string} [shippingAddress.streetAddress1] Street Address line 1.
|
||||
* @member {string} [shippingAddress.streetAddress2] Street Address line 2.
|
||||
* @member {string} [shippingAddress.streetAddress3] Street Address line 3.
|
||||
* @member {string} [shippingAddress.city] Name of the City.
|
||||
* @member {string} [shippingAddress.stateOrProvince] Name of the State or
|
||||
* Province.
|
||||
* @member {string} [shippingAddress.country] Name of the Country.
|
||||
* @member {string} [shippingAddress.postalCode] Postal code.
|
||||
* @member {string} [shippingAddress.zipExtendedCode] Extended Zip Code.
|
||||
* @member {string} [shippingAddress.companyName] Name of the company.
|
||||
* @member {string} [shippingAddress.addressType] Type of address. Possible
|
||||
* values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {object} [deliveryPackage] Delivery package shipping details.
|
||||
* @member {string} [deliveryPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [deliveryPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [deliveryPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {object} [returnPackage] Return package shipping details.
|
||||
* @member {string} [returnPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [returnPackage.trackingId] Tracking Id of shipment.
|
||||
* @member {string} [returnPackage.trackingUrl] Url where shipment can be
|
||||
* tracked.
|
||||
* @member {array} destinationAccountDetails Destination account details.
|
||||
* @member {array} [errorDetails] Error details for failure. This is
|
||||
* optional.
|
||||
* @member {object} [preferences] Preferences for the order.
|
||||
* @member {array} [preferences.preferredDataCenterRegion]
|
||||
* @member {array} [copyLogDetails] List of copy log details.
|
||||
* @member {string} [reverseShipmentLabelSasKey] Shared access key to
|
||||
* download the return shipment label
|
||||
* @member {string} [chainOfCustodySasKey] Shared access key to download the
|
||||
* chain of custody logs
|
||||
* @member {string} jobDetailsType Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of JobDetails
|
||||
*
|
||||
* @returns {object} metadata of JobDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'JobDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobDetailsType',
|
||||
clientName: 'jobDetailsType'
|
||||
},
|
||||
uberParent: 'JobDetails',
|
||||
className: 'JobDetails',
|
||||
modelProperties: {
|
||||
expectedDataSizeInTeraBytes: {
|
||||
required: false,
|
||||
serializedName: 'expectedDataSizeInTeraBytes',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
jobStages: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStages',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobStagesElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobStages'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
contactDetails: {
|
||||
required: true,
|
||||
serializedName: 'contactDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ContactDetails'
|
||||
}
|
||||
},
|
||||
shippingAddress: {
|
||||
required: true,
|
||||
serializedName: 'shippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress'
|
||||
}
|
||||
},
|
||||
deliveryPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'deliveryPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
returnPackage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'returnPackage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: true,
|
||||
serializedName: 'destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
preferences: {
|
||||
required: false,
|
||||
serializedName: 'preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences'
|
||||
}
|
||||
},
|
||||
copyLogDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'copyLogDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'CopyLogDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'copyLogDetailsType',
|
||||
clientName: 'copyLogDetailsType'
|
||||
},
|
||||
uberParent: 'CopyLogDetails',
|
||||
className: 'CopyLogDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reverseShipmentLabelSasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'reverseShipmentLabelSasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
chainOfCustodySasKey: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'chainOfCustodySasKey',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
jobDetailsType: {
|
||||
required: true,
|
||||
serializedName: 'jobDetailsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = JobDetails;
|
|
@ -0,0 +1,81 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Job Error Details for providing the information and recommended action.
|
||||
*
|
||||
*/
|
||||
class JobErrorDetails {
|
||||
/**
|
||||
* Create a JobErrorDetails.
|
||||
* @member {string} [errorMessage] Message for the error.
|
||||
* @member {number} [errorCode] Code for the error.
|
||||
* @member {string} [recommendedAction] Recommended action for the error.
|
||||
* @member {string} [exceptionMessage] Contains the non localized exception
|
||||
* message
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of JobErrorDetails
|
||||
*
|
||||
* @returns {object} metadata of JobErrorDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails',
|
||||
modelProperties: {
|
||||
errorMessage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorMessage',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
errorCode: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorCode',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
recommendedAction: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'recommendedAction',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
exceptionMessage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'exceptionMessage',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = JobErrorDetails;
|
|
@ -0,0 +1,258 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Job Resource.
|
||||
*
|
||||
* @extends models['Resource']
|
||||
*/
|
||||
class JobResource extends models['Resource'] {
|
||||
/**
|
||||
* Create a JobResource.
|
||||
* @member {boolean} [isCancellable] Describes whether the job is cancellable
|
||||
* or not.
|
||||
* @member {boolean} [isDeletable] Describes whether the job is deletable or
|
||||
* not.
|
||||
* @member {boolean} [isShippingAddressEditable] Describes whether the
|
||||
* shipping address is editable or not.
|
||||
* @member {string} [status] Name of the stage which is in progress. Possible
|
||||
* values include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched',
|
||||
* 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
|
||||
* 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer',
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
* @member {date} [startTime] Time at which the job was started in UTC ISO
|
||||
* 8601 format.
|
||||
* @member {object} [error] Top level error for the job.
|
||||
* @member {string} [error.code] Error code that can be used to
|
||||
* programmatically identify the error.
|
||||
* @member {string} [error.message] Describes the error in detail and
|
||||
* provides debugging information.
|
||||
* @member {object} [details] Details of a job run. This field will only be
|
||||
* sent for expand details filter.
|
||||
* @member {number} [details.expectedDataSizeInTeraBytes] The expected size
|
||||
* of the data, which needs to be transfered in this job, in tera bytes.
|
||||
* @member {array} [details.jobStages] List of stages that run in the job.
|
||||
* @member {object} [details.contactDetails] Contact details for notification
|
||||
* and shipping.
|
||||
* @member {string} [details.contactDetails.contactName] Contact name of the
|
||||
* person.
|
||||
* @member {string} [details.contactDetails.phone] Phone number of the
|
||||
* contact person.
|
||||
* @member {string} [details.contactDetails.phoneExtension] Phone extension
|
||||
* number of the contact person.
|
||||
* @member {string} [details.contactDetails.mobile] Mobile number of the
|
||||
* contact person.
|
||||
* @member {array} [details.contactDetails.emailList] List of Email-ids to be
|
||||
* notified about job progress.
|
||||
* @member {array} [details.contactDetails.notificationPreference]
|
||||
* Notification preference for a job stage.
|
||||
* @member {object} [details.shippingAddress] Shipping address of the
|
||||
* customer.
|
||||
* @member {string} [details.shippingAddress.streetAddress1] Street Address
|
||||
* line 1.
|
||||
* @member {string} [details.shippingAddress.streetAddress2] Street Address
|
||||
* line 2.
|
||||
* @member {string} [details.shippingAddress.streetAddress3] Street Address
|
||||
* line 3.
|
||||
* @member {string} [details.shippingAddress.city] Name of the City.
|
||||
* @member {string} [details.shippingAddress.stateOrProvince] Name of the
|
||||
* State or Province.
|
||||
* @member {string} [details.shippingAddress.country] Name of the Country.
|
||||
* @member {string} [details.shippingAddress.postalCode] Postal code.
|
||||
* @member {string} [details.shippingAddress.zipExtendedCode] Extended Zip
|
||||
* Code.
|
||||
* @member {string} [details.shippingAddress.companyName] Name of the
|
||||
* company.
|
||||
* @member {string} [details.shippingAddress.addressType] Type of address.
|
||||
* Possible values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {object} [details.deliveryPackage] Delivery package shipping
|
||||
* details.
|
||||
* @member {string} [details.deliveryPackage.carrierName] Name of the
|
||||
* carrier.
|
||||
* @member {string} [details.deliveryPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
* @member {string} [details.deliveryPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
* @member {object} [details.returnPackage] Return package shipping details.
|
||||
* @member {string} [details.returnPackage.carrierName] Name of the carrier.
|
||||
* @member {string} [details.returnPackage.trackingId] Tracking Id of
|
||||
* shipment.
|
||||
* @member {string} [details.returnPackage.trackingUrl] Url where shipment
|
||||
* can be tracked.
|
||||
* @member {array} [details.destinationAccountDetails] Destination account
|
||||
* details.
|
||||
* @member {array} [details.errorDetails] Error details for failure. This is
|
||||
* optional.
|
||||
* @member {object} [details.preferences] Preferences for the order.
|
||||
* @member {array} [details.preferences.preferredDataCenterRegion]
|
||||
* @member {array} [details.copyLogDetails] List of copy log details.
|
||||
* @member {string} [details.reverseShipmentLabelSasKey] Shared access key to
|
||||
* download the return shipment label
|
||||
* @member {string} [details.chainOfCustodySasKey] Shared access key to
|
||||
* download the chain of custody logs
|
||||
* @member {string} [details.jobDetailsType] Polymorphic Discriminator
|
||||
* @member {string} [cancellationReason] Reason for cancellation.
|
||||
* @member {string} [name] Name of the object.
|
||||
* @member {string} [id] Id of the object.
|
||||
* @member {string} [type] Type of the object.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of JobResource
|
||||
*
|
||||
* @returns {object} metadata of JobResource
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'JobResource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobResource',
|
||||
modelProperties: {
|
||||
location: {
|
||||
required: true,
|
||||
serializedName: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
required: false,
|
||||
serializedName: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
sku: {
|
||||
required: true,
|
||||
serializedName: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Sku'
|
||||
}
|
||||
},
|
||||
isCancellable: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.isCancellable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
isDeletable: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.isDeletable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
isShippingAddressEditable: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.isShippingAddressEditable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
status: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.status',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', 'Aborted' ]
|
||||
}
|
||||
},
|
||||
startTime: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.startTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
error: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.error',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ErrorModel'
|
||||
}
|
||||
},
|
||||
details: {
|
||||
required: false,
|
||||
serializedName: 'properties.details',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobDetailsType',
|
||||
clientName: 'jobDetailsType'
|
||||
},
|
||||
uberParent: 'JobDetails',
|
||||
className: 'JobDetails'
|
||||
}
|
||||
},
|
||||
cancellationReason: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.cancellationReason',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
id: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = JobResource;
|
|
@ -0,0 +1,67 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Job Resource Collection
|
||||
*/
|
||||
class JobResourceList extends Array {
|
||||
/**
|
||||
* Create a JobResourceList.
|
||||
* @member {string} [nextLink] Link for the next set of job resources.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of JobResourceList
|
||||
*
|
||||
* @returns {object} metadata of JobResourceList
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'JobResourceList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobResourceList',
|
||||
modelProperties: {
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: '',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobResourceElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobResource'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
nextLink: {
|
||||
required: false,
|
||||
serializedName: 'nextLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = JobResourceList;
|
|
@ -0,0 +1,119 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The JobResourceUpdateParameter.
|
||||
*
|
||||
*/
|
||||
class JobResourceUpdateParameter {
|
||||
/**
|
||||
* Create a JobResourceUpdateParameter.
|
||||
* @member {object} [details] Details of a job to be updated.
|
||||
* @member {object} [details.contactDetails] Contact details for notification
|
||||
* and shipping.
|
||||
* @member {string} [details.contactDetails.contactName] Contact name of the
|
||||
* person.
|
||||
* @member {string} [details.contactDetails.phone] Phone number of the
|
||||
* contact person.
|
||||
* @member {string} [details.contactDetails.phoneExtension] Phone extension
|
||||
* number of the contact person.
|
||||
* @member {string} [details.contactDetails.mobile] Mobile number of the
|
||||
* contact person.
|
||||
* @member {array} [details.contactDetails.emailList] List of Email-ids to be
|
||||
* notified about job progress.
|
||||
* @member {array} [details.contactDetails.notificationPreference]
|
||||
* Notification preference for a job stage.
|
||||
* @member {object} [details.shippingAddress] Shipping address of the
|
||||
* customer.
|
||||
* @member {string} [details.shippingAddress.streetAddress1] Street Address
|
||||
* line 1.
|
||||
* @member {string} [details.shippingAddress.streetAddress2] Street Address
|
||||
* line 2.
|
||||
* @member {string} [details.shippingAddress.streetAddress3] Street Address
|
||||
* line 3.
|
||||
* @member {string} [details.shippingAddress.city] Name of the City.
|
||||
* @member {string} [details.shippingAddress.stateOrProvince] Name of the
|
||||
* State or Province.
|
||||
* @member {string} [details.shippingAddress.country] Name of the Country.
|
||||
* @member {string} [details.shippingAddress.postalCode] Postal code.
|
||||
* @member {string} [details.shippingAddress.zipExtendedCode] Extended Zip
|
||||
* Code.
|
||||
* @member {string} [details.shippingAddress.companyName] Name of the
|
||||
* company.
|
||||
* @member {string} [details.shippingAddress.addressType] Type of address.
|
||||
* Possible values include: 'None', 'Residential', 'Commercial'
|
||||
* @member {array} [destinationAccountDetails] Destination account details.
|
||||
* @member {object} [tags] The list of key value pairs that describe the
|
||||
* resource. These tags can be used in viewing and grouping this resource
|
||||
* (across resource groups).
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of JobResourceUpdateParameter
|
||||
*
|
||||
* @returns {object} metadata of JobResourceUpdateParameter
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'JobResourceUpdateParameter',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobResourceUpdateParameter',
|
||||
modelProperties: {
|
||||
details: {
|
||||
required: false,
|
||||
serializedName: 'properties.details',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'UpdateJobDetails'
|
||||
}
|
||||
},
|
||||
destinationAccountDetails: {
|
||||
required: false,
|
||||
serializedName: 'properties.destinationAccountDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationAccountDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationAccountDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
required: false,
|
||||
serializedName: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = JobResourceUpdateParameter;
|
|
@ -0,0 +1,58 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The base class for the secrets
|
||||
*
|
||||
*/
|
||||
class JobSecrets {
|
||||
/**
|
||||
* Create a JobSecrets.
|
||||
* @member {string} jobSecretsType Polymorphic Discriminator
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of JobSecrets
|
||||
*
|
||||
* @returns {object} metadata of JobSecrets
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'JobSecrets',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
polymorphicDiscriminator: {
|
||||
serializedName: 'jobSecretsType',
|
||||
clientName: 'jobSecretsType'
|
||||
},
|
||||
uberParent: 'JobSecrets',
|
||||
className: 'JobSecrets',
|
||||
modelProperties: {
|
||||
jobSecretsType: {
|
||||
required: true,
|
||||
serializedName: 'jobSecretsType',
|
||||
isPolymorphicDiscriminator: true,
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = JobSecrets;
|
|
@ -0,0 +1,114 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Job stages.
|
||||
*
|
||||
*/
|
||||
class JobStages {
|
||||
/**
|
||||
* Create a JobStages.
|
||||
* @member {string} [stageName] Name of the job stage. Possible values
|
||||
* include: 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered',
|
||||
* 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors',
|
||||
* 'Cancelled', 'Failed_IssueReportedAtCustomer',
|
||||
* 'Failed_IssueDetectedAtAzureDC', 'Aborted'
|
||||
* @member {string} [displayName] Display name of the job stage.
|
||||
* @member {string} [stageStatus] Status of the job stage. Possible values
|
||||
* include: 'None', 'InProgress', 'Succeeded', 'Failed', 'Cancelled',
|
||||
* 'Cancelling', 'SucceededWithErrors'
|
||||
* @member {date} [stageTime] Time for the job stage in UTC ISO 8601 format.
|
||||
* @member {object} [jobStageDetails] Job Stage Details
|
||||
* @member {array} [errorDetails] Error details for the stage.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of JobStages
|
||||
*
|
||||
* @returns {object} metadata of JobStages
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'JobStages',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobStages',
|
||||
modelProperties: {
|
||||
stageName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'stageName',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'DeviceOrdered', 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed', 'CompletedWithErrors', 'Cancelled', 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC', 'Aborted' ]
|
||||
}
|
||||
},
|
||||
displayName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'displayName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
stageStatus: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'stageStatus',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'None', 'InProgress', 'Succeeded', 'Failed', 'Cancelled', 'Cancelling', 'SucceededWithErrors' ]
|
||||
}
|
||||
},
|
||||
stageTime: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'stageTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
jobStageDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'jobStageDetails',
|
||||
type: {
|
||||
name: 'Object'
|
||||
}
|
||||
},
|
||||
errorDetails: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'errorDetails',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'JobErrorDetailsElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'JobErrorDetails'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = JobStages;
|
|
@ -0,0 +1,63 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Notification preference for a job stage.
|
||||
*
|
||||
*/
|
||||
class NotificationPreference {
|
||||
/**
|
||||
* Create a NotificationPreference.
|
||||
* @member {string} stageName Name of the stage. Possible values include:
|
||||
* 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC',
|
||||
* 'DataCopy'
|
||||
* @member {boolean} sendNotification Notification is required or not.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of NotificationPreference
|
||||
*
|
||||
* @returns {object} metadata of NotificationPreference
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'NotificationPreference',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'NotificationPreference',
|
||||
modelProperties: {
|
||||
stageName: {
|
||||
required: true,
|
||||
serializedName: 'stageName',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'DevicePrepared', 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy' ]
|
||||
}
|
||||
},
|
||||
sendNotification: {
|
||||
required: true,
|
||||
serializedName: 'sendNotification',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = NotificationPreference;
|
|
@ -0,0 +1,89 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Operation entity.
|
||||
*
|
||||
*/
|
||||
class Operation {
|
||||
/**
|
||||
* Create a Operation.
|
||||
* @member {string} [name] Name of the operation. Format:
|
||||
* {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}
|
||||
* @member {object} [display] Operation display values.
|
||||
* @member {string} [display.provider] Provider name.
|
||||
* @member {string} [display.resource] Resource name.
|
||||
* @member {string} [display.operation] Localized name of the operation for
|
||||
* display purpose.
|
||||
* @member {string} [display.description] Localized description of the
|
||||
* operation for display purpose.
|
||||
* @member {object} [properties] Operation properties.
|
||||
* @member {string} [origin] Origin of the operation. Can be :
|
||||
* user|system|user,system
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of Operation
|
||||
*
|
||||
* @returns {object} metadata of Operation
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Operation',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Operation',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'OperationDisplay'
|
||||
}
|
||||
},
|
||||
properties: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties',
|
||||
type: {
|
||||
name: 'Object'
|
||||
}
|
||||
},
|
||||
origin: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'origin',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Operation;
|
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Operation display
|
||||
*
|
||||
*/
|
||||
class OperationDisplay {
|
||||
/**
|
||||
* Create a OperationDisplay.
|
||||
* @member {string} [provider] Provider name.
|
||||
* @member {string} [resource] Resource name.
|
||||
* @member {string} [operation] Localized name of the operation for display
|
||||
* purpose.
|
||||
* @member {string} [description] Localized description of the operation for
|
||||
* display purpose.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of OperationDisplay
|
||||
*
|
||||
* @returns {object} metadata of OperationDisplay
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'OperationDisplay',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'OperationDisplay',
|
||||
modelProperties: {
|
||||
provider: {
|
||||
required: false,
|
||||
serializedName: 'provider',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource: {
|
||||
required: false,
|
||||
serializedName: 'resource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operation: {
|
||||
required: false,
|
||||
serializedName: 'operation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
description: {
|
||||
required: false,
|
||||
serializedName: 'description',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = OperationDisplay;
|
|
@ -0,0 +1,68 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Operation Collection.
|
||||
*/
|
||||
class OperationList extends Array {
|
||||
/**
|
||||
* Create a OperationList.
|
||||
* @member {string} [nextLink] Link for the next set of operations.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of OperationList
|
||||
*
|
||||
* @returns {object} metadata of OperationList
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'OperationList',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'OperationList',
|
||||
modelProperties: {
|
||||
value: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: '',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'OperationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Operation'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
nextLink: {
|
||||
required: false,
|
||||
serializedName: 'nextLink',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = OperationList;
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Shipping details.
|
||||
*
|
||||
*/
|
||||
class PackageShippingDetails {
|
||||
/**
|
||||
* Create a PackageShippingDetails.
|
||||
* @member {string} [carrierName] Name of the carrier.
|
||||
* @member {string} [trackingId] Tracking Id of shipment.
|
||||
* @member {string} [trackingUrl] Url where shipment can be tracked.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of PackageShippingDetails
|
||||
*
|
||||
* @returns {object} metadata of PackageShippingDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'PackageShippingDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'PackageShippingDetails',
|
||||
modelProperties: {
|
||||
carrierName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'carrierName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
trackingId: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'trackingId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
trackingUrl: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'trackingUrl',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = PackageShippingDetails;
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Preferences related to the order
|
||||
*
|
||||
*/
|
||||
class Preferences {
|
||||
/**
|
||||
* Create a Preferences.
|
||||
* @member {array} [preferredDataCenterRegion]
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of Preferences
|
||||
*
|
||||
* @returns {object} metadata of Preferences
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Preferences',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Preferences',
|
||||
modelProperties: {
|
||||
preferredDataCenterRegion: {
|
||||
required: false,
|
||||
serializedName: 'preferredDataCenterRegion',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Preferences;
|
|
@ -0,0 +1,90 @@
|
|||
/*
|
||||
* 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');
|
||||
|
||||
/**
|
||||
* Model of the Resource.
|
||||
*
|
||||
* @extends models['BaseResource']
|
||||
*/
|
||||
class Resource extends models['BaseResource'] {
|
||||
/**
|
||||
* Create a Resource.
|
||||
* @member {string} location The location of the resource. This will be one
|
||||
* of the supported and registered Azure Regions (e.g. West US, East US,
|
||||
* Southeast Asia, etc.). The region of a resource cannot be changed once it
|
||||
* is created, but if an identical region is specified on update the request
|
||||
* will succeed.
|
||||
* @member {object} [tags] The list of key value pairs that describe the
|
||||
* resource. These tags can be used in viewing and grouping this resource
|
||||
* (across resource groups).
|
||||
* @member {object} sku The sku type.
|
||||
* @member {string} [sku.name] The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [sku.displayName] The display name of the sku.
|
||||
* @member {string} [sku.family] The sku family.
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of Resource
|
||||
*
|
||||
* @returns {object} metadata of Resource
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Resource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Resource',
|
||||
modelProperties: {
|
||||
location: {
|
||||
required: true,
|
||||
serializedName: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
required: false,
|
||||
serializedName: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
sku: {
|
||||
required: true,
|
||||
serializedName: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Sku'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Resource;
|
|
@ -0,0 +1,100 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Credential details of the shares in account.
|
||||
*
|
||||
*/
|
||||
class ShareCredentialDetails {
|
||||
/**
|
||||
* Create a ShareCredentialDetails.
|
||||
* @member {string} [shareName] Name of the share.
|
||||
* @member {string} [shareType] Type of the share. Possible values include:
|
||||
* 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile'
|
||||
* @member {string} [userName] User name for the share.
|
||||
* @member {string} [password] Password for the share.
|
||||
* @member {array} [supportedAccessProtocols] Access protocols supported on
|
||||
* the device.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ShareCredentialDetails
|
||||
*
|
||||
* @returns {object} metadata of ShareCredentialDetails
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ShareCredentialDetails',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShareCredentialDetails',
|
||||
modelProperties: {
|
||||
shareName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'shareName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
shareType: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'shareType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile' ]
|
||||
}
|
||||
},
|
||||
userName: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'userName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
password: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'password',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
supportedAccessProtocols: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'supportedAccessProtocols',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'AccessProtocolElementType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'SMB', 'NFS' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ShareCredentialDetails;
|
|
@ -0,0 +1,71 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Shipment pick up request details.
|
||||
*
|
||||
*/
|
||||
class ShipmentPickUpRequest {
|
||||
/**
|
||||
* Create a ShipmentPickUpRequest.
|
||||
* @member {date} startTime Minimum date after which the pick up should
|
||||
* commence, this must be in local time of pick up area.
|
||||
* @member {date} endTime Maximum date before which the pick up should
|
||||
* commence, this must be in local time of pick up area.
|
||||
* @member {string} shipmentLocation Shipment Location in the pickup place.
|
||||
* Eg.front desk
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ShipmentPickUpRequest
|
||||
*
|
||||
* @returns {object} metadata of ShipmentPickUpRequest
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ShipmentPickUpRequest',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShipmentPickUpRequest',
|
||||
modelProperties: {
|
||||
startTime: {
|
||||
required: true,
|
||||
serializedName: 'startTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
endTime: {
|
||||
required: true,
|
||||
serializedName: 'endTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
shipmentLocation: {
|
||||
required: true,
|
||||
serializedName: 'shipmentLocation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ShipmentPickUpRequest;
|
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Shipment pick up response.
|
||||
*
|
||||
*/
|
||||
class ShipmentPickUpResponse {
|
||||
/**
|
||||
* Create a ShipmentPickUpResponse.
|
||||
* @member {string} [confirmationNumber] Confirmation number for the pick up
|
||||
* request.
|
||||
* @member {date} [readyByTime] Time by which shipment should be ready for
|
||||
* pick up, this is in local time of pick up area.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ShipmentPickUpResponse
|
||||
*
|
||||
* @returns {object} metadata of ShipmentPickUpResponse
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ShipmentPickUpResponse',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShipmentPickUpResponse',
|
||||
modelProperties: {
|
||||
confirmationNumber: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'confirmationNumber',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
readyByTime: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'readyByTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ShipmentPickUpResponse;
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Shipping address where customer wishes to receive the device.
|
||||
*
|
||||
*/
|
||||
class ShippingAddress {
|
||||
/**
|
||||
* Create a ShippingAddress.
|
||||
* @member {string} streetAddress1 Street Address line 1.
|
||||
* @member {string} [streetAddress2] Street Address line 2.
|
||||
* @member {string} [streetAddress3] Street Address line 3.
|
||||
* @member {string} [city] Name of the City.
|
||||
* @member {string} [stateOrProvince] Name of the State or Province.
|
||||
* @member {string} country Name of the Country.
|
||||
* @member {string} postalCode Postal code.
|
||||
* @member {string} [zipExtendedCode] Extended Zip Code.
|
||||
* @member {string} [companyName] Name of the company.
|
||||
* @member {string} [addressType] Type of address. Possible values include:
|
||||
* 'None', 'Residential', 'Commercial'
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of ShippingAddress
|
||||
*
|
||||
* @returns {object} metadata of ShippingAddress
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'ShippingAddress',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'ShippingAddress',
|
||||
modelProperties: {
|
||||
streetAddress1: {
|
||||
required: true,
|
||||
serializedName: 'streetAddress1',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
streetAddress2: {
|
||||
required: false,
|
||||
serializedName: 'streetAddress2',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
streetAddress3: {
|
||||
required: false,
|
||||
serializedName: 'streetAddress3',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
city: {
|
||||
required: false,
|
||||
serializedName: 'city',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
stateOrProvince: {
|
||||
required: false,
|
||||
serializedName: 'stateOrProvince',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
country: {
|
||||
required: true,
|
||||
serializedName: 'country',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
postalCode: {
|
||||
required: true,
|
||||
serializedName: 'postalCode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
zipExtendedCode: {
|
||||
required: false,
|
||||
serializedName: 'zipExtendedCode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
companyName: {
|
||||
required: false,
|
||||
serializedName: 'companyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
addressType: {
|
||||
required: false,
|
||||
serializedName: 'addressType',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'None', 'Residential', 'Commercial' ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ShippingAddress;
|
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* The Sku.
|
||||
*
|
||||
*/
|
||||
class Sku {
|
||||
/**
|
||||
* Create a Sku.
|
||||
* @member {string} name The sku name. Possible values include: 'DataBox',
|
||||
* 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [displayName] The display name of the sku.
|
||||
* @member {string} [family] The sku family.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of Sku
|
||||
*
|
||||
* @returns {object} metadata of Sku
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'Sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Sku',
|
||||
modelProperties: {
|
||||
name: {
|
||||
required: true,
|
||||
serializedName: 'name',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'DataBox', 'DataBoxDisk', 'DataBoxHeavy' ]
|
||||
}
|
||||
},
|
||||
displayName: {
|
||||
required: false,
|
||||
serializedName: 'displayName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
family: {
|
||||
required: false,
|
||||
serializedName: 'family',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Sku;
|
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Capacity of the sku.
|
||||
*
|
||||
*/
|
||||
class SkuCapacity {
|
||||
/**
|
||||
* Create a SkuCapacity.
|
||||
* @member {string} [usable] Usable capacity in TB.
|
||||
* @member {string} [maximum] Maximum capacity in TB.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of SkuCapacity
|
||||
*
|
||||
* @returns {object} metadata of SkuCapacity
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'SkuCapacity',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'SkuCapacity',
|
||||
modelProperties: {
|
||||
usable: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'usable',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
maximum: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'maximum',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = SkuCapacity;
|
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Describes metadata for retrieving price info.
|
||||
*
|
||||
*/
|
||||
class SkuCost {
|
||||
/**
|
||||
* Create a SkuCost.
|
||||
* @member {string} [meterId] Meter id of the Sku.
|
||||
* @member {string} [meterType] The type of the meter.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of SkuCost
|
||||
*
|
||||
* @returns {object} metadata of SkuCost
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'SkuCost',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'SkuCost',
|
||||
modelProperties: {
|
||||
meterId: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'meterId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
meterType: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'meterType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = SkuCost;
|
|
@ -0,0 +1,160 @@
|
|||
/*
|
||||
* 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';
|
||||
|
||||
/**
|
||||
* Information of the sku.
|
||||
*
|
||||
*/
|
||||
class SkuInformation {
|
||||
/**
|
||||
* Create a SkuInformation.
|
||||
* @member {object} [sku] The Sku.
|
||||
* @member {string} [sku.name] The sku name. Possible values include:
|
||||
* 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
|
||||
* @member {string} [sku.displayName] The display name of the sku.
|
||||
* @member {string} [sku.family] The sku family.
|
||||
* @member {boolean} [enabled] The sku is enabled or not.
|
||||
* @member {array} [destinationToServiceLocationMap] The map of destination
|
||||
* location to service location.
|
||||
* @member {object} [capacity] Capacity of the Sku.
|
||||
* @member {string} [capacity.usable] Usable capacity in TB.
|
||||
* @member {string} [capacity.maximum] Maximum capacity in TB.
|
||||
* @member {array} [costs] Cost of the Sku.
|
||||
* @member {array} [apiVersions] Api versions that support this Sku.
|
||||
* @member {string} [disabledReason] Reason why the Sku is disabled. Possible
|
||||
* values include: 'None', 'Country', 'Region', 'Feature', 'OfferType'
|
||||
* @member {string} [disabledReasonMessage] Message for why the Sku is
|
||||
* disabled.
|
||||
* @member {string} [requiredFeature] Required feature to access the sku.
|
||||
*/
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the metadata of SkuInformation
|
||||
*
|
||||
* @returns {object} metadata of SkuInformation
|
||||
*
|
||||
*/
|
||||
mapper() {
|
||||
return {
|
||||
required: false,
|
||||
serializedName: 'SkuInformation',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'SkuInformation',
|
||||
modelProperties: {
|
||||
sku: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'Sku'
|
||||
}
|
||||
},
|
||||
enabled: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'enabled',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
destinationToServiceLocationMap: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.destinationToServiceLocationMap',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'DestinationToServiceLocationMapElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'DestinationToServiceLocationMap'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
capacity: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.capacity',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'SkuCapacity'
|
||||
}
|
||||
},
|
||||
costs: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.costs',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'SkuCostElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
className: 'SkuCost'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
apiVersions: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.apiVersions',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
required: false,
|
||||
serializedName: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
disabledReason: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.disabledReason',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
allowedValues: [ 'None', 'Country', 'Region', 'Feature', 'OfferType' ]
|
||||
}
|
||||
},
|
||||
disabledReasonMessage: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.disabledReasonMessage',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
requiredFeature: {
|
||||
required: false,
|
||||
readOnly: true,
|
||||
serializedName: 'properties.requiredFeature',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = SkuInformation;
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче