Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR] sql/resource-manager #2715

Merged
12 commits merged into from
Jul 19, 2018
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
40 changes: 40 additions & 0 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2862,6 +2862,20 @@ export interface ManagedDatabaseUpdate {
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the SensitivityLabel class.
* @constructor
* A sensitivity label.
*
* @member {string} [labelName] The label name.
* @member {string} [informationType] The information type.
*/
export interface SensitivityLabel extends ProxyResource {
labelName?: string;
informationType?: string;
}

/**
* @class
* Initializes a new instance of the AutomaticTuningServerOptions class.
Expand Down Expand Up @@ -4123,6 +4137,20 @@ export interface BackupShortTermRetentionPolicy extends ProxyResource {
retentionDays?: number;
}

/**
* @class
* Initializes a new instance of the TdeCertificate class.
* @constructor
* A TDE certificate that can be uploaded into a server.
*
* @member {string} privateBlob The base64 encoded certificate private blob.
* @member {string} [certPassword] The certificate password.
*/
export interface TdeCertificate extends ProxyResource {
privateBlob: string;
certPassword?: string;
}


/**
* @class
Expand Down Expand Up @@ -4627,6 +4655,18 @@ export interface ManagedDatabaseListResult extends Array<ManagedDatabase> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the SensitivityLabelListResult class.
* @constructor
* A list of sensitivity labels.
*
* @member {string} [nextLink] Link to retrieve next page of results.
*/
export interface SensitivityLabelListResult extends Array<SensitivityLabel> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ServerDnsAliasListResult class.
Expand Down
3 changes: 3 additions & 0 deletions lib/services/sqlManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ exports.BackupLongTermRetentionPolicy = require('./backupLongTermRetentionPolicy
exports.CompleteDatabaseRestoreDefinition = require('./completeDatabaseRestoreDefinition');
exports.ManagedDatabase = require('./managedDatabase');
exports.ManagedDatabaseUpdate = require('./managedDatabaseUpdate');
exports.SensitivityLabel = require('./sensitivityLabel');
exports.AutomaticTuningServerOptions = require('./automaticTuningServerOptions');
exports.ServerAutomaticTuning = require('./serverAutomaticTuning');
exports.ServerDnsAlias = require('./serverDnsAlias');
Expand Down Expand Up @@ -156,6 +157,7 @@ exports.PartnerRegionInfo = require('./partnerRegionInfo');
exports.ManagedInstancePairInfo = require('./managedInstancePairInfo');
exports.InstanceFailoverGroup = require('./instanceFailoverGroup');
exports.BackupShortTermRetentionPolicy = require('./backupShortTermRetentionPolicy');
exports.TdeCertificate = require('./tdeCertificate');
exports.RecoverableDatabaseListResult = require('./recoverableDatabaseListResult');
exports.RestorableDroppedDatabaseListResult = require('./restorableDroppedDatabaseListResult');
exports.ServerListResult = require('./serverListResult');
Expand Down Expand Up @@ -201,6 +203,7 @@ exports.JobTargetGroupListResult = require('./jobTargetGroupListResult');
exports.JobVersionListResult = require('./jobVersionListResult');
exports.LongTermRetentionBackupListResult = require('./longTermRetentionBackupListResult');
exports.ManagedDatabaseListResult = require('./managedDatabaseListResult');
exports.SensitivityLabelListResult = require('./sensitivityLabelListResult');
exports.ServerDnsAliasListResult = require('./serverDnsAliasListResult');
exports.RestorePointListResult = require('./restorePointListResult');
exports.DatabaseOperationListResult = require('./databaseOperationListResult');
Expand Down
88 changes: 88 additions & 0 deletions lib/services/sqlManagement2/lib/models/sensitivityLabel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

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

/**
* A sensitivity label.
*
* @extends models['ProxyResource']
*/
class SensitivityLabel extends models['ProxyResource'] {
/**
* Create a SensitivityLabel.
* @member {string} [labelName] The label name.
* @member {string} [informationType] The information type.
*/
constructor() {
super();
}

/**
* Defines the metadata of SensitivityLabel
*
* @returns {object} metadata of SensitivityLabel
*
*/
mapper() {
return {
required: false,
serializedName: 'SensitivityLabel',
type: {
name: 'Composite',
className: 'SensitivityLabel',
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'
}
},
labelName: {
required: false,
serializedName: 'properties.labelName',
type: {
name: 'String'
}
},
informationType: {
required: false,
serializedName: 'properties.informationType',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = SensitivityLabel;
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* A list of sensitivity labels.
*/
class SensitivityLabelListResult extends Array {
/**
* Create a SensitivityLabelListResult.
* @member {string} [nextLink] Link to retrieve next page of results.
*/
constructor() {
super();
}

/**
* Defines the metadata of SensitivityLabelListResult
*
* @returns {object} metadata of SensitivityLabelListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'SensitivityLabelListResult',
type: {
name: 'Composite',
className: 'SensitivityLabelListResult',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'SensitivityLabelElementType',
type: {
name: 'Composite',
className: 'SensitivityLabel'
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = SensitivityLabelListResult;
81 changes: 81 additions & 0 deletions lib/services/sqlManagement2/lib/models/shortTermRetentionPolicy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

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

/**
* A short term retention policy resource.
*
* @extends models['ProxyResource']
*/
class ShortTermRetentionPolicy extends models['ProxyResource'] {
/**
* Create a ShortTermRetentionPolicy.
* @member {number} [retentionDays] The backup retention period in days. This
* is how many days Point-in-Time Restore will be supported.
*/
constructor() {
super();
}

/**
* Defines the metadata of ShortTermRetentionPolicy
*
* @returns {object} metadata of ShortTermRetentionPolicy
*
*/
mapper() {
return {
required: false,
serializedName: 'ShortTermRetentionPolicy',
type: {
name: 'Composite',
className: 'ShortTermRetentionPolicy',
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'
}
},
retentionDays: {
required: false,
serializedName: 'properties.retentionDays',
type: {
name: 'Number'
}
}
}
}
};
}
}

module.exports = ShortTermRetentionPolicy;
Loading