Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions lib/services/recoveryServicesManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -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.
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.
81 changes: 43 additions & 38 deletions lib/services/recoveryServicesManagement/README.md
Original file line number Diff line number Diff line change
@@ -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)
---
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 = "<Subscription_Id>";
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)
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,18 @@

'use strict';

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

/**
* Details of the certificate to be uploaded to the vault.
*
*/
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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand All @@ -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'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,15 @@

'use strict';

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

/**
* Class to represent shoebox properties in json client discovery.
*
*/
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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,14 @@

'use strict';

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

/**
* Class to represent shoebox service specification in json client discovery.
*
*/
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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -38,7 +38,7 @@ class ClientDiscoveryResponse extends Array {
modelProperties: {
value: {
required: false,
serializedName: 'Value',
serializedName: '',
type: {
name: 'Sequence',
element: {
Expand All @@ -53,7 +53,7 @@ class ClientDiscoveryResponse extends Array {
},
nextLink: {
required: false,
serializedName: 'NextLink',
serializedName: 'nextLink',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,29 @@

'use strict';

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

/**
* Available operation details.
*
*/
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() {
Expand All @@ -56,29 +54,29 @@ 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'
}
},
origin: {
required: false,
serializedName: 'Origin',
serializedName: 'origin',
type: {
name: 'String'
}
},
properties: {
required: false,
serializedName: 'Properties',
serializedName: 'properties',
type: {
name: 'Composite',
className: 'ClientDiscoveryForProperties'
Expand Down
Loading