diff --git a/lib/services/recoveryServicesManagement/LICENSE.txt b/lib/services/recoveryServicesManagement/LICENSE.txt index 0313a903d7..5431ba98b9 100644 --- a/lib/services/recoveryServicesManagement/LICENSE.txt +++ b/lib/services/recoveryServicesManagement/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2017 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. \ No newline at end of file +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. diff --git a/lib/services/recoveryServicesManagement/README.md b/lib/services/recoveryServicesManagement/README.md index 4f2d3fbfca..cbfd675027 100644 --- a/lib/services/recoveryServicesManagement/README.md +++ b/lib/services/recoveryServicesManagement/README.md @@ -1,38 +1,43 @@ -# Microsoft Azure SDK for Node.js - RecoveryServicesManagement - -This project provides a Node.js package that makes it easy to manage Microsoft Azure RecoveryServices. -## API-Version: 2016-04-01 -## Minimum node.js version >= 6.x.x - -## How to Install - -```bash -npm install azure-arm-recoveryservices -``` - -## How to Use - -### Authentication, client creation and listing vaults as an example - - ```javascript - const msRestAzure = require('ms-rest-azure'); - const RecoveryServicesManagement = require("azure-arm-recoveryservices"); - - // Interactive Login - // It provides a url and code that needs to be copied and pasted in a browser and authenticated over there. If successful, - // the user will get a DeviceTokenCredentials object. - msRestAzure.interactiveLogin().then((credentials) => { - let client = new RecoveryServicesManagement(credentials, 'your-subscription-id'); - return client.vaults.listByResourceGroup('testrg'); - }).then((vaults) => { - console.log('List of vaults:'); - console.dir(vaults, {depth: null, colors: true}); -}).catch((err) => { - console.log('An error ocurred'); - console.dir(err, {depth: null, colors: true}); - }); -``` - -## Related projects - -- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) \ No newline at end of file +--- +uid: azure-arm-recoveryservices +summary: *content + +--- +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** +## Microsoft Azure SDK for Node.js - RecoveryServicesClient +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-recoveryservices +``` + +### How to use + +#### Authentication, client creation and list replicationUsages as an example. + +```javascript +const msRestAzure = require("ms-rest-azure"); +const RecoveryServicesClient = require("azure-arm-recoveryservices"); +msRestAzure.interactiveLogin().then((creds) => { + const subscriptionId = ""; + const client = new RecoveryServicesClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const vaultName = "testvaultName"; + return client.replicationUsages.list(resourceGroupName, vaultName).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) diff --git a/lib/services/recoveryServicesManagement/lib/models/certificateRequest.js b/lib/services/recoveryServicesManagement/lib/models/certificateRequest.js index b8bb1b9ce8..06ce224223 100644 --- a/lib/services/recoveryServicesManagement/lib/models/certificateRequest.js +++ b/lib/services/recoveryServicesManagement/lib/models/certificateRequest.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Details of the certificate to be uploaded to the vault. * @@ -19,11 +17,11 @@ const models = require('./index'); class CertificateRequest { /** * Create a CertificateRequest. - * @member {object} [properties] - * @member {string} [properties.authType] Specifies the authentication type. - * Possible values include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', - * 'AzureActiveDirectory' - * @member {buffer} [properties.certificate] The base64 encoded certificate + * @property {object} [properties] + * @property {string} [properties.authType] Specifies the authentication + * type. Possible values include: 'Invalid', 'ACS', 'AAD', + * 'AccessControlService', 'AzureActiveDirectory' + * @property {buffer} [properties.certificate] The base64 encoded certificate * raw data string */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryDisplay.js b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryDisplay.js index a35d849f73..2cdbc83d09 100644 --- a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryDisplay.js +++ b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryDisplay.js @@ -17,11 +17,12 @@ class ClientDiscoveryDisplay { /** * Create a ClientDiscoveryDisplay. - * @member {string} [provider] Name of the provider for display purposes - * @member {string} [resource] Name of the resource type for display purposes - * @member {string} [operation] Name of the operation for display purposes - * @member {string} [description] Description of the operation for display - * purposes + * @property {string} [provider] Name of the provider for display purposes + * @property {string} [resource] ResourceType for which this Operation can be + * performed. + * @property {string} [operation] Operations Name itself. + * @property {string} [description] Description of the operation having + * details of what operation is about. */ constructor() { } @@ -42,28 +43,28 @@ class ClientDiscoveryDisplay { modelProperties: { provider: { required: false, - serializedName: 'Provider', + serializedName: 'provider', type: { name: 'String' } }, resource: { required: false, - serializedName: 'Resource', + serializedName: 'resource', type: { name: 'String' } }, operation: { required: false, - serializedName: 'Operation', + serializedName: 'operation', type: { name: 'String' } }, description: { required: false, - serializedName: 'Description', + serializedName: 'description', type: { name: 'String' } diff --git a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForLogSpecification.js b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForLogSpecification.js index 1e66b1a67b..31529f638f 100644 --- a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForLogSpecification.js +++ b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForLogSpecification.js @@ -17,10 +17,10 @@ class ClientDiscoveryForLogSpecification { /** * Create a ClientDiscoveryForLogSpecification. - * @member {string} [name] Name of the log. - * @member {string} [displayName] Localized display name - * @member {string} [blobDuration] Blobs created in customer storage account - * per hour + * @property {string} [name] Name of the log. + * @property {string} [displayName] Localized display name + * @property {string} [blobDuration] Blobs created in customer storage + * account per hour */ constructor() { } diff --git a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForProperties.js b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForProperties.js index 44b459cb33..7f266c0cdc 100644 --- a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForProperties.js +++ b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Class to represent shoebox properties in json client discovery. * @@ -19,8 +17,8 @@ const models = require('./index'); class ClientDiscoveryForProperties { /** * Create a ClientDiscoveryForProperties. - * @member {object} [serviceSpecification] Operation properties. - * @member {array} [serviceSpecification.logSpecifications] List of log + * @property {object} [serviceSpecification] Operation properties. + * @property {array} [serviceSpecification.logSpecifications] List of log * specifications of this operation. */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForServiceSpecification.js b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForServiceSpecification.js index 491353f624..f2379db3da 100644 --- a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForServiceSpecification.js +++ b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryForServiceSpecification.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Class to represent shoebox service specification in json client discovery. * @@ -19,7 +17,7 @@ const models = require('./index'); class ClientDiscoveryForServiceSpecification { /** * Create a ClientDiscoveryForServiceSpecification. - * @member {array} [logSpecifications] List of log specifications of this + * @property {array} [logSpecifications] List of log specifications of this * operation. */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryResponse.js b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryResponse.js index f8d57a61ed..c3bea86a55 100644 --- a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryResponse.js +++ b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryResponse.js @@ -16,7 +16,7 @@ class ClientDiscoveryResponse extends Array { /** * Create a ClientDiscoveryResponse. - * @member {string} [nextLink] NextLink of the Response. + * @property {string} [nextLink] Link to the next chunk of the response */ constructor() { super(); @@ -38,7 +38,7 @@ class ClientDiscoveryResponse extends Array { modelProperties: { value: { required: false, - serializedName: 'Value', + serializedName: '', type: { name: 'Sequence', element: { @@ -53,7 +53,7 @@ class ClientDiscoveryResponse extends Array { }, nextLink: { required: false, - serializedName: 'NextLink', + serializedName: 'nextLink', type: { name: 'String' } diff --git a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryValueForSingleApi.js b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryValueForSingleApi.js index 7f19cb2607..dfbb24848b 100644 --- a/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryValueForSingleApi.js +++ b/lib/services/recoveryServicesManagement/lib/models/clientDiscoveryValueForSingleApi.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Available operation details. * @@ -19,22 +17,22 @@ const models = require('./index'); class ClientDiscoveryValueForSingleApi { /** * Create a ClientDiscoveryValueForSingleApi. - * @member {string} [name] Name of the operation - * @member {object} [display] Contains the localized display information for - * this particular operation - * @member {string} [display.provider] Name of the provider for display - * purposes - * @member {string} [display.resource] Name of the resource type for display - * purposes - * @member {string} [display.operation] Name of the operation for display + * @property {string} [name] Name of the Operation. + * @property {object} [display] Contains the localized display information + * for this particular operation + * @property {string} [display.provider] Name of the provider for display * purposes - * @member {string} [display.description] Description of the operation for - * display purposes - * @member {string} [origin] The intended executor of the operation;governs + * @property {string} [display.resource] ResourceType for which this + * Operation can be performed. + * @property {string} [display.operation] Operations Name itself. + * @property {string} [display.description] Description of the operation + * having details of what operation is about. + * @property {string} [origin] The intended executor of the operation;governs * the display of the operation in the RBAC UX and the audit logs UX - * @member {object} [properties] Properties - * @member {object} [properties.serviceSpecification] Operation properties. - * @member {array} [properties.serviceSpecification.logSpecifications] List + * @property {object} [properties] ShoeBox properties for the given + * operation. + * @property {object} [properties.serviceSpecification] Operation properties. + * @property {array} [properties.serviceSpecification.logSpecifications] List * of log specifications of this operation. */ constructor() { @@ -56,14 +54,14 @@ class ClientDiscoveryValueForSingleApi { modelProperties: { name: { required: false, - serializedName: 'Name', + serializedName: 'name', type: { name: 'String' } }, display: { required: false, - serializedName: 'Display', + serializedName: 'display', type: { name: 'Composite', className: 'ClientDiscoveryDisplay' @@ -71,14 +69,14 @@ class ClientDiscoveryValueForSingleApi { }, origin: { required: false, - serializedName: 'Origin', + serializedName: 'origin', type: { name: 'String' } }, properties: { required: false, - serializedName: 'Properties', + serializedName: 'properties', type: { name: 'Composite', className: 'ClientDiscoveryForProperties' diff --git a/lib/services/recoveryServicesManagement/lib/models/index.d.ts b/lib/services/recoveryServicesManagement/lib/models/index.d.ts index d26b662ea6..3d0367939c 100644 --- a/lib/services/recoveryServicesManagement/lib/models/index.d.ts +++ b/lib/services/recoveryServicesManagement/lib/models/index.d.ts @@ -1,621 +1,532 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource } from 'ms-rest-azure'; -import { CloudError } from 'ms-rest-azure'; -import * as moment from 'moment'; +import { BaseResource, CloudError } from "ms-rest-azure"; +import * as moment from "moment"; -export { BaseResource } from 'ms-rest-azure'; -export { CloudError } from 'ms-rest-azure'; +export { + BaseResource, + CloudError +}; /** - * @class - * Initializes a new instance of the Resource class. - * @constructor - * ARM Resource. - * - * @member {string} [id] Resource Id represents the complete path to the - * resource. - * @member {string} [name] Resource name associated with the resource. - * @member {string} [type] Resource type represents the complete path of the - * form Namespace/ResourceType/ResourceType/... - * @member {string} [eTag] Optional ETag. - */ -export interface Resource extends BaseResource { - readonly id?: string; - readonly name?: string; - readonly type?: string; - eTag?: string; -} - -/** - * @class - * Initializes a new instance of the BackupStorageConfig class. - * @constructor - * The backup storage config. - * - * @member {string} [storageModelType] Storage model type. Possible values - * include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * @member {string} [storageType] Storage type. Possible values include: - * 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * @member {string} [storageTypeState] Locked or Unlocked. Once a machine is - * registered against a resource, the storageTypeState is always Locked. - * Possible values include: 'Invalid', 'Locked', 'Unlocked' - */ -export interface BackupStorageConfig extends Resource { - storageModelType?: string; - storageType?: string; - storageTypeState?: string; -} - -/** - * @class - * Initializes a new instance of the BackupVaultConfig class. - * @constructor - * Backup vault config details. - * - * @member {string} [storageType] Storage type. Possible values include: - * 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * @member {string} [storageTypeState] Locked or Unlocked. Once a machine is - * registered against a resource, the storageTypeState is always Locked. - * Possible values include: 'Invalid', 'Locked', 'Unlocked' - * @member {string} [enhancedSecurityState] Enabled or Disabled. Possible - * values include: 'Invalid', 'Enabled', 'Disabled' - */ -export interface BackupVaultConfig extends Resource { - storageType?: string; - storageTypeState?: string; - enhancedSecurityState?: string; -} - -/** - * @class - * Initializes a new instance of the VaultExtendedInfoResource class. - * @constructor - * Vault extended information. - * - * @member {string} [integrityKey] Integrity key. - * @member {string} [encryptionKey] Encryption key. - * @member {string} [encryptionKeyThumbprint] Encryption key thumbprint. - * @member {string} [algorithm] Algorithm. - */ -export interface VaultExtendedInfoResource extends Resource { - integrityKey?: string; - encryptionKey?: string; - encryptionKeyThumbprint?: string; - algorithm?: string; -} - -/** - * @class - * Initializes a new instance of the Sku class. - * @constructor - * Identifies the unique system identifier for each Azure resource. - * - * @member {string} name The Sku name. Possible values include: 'Standard', - * 'RS0' - */ -export interface Sku { - name: string; -} - -/** - * @class - * Initializes a new instance of the UpgradeDetails class. - * @constructor - * Details for upgrading vault. - * - * @member {string} [operationId] ID of the vault upgrade operation. - * @member {date} [startTimeUtc] UTC time at which the upgrade operation has - * started. - * @member {date} [lastUpdatedTimeUtc] UTC time at which the upgrade operation - * status was last updated. - * @member {date} [endTimeUtc] UTC time at which the upgrade operation has - * ended. - * @member {string} [status] Status of the vault upgrade operation. Possible - * values include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' - * @member {string} [message] Message to the user containing information about - * the upgrade operation. - * @member {string} [triggerType] The way the vault upgradation was triggered. - * Possible values include: 'UserTriggered', 'ForcedUpgrade' - * @member {string} [upgradedResourceId] Resource ID of the upgraded vault. - * @member {string} [previousResourceId] Resource ID of the vault before the - * upgrade. - */ -export interface UpgradeDetails { - readonly operationId?: string; - readonly startTimeUtc?: Date; - readonly lastUpdatedTimeUtc?: Date; - readonly endTimeUtc?: Date; - readonly status?: string; - readonly message?: string; - readonly triggerType?: string; - readonly upgradedResourceId?: string; - readonly previousResourceId?: string; -} - -/** - * @class - * Initializes a new instance of the VaultProperties class. - * @constructor - * Properties of the vault. - * - * @member {string} [provisioningState] Provisioning State. - * @member {object} [upgradeDetails] - * @member {string} [upgradeDetails.operationId] ID of the vault upgrade - * operation. - * @member {date} [upgradeDetails.startTimeUtc] UTC time at which the upgrade - * operation has started. - * @member {date} [upgradeDetails.lastUpdatedTimeUtc] UTC time at which the - * upgrade operation status was last updated. - * @member {date} [upgradeDetails.endTimeUtc] UTC time at which the upgrade - * operation has ended. - * @member {string} [upgradeDetails.status] Status of the vault upgrade - * operation. Possible values include: 'Unknown', 'InProgress', 'Upgraded', - * 'Failed' - * @member {string} [upgradeDetails.message] Message to the user containing - * information about the upgrade operation. - * @member {string} [upgradeDetails.triggerType] The way the vault upgradation - * was triggered. Possible values include: 'UserTriggered', 'ForcedUpgrade' - * @member {string} [upgradeDetails.upgradedResourceId] Resource ID of the - * upgraded vault. - * @member {string} [upgradeDetails.previousResourceId] Resource ID of the - * vault before the upgrade. - */ -export interface VaultProperties { - readonly provisioningState?: string; - upgradeDetails?: UpgradeDetails; -} - -/** - * @class - * Initializes a new instance of the TrackedResource class. - * @constructor - * Tracked resource with location. - * - * @member {string} location Resource location. - * @member {object} [tags] Resource tags. - */ -export interface TrackedResource extends Resource { - location: string; - tags?: { [propertyName: string]: string }; -} - -/** - * @class - * Initializes a new instance of the Vault class. - * @constructor - * Resource information, as returned by the resource provider. - * - * @member {object} [properties] - * @member {string} [properties.provisioningState] Provisioning State. - * @member {object} [properties.upgradeDetails] - * @member {string} [properties.upgradeDetails.operationId] ID of the vault - * upgrade operation. - * @member {date} [properties.upgradeDetails.startTimeUtc] UTC time at which - * the upgrade operation has started. - * @member {date} [properties.upgradeDetails.lastUpdatedTimeUtc] UTC time at - * which the upgrade operation status was last updated. - * @member {date} [properties.upgradeDetails.endTimeUtc] UTC time at which the - * upgrade operation has ended. - * @member {string} [properties.upgradeDetails.status] Status of the vault - * upgrade operation. Possible values include: 'Unknown', 'InProgress', - * 'Upgraded', 'Failed' - * @member {string} [properties.upgradeDetails.message] Message to the user - * containing information about the upgrade operation. - * @member {string} [properties.upgradeDetails.triggerType] The way the vault - * upgradation was triggered. Possible values include: 'UserTriggered', - * 'ForcedUpgrade' - * @member {string} [properties.upgradeDetails.upgradedResourceId] Resource ID - * of the upgraded vault. - * @member {string} [properties.upgradeDetails.previousResourceId] Resource ID - * of the vault before the upgrade. - * @member {object} [sku] - * @member {string} [sku.name] The Sku name. Possible values include: - * 'Standard', 'RS0' - */ -export interface Vault extends TrackedResource { - properties?: VaultProperties; - sku?: Sku; -} - -/** - * @class - * Initializes a new instance of the RawCertificateData class. - * @constructor * Raw certificate data. - * - * @member {string} [authType] Specifies the authentication type. Possible - * values include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', - * 'AzureActiveDirectory' - * @member {buffer} [certificate] The base64 encoded certificate raw data - * string */ export interface RawCertificateData { + /** + * Specifies the authentication type. Possible values include: 'Invalid', 'ACS', 'AAD', + * 'AccessControlService', 'AzureActiveDirectory' + */ authType?: string; + /** + * The base64 encoded certificate raw data string + */ certificate?: Buffer; } /** - * @class - * Initializes a new instance of the CertificateRequest class. - * @constructor * Details of the certificate to be uploaded to the vault. - * - * @member {object} [properties] - * @member {string} [properties.authType] Specifies the authentication type. - * Possible values include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', - * 'AzureActiveDirectory' - * @member {buffer} [properties.certificate] The base64 encoded certificate raw - * data string */ export interface CertificateRequest { properties?: RawCertificateData; } /** - * @class - * Initializes a new instance of the ResourceCertificateDetails class. - * @constructor * Certificate details representing the Vault credentials. - * - * @member {buffer} [certificate] The base64 encoded certificate raw data - * string. - * @member {string} [friendlyName] Certificate friendlyname. - * @member {string} [issuer] Certificate issuer. - * @member {number} [resourceId] Resource ID of the vault. - * @member {string} [subject] Certificate Subject Name. - * @member {string} [thumbprint] Certificate thumbprint. - * @member {date} [validFrom] Certificate Validity start Date time. - * @member {date} [validTo] Certificate Validity End Date time. - * @member {string} authType Polymorphic Discriminator - */ +*/ export interface ResourceCertificateDetails { + /** + * The base64 encoded certificate raw data string. + */ certificate?: Buffer; + /** + * Certificate friendly name. + */ friendlyName?: string; + /** + * Certificate issuer. + */ issuer?: string; + /** + * Resource ID of the vault. + */ resourceId?: number; + /** + * Certificate Subject Name. + */ subject?: string; + /** + * Certificate thumbprint. + */ thumbprint?: string; + /** + * Certificate Validity start Date time. + */ validFrom?: Date; + /** + * Certificate Validity End Date time. + */ validTo?: Date; + /** + * Polymorphic Discriminator + */ authType: string; } /** - * @class - * Initializes a new instance of the ResourceCertificateAndAadDetails class. - * @constructor * Certificate details representing the Vault credentials for AAD. - * - * @member {string} aadAuthority AAD tenant authority. - * @member {string} aadTenantId AAD tenant Id. - * @member {string} servicePrincipalClientId AAD service principal clientId. - * @member {string} servicePrincipalObjectId AAD service principal ObjectId. - * @member {string} azureManagementEndpointAudience Azure Management Endpoint - * Audience. - */ +*/ export interface ResourceCertificateAndAadDetails extends ResourceCertificateDetails { + /** + * AAD tenant authority. + */ aadAuthority: string; + /** + * AAD tenant Id. + */ aadTenantId: string; + /** + * AAD service principal clientId. + */ servicePrincipalClientId: string; + /** + * AAD service principal ObjectId. + */ servicePrincipalObjectId: string; + /** + * Azure Management Endpoint Audience. + */ azureManagementEndpointAudience: string; } /** - * @class - * Initializes a new instance of the ResourceCertificateAndAcsDetails class. - * @constructor * Certificate details representing the Vault credentials for ACS. - * - * @member {string} globalAcsNamespace ACS namespace name - tenant for our - * service. - * @member {string} globalAcsHostName Acs mgmt host name to connect to. - * @member {string} globalAcsRPRealm Global ACS namespace RP realm. - */ +*/ export interface ResourceCertificateAndAcsDetails extends ResourceCertificateDetails { + /** + * ACS namespace name - tenant for our service. + */ globalAcsNamespace: string; + /** + * Acs mgmt host name to connect to. + */ globalAcsHostName: string; + /** + * Global ACS namespace RP realm. + */ globalAcsRPRealm: string; } /** - * @class - * Initializes a new instance of the VaultCertificateResponse class. - * @constructor - * Certificate corresponding to a vault that can be used by clients to register - * themselves with the vault. - * - * @member {string} [name] - * @member {string} [type] - * @member {string} [id] - * @member {object} [properties] - * @member {buffer} [properties.certificate] The base64 encoded certificate raw - * data string. - * @member {string} [properties.friendlyName] Certificate friendlyname. - * @member {string} [properties.issuer] Certificate issuer. - * @member {number} [properties.resourceId] Resource ID of the vault. - * @member {string} [properties.subject] Certificate Subject Name. - * @member {string} [properties.thumbprint] Certificate thumbprint. - * @member {date} [properties.validFrom] Certificate Validity start Date time. - * @member {date} [properties.validTo] Certificate Validity End Date time. - * @member {string} [properties.authType] Polymorphic Discriminator - */ -export interface VaultCertificateResponse { - name?: string; - type?: string; - id?: string; + * Certificate corresponding to a vault that can be used by clients to register themselves with the + * vault. +*/ +export interface VaultCertificateResponse extends BaseResource { + /** + * Resource name associated with the resource. + */ + readonly name?: string; + /** + * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + */ + readonly type?: string; + /** + * Resource Id represents the complete path to the resource. + */ + readonly id?: string; properties?: ResourceCertificateDetails; } /** - * @class - * Initializes a new instance of the JobsSummary class. - * @constructor * Summary of the replication job data for this vault. - * - * @member {number} [failedJobs] Count of failed jobs. - * @member {number} [suspendedJobs] Count of suspended jobs. - * @member {number} [inProgressJobs] Count of in-progress jobs. - */ +*/ export interface JobsSummary { + /** + * Count of failed jobs. + */ failedJobs?: number; + /** + * Count of suspended jobs. + */ suspendedJobs?: number; + /** + * Count of in-progress jobs. + */ inProgressJobs?: number; } /** - * @class - * Initializes a new instance of the MonitoringSummary class. - * @constructor * Summary of the replication monitoring data for this vault. - * - * @member {number} [unHealthyVmCount] Count of unhealthy VMs. - * @member {number} [unHealthyProviderCount] Count of unhealthy replication - * providers. - * @member {number} [eventsCount] Count of all critical warnings. - * @member {number} [deprecatedProviderCount] Count of all deprecated recovery - * service providers. - * @member {number} [supportedProviderCount] Count of all the supported - * recovery service providers. - * @member {number} [unsupportedProviderCount] Count of all the unsupported - * recovery service providers. - */ +*/ export interface MonitoringSummary { + /** + * Count of unhealthy VMs. + */ unHealthyVmCount?: number; + /** + * Count of unhealthy replication providers. + */ unHealthyProviderCount?: number; + /** + * Count of all critical warnings. + */ eventsCount?: number; + /** + * Count of all deprecated recovery service providers. + */ deprecatedProviderCount?: number; + /** + * Count of all the supported recovery service providers. + */ supportedProviderCount?: number; + /** + * Count of all the unsupported recovery service providers. + */ unsupportedProviderCount?: number; } /** - * @class - * Initializes a new instance of the ReplicationUsage class. - * @constructor * Replication usages of a vault. - * - * @member {object} [monitoringSummary] Summary of the replication monitoring - * data for this vault. - * @member {number} [monitoringSummary.unHealthyVmCount] Count of unhealthy - * VMs. - * @member {number} [monitoringSummary.unHealthyProviderCount] Count of - * unhealthy replication providers. - * @member {number} [monitoringSummary.eventsCount] Count of all critical - * warnings. - * @member {number} [monitoringSummary.deprecatedProviderCount] Count of all - * deprecated recovery service providers. - * @member {number} [monitoringSummary.supportedProviderCount] Count of all the - * supported recovery service providers. - * @member {number} [monitoringSummary.unsupportedProviderCount] Count of all - * the unsupported recovery service providers. - * @member {object} [jobsSummary] Summary of the replication jobs data for this - * vault. - * @member {number} [jobsSummary.failedJobs] Count of failed jobs. - * @member {number} [jobsSummary.suspendedJobs] Count of suspended jobs. - * @member {number} [jobsSummary.inProgressJobs] Count of in-progress jobs. - * @member {number} [protectedItemCount] Number of replication protected items - * for this vault. - * @member {number} [recoveryPlanCount] Number of replication recovery plans - * for this vault. - * @member {number} [registeredServersCount] Number of servers registered to - * this vault. - * @member {number} [recoveryServicesProviderAuthType] The authentication type - * of recovery service providers in the vault. - */ +*/ export interface ReplicationUsage { + /** + * Summary of the replication monitoring data for this vault. + */ monitoringSummary?: MonitoringSummary; + /** + * Summary of the replication jobs data for this vault. + */ jobsSummary?: JobsSummary; + /** + * Number of replication protected items for this vault. + */ protectedItemCount?: number; + /** + * Number of replication recovery plans for this vault. + */ recoveryPlanCount?: number; + /** + * Number of servers registered to this vault. + */ registeredServersCount?: number; + /** + * The authentication type of recovery service providers in the vault. + */ recoveryServicesProviderAuthType?: number; } /** - * @class - * Initializes a new instance of the ClientDiscoveryDisplay class. - * @constructor * Localized display information of an operation. - * - * @member {string} [provider] Name of the provider for display purposes - * @member {string} [resource] Name of the resource type for display purposes - * @member {string} [operation] Name of the operation for display purposes - * @member {string} [description] Description of the operation for display - * purposes - */ +*/ export interface ClientDiscoveryDisplay { + /** + * Name of the provider for display purposes + */ provider?: string; + /** + * ResourceType for which this Operation can be performed. + */ resource?: string; + /** + * Operations Name itself. + */ operation?: string; + /** + * Description of the operation having details of what operation is about. + */ description?: string; } /** - * @class - * Initializes a new instance of the ClientDiscoveryForLogSpecification class. - * @constructor * Class to represent shoebox log specification in json client discovery. - * - * @member {string} [name] Name of the log. - * @member {string} [displayName] Localized display name - * @member {string} [blobDuration] Blobs created in customer storage account - * per hour - */ +*/ export interface ClientDiscoveryForLogSpecification { + /** + * Name of the log. + */ name?: string; + /** + * Localized display name + */ displayName?: string; + /** + * Blobs created in customer storage account per hour + */ blobDuration?: string; } /** - * @class - * Initializes a new instance of the ClientDiscoveryForServiceSpecification class. - * @constructor * Class to represent shoebox service specification in json client discovery. - * - * @member {array} [logSpecifications] List of log specifications of this - * operation. - */ +*/ export interface ClientDiscoveryForServiceSpecification { + /** + * List of log specifications of this operation. + */ logSpecifications?: ClientDiscoveryForLogSpecification[]; } /** - * @class - * Initializes a new instance of the ClientDiscoveryForProperties class. - * @constructor * Class to represent shoebox properties in json client discovery. - * - * @member {object} [serviceSpecification] Operation properties. - * @member {array} [serviceSpecification.logSpecifications] List of log - * specifications of this operation. - */ +*/ export interface ClientDiscoveryForProperties { + /** + * Operation properties. + */ serviceSpecification?: ClientDiscoveryForServiceSpecification; } /** - * @class - * Initializes a new instance of the ClientDiscoveryValueForSingleApi class. - * @constructor * Available operation details. - * - * @member {string} [name] Name of the operation - * @member {object} [display] Contains the localized display information for - * this particular operation - * @member {string} [display.provider] Name of the provider for display - * purposes - * @member {string} [display.resource] Name of the resource type for display - * purposes - * @member {string} [display.operation] Name of the operation for display - * purposes - * @member {string} [display.description] Description of the operation for - * display purposes - * @member {string} [origin] The intended executor of the operation;governs the - * display of the operation in the RBAC UX and the audit logs UX - * @member {object} [properties] Properties - * @member {object} [properties.serviceSpecification] Operation properties. - * @member {array} [properties.serviceSpecification.logSpecifications] List of - * log specifications of this operation. - */ +*/ export interface ClientDiscoveryValueForSingleApi { + /** + * Name of the Operation. + */ name?: string; + /** + * Contains the localized display information for this particular operation + */ display?: ClientDiscoveryDisplay; + /** + * The intended executor of the operation;governs the display of the operation in the RBAC UX and + * the audit logs UX + */ origin?: string; + /** + * ShoeBox properties for the given operation. + */ properties?: ClientDiscoveryForProperties; } /** - * @class - * Initializes a new instance of the NameInfo class. - * @constructor + * ARM Resource. +*/ +export interface Resource extends BaseResource { + /** + * Resource Id represents the complete path to the resource. + */ + readonly id?: string; + /** + * Resource name associated with the resource. + */ + readonly name?: string; + /** + * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... + */ + readonly type?: string; + /** + * Optional ETag. + */ + eTag?: string; +} + +/** + * Identifies the unique system identifier for each Azure resource. +*/ +export interface Sku { + /** + * The Sku name. Possible values include: 'Standard', 'RS0' + */ + name: string; +} + +/** + * Tracked resource with location. +*/ +export interface TrackedResource extends Resource { + /** + * Resource location. + */ + location: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Tracked resource with location. +*/ +export interface PatchTrackedResource extends Resource { + /** + * Resource location. + */ + location?: string; + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Details for upgrading vault. +*/ +export interface UpgradeDetails { + /** + * ID of the vault upgrade operation. + */ + readonly operationId?: string; + /** + * UTC time at which the upgrade operation has started. + */ + readonly startTimeUtc?: Date; + /** + * UTC time at which the upgrade operation status was last updated. + */ + readonly lastUpdatedTimeUtc?: Date; + /** + * UTC time at which the upgrade operation has ended. + */ + readonly endTimeUtc?: Date; + /** + * Status of the vault upgrade operation. Possible values include: 'Unknown', 'InProgress', + * 'Upgraded', 'Failed' + */ + readonly status?: string; + /** + * Message to the user containing information about the upgrade operation. + */ + readonly message?: string; + /** + * The way the vault upgrade was triggered. Possible values include: 'UserTriggered', + * 'ForcedUpgrade' + */ + readonly triggerType?: string; + /** + * Resource ID of the upgraded vault. + */ + readonly upgradedResourceId?: string; + /** + * Resource ID of the vault before the upgrade. + */ + readonly previousResourceId?: string; +} + +/** + * Properties of the vault. +*/ +export interface VaultProperties { + /** + * Provisioning State. + */ + readonly provisioningState?: string; + upgradeDetails?: UpgradeDetails; +} + +/** + * Resource information, as returned by the resource provider. +*/ +export interface Vault extends TrackedResource { + properties?: VaultProperties; + sku?: Sku; +} + +/** + * Patch Resource information, as returned by the resource provider. +*/ +export interface PatchVault extends PatchTrackedResource { + properties?: VaultProperties; + sku?: Sku; +} + +/** + * Vault extended information. +*/ +export interface VaultExtendedInfoResource extends Resource { + /** + * Integrity key. + */ + integrityKey?: string; + /** + * Encryption key. + */ + encryptionKey?: string; + /** + * Encryption key thumbprint. + */ + encryptionKeyThumbprint?: string; + /** + * Algorithm for Vault ExtendedInfo + */ + algorithm?: string; +} + +/** * The name of usage. - * - * @member {string} [value] Value of usage. - * @member {string} [localizedValue] Localized value of usage. - */ +*/ export interface NameInfo { + /** + * Value of usage. + */ value?: string; + /** + * Localized value of usage. + */ localizedValue?: string; } /** - * @class - * Initializes a new instance of the VaultUsage class. - * @constructor * Usages of a vault. - * - * @member {string} [unit] Unit of the usage. Possible values include: 'Count', - * 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - * @member {string} [quotaPeriod] Quota period of usage. - * @member {date} [nextResetTime] Next reset time of usage. - * @member {number} [currentValue] Current value of usage. - * @member {number} [limit] Limit of usage. - * @member {object} [name] Name of usage. - * @member {string} [name.value] Value of usage. - * @member {string} [name.localizedValue] Localized value of usage. - */ +*/ export interface VaultUsage { + /** + * Unit of the usage. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', + * 'CountPerSecond', 'BytesPerSecond' + */ unit?: string; + /** + * Quota period of usage. + */ quotaPeriod?: string; + /** + * Next reset time of usage. + */ nextResetTime?: Date; + /** + * Current value of usage. + */ currentValue?: number; + /** + * Limit of usage. + */ limit?: number; + /** + * Name of usage. + */ name?: NameInfo; } - /** - * @class - * Initializes a new instance of the ReplicationUsageList class. - * @constructor * Replication usages for vault. - * - */ +*/ export interface ReplicationUsageList extends Array { } /** - * @class - * Initializes a new instance of the VaultList class. - * @constructor * The response model for a list of Vaults. - * - * @member {string} [nextLink] - */ +*/ export interface VaultList extends Array { readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the ClientDiscoveryResponse class. - * @constructor * Operations List response which contains list of available APIs. - * - * @member {string} [nextLink] NextLink of the Response. - */ +*/ export interface ClientDiscoveryResponse extends Array { + /** + * Link to the next chunk of the response + */ nextLink?: string; } /** - * @class - * Initializes a new instance of the VaultUsageList class. - * @constructor * Usage for vault. - * - */ +*/ export interface VaultUsageList extends Array { } diff --git a/lib/services/recoveryServicesManagement/lib/models/index.js b/lib/services/recoveryServicesManagement/lib/models/index.js index 10d8e421d6..dbda3919aa 100644 --- a/lib/services/recoveryServicesManagement/lib/models/index.js +++ b/lib/services/recoveryServicesManagement/lib/models/index.js @@ -18,15 +18,6 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; -exports.Resource = require('./resource'); -exports.BackupStorageConfig = require('./backupStorageConfig'); -exports.BackupVaultConfig = require('./backupVaultConfig'); -exports.VaultExtendedInfoResource = require('./vaultExtendedInfoResource'); -exports.Sku = require('./sku'); -exports.UpgradeDetails = require('./upgradeDetails'); -exports.VaultProperties = require('./vaultProperties'); -exports.TrackedResource = require('./trackedResource'); -exports.Vault = require('./vault'); exports.RawCertificateData = require('./rawCertificateData'); exports.CertificateRequest = require('./certificateRequest'); exports.ResourceCertificateDetails = require('./resourceCertificateDetails'); @@ -41,6 +32,15 @@ exports.ClientDiscoveryForLogSpecification = require('./clientDiscoveryForLogSpe exports.ClientDiscoveryForServiceSpecification = require('./clientDiscoveryForServiceSpecification'); exports.ClientDiscoveryForProperties = require('./clientDiscoveryForProperties'); exports.ClientDiscoveryValueForSingleApi = require('./clientDiscoveryValueForSingleApi'); +exports.Resource = require('./resource'); +exports.Sku = require('./sku'); +exports.TrackedResource = require('./trackedResource'); +exports.PatchTrackedResource = require('./patchTrackedResource'); +exports.UpgradeDetails = require('./upgradeDetails'); +exports.VaultProperties = require('./vaultProperties'); +exports.Vault = require('./vault'); +exports.PatchVault = require('./patchVault'); +exports.VaultExtendedInfoResource = require('./vaultExtendedInfoResource'); exports.NameInfo = require('./nameInfo'); exports.VaultUsage = require('./vaultUsage'); exports.ReplicationUsageList = require('./replicationUsageList'); diff --git a/lib/services/recoveryServicesManagement/lib/models/jobsSummary.js b/lib/services/recoveryServicesManagement/lib/models/jobsSummary.js index 867defac07..c15b269d71 100644 --- a/lib/services/recoveryServicesManagement/lib/models/jobsSummary.js +++ b/lib/services/recoveryServicesManagement/lib/models/jobsSummary.js @@ -17,9 +17,9 @@ class JobsSummary { /** * Create a JobsSummary. - * @member {number} [failedJobs] Count of failed jobs. - * @member {number} [suspendedJobs] Count of suspended jobs. - * @member {number} [inProgressJobs] Count of in-progress jobs. + * @property {number} [failedJobs] Count of failed jobs. + * @property {number} [suspendedJobs] Count of suspended jobs. + * @property {number} [inProgressJobs] Count of in-progress jobs. */ constructor() { } diff --git a/lib/services/recoveryServicesManagement/lib/models/monitoringSummary.js b/lib/services/recoveryServicesManagement/lib/models/monitoringSummary.js index 0345246b42..c925633c94 100644 --- a/lib/services/recoveryServicesManagement/lib/models/monitoringSummary.js +++ b/lib/services/recoveryServicesManagement/lib/models/monitoringSummary.js @@ -17,15 +17,15 @@ class MonitoringSummary { /** * Create a MonitoringSummary. - * @member {number} [unHealthyVmCount] Count of unhealthy VMs. - * @member {number} [unHealthyProviderCount] Count of unhealthy replication + * @property {number} [unHealthyVmCount] Count of unhealthy VMs. + * @property {number} [unHealthyProviderCount] Count of unhealthy replication * providers. - * @member {number} [eventsCount] Count of all critical warnings. - * @member {number} [deprecatedProviderCount] Count of all deprecated + * @property {number} [eventsCount] Count of all critical warnings. + * @property {number} [deprecatedProviderCount] Count of all deprecated * recovery service providers. - * @member {number} [supportedProviderCount] Count of all the supported + * @property {number} [supportedProviderCount] Count of all the supported * recovery service providers. - * @member {number} [unsupportedProviderCount] Count of all the unsupported + * @property {number} [unsupportedProviderCount] Count of all the unsupported * recovery service providers. */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/nameInfo.js b/lib/services/recoveryServicesManagement/lib/models/nameInfo.js index 7e8b0754af..1c922add6b 100644 --- a/lib/services/recoveryServicesManagement/lib/models/nameInfo.js +++ b/lib/services/recoveryServicesManagement/lib/models/nameInfo.js @@ -17,8 +17,8 @@ class NameInfo { /** * Create a NameInfo. - * @member {string} [value] Value of usage. - * @member {string} [localizedValue] Localized value of usage. + * @property {string} [value] Value of usage. + * @property {string} [localizedValue] Localized value of usage. */ constructor() { } diff --git a/lib/services/recoveryServicesManagement/lib/models/patchTrackedResource.js b/lib/services/recoveryServicesManagement/lib/models/patchTrackedResource.js new file mode 100644 index 0000000000..b52f4d4b35 --- /dev/null +++ b/lib/services/recoveryServicesManagement/lib/models/patchTrackedResource.js @@ -0,0 +1,102 @@ +/* + * 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'); + +/** + * Tracked resource with location. + * + * @extends models['Resource'] + */ +class PatchTrackedResource extends models['Resource'] { + /** + * Create a PatchTrackedResource. + * @property {string} [location] Resource location. + * @property {object} [tags] Resource tags. + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PatchTrackedResource + * + * @returns {object} metadata of PatchTrackedResource + * + */ + mapper() { + return { + required: false, + serializedName: 'PatchTrackedResource', + type: { + name: 'Composite', + className: 'PatchTrackedResource', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + eTag: { + required: false, + serializedName: 'eTag', + type: { + name: 'String' + } + }, + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + }; + } +} + +module.exports = PatchTrackedResource; diff --git a/lib/services/recoveryServicesManagement/lib/models/patchVault.js b/lib/services/recoveryServicesManagement/lib/models/patchVault.js new file mode 100644 index 0000000000..0ba8276cee --- /dev/null +++ b/lib/services/recoveryServicesManagement/lib/models/patchVault.js @@ -0,0 +1,142 @@ +/* + * 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'); + +/** + * Patch Resource information, as returned by the resource provider. + * + * @extends models['PatchTrackedResource'] + */ +class PatchVault extends models['PatchTrackedResource'] { + /** + * Create a PatchVault. + * @property {object} [properties] + * @property {string} [properties.provisioningState] Provisioning State. + * @property {object} [properties.upgradeDetails] + * @property {string} [properties.upgradeDetails.operationId] ID of the vault + * upgrade operation. + * @property {date} [properties.upgradeDetails.startTimeUtc] UTC time at + * which the upgrade operation has started. + * @property {date} [properties.upgradeDetails.lastUpdatedTimeUtc] UTC time + * at which the upgrade operation status was last updated. + * @property {date} [properties.upgradeDetails.endTimeUtc] UTC time at which + * the upgrade operation has ended. + * @property {string} [properties.upgradeDetails.status] Status of the vault + * upgrade operation. Possible values include: 'Unknown', 'InProgress', + * 'Upgraded', 'Failed' + * @property {string} [properties.upgradeDetails.message] Message to the user + * containing information about the upgrade operation. + * @property {string} [properties.upgradeDetails.triggerType] The way the + * vault upgrade was triggered. Possible values include: 'UserTriggered', + * 'ForcedUpgrade' + * @property {string} [properties.upgradeDetails.upgradedResourceId] Resource + * ID of the upgraded vault. + * @property {string} [properties.upgradeDetails.previousResourceId] Resource + * ID of the vault before the upgrade. + * @property {object} [sku] + * @property {string} [sku.name] The Sku name. Possible values include: + * 'Standard', 'RS0' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of PatchVault + * + * @returns {object} metadata of PatchVault + * + */ + mapper() { + return { + required: false, + serializedName: 'PatchVault', + type: { + name: 'Composite', + className: 'PatchVault', + modelProperties: { + id: { + required: false, + readOnly: true, + serializedName: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + readOnly: true, + serializedName: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + readOnly: true, + serializedName: 'type', + type: { + name: 'String' + } + }, + eTag: { + required: false, + serializedName: 'eTag', + type: { + name: 'String' + } + }, + location: { + required: false, + serializedName: 'location', + type: { + name: 'String' + } + }, + tags: { + required: false, + serializedName: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + properties: { + required: false, + serializedName: 'properties', + type: { + name: 'Composite', + className: 'VaultProperties' + } + }, + sku: { + required: false, + serializedName: 'sku', + type: { + name: 'Composite', + className: 'Sku' + } + } + } + } + }; + } +} + +module.exports = PatchVault; diff --git a/lib/services/recoveryServicesManagement/lib/models/rawCertificateData.js b/lib/services/recoveryServicesManagement/lib/models/rawCertificateData.js index c51fcd60dd..2084500996 100644 --- a/lib/services/recoveryServicesManagement/lib/models/rawCertificateData.js +++ b/lib/services/recoveryServicesManagement/lib/models/rawCertificateData.js @@ -17,10 +17,10 @@ class RawCertificateData { /** * Create a RawCertificateData. - * @member {string} [authType] Specifies the authentication type. Possible + * @property {string} [authType] Specifies the authentication type. Possible * values include: 'Invalid', 'ACS', 'AAD', 'AccessControlService', * 'AzureActiveDirectory' - * @member {buffer} [certificate] The base64 encoded certificate raw data + * @property {buffer} [certificate] The base64 encoded certificate raw data * string */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/replicationUsage.js b/lib/services/recoveryServicesManagement/lib/models/replicationUsage.js index ce84465dce..8b75d4ec68 100644 --- a/lib/services/recoveryServicesManagement/lib/models/replicationUsage.js +++ b/lib/services/recoveryServicesManagement/lib/models/replicationUsage.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Replication usages of a vault. * @@ -19,32 +17,32 @@ const models = require('./index'); class ReplicationUsage { /** * Create a ReplicationUsage. - * @member {object} [monitoringSummary] Summary of the replication monitoring - * data for this vault. - * @member {number} [monitoringSummary.unHealthyVmCount] Count of unhealthy + * @property {object} [monitoringSummary] Summary of the replication + * monitoring data for this vault. + * @property {number} [monitoringSummary.unHealthyVmCount] Count of unhealthy * VMs. - * @member {number} [monitoringSummary.unHealthyProviderCount] Count of + * @property {number} [monitoringSummary.unHealthyProviderCount] Count of * unhealthy replication providers. - * @member {number} [monitoringSummary.eventsCount] Count of all critical + * @property {number} [monitoringSummary.eventsCount] Count of all critical * warnings. - * @member {number} [monitoringSummary.deprecatedProviderCount] Count of all - * deprecated recovery service providers. - * @member {number} [monitoringSummary.supportedProviderCount] Count of all + * @property {number} [monitoringSummary.deprecatedProviderCount] Count of + * all deprecated recovery service providers. + * @property {number} [monitoringSummary.supportedProviderCount] Count of all * the supported recovery service providers. - * @member {number} [monitoringSummary.unsupportedProviderCount] Count of all - * the unsupported recovery service providers. - * @member {object} [jobsSummary] Summary of the replication jobs data for + * @property {number} [monitoringSummary.unsupportedProviderCount] Count of + * all the unsupported recovery service providers. + * @property {object} [jobsSummary] Summary of the replication jobs data for * this vault. - * @member {number} [jobsSummary.failedJobs] Count of failed jobs. - * @member {number} [jobsSummary.suspendedJobs] Count of suspended jobs. - * @member {number} [jobsSummary.inProgressJobs] Count of in-progress jobs. - * @member {number} [protectedItemCount] Number of replication protected + * @property {number} [jobsSummary.failedJobs] Count of failed jobs. + * @property {number} [jobsSummary.suspendedJobs] Count of suspended jobs. + * @property {number} [jobsSummary.inProgressJobs] Count of in-progress jobs. + * @property {number} [protectedItemCount] Number of replication protected * items for this vault. - * @member {number} [recoveryPlanCount] Number of replication recovery plans - * for this vault. - * @member {number} [registeredServersCount] Number of servers registered to - * this vault. - * @member {number} [recoveryServicesProviderAuthType] The authentication + * @property {number} [recoveryPlanCount] Number of replication recovery + * plans for this vault. + * @property {number} [registeredServersCount] Number of servers registered + * to this vault. + * @property {number} [recoveryServicesProviderAuthType] The authentication * type of recovery service providers in the vault. */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/resource.js b/lib/services/recoveryServicesManagement/lib/models/resource.js index 4bef86e8e9..5ea4559e00 100644 --- a/lib/services/recoveryServicesManagement/lib/models/resource.js +++ b/lib/services/recoveryServicesManagement/lib/models/resource.js @@ -20,12 +20,12 @@ const models = require('./index'); class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] Resource Id represents the complete path to the + * @property {string} [id] Resource Id represents the complete path to the * resource. - * @member {string} [name] Resource name associated with the resource. - * @member {string} [type] Resource type represents the complete path of the - * form Namespace/ResourceType/ResourceType/... - * @member {string} [eTag] Optional ETag. + * @property {string} [name] Resource name associated with the resource. + * @property {string} [type] Resource type represents the complete path of + * the form Namespace/ResourceType/ResourceType/... + * @property {string} [eTag] Optional ETag. */ constructor() { super(); diff --git a/lib/services/recoveryServicesManagement/lib/models/resourceCertificateAndAadDetails.js b/lib/services/recoveryServicesManagement/lib/models/resourceCertificateAndAadDetails.js index 3fcf4d0e20..0a633022e5 100644 --- a/lib/services/recoveryServicesManagement/lib/models/resourceCertificateAndAadDetails.js +++ b/lib/services/recoveryServicesManagement/lib/models/resourceCertificateAndAadDetails.js @@ -20,12 +20,14 @@ const models = require('./index'); class ResourceCertificateAndAadDetails extends models['ResourceCertificateDetails'] { /** * Create a ResourceCertificateAndAadDetails. - * @member {string} aadAuthority AAD tenant authority. - * @member {string} aadTenantId AAD tenant Id. - * @member {string} servicePrincipalClientId AAD service principal clientId. - * @member {string} servicePrincipalObjectId AAD service principal ObjectId. - * @member {string} azureManagementEndpointAudience Azure Management Endpoint - * Audience. + * @property {string} aadAuthority AAD tenant authority. + * @property {string} aadTenantId AAD tenant Id. + * @property {string} servicePrincipalClientId AAD service principal + * clientId. + * @property {string} servicePrincipalObjectId AAD service principal + * ObjectId. + * @property {string} azureManagementEndpointAudience Azure Management + * Endpoint Audience. */ constructor() { super(); diff --git a/lib/services/recoveryServicesManagement/lib/models/resourceCertificateAndAcsDetails.js b/lib/services/recoveryServicesManagement/lib/models/resourceCertificateAndAcsDetails.js index 8335be0d35..d827bc4550 100644 --- a/lib/services/recoveryServicesManagement/lib/models/resourceCertificateAndAcsDetails.js +++ b/lib/services/recoveryServicesManagement/lib/models/resourceCertificateAndAcsDetails.js @@ -20,10 +20,10 @@ const models = require('./index'); class ResourceCertificateAndAcsDetails extends models['ResourceCertificateDetails'] { /** * Create a ResourceCertificateAndAcsDetails. - * @member {string} globalAcsNamespace ACS namespace name - tenant for our + * @property {string} globalAcsNamespace ACS namespace name - tenant for our * service. - * @member {string} globalAcsHostName Acs mgmt host name to connect to. - * @member {string} globalAcsRPRealm Global ACS namespace RP realm. + * @property {string} globalAcsHostName Acs mgmt host name to connect to. + * @property {string} globalAcsRPRealm Global ACS namespace RP realm. */ constructor() { super(); diff --git a/lib/services/recoveryServicesManagement/lib/models/resourceCertificateDetails.js b/lib/services/recoveryServicesManagement/lib/models/resourceCertificateDetails.js index 11e84e1b8c..dc0daea506 100644 --- a/lib/services/recoveryServicesManagement/lib/models/resourceCertificateDetails.js +++ b/lib/services/recoveryServicesManagement/lib/models/resourceCertificateDetails.js @@ -17,16 +17,16 @@ class ResourceCertificateDetails { /** * Create a ResourceCertificateDetails. - * @member {buffer} [certificate] The base64 encoded certificate raw data + * @property {buffer} [certificate] The base64 encoded certificate raw data * string. - * @member {string} [friendlyName] Certificate friendlyname. - * @member {string} [issuer] Certificate issuer. - * @member {number} [resourceId] Resource ID of the vault. - * @member {string} [subject] Certificate Subject Name. - * @member {string} [thumbprint] Certificate thumbprint. - * @member {date} [validFrom] Certificate Validity start Date time. - * @member {date} [validTo] Certificate Validity End Date time. - * @member {string} authType Polymorphic Discriminator + * @property {string} [friendlyName] Certificate friendly name. + * @property {string} [issuer] Certificate issuer. + * @property {number} [resourceId] Resource ID of the vault. + * @property {string} [subject] Certificate Subject Name. + * @property {string} [thumbprint] Certificate thumbprint. + * @property {date} [validFrom] Certificate Validity start Date time. + * @property {date} [validTo] Certificate Validity End Date time. + * @property {string} authType Polymorphic Discriminator */ constructor() { } diff --git a/lib/services/recoveryServicesManagement/lib/models/sku.js b/lib/services/recoveryServicesManagement/lib/models/sku.js index 0aff81db49..596bcc70a3 100644 --- a/lib/services/recoveryServicesManagement/lib/models/sku.js +++ b/lib/services/recoveryServicesManagement/lib/models/sku.js @@ -17,7 +17,7 @@ class Sku { /** * Create a Sku. - * @member {string} name The Sku name. Possible values include: 'Standard', + * @property {string} name The Sku name. Possible values include: 'Standard', * 'RS0' */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/trackedResource.js b/lib/services/recoveryServicesManagement/lib/models/trackedResource.js index 8a00119e96..a96f56e417 100644 --- a/lib/services/recoveryServicesManagement/lib/models/trackedResource.js +++ b/lib/services/recoveryServicesManagement/lib/models/trackedResource.js @@ -20,8 +20,8 @@ const models = require('./index'); class TrackedResource extends models['Resource'] { /** * Create a TrackedResource. - * @member {string} location Resource location. - * @member {object} [tags] Resource tags. + * @property {string} location Resource location. + * @property {object} [tags] Resource tags. */ constructor() { super(); diff --git a/lib/services/recoveryServicesManagement/lib/models/upgradeDetails.js b/lib/services/recoveryServicesManagement/lib/models/upgradeDetails.js index f704595c38..38ac3c49ae 100644 --- a/lib/services/recoveryServicesManagement/lib/models/upgradeDetails.js +++ b/lib/services/recoveryServicesManagement/lib/models/upgradeDetails.js @@ -17,22 +17,22 @@ class UpgradeDetails { /** * Create a UpgradeDetails. - * @member {string} [operationId] ID of the vault upgrade operation. - * @member {date} [startTimeUtc] UTC time at which the upgrade operation has - * started. - * @member {date} [lastUpdatedTimeUtc] UTC time at which the upgrade + * @property {string} [operationId] ID of the vault upgrade operation. + * @property {date} [startTimeUtc] UTC time at which the upgrade operation + * has started. + * @property {date} [lastUpdatedTimeUtc] UTC time at which the upgrade * operation status was last updated. - * @member {date} [endTimeUtc] UTC time at which the upgrade operation has + * @property {date} [endTimeUtc] UTC time at which the upgrade operation has * ended. - * @member {string} [status] Status of the vault upgrade operation. Possible - * values include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' - * @member {string} [message] Message to the user containing information + * @property {string} [status] Status of the vault upgrade operation. + * Possible values include: 'Unknown', 'InProgress', 'Upgraded', 'Failed' + * @property {string} [message] Message to the user containing information * about the upgrade operation. - * @member {string} [triggerType] The way the vault upgradation was - * triggered. Possible values include: 'UserTriggered', 'ForcedUpgrade' - * @member {string} [upgradedResourceId] Resource ID of the upgraded vault. - * @member {string} [previousResourceId] Resource ID of the vault before the - * upgrade. + * @property {string} [triggerType] The way the vault upgrade was triggered. + * Possible values include: 'UserTriggered', 'ForcedUpgrade' + * @property {string} [upgradedResourceId] Resource ID of the upgraded vault. + * @property {string} [previousResourceId] Resource ID of the vault before + * the upgrade. */ constructor() { } diff --git a/lib/services/recoveryServicesManagement/lib/models/vault.js b/lib/services/recoveryServicesManagement/lib/models/vault.js index ba4d3ff500..d21d947baa 100644 --- a/lib/services/recoveryServicesManagement/lib/models/vault.js +++ b/lib/services/recoveryServicesManagement/lib/models/vault.js @@ -20,31 +20,31 @@ const models = require('./index'); class Vault extends models['TrackedResource'] { /** * Create a Vault. - * @member {object} [properties] - * @member {string} [properties.provisioningState] Provisioning State. - * @member {object} [properties.upgradeDetails] - * @member {string} [properties.upgradeDetails.operationId] ID of the vault + * @property {object} [properties] + * @property {string} [properties.provisioningState] Provisioning State. + * @property {object} [properties.upgradeDetails] + * @property {string} [properties.upgradeDetails.operationId] ID of the vault * upgrade operation. - * @member {date} [properties.upgradeDetails.startTimeUtc] UTC time at which - * the upgrade operation has started. - * @member {date} [properties.upgradeDetails.lastUpdatedTimeUtc] UTC time at - * which the upgrade operation status was last updated. - * @member {date} [properties.upgradeDetails.endTimeUtc] UTC time at which + * @property {date} [properties.upgradeDetails.startTimeUtc] UTC time at + * which the upgrade operation has started. + * @property {date} [properties.upgradeDetails.lastUpdatedTimeUtc] UTC time + * at which the upgrade operation status was last updated. + * @property {date} [properties.upgradeDetails.endTimeUtc] UTC time at which * the upgrade operation has ended. - * @member {string} [properties.upgradeDetails.status] Status of the vault + * @property {string} [properties.upgradeDetails.status] Status of the vault * upgrade operation. Possible values include: 'Unknown', 'InProgress', * 'Upgraded', 'Failed' - * @member {string} [properties.upgradeDetails.message] Message to the user + * @property {string} [properties.upgradeDetails.message] Message to the user * containing information about the upgrade operation. - * @member {string} [properties.upgradeDetails.triggerType] The way the vault - * upgradation was triggered. Possible values include: 'UserTriggered', + * @property {string} [properties.upgradeDetails.triggerType] The way the + * vault upgrade was triggered. Possible values include: 'UserTriggered', * 'ForcedUpgrade' - * @member {string} [properties.upgradeDetails.upgradedResourceId] Resource + * @property {string} [properties.upgradeDetails.upgradedResourceId] Resource * ID of the upgraded vault. - * @member {string} [properties.upgradeDetails.previousResourceId] Resource + * @property {string} [properties.upgradeDetails.previousResourceId] Resource * ID of the vault before the upgrade. - * @member {object} [sku] - * @member {string} [sku.name] The Sku name. Possible values include: + * @property {object} [sku] + * @property {string} [sku.name] The Sku name. Possible values include: * 'Standard', 'RS0' */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/vaultCertificateResponse.js b/lib/services/recoveryServicesManagement/lib/models/vaultCertificateResponse.js index 94fe5eba4d..2e3507cfbb 100644 --- a/lib/services/recoveryServicesManagement/lib/models/vaultCertificateResponse.js +++ b/lib/services/recoveryServicesManagement/lib/models/vaultCertificateResponse.js @@ -16,27 +16,31 @@ const models = require('./index'); * Certificate corresponding to a vault that can be used by clients to register * themselves with the vault. * + * @extends models['BaseResource'] */ -class VaultCertificateResponse { +class VaultCertificateResponse extends models['BaseResource'] { /** * Create a VaultCertificateResponse. - * @member {string} [name] - * @member {string} [type] - * @member {string} [id] - * @member {object} [properties] - * @member {buffer} [properties.certificate] The base64 encoded certificate + * @property {string} [name] Resource name associated with the resource. + * @property {string} [type] Resource type represents the complete path of + * the form Namespace/ResourceType/ResourceType/... + * @property {string} [id] Resource Id represents the complete path to the + * resource. + * @property {object} [properties] + * @property {buffer} [properties.certificate] The base64 encoded certificate * raw data string. - * @member {string} [properties.friendlyName] Certificate friendlyname. - * @member {string} [properties.issuer] Certificate issuer. - * @member {number} [properties.resourceId] Resource ID of the vault. - * @member {string} [properties.subject] Certificate Subject Name. - * @member {string} [properties.thumbprint] Certificate thumbprint. - * @member {date} [properties.validFrom] Certificate Validity start Date + * @property {string} [properties.friendlyName] Certificate friendly name. + * @property {string} [properties.issuer] Certificate issuer. + * @property {number} [properties.resourceId] Resource ID of the vault. + * @property {string} [properties.subject] Certificate Subject Name. + * @property {string} [properties.thumbprint] Certificate thumbprint. + * @property {date} [properties.validFrom] Certificate Validity start Date * time. - * @member {date} [properties.validTo] Certificate Validity End Date time. - * @member {string} [properties.authType] Polymorphic Discriminator + * @property {date} [properties.validTo] Certificate Validity End Date time. + * @property {string} [properties.authType] Polymorphic Discriminator */ constructor() { + super(); } /** @@ -55,6 +59,7 @@ class VaultCertificateResponse { modelProperties: { name: { required: false, + readOnly: true, serializedName: 'name', type: { name: 'String' @@ -62,6 +67,7 @@ class VaultCertificateResponse { }, type: { required: false, + readOnly: true, serializedName: 'type', type: { name: 'String' @@ -69,6 +75,7 @@ class VaultCertificateResponse { }, id: { required: false, + readOnly: true, serializedName: 'id', type: { name: 'String' diff --git a/lib/services/recoveryServicesManagement/lib/models/vaultExtendedInfoResource.js b/lib/services/recoveryServicesManagement/lib/models/vaultExtendedInfoResource.js index 1bd2e64db7..e67890a07e 100644 --- a/lib/services/recoveryServicesManagement/lib/models/vaultExtendedInfoResource.js +++ b/lib/services/recoveryServicesManagement/lib/models/vaultExtendedInfoResource.js @@ -20,10 +20,10 @@ const models = require('./index'); class VaultExtendedInfoResource extends models['Resource'] { /** * Create a VaultExtendedInfoResource. - * @member {string} [integrityKey] Integrity key. - * @member {string} [encryptionKey] Encryption key. - * @member {string} [encryptionKeyThumbprint] Encryption key thumbprint. - * @member {string} [algorithm] Algorithm. + * @property {string} [integrityKey] Integrity key. + * @property {string} [encryptionKey] Encryption key. + * @property {string} [encryptionKeyThumbprint] Encryption key thumbprint. + * @property {string} [algorithm] Algorithm for Vault ExtendedInfo */ constructor() { super(); diff --git a/lib/services/recoveryServicesManagement/lib/models/vaultList.js b/lib/services/recoveryServicesManagement/lib/models/vaultList.js index d44101c84a..16c5fb9a11 100644 --- a/lib/services/recoveryServicesManagement/lib/models/vaultList.js +++ b/lib/services/recoveryServicesManagement/lib/models/vaultList.js @@ -16,7 +16,7 @@ class VaultList extends Array { /** * Create a VaultList. - * @member {string} [nextLink] + * @property {string} [nextLink] */ constructor() { super(); @@ -50,6 +50,14 @@ class VaultList extends Array { } } } + }, + nextLink: { + required: false, + readOnly: true, + serializedName: 'nextLink', + type: { + name: 'String' + } } } } diff --git a/lib/services/recoveryServicesManagement/lib/models/vaultProperties.js b/lib/services/recoveryServicesManagement/lib/models/vaultProperties.js index fb3ce26a9e..4cf1511b2d 100644 --- a/lib/services/recoveryServicesManagement/lib/models/vaultProperties.js +++ b/lib/services/recoveryServicesManagement/lib/models/vaultProperties.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Properties of the vault. * @@ -19,27 +17,26 @@ const models = require('./index'); class VaultProperties { /** * Create a VaultProperties. - * @member {string} [provisioningState] Provisioning State. - * @member {object} [upgradeDetails] - * @member {string} [upgradeDetails.operationId] ID of the vault upgrade + * @property {string} [provisioningState] Provisioning State. + * @property {object} [upgradeDetails] + * @property {string} [upgradeDetails.operationId] ID of the vault upgrade * operation. - * @member {date} [upgradeDetails.startTimeUtc] UTC time at which the upgrade - * operation has started. - * @member {date} [upgradeDetails.lastUpdatedTimeUtc] UTC time at which the + * @property {date} [upgradeDetails.startTimeUtc] UTC time at which the + * upgrade operation has started. + * @property {date} [upgradeDetails.lastUpdatedTimeUtc] UTC time at which the * upgrade operation status was last updated. - * @member {date} [upgradeDetails.endTimeUtc] UTC time at which the upgrade + * @property {date} [upgradeDetails.endTimeUtc] UTC time at which the upgrade * operation has ended. - * @member {string} [upgradeDetails.status] Status of the vault upgrade + * @property {string} [upgradeDetails.status] Status of the vault upgrade * operation. Possible values include: 'Unknown', 'InProgress', 'Upgraded', * 'Failed' - * @member {string} [upgradeDetails.message] Message to the user containing + * @property {string} [upgradeDetails.message] Message to the user containing * information about the upgrade operation. - * @member {string} [upgradeDetails.triggerType] The way the vault - * upgradation was triggered. Possible values include: 'UserTriggered', - * 'ForcedUpgrade' - * @member {string} [upgradeDetails.upgradedResourceId] Resource ID of the + * @property {string} [upgradeDetails.triggerType] The way the vault upgrade + * was triggered. Possible values include: 'UserTriggered', 'ForcedUpgrade' + * @property {string} [upgradeDetails.upgradedResourceId] Resource ID of the * upgraded vault. - * @member {string} [upgradeDetails.previousResourceId] Resource ID of the + * @property {string} [upgradeDetails.previousResourceId] Resource ID of the * vault before the upgrade. */ constructor() { diff --git a/lib/services/recoveryServicesManagement/lib/models/vaultUsage.js b/lib/services/recoveryServicesManagement/lib/models/vaultUsage.js index 7f57bfe163..a8755b5ad1 100644 --- a/lib/services/recoveryServicesManagement/lib/models/vaultUsage.js +++ b/lib/services/recoveryServicesManagement/lib/models/vaultUsage.js @@ -10,8 +10,6 @@ 'use strict'; -const models = require('./index'); - /** * Usages of a vault. * @@ -19,15 +17,15 @@ const models = require('./index'); class VaultUsage { /** * Create a VaultUsage. - * @member {string} [unit] Unit of the usage. Possible values include: + * @property {string} [unit] Unit of the usage. Possible values include: * 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond' - * @member {string} [quotaPeriod] Quota period of usage. - * @member {date} [nextResetTime] Next reset time of usage. - * @member {number} [currentValue] Current value of usage. - * @member {number} [limit] Limit of usage. - * @member {object} [name] Name of usage. - * @member {string} [name.value] Value of usage. - * @member {string} [name.localizedValue] Localized value of usage. + * @property {string} [quotaPeriod] Quota period of usage. + * @property {date} [nextResetTime] Next reset time of usage. + * @property {number} [currentValue] Current value of usage. + * @property {number} [limit] Limit of usage. + * @property {object} [name] Name of usage. + * @property {string} [name.value] Value of usage. + * @property {string} [name.localizedValue] Localized value of usage. */ constructor() { } diff --git a/lib/services/recoveryServicesManagement/lib/operations/index.d.ts b/lib/services/recoveryServicesManagement/lib/operations/index.d.ts index a7b827aed1..870c6183fa 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/index.d.ts +++ b/lib/services/recoveryServicesManagement/lib/operations/index.d.ts @@ -12,323 +12,6 @@ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationRes import * as models from '../models'; -/** - * @class - * BackupVaultConfigs - * __NOTE__: An instance of this class is automatically created for an - * instance of the RecoveryServicesClient. - */ -export interface BackupVaultConfigs { - - - /** - * Fetches vault config. - * - * @param {string} resourceGroupName The name of the resource group where the - * recovery services vault is present. - * - * @param {string} vaultName The name of the recovery services vault. - * - * @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} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - getWithHttpOperationResponse(resourceGroupName: string, vaultName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Fetches vault config. - * - * @param {string} resourceGroupName The name of the resource group where the - * recovery services vault is present. - * - * @param {string} vaultName The name of the recovery services vault. - * - * @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 {BackupVaultConfig} - 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. - * - * {BackupVaultConfig} [result] - The deserialized result object if an error did not occur. - * See {@link BackupVaultConfig} 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. - */ - get(resourceGroupName: string, vaultName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, vaultName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, vaultName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Updates vault config model type. - * - * @param {string} resourceGroupName The name of the resource group where the - * recovery services vault is present. - * - * @param {string} vaultName The name of the recovery services vault. - * - * @param {object} backupVaultConfig Backup vault config. - * - * @param {string} [backupVaultConfig.storageType] Storage type. Possible - * values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * - * @param {string} [backupVaultConfig.storageTypeState] Locked or Unlocked. - * Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' - * - * @param {string} [backupVaultConfig.enhancedSecurityState] Enabled or - * Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' - * - * @param {string} [backupVaultConfig.eTag] Optional ETag. - * - * @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} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - updateWithHttpOperationResponse(resourceGroupName: string, vaultName: string, backupVaultConfig: models.BackupVaultConfig, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Updates vault config model type. - * - * @param {string} resourceGroupName The name of the resource group where the - * recovery services vault is present. - * - * @param {string} vaultName The name of the recovery services vault. - * - * @param {object} backupVaultConfig Backup vault config. - * - * @param {string} [backupVaultConfig.storageType] Storage type. Possible - * values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * - * @param {string} [backupVaultConfig.storageTypeState] Locked or Unlocked. - * Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' - * - * @param {string} [backupVaultConfig.enhancedSecurityState] Enabled or - * Disabled. Possible values include: 'Invalid', 'Enabled', 'Disabled' - * - * @param {string} [backupVaultConfig.eTag] Optional ETag. - * - * @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 {BackupVaultConfig} - 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. - * - * {BackupVaultConfig} [result] - The deserialized result object if an error did not occur. - * See {@link BackupVaultConfig} 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. - */ - update(resourceGroupName: string, vaultName: string, backupVaultConfig: models.BackupVaultConfig, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, vaultName: string, backupVaultConfig: models.BackupVaultConfig, callback: ServiceCallback): void; - update(resourceGroupName: string, vaultName: string, backupVaultConfig: models.BackupVaultConfig, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * BackupStorageConfigs - * __NOTE__: An instance of this class is automatically created for an - * instance of the RecoveryServicesClient. - */ -export interface BackupStorageConfigs { - - - /** - * Fetches resource storage config. - * - * @param {string} resourceGroupName The name of the resource group where the - * recovery services vault is present. - * - * @param {string} vaultName The name of the recovery services vault. - * - * @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} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - getWithHttpOperationResponse(resourceGroupName: string, vaultName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Fetches resource storage config. - * - * @param {string} resourceGroupName The name of the resource group where the - * recovery services vault is present. - * - * @param {string} vaultName The name of the recovery services vault. - * - * @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 {BackupStorageConfig} - 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. - * - * {BackupStorageConfig} [result] - The deserialized result object if an error did not occur. - * See {@link BackupStorageConfig} 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. - */ - get(resourceGroupName: string, vaultName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, vaultName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, vaultName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * Updates vault storage model type. - * - * @param {string} resourceGroupName The name of the resource group where the - * recovery services vault is present. - * - * @param {string} vaultName The name of the recovery services vault. - * - * @param {object} backupStorageConfig Backup storage config. - * - * @param {string} [backupStorageConfig.storageModelType] Storage model type. - * Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * - * @param {string} [backupStorageConfig.storageType] Storage type. Possible - * values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * - * @param {string} [backupStorageConfig.storageTypeState] Locked or Unlocked. - * Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' - * - * @param {string} [backupStorageConfig.eTag] Optional ETag. - * - * @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} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - updateWithHttpOperationResponse(resourceGroupName: string, vaultName: string, backupStorageConfig: models.BackupStorageConfig, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * Updates vault storage model type. - * - * @param {string} resourceGroupName The name of the resource group where the - * recovery services vault is present. - * - * @param {string} vaultName The name of the recovery services vault. - * - * @param {object} backupStorageConfig Backup storage config. - * - * @param {string} [backupStorageConfig.storageModelType] Storage model type. - * Possible values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * - * @param {string} [backupStorageConfig.storageType] Storage type. Possible - * values include: 'Invalid', 'GeoRedundant', 'LocallyRedundant' - * - * @param {string} [backupStorageConfig.storageTypeState] Locked or Unlocked. - * Once a machine is registered against a resource, the storageTypeState is - * always Locked. Possible values include: 'Invalid', 'Locked', 'Unlocked' - * - * @param {string} [backupStorageConfig.eTag] Optional ETag. - * - * @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. - */ - update(resourceGroupName: string, vaultName: string, backupStorageConfig: models.BackupStorageConfig, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, vaultName: string, backupStorageConfig: models.BackupStorageConfig, callback: ServiceCallback): void; - update(resourceGroupName: string, vaultName: string, backupStorageConfig: models.BackupStorageConfig, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - /** * @class * VaultCertificates @@ -339,7 +22,7 @@ export interface VaultCertificates { /** - * Upload a certificate for a resource. + * Uploads a certificate for a resource. * * @param {string} resourceGroupName The name of the resource group where the * recovery services vault is present. @@ -374,7 +57,7 @@ export interface VaultCertificates { createWithHttpOperationResponse(resourceGroupName: string, vaultName: string, certificateName: string, certificateRequest: models.CertificateRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Upload a certificate for a resource. + * Uploads a certificate for a resource. * * @param {string} resourceGroupName The name of the resource group where the * recovery services vault is present. @@ -919,7 +602,7 @@ export interface Vaults { * @param {string} vault.sku.name The Sku name. Possible values include: * 'Standard', 'RS0' * - * @param {string} vault.location Resource location. + * @param {string} [vault.location] Resource location. * * @param {object} [vault.tags] Resource tags. * @@ -934,7 +617,7 @@ export interface Vaults { * * @reject {Error|ServiceError} - The error object. */ - updateWithHttpOperationResponse(resourceGroupName: string, vaultName: string, vault: models.Vault, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + updateWithHttpOperationResponse(resourceGroupName: string, vaultName: string, vault: models.PatchVault, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** * Updates the vault. @@ -955,7 +638,7 @@ export interface Vaults { * @param {string} vault.sku.name The Sku name. Possible values include: * 'Standard', 'RS0' * - * @param {string} vault.location Resource location. + * @param {string} [vault.location] Resource location. * * @param {object} [vault.tags] Resource tags. * @@ -986,9 +669,123 @@ export interface Vaults { * * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. */ - update(resourceGroupName: string, vaultName: string, vault: models.Vault, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, vaultName: string, vault: models.Vault, callback: ServiceCallback): void; - update(resourceGroupName: string, vaultName: string, vault: models.Vault, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + update(resourceGroupName: string, vaultName: string, vault: models.PatchVault, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + update(resourceGroupName: string, vaultName: string, vault: models.PatchVault, callback: ServiceCallback): void; + update(resourceGroupName: string, vaultName: string, vault: models.PatchVault, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Fetches all the resources of the specified type in the subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listBySubscriptionIdNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Fetches all the resources of the specified type in the subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {VaultList} - 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. + * + * {VaultList} [result] - The deserialized result object if an error did not occur. + * See {@link VaultList} 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. + */ + listBySubscriptionIdNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listBySubscriptionIdNext(nextPageLink: string, callback: ServiceCallback): void; + listBySubscriptionIdNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + + /** + * Retrieve a list of Vaults. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Retrieve a list of Vaults. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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 {VaultList} - 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. + * + * {VaultList} [result] - The deserialized result object if an error did not occur. + * See {@link VaultList} 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. + */ + listByResourceGroupNext(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; } /** @@ -1189,8 +986,8 @@ export interface VaultExtendedInfoOperations { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -1202,7 +999,8 @@ export interface VaultExtendedInfoOperations { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * @@ -1227,8 +1025,8 @@ export interface VaultExtendedInfoOperations { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -1240,7 +1038,8 @@ export interface VaultExtendedInfoOperations { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * @@ -1285,8 +1084,8 @@ export interface VaultExtendedInfoOperations { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -1298,7 +1097,8 @@ export interface VaultExtendedInfoOperations { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * @@ -1323,8 +1123,8 @@ export interface VaultExtendedInfoOperations { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -1336,7 +1136,8 @@ export interface VaultExtendedInfoOperations { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * diff --git a/lib/services/recoveryServicesManagement/lib/operations/index.js b/lib/services/recoveryServicesManagement/lib/operations/index.js index bd3fe4b1c9..128e63656c 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/index.js +++ b/lib/services/recoveryServicesManagement/lib/operations/index.js @@ -14,8 +14,6 @@ 'use strict'; -exports.BackupVaultConfigs = require('./backupVaultConfigs'); -exports.BackupStorageConfigs = require('./backupStorageConfigs'); exports.VaultCertificates = require('./vaultCertificates'); exports.RegisteredIdentities = require('./registeredIdentities'); exports.ReplicationUsages = require('./replicationUsages'); diff --git a/lib/services/recoveryServicesManagement/lib/operations/operations.js b/lib/services/recoveryServicesManagement/lib/operations/operations.js index d110ea67c6..c9f3816497 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/operations.js +++ b/lib/services/recoveryServicesManagement/lib/operations/operations.js @@ -46,9 +46,11 @@ function _list(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -60,7 +62,7 @@ function _list(options, callback) { let baseUrl = this.client.baseUri; let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'providers/Microsoft.RecoveryServices/operations'; let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } diff --git a/lib/services/recoveryServicesManagement/lib/operations/registeredIdentities.js b/lib/services/recoveryServicesManagement/lib/operations/registeredIdentities.js index 37a16c032c..5f7bcd5a37 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/registeredIdentities.js +++ b/lib/services/recoveryServicesManagement/lib/operations/registeredIdentities.js @@ -51,12 +51,14 @@ function _deleteMethod(resourceGroupName, vaultName, identityName, options, call if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -81,7 +83,7 @@ function _deleteMethod(resourceGroupName, vaultName, identityName, options, call requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); requestUrl = requestUrl.replace('{identityName}', encodeURIComponent(identityName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } diff --git a/lib/services/recoveryServicesManagement/lib/operations/replicationUsages.js b/lib/services/recoveryServicesManagement/lib/operations/replicationUsages.js index 898ddfa37e..c6b104c021 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/replicationUsages.js +++ b/lib/services/recoveryServicesManagement/lib/operations/replicationUsages.js @@ -50,12 +50,14 @@ function _list(resourceGroupName, vaultName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -76,7 +78,7 @@ function _list(resourceGroupName, vaultName, options, callback) { requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } diff --git a/lib/services/recoveryServicesManagement/lib/operations/usages.js b/lib/services/recoveryServicesManagement/lib/operations/usages.js index 2f03aff4e9..2719a97ae3 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/usages.js +++ b/lib/services/recoveryServicesManagement/lib/operations/usages.js @@ -50,12 +50,14 @@ function _listByVaults(resourceGroupName, vaultName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -76,7 +78,7 @@ function _listByVaults(resourceGroupName, vaultName, options, callback) { requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } diff --git a/lib/services/recoveryServicesManagement/lib/operations/vaultCertificates.js b/lib/services/recoveryServicesManagement/lib/operations/vaultCertificates.js index db1d8d2b74..e88542e04a 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/vaultCertificates.js +++ b/lib/services/recoveryServicesManagement/lib/operations/vaultCertificates.js @@ -15,7 +15,7 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Upload a certificate for a resource. + * Uploads a certificate for a resource. * * @param {string} resourceGroupName The name of the resource group where the * recovery services vault is present. @@ -65,12 +65,14 @@ function _create(resourceGroupName, vaultName, certificateName, certificateReque if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -98,7 +100,7 @@ function _create(resourceGroupName, vaultName, certificateName, certificateReque requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); requestUrl = requestUrl.replace('{certificateName}', encodeURIComponent(certificateName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -206,7 +208,7 @@ class VaultCertificates { } /** - * Upload a certificate for a resource. + * Uploads a certificate for a resource. * * @param {string} resourceGroupName The name of the resource group where the * recovery services vault is present. @@ -253,7 +255,7 @@ class VaultCertificates { } /** - * Upload a certificate for a resource. + * Uploads a certificate for a resource. * * @param {string} resourceGroupName The name of the resource group where the * recovery services vault is present. diff --git a/lib/services/recoveryServicesManagement/lib/operations/vaultExtendedInfoOperations.js b/lib/services/recoveryServicesManagement/lib/operations/vaultExtendedInfoOperations.js index 4da23bd74c..a1bcc17f19 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/vaultExtendedInfoOperations.js +++ b/lib/services/recoveryServicesManagement/lib/operations/vaultExtendedInfoOperations.js @@ -51,12 +51,14 @@ function _get(resourceGroupName, vaultName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -77,7 +79,7 @@ function _get(resourceGroupName, vaultName, options, callback) { requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -167,8 +169,8 @@ function _get(resourceGroupName, vaultName, options, callback) { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -180,7 +182,8 @@ function _get(resourceGroupName, vaultName, options, callback) { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * @@ -213,7 +216,6 @@ function _createOrUpdate(resourceGroupName, vaultName, resourceResourceExtendedI if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -225,6 +227,9 @@ function _createOrUpdate(resourceGroupName, vaultName, resourceResourceExtendedI if (vaultName === null || vaultName === undefined || typeof vaultName.valueOf() !== 'string') { throw new Error('vaultName cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceResourceExtendedInfoDetails === null || resourceResourceExtendedInfoDetails === undefined) { throw new Error('resourceResourceExtendedInfoDetails cannot be null or undefined.'); } @@ -242,7 +247,7 @@ function _createOrUpdate(resourceGroupName, vaultName, resourceResourceExtendedI requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -346,8 +351,8 @@ function _createOrUpdate(resourceGroupName, vaultName, resourceResourceExtendedI * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -359,7 +364,8 @@ function _createOrUpdate(resourceGroupName, vaultName, resourceResourceExtendedI * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * @@ -392,7 +398,6 @@ function _update(resourceGroupName, vaultName, resourceResourceExtendedInfoDetai if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { @@ -404,6 +409,9 @@ function _update(resourceGroupName, vaultName, resourceResourceExtendedInfoDetai if (vaultName === null || vaultName === undefined || typeof vaultName.valueOf() !== 'string') { throw new Error('vaultName cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceResourceExtendedInfoDetails === null || resourceResourceExtendedInfoDetails === undefined) { throw new Error('resourceResourceExtendedInfoDetails cannot be null or undefined.'); } @@ -421,7 +429,7 @@ function _update(resourceGroupName, vaultName, resourceResourceExtendedInfoDetai requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -627,8 +635,8 @@ class VaultExtendedInfoOperations { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -640,7 +648,8 @@ class VaultExtendedInfoOperations { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * @@ -677,8 +686,8 @@ class VaultExtendedInfoOperations { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -690,7 +699,8 @@ class VaultExtendedInfoOperations { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * @@ -750,8 +760,8 @@ class VaultExtendedInfoOperations { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -763,7 +773,8 @@ class VaultExtendedInfoOperations { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * @@ -800,8 +811,8 @@ class VaultExtendedInfoOperations { * * @param {string} vaultName The name of the recovery services vault. * - * @param {object} resourceResourceExtendedInfoDetails - * resourceResourceExtendedInfoDetails + * @param {object} resourceResourceExtendedInfoDetails Details of + * ResourceExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.integrityKey] Integrity * key. @@ -813,7 +824,8 @@ class VaultExtendedInfoOperations { * [resourceResourceExtendedInfoDetails.encryptionKeyThumbprint] Encryption key * thumbprint. * - * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm. + * @param {string} [resourceResourceExtendedInfoDetails.algorithm] Algorithm + * for Vault ExtendedInfo * * @param {string} [resourceResourceExtendedInfoDetails.eTag] Optional ETag. * diff --git a/lib/services/recoveryServicesManagement/lib/operations/vaults.js b/lib/services/recoveryServicesManagement/lib/operations/vaults.js index eaf7272b9c..581528f49f 100644 --- a/lib/services/recoveryServicesManagement/lib/operations/vaults.js +++ b/lib/services/recoveryServicesManagement/lib/operations/vaults.js @@ -45,12 +45,14 @@ function _listBySubscriptionId(options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -63,7 +65,7 @@ function _listBySubscriptionId(options, callback) { let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/vaults'; requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -179,12 +181,14 @@ function _listByResourceGroup(resourceGroupName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -201,7 +205,7 @@ function _listByResourceGroup(resourceGroupName, options, callback) { requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -319,12 +323,14 @@ function _get(resourceGroupName, vaultName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -345,7 +351,7 @@ function _get(resourceGroupName, vaultName, options, callback) { requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -478,12 +484,14 @@ function _createOrUpdate(resourceGroupName, vaultName, vault, options, callback) if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -507,7 +515,7 @@ function _createOrUpdate(resourceGroupName, vaultName, vault, options, callback) requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -655,12 +663,14 @@ function _deleteMethod(resourceGroupName, vaultName, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -681,7 +691,7 @@ function _deleteMethod(resourceGroupName, vaultName, options, callback) { requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -765,7 +775,7 @@ function _deleteMethod(resourceGroupName, vaultName, options, callback) { * @param {string} vault.sku.name The Sku name. Possible values include: * 'Standard', 'RS0' * - * @param {string} vault.location Resource location. + * @param {string} [vault.location] Resource location. * * @param {object} [vault.tags] Resource tags. * @@ -797,12 +807,14 @@ function _update(resourceGroupName, vaultName, vault, options, callback) { if (!callback) { throw new Error('callback cannot be null.'); } - let apiVersion = '2016-06-01'; // Validate try { if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); } @@ -826,7 +838,7 @@ function _update(resourceGroupName, vaultName, vault, options, callback) { requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); requestUrl = requestUrl.replace('{vaultName}', encodeURIComponent(vaultName)); let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(apiVersion)); + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); if (queryParameters.length > 0) { requestUrl += '?' + queryParameters.join('&'); } @@ -856,7 +868,7 @@ function _update(resourceGroupName, vaultName, vault, options, callback) { let requestModel = null; try { if (vault !== null && vault !== undefined) { - let requestModelMapper = new client.models['Vault']().mapper(); + let requestModelMapper = new client.models['PatchVault']().mapper(); requestModel = client.serialize(requestModelMapper, vault, 'vault'); requestContent = JSON.stringify(requestModel); } @@ -939,6 +951,260 @@ function _update(resourceGroupName, vaultName, vault, options, callback) { }); } +/** + * Fetches all the resources of the specified type in the subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link VaultList} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listBySubscriptionIdNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['VaultList']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** + * Retrieve a list of Vaults. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link VaultList} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _listByResourceGroupNext(nextPageLink, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') { + throw new Error('nextPageLink cannot be null or undefined and it must be of type string.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let requestUrl = '{nextLink}'; + requestUrl = requestUrl.replace('{nextLink}', nextPageLink); + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'GET'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + httpRequest.body = null; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; + if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; + if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['CloudError']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['VaultList']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** Class representing a Vaults. */ class Vaults { /** @@ -953,6 +1219,8 @@ class Vaults { this._createOrUpdate = _createOrUpdate; this._deleteMethod = _deleteMethod; this._update = _update; + this._listBySubscriptionIdNext = _listBySubscriptionIdNext; + this._listByResourceGroupNext = _listByResourceGroupNext; } /** @@ -1429,7 +1697,7 @@ class Vaults { * @param {string} vault.sku.name The Sku name. Possible values include: * 'Standard', 'RS0' * - * @param {string} vault.location Resource location. + * @param {string} [vault.location] Resource location. * * @param {object} [vault.tags] Resource tags. * @@ -1477,7 +1745,7 @@ class Vaults { * @param {string} vault.sku.name The Sku name. Possible values include: * 'Standard', 'RS0' * - * @param {string} vault.location Resource location. + * @param {string} [vault.location] Resource location. * * @param {object} [vault.tags] Resource tags. * @@ -1528,6 +1796,174 @@ class Vaults { } } + /** + * Fetches all the resources of the specified type in the subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listBySubscriptionIdNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listBySubscriptionIdNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Fetches all the resources of the specified type in the subscription. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {VaultList} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link VaultList} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listBySubscriptionIdNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listBySubscriptionIdNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listBySubscriptionIdNext(nextPageLink, options, optionalCallback); + } + } + + /** + * Retrieve a list of Vaults. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @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} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + listByResourceGroupNextWithHttpOperationResponse(nextPageLink, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._listByResourceGroupNext(nextPageLink, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Retrieve a list of Vaults. + * + * @param {string} nextPageLink The NextLink from the previous successful call + * to List operation. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|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 {VaultList} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link VaultList} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + listByResourceGroupNext(nextPageLink, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._listByResourceGroupNext(nextPageLink, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._listByResourceGroupNext(nextPageLink, options, optionalCallback); + } + } + } module.exports = Vaults; diff --git a/lib/services/recoveryServicesManagement/lib/recoveryServicesClient.d.ts b/lib/services/recoveryServicesManagement/lib/recoveryServicesClient.d.ts index b727ff376d..bd798ed905 100644 --- a/lib/services/recoveryServicesManagement/lib/recoveryServicesClient.d.ts +++ b/lib/services/recoveryServicesManagement/lib/recoveryServicesClient.d.ts @@ -10,9 +10,10 @@ import { ServiceClientCredentials } from 'ms-rest'; import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure'; +import * as models from "./models"; import * as operations from "./operations"; -declare class RecoveryServicesClient extends AzureServiceClient { +export default class RecoveryServicesClient extends AzureServiceClient { /** * Initializes a new instance of the RecoveryServicesClient class. * @constructor @@ -33,11 +34,11 @@ declare class RecoveryServicesClient extends AzureServiceClient { * * @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 {string} [options.acceptLanguage] - 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 {number} [options.longRunningOperationRetryTimeout] - 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. + * @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); @@ -46,6 +47,8 @@ declare class RecoveryServicesClient extends AzureServiceClient { subscriptionId: string; + apiVersion: string; + acceptLanguage: string; longRunningOperationRetryTimeout: number; @@ -53,8 +56,6 @@ declare class RecoveryServicesClient extends AzureServiceClient { generateClientRequestId: boolean; // Operation groups - backupVaultConfigs: operations.BackupVaultConfigs; - backupStorageConfigs: operations.BackupStorageConfigs; vaultCertificates: operations.VaultCertificates; registeredIdentities: operations.RegisteredIdentities; replicationUsages: operations.ReplicationUsages; @@ -64,4 +65,4 @@ declare class RecoveryServicesClient extends AzureServiceClient { usages: operations.Usages; } -export = RecoveryServicesClient; +export { RecoveryServicesClient, models as RecoveryServicesModels }; diff --git a/lib/services/recoveryServicesManagement/lib/recoveryServicesClient.js b/lib/services/recoveryServicesManagement/lib/recoveryServicesClient.js index 8182028f62..b5c1f52cb8 100644 --- a/lib/services/recoveryServicesManagement/lib/recoveryServicesClient.js +++ b/lib/services/recoveryServicesManagement/lib/recoveryServicesClient.js @@ -34,9 +34,9 @@ class RecoveryServicesClient extends ServiceClient { * @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. + * @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) { @@ -50,6 +50,7 @@ class RecoveryServicesClient extends ServiceClient { super(credentials, options); + this.apiVersion = '2016-06-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; @@ -71,8 +72,6 @@ class RecoveryServicesClient extends ServiceClient { if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } - this.backupVaultConfigs = new operations.BackupVaultConfigs(this); - this.backupStorageConfigs = new operations.BackupStorageConfigs(this); this.vaultCertificates = new operations.VaultCertificates(this); this.registeredIdentities = new operations.RegisteredIdentities(this); this.replicationUsages = new operations.ReplicationUsages(this); @@ -87,3 +86,6 @@ class RecoveryServicesClient extends ServiceClient { } module.exports = RecoveryServicesClient; +module.exports['default'] = RecoveryServicesClient; +module.exports.RecoveryServicesClient = RecoveryServicesClient; +module.exports.RecoveryServicesModels = models; diff --git a/lib/services/recoveryServicesManagement/package.json b/lib/services/recoveryServicesManagement/package.json index 40800345d5..6fa33b640f 100644 --- a/lib/services/recoveryServicesManagement/package.json +++ b/lib/services/recoveryServicesManagement/package.json @@ -1,35 +1,25 @@ { "name": "azure-arm-recoveryservices", "author": "Microsoft Corporation", - "contributors": [ - "Bangari, Anudeep " - ], + "description": "RecoveryServicesClient Library with typescript type definitions for node", "version": "2.1.0-preview", - "description": "Microsoft Azure RecoveryServices Management Client Library for node", - "tags": [ - "azure", - "sdk" - ], + "dependencies": { + "ms-rest": "^2.3.3", + "ms-rest-azure": "^2.5.5" + }, "keywords": [ "node", "azure" ], + "license": "MIT", "main": "./lib/recoveryServicesClient.js", "types": "./lib/recoveryServicesClient.d.ts", - "license": "MIT", - "dependencies": { - "ms-rest": "^2.3.0", - "ms-rest-azure": "^2.5.0" - }, - "homepage": "http://github.com/Azure/azure-sdk-for-node", + "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/recoveryServicesManagement", "repository": { "type": "git", - "url": "git@github.com:Azure/azure-sdk-for-node.git" + "url": "https://github.com/azure/azure-sdk-for-node.git" }, "bugs": { - "url": "http://github.com/Azure/azure-sdk-for-node/issues" - }, - "scripts": { - "test": "npm -s run-script jshint" + "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +}