This repository was archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 563
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2715 from Azure/restapi_auto_sql/resource-manager
[AutoPR] sql/resource-manager
- Loading branch information
Showing
16 changed files
with
5,490 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
lib/services/sqlManagement2/lib/models/sensitivityLabel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; |
69 changes: 69 additions & 0 deletions
69
lib/services/sqlManagement2/lib/models/sensitivityLabelListResult.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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
81
lib/services/sqlManagement2/lib/models/shortTermRetentionPolicy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; |
Oops, something went wrong.