This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 72a9b4e14298e4c5450f0efd224eaf67789a87f2
Merge pull request #1 from AzureDataBox/databox Databox
- Loading branch information
1 parent
8dcf0a2
commit 3c3dbc6
Showing
65 changed files
with
15,351 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/* | ||
* 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} location - The location of the resource | ||
* | ||
* @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] - Gets or sets the preferred language for the response. | ||
* | ||
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. | ||
* | ||
* @param {boolean} [options.generateClientRequestId] - 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, location: string, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions); | ||
|
||
credentials: ServiceClientCredentials; | ||
|
||
apiVersion: string; | ||
|
||
location: string; | ||
|
||
subscriptionId: string; | ||
|
||
acceptLanguage: string; | ||
|
||
longRunningOperationRetryTimeout: number; | ||
|
||
generateClientRequestId: boolean; | ||
|
||
// Operation groups | ||
operations: operations.Operations; | ||
jobs: operations.Jobs; | ||
service: operations.Service; | ||
listSecrets: operations.ListSecrets; | ||
} | ||
|
||
export { DataBoxManagementClient, models as DataBoxManagementModels }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* | ||
* 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} location - The location of the resource | ||
* @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] - Gets or sets the preferred language for the response. | ||
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. | ||
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. | ||
*/ | ||
constructor(credentials, location, subscriptionId, baseUri, options) { | ||
if (credentials === null || credentials === undefined) { | ||
throw new Error('\'credentials\' cannot be null.'); | ||
} | ||
if (location === null || location === undefined) { | ||
throw new Error('\'location\' 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.location = location; | ||
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.listSecrets = new operations.ListSecrets(this); | ||
this.models = models; | ||
msRest.addSerializationMixin(this); | ||
} | ||
|
||
} | ||
|
||
module.exports = DataBoxManagementClient; | ||
module.exports['default'] = DataBoxManagementClient; | ||
module.exports.DataBoxManagementClient = DataBoxManagementClient; | ||
module.exports.DataBoxManagementModels = models; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* 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 an storage account | ||
* | ||
* @extends models['CopyLogDetails'] | ||
*/ | ||
class AccountCopyLogDetails extends models['CopyLogDetails'] { | ||
/** | ||
* Create a AccountCopyLogDetails. | ||
* @member {string} accountName Destination account name. | ||
* @member {string} copyLogLink Link for copy logs. | ||
*/ | ||
constructor() { | ||
super(); | ||
} | ||
|
||
/** | ||
* Defines the metadata of AccountCopyLogDetails | ||
* | ||
* @returns {object} metadata of AccountCopyLogDetails | ||
* | ||
*/ | ||
mapper() { | ||
return { | ||
required: false, | ||
serializedName: 'Pod', | ||
type: { | ||
name: 'Composite', | ||
polymorphicDiscriminator: { | ||
serializedName: 'copyLogDetailsType', | ||
clientName: 'copyLogDetailsType' | ||
}, | ||
uberParent: 'CopyLogDetails', | ||
className: 'AccountCopyLogDetails', | ||
modelProperties: { | ||
copyLogDetailsType: { | ||
required: true, | ||
serializedName: 'copyLogDetailsType', | ||
isPolymorphicDiscriminator: true, | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
accountName: { | ||
required: true, | ||
serializedName: 'accountName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
copyLogLink: { | ||
required: true, | ||
serializedName: 'copyLogLink', | ||
type: { | ||
name: 'String' | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AccountCopyLogDetails; |
71 changes: 71 additions & 0 deletions
71
lib/services/databox/lib/models/accountCredentialDetails.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
|
||
/** | ||
* Credential details of the account. | ||
* | ||
*/ | ||
class AccountCredentialDetails { | ||
/** | ||
* Create a AccountCredentialDetails. | ||
* @member {string} [accountName] Name of the account. | ||
* @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, | ||
serializedName: 'accountName', | ||
type: { | ||
name: 'String' | ||
} | ||
}, | ||
shareCredentialDetails: { | ||
required: true, | ||
serializedName: 'shareCredentialDetails', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ShareCredentialDetailsElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ShareCredentialDetails' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AccountCredentialDetails; |
72 changes: 72 additions & 0 deletions
72
lib/services/databox/lib/models/addressValidationOutput.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; | ||
|
||
const models = require('./index'); | ||
|
||
/** | ||
* 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, | ||
serializedName: 'properties.validationStatus', | ||
type: { | ||
name: 'Enum', | ||
allowedValues: [ 'Valid', 'Invalid', 'Ambiguous' ] | ||
} | ||
}, | ||
alternateAddresses: { | ||
required: false, | ||
serializedName: 'properties.alternateAddresses', | ||
type: { | ||
name: 'Sequence', | ||
element: { | ||
required: false, | ||
serializedName: 'ShippingAddressElementType', | ||
type: { | ||
name: 'Composite', | ||
className: 'ShippingAddress' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
|
||
module.exports = AddressValidationOutput; |
Oops, something went wrong.