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

[AutoPR] sql/resource-manager #2489

Merged
3 commits merged into from
Mar 28, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
88 changes: 88 additions & 0 deletions lib/services/sqlManagement2/lib/models/automaticTuningOptions.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';

/**
* Automatic tuning properties for individual advisors.
*
*/
class AutomaticTuningOptions {
/**
* Create a AutomaticTuningOptions.
* @member {string} [desiredState] Automatic tuning option desired state.
* Possible values include: 'Off', 'On', 'Default'
* @member {string} [actualState] Automatic tuning option actual state.
* Possible values include: 'Off', 'On'
* @member {number} [reasonCode] Reason code if desired and actual state are
* different.
* @member {string} [reasonDesc] Reason description if desired and actual
* state are different. Possible values include: 'Default', 'Disabled',
* 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff',
* 'QueryStoreReadOnly', 'NotSupported'
*/
constructor() {
}

/**
* Defines the metadata of AutomaticTuningOptions
*
* @returns {object} metadata of AutomaticTuningOptions
*
*/
mapper() {
return {
required: false,
serializedName: 'AutomaticTuningOptions',
type: {
name: 'Composite',
className: 'AutomaticTuningOptions',
modelProperties: {
desiredState: {
required: false,
serializedName: 'desiredState',
type: {
name: 'Enum',
allowedValues: [ 'Off', 'On', 'Default' ]
}
},
actualState: {
required: false,
readOnly: true,
serializedName: 'actualState',
type: {
name: 'Enum',
allowedValues: [ 'Off', 'On' ]
}
},
reasonCode: {
required: false,
readOnly: true,
serializedName: 'reasonCode',
type: {
name: 'Number'
}
},
reasonDesc: {
required: false,
readOnly: true,
serializedName: 'reasonDesc',
type: {
name: 'Enum',
allowedValues: [ 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported' ]
}
}
}
}
};
}
}

module.exports = AutomaticTuningOptions;
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* 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';

/**
* Automatic tuning properties for individual advisors.
*
*/
class AutomaticTuningServerOptions {
/**
* Create a AutomaticTuningServerOptions.
* @member {string} [desiredState] Automatic tuning option desired state.
* Possible values include: 'Off', 'On', 'Default'
* @member {string} [actualState] Automatic tuning option actual state.
* Possible values include: 'Off', 'On'
* @member {number} [reasonCode] Reason code if desired and actual state are
* different.
* @member {string} [reasonDesc] Reason description if desired and actual
* state are different. Possible values include: 'Default', 'Disabled',
* 'AutoConfigured'
*/
constructor() {
}

/**
* Defines the metadata of AutomaticTuningServerOptions
*
* @returns {object} metadata of AutomaticTuningServerOptions
*
*/
mapper() {
return {
required: false,
serializedName: 'AutomaticTuningServerOptions',
type: {
name: 'Composite',
className: 'AutomaticTuningServerOptions',
modelProperties: {
desiredState: {
required: false,
serializedName: 'desiredState',
type: {
name: 'Enum',
allowedValues: [ 'Off', 'On', 'Default' ]
}
},
actualState: {
required: false,
readOnly: true,
serializedName: 'actualState',
type: {
name: 'Enum',
allowedValues: [ 'Off', 'On' ]
}
},
reasonCode: {
required: false,
readOnly: true,
serializedName: 'reasonCode',
type: {
name: 'Number'
}
},
reasonDesc: {
required: false,
readOnly: true,
serializedName: 'reasonDesc',
type: {
name: 'Enum',
allowedValues: [ 'Default', 'Disabled', 'AutoConfigured' ]
}
}
}
}
};
}
}

module.exports = AutomaticTuningServerOptions;
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@
const models = require('./index');

/**
* A backup long term retention policy
* A long term retention policy.
*
* @extends models['ProxyResource']
*/
class BackupLongTermRetentionPolicy extends models['ProxyResource'] {
/**
* Create a BackupLongTermRetentionPolicy.
* @member {string} [location] The geo-location where the resource lives
* @member {string} state The status of the backup long term retention
* policy. Possible values include: 'Disabled', 'Enabled'
* @member {string} recoveryServicesBackupPolicyResourceId The azure recovery
* services backup protection policy resource id
* @member {string} [weeklyRetention] The weekly retention policy for an LTR
* backup in an ISO 8601 format.
* @member {string} [monthlyRetention] The montly retention policy for an LTR
* backup in an ISO 8601 format.
* @member {string} [yearlyRetention] The yearly retention policy for an LTR
* backup in an ISO 8601 format.
* @member {number} [weekOfYear] The week of year to take the yearly backup
* in an ISO 8601 format.
*/
constructor() {
super();
Expand Down Expand Up @@ -68,28 +71,33 @@ class BackupLongTermRetentionPolicy extends models['ProxyResource'] {
name: 'String'
}
},
location: {
weeklyRetention: {
required: false,
readOnly: true,
serializedName: 'location',
serializedName: 'properties.weeklyRetention',
type: {
name: 'String'
}
},
state: {
required: true,
serializedName: 'properties.state',
monthlyRetention: {
required: false,
serializedName: 'properties.monthlyRetention',
type: {
name: 'Enum',
allowedValues: [ 'Disabled', 'Enabled' ]
name: 'String'
}
},
recoveryServicesBackupPolicyResourceId: {
required: true,
serializedName: 'properties.recoveryServicesBackupPolicyResourceId',
yearlyRetention: {
required: false,
serializedName: 'properties.yearlyRetention',
type: {
name: 'String'
}
},
weekOfYear: {
required: false,
serializedName: 'properties.weekOfYear',
type: {
name: 'Number'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/*
* 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';

/**
* Contains the information necessary to perform a create database restore
* point operation.
*
*/
class CreateDatabaseRestorePointDefinition {
/**
* Create a CreateDatabaseRestorePointDefinition.
* @member {string} restorePointLabel The restore point label to apply
*/
constructor() {
}

/**
* Defines the metadata of CreateDatabaseRestorePointDefinition
*
* @returns {object} metadata of CreateDatabaseRestorePointDefinition
*
*/
mapper() {
return {
required: false,
serializedName: 'CreateDatabaseRestorePointDefinition',
type: {
name: 'Composite',
className: 'CreateDatabaseRestorePointDefinition',
modelProperties: {
restorePointLabel: {
required: true,
serializedName: 'restorePointLabel',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = CreateDatabaseRestorePointDefinition;
49 changes: 39 additions & 10 deletions lib/services/sqlManagement2/lib/models/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ class Database extends models['TrackedResource'] {
* createMode is NonReadableSecondary or OnlineSecondary, this value is
* ignored. To see possible values, query the capabilities API
* (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities)
* referred to by operationId: "Capabilities_ListByLocation.". Possible
* values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'Free',
* 'Stretch', 'DataWarehouse', 'System', 'System2'
* referred to by operationId: "Capabilities_ListByLocation." or use the
* Azure CLI command `az sql db list-editions -l westus --query [].name`.
* Possible values include: 'Web', 'Business', 'Basic', 'Standard',
* 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System',
* 'System2'
* @member {string} [maxSizeBytes] The max size of the database expressed in
* bytes. If createMode is not Default, this value is ignored. To see
* possible values, query the capabilities API
Expand All @@ -111,21 +113,38 @@ class Database extends models['TrackedResource'] {
* requestedServiceObjectiveName. To see possible values, query the
* capabilities API
* (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities)
* referred to by operationId: "Capabilities_ListByLocation."
* referred to by operationId: "Capabilities_ListByLocation." or use the
* Azure CLI command `az sql db list-editions --location <location> --query
* [].supportedServiceLevelObjectives[].name` .
* @member {string} [requestedServiceObjectiveName] The name of the
* configured service level objective of the database. This is the service
* level objective that is in the process of being applied to the database.
* Once successfully updated, it will match the value of
* serviceLevelObjective property. To see possible values, query the
* capabilities API
* (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities)
* referred to by operationId: "Capabilities_ListByLocation.". Possible
* values include: 'Basic', 'S0', 'S1', 'S2', 'S3', 'P1', 'P2', 'P3', 'P4',
* 'P6', 'P11', 'P15', 'System', 'System2', 'ElasticPool'
* referred to by operationId: "Capabilities_ListByLocation." or use the
* Azure CLI command `az sql db list-editions --location <location> --query
* [].supportedServiceLevelObjectives[].name`. Possible values include:
* 'System', 'System0', 'System1', 'System2', 'System3', 'System4',
* 'System2L', 'System3L', 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2',
* 'S3', 'S4', 'S6', 'S7', 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11',
* 'P15', 'PRS1', 'PRS2', 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400',
* 'DW500', 'DW600', 'DW1000', 'DW1200', 'DW1000c', 'DW1500', 'DW1500c',
* 'DW2000', 'DW2000c', 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c',
* 'DW6000c', 'DW7500c', 'DW10000c', 'DW15000c', 'DW30000c', 'DS100',
* 'DS200', 'DS300', 'DS400', 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500',
* 'DS2000', 'ElasticPool'
* @member {string} [serviceLevelObjective] The current service level
* objective of the database. Possible values include: 'Basic', 'S0', 'S1',
* 'S2', 'S3', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'System',
* 'System2', 'ElasticPool'
* objective of the database. Possible values include: 'System', 'System0',
* 'System1', 'System2', 'System3', 'System4', 'System2L', 'System3L',
* 'System4L', 'Free', 'Basic', 'S0', 'S1', 'S2', 'S3', 'S4', 'S6', 'S7',
* 'S9', 'S12', 'P1', 'P2', 'P3', 'P4', 'P6', 'P11', 'P15', 'PRS1', 'PRS2',
* 'PRS4', 'PRS6', 'DW100', 'DW200', 'DW300', 'DW400', 'DW500', 'DW600',
* 'DW1000', 'DW1200', 'DW1000c', 'DW1500', 'DW1500c', 'DW2000', 'DW2000c',
* 'DW3000', 'DW2500c', 'DW3000c', 'DW6000', 'DW5000c', 'DW6000c', 'DW7500c',
* 'DW10000c', 'DW15000c', 'DW30000c', 'DS100', 'DS200', 'DS300', 'DS400',
* 'DS500', 'DS600', 'DS1000', 'DS1200', 'DS1500', 'DS2000', 'ElasticPool'
* @member {string} [status] The status of the database.
* @member {string} [elasticPoolName] The name of the elastic pool the
* database is in. If elasticPoolName and requestedServiceObjectiveName are
Expand All @@ -149,6 +168,9 @@ class Database extends models['TrackedResource'] {
* apply when creating this database. If createMode is not Default, this
* value is ignored. Not supported for DataWarehouse edition. Possible values
* include: 'AdventureWorksLT'
* @member {boolean} [zoneRedundant] Whether or not this database is zone
* redundant, which means the replicas of this database will be spread across
* multiple availability zones.
*/
constructor() {
super();
Expand Down Expand Up @@ -432,6 +454,13 @@ class Database extends models['TrackedResource'] {
type: {
name: 'String'
}
},
zoneRedundant: {
required: false,
serializedName: 'properties.zoneRedundant',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
Loading