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
8 changes: 4 additions & 4 deletions lib/services/recoveryServicesBackupManagement/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ npm install azure-arm-recoveryservicesbackup

## How to use

### Authentication, client creation and list backupJobs as an example.
### Authentication, client creation and get protectionIntent as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
Expand All @@ -28,9 +28,9 @@ msRestAzure.interactiveLogin().then((creds) => {
const client = new RecoveryServicesBackupClient(creds, subscriptionId);
const vaultName = "testvaultName";
const resourceGroupName = "testresourceGroupName";
const filter = "testfilter";
const skipToken = "testskipToken";
return client.backupJobs.list(vaultName, resourceGroupName, filter, skipToken).then((result) => {
const fabricName = "testfabricName";
const intentObjectName = "testintentObjectName";
return client.protectionIntent.get(vaultName, resourceGroupName, fabricName, intentObjectName).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ const models = require('./index');
class AzureFileShareProtectionPolicy extends models['ProtectionPolicy'] {
/**
* Create a AzureFileShareProtectionPolicy.
* @member {string} [workLoadType] Type of workload for the backup management
* @member {string} [workLoadType] Type of workload for the backup
* management. Possible values include: 'Invalid', 'VM', 'FileFolder',
* 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM',
* 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase',
* 'AzureFileShare', 'SAPHanaDatabase'
* @member {object} [schedulePolicy] Backup schedule specified as part of
* backup policy.
* @member {string} [schedulePolicy.schedulePolicyType] Polymorphic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Azure IaaS VM workload-specific additional information for job.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Azure Storage workload-specific additional information for job.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class AzureVmWorkloadProtectableItem extends models['WorkloadProtectableItem'] {
* @member {string} [serverName] Host/Cluster Name for instance or AG
* @member {boolean} [isAutoProtectable] Indicates if protectable item is
* auto-protectable
* @member {boolean} [isAutoProtected] Indicates if protectable item is
* auto-protected
* @member {number} [subinquireditemcount] For instance or AG, indicates
* number of DB's present
* @member {number} [subprotectableitemcount] For instance or AG, indicates
Expand Down Expand Up @@ -128,6 +130,13 @@ class AzureVmWorkloadProtectableItem extends models['WorkloadProtectableItem'] {
name: 'Boolean'
}
},
isAutoProtected: {
required: false,
serializedName: 'isAutoProtected',
type: {
name: 'Boolean'
}
},
subinquireditemcount: {
required: false,
serializedName: 'subinquireditemcount',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ const models = require('./index');
class AzureVmWorkloadProtectionPolicy extends models['ProtectionPolicy'] {
/**
* Create a AzureVmWorkloadProtectionPolicy.
* @member {string} [workLoadType] Type of workload for the backup management
* @member {string} [workLoadType] Type of workload for the backup
* management. Possible values include: 'Invalid', 'VM', 'FileFolder',
* 'AzureSqlDb', 'SQLDB', 'Exchange', 'Sharepoint', 'VMwareVM',
* 'SystemState', 'Client', 'GenericDataSource', 'SQLDataBase',
* 'AzureFileShare', 'SAPHanaDatabase'
* @member {object} [settings] Common settings for the backup management
* @member {string} [settings.timeZone] TimeZone optional input as string.
* For example: TimeZone = "Pacific Standard Time".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ class AzureVmWorkloadSAPHanaDatabaseProtectableItem extends models['AzureVmWorkl
name: 'Boolean'
}
},
isAutoProtected: {
required: false,
serializedName: 'isAutoProtected',
type: {
name: 'Boolean'
}
},
subinquireditemcount: {
required: false,
serializedName: 'subinquireditemcount',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ class AzureVmWorkloadSAPHanaSystemProtectableItem extends models['AzureVmWorkloa
name: 'Boolean'
}
},
isAutoProtected: {
required: false,
serializedName: 'isAutoProtected',
type: {
name: 'Boolean'
}
},
subinquireditemcount: {
required: false,
serializedName: 'subinquireditemcount',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ class AzureVmWorkloadSQLAvailabilityGroupProtectableItem extends models['AzureVm
name: 'Boolean'
}
},
isAutoProtected: {
required: false,
serializedName: 'isAutoProtected',
type: {
name: 'Boolean'
}
},
subinquireditemcount: {
required: false,
serializedName: 'subinquireditemcount',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ class AzureVmWorkloadSQLDatabaseProtectableItem extends models['AzureVmWorkloadP
name: 'Boolean'
}
},
isAutoProtected: {
required: false,
serializedName: 'isAutoProtected',
type: {
name: 'Boolean'
}
},
subinquireditemcount: {
required: false,
serializedName: 'subinquireditemcount',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ class AzureVmWorkloadSQLInstanceProtectableItem extends models['AzureVmWorkloadP
name: 'Boolean'
}
},
isAutoProtected: {
required: false,
serializedName: 'isAutoProtected',
type: {
name: 'Boolean'
}
},
subinquireditemcount: {
required: false,
serializedName: 'subinquireditemcount',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AzureWorkloadContainer extends models['ProtectionContainer'] {
mapper() {
return {
required: false,
serializedName: 'AzureWorkloadContainer',
serializedName: 'AzureWorkloadBackupRequest',
type: {
name: 'Composite',
polymorphicDiscriminator: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Extended information of the container.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Azure VM workload-specific additional information for job.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Extended info class details
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* The base backup engine class. All workload specific backup engines derive
* from this class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Backup management usages of a vault.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class BackupStatusResponse {
* @member {string} [protectionStatus] Specifies whether the container is
* registered or not. Possible values include: 'Invalid', 'NotProtected',
* 'Protecting', 'Protected', 'ProtectionFailed'
* @member {string} [vaultId] Specifies the arm resource id of the vault
* @member {string} [fabricName] Specifies the fabric name - Azure or AD.
* Possible values include: 'Invalid', 'Azure'
* @member {string} [containerName] Specifies the product specific container
Expand Down Expand Up @@ -57,13 +56,6 @@ class BackupStatusResponse {
name: 'String'
}
},
vaultId: {
required: false,
serializedName: 'vaultId',
type: {
name: 'String'
}
},
fabricName: {
required: false,
serializedName: 'fabricName',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Class to represent shoebox properties in json client discovery.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Class to represent shoebox service specification in json client discovery.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Available operation details.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Daily retention format.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Daily retention schedule.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* This is used to represent the various nodes of the distributed container.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Additional information on the DPM workload-specific job.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Container extended information
*
Expand Down
Loading