Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
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
383 changes: 168 additions & 215 deletions lib/services/sqlManagement2/lib/models/database.js

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions lib/services/sqlManagement2/lib/models/databaseListResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
'use strict';

/**
* Represents the response to a list database request.
* A list of databases.
*/
class DatabaseListResult extends Array {
/**
* Create a DatabaseListResult.
* @member {string} [nextLink] Link to retrieve next page of results.
*/
constructor() {
super();
Expand All @@ -36,7 +37,8 @@ class DatabaseListResult extends Array {
className: 'DatabaseListResult',
modelProperties: {
value: {
required: true,
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
Expand All @@ -49,6 +51,14 @@ class DatabaseListResult extends Array {
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
Expand Down
398 changes: 158 additions & 240 deletions lib/services/sqlManagement2/lib/models/databaseUpdate.js

Large diffs are not rendered by default.

35 changes: 22 additions & 13 deletions lib/services/sqlManagement2/lib/models/editionCapability.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@
const models = require('./index');

/**
* The database edition capabilities.
* The edition capability.
*
*/
class EditionCapability {
/**
* Create a EditionCapability.
* @member {string} [name] The edition name.
* @member {string} [status] The status of the edition. Possible values
* include: 'Visible', 'Available', 'Default', 'Disabled'
* @member {string} [name] The database edition name.
* @member {array} [supportedServiceLevelObjectives] The list of supported
* service objectives for the edition.
* @member {boolean} [zoneRedundant] Whether or not zone redundancy is
* supported for the edition.
* @member {string} [status] The status of the capability. Possible values
* include: 'Visible', 'Available', 'Default', 'Disabled'
* @member {string} [reason] The reason for the capability not being
* available.
*/
constructor() {
}
Expand All @@ -52,15 +54,6 @@ class EditionCapability {
name: 'String'
}
},
status: {
required: false,
readOnly: true,
serializedName: 'status',
type: {
name: 'Enum',
allowedValues: [ 'Visible', 'Available', 'Default', 'Disabled' ]
}
},
supportedServiceLevelObjectives: {
required: false,
readOnly: true,
Expand All @@ -84,6 +77,22 @@ class EditionCapability {
type: {
name: 'Boolean'
}
},
status: {
required: false,
readOnly: true,
serializedName: 'status',
type: {
name: 'Enum',
allowedValues: [ 'Visible', 'Available', 'Default', 'Disabled' ]
}
},
reason: {
required: false,
serializedName: 'reason',
type: {
name: 'String'
}
}
}
}
Expand Down
91 changes: 48 additions & 43 deletions lib/services/sqlManagement2/lib/models/elasticPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,41 @@
const models = require('./index');

/**
* Represents a database elastic pool.
* An elastic pool.
*
* @extends models['TrackedResource']
*/
class ElasticPool extends models['TrackedResource'] {
/**
* Create a ElasticPool.
* @member {date} [creationDate] The creation date of the elastic pool
* (ISO8601 format).
* @member {object} [sku]
* @member {string} [sku.name] The name of the SKU, typically, a letter +
* Number code, e.g. P3.
* @member {string} [sku.tier] The tier of the particular SKU, e.g. Basic,
* Premium.
* @member {string} [sku.size] Size of the particular SKU
* @member {string} [sku.family] If the service has different generations of
* hardware, for the same SKU, then that can be captured here.
* @member {number} [sku.capacity] Capacity of the particular SKU.
* @member {string} [kind] Kind of elastic pool. This is metadata used for
* the Azure portal experience.
* @member {string} [state] The state of the elastic pool. Possible values
* include: 'Creating', 'Ready', 'Disabled'
* @member {string} [edition] The edition of the elastic pool. Possible
* values include: 'Basic', 'Standard', 'Premium'
* @member {number} [dtu] The total shared DTU for the database elastic pool.
* @member {number} [databaseDtuMax] The maximum DTU any one database can
* consume.
* @member {number} [databaseDtuMin] The minimum DTU all databases are
* guaranteed.
* @member {number} [storageMB] Gets storage limit for the database elastic
* pool in MB.
* @member {boolean} [zoneRedundant] Whether or not this database elastic
* pool is zone redundant, which means the replicas of this database will be
* spread across multiple availability zones.
* @member {string} [kind] Kind of elastic pool. This is metadata used for
* the Azure portal experience.
* @member {date} [creationDate] The creation date of the elastic pool
* (ISO8601 format).
* @member {number} [maxSizeBytes] The storage limit for the database elastic
* pool in bytes.
* @member {object} [perDatabaseSettings] The per database settings for the
* elastic pool.
* @member {number} [perDatabaseSettings.minCapacity] The minimum capacity
* all databases are guaranteed.
* @member {number} [perDatabaseSettings.maxCapacity] The maximum capacity
* any one database can consume.
* @member {boolean} [zoneRedundant] Whether or not this elastic pool is zone
* redundant, which means the replicas of this elastic pool will be spread
* across multiple availability zones.
* @member {string} [licenseType] The license type to apply for this elastic
* pool. Possible values include: 'LicenseIncluded', 'BasePrice'
*/
constructor() {
super();
Expand Down Expand Up @@ -102,55 +112,51 @@ class ElasticPool extends models['TrackedResource'] {
name: 'String'
}
},
creationDate: {
sku: {
required: false,
readOnly: true,
serializedName: 'properties.creationDate',
serializedName: 'sku',
type: {
name: 'DateTime'
name: 'Composite',
className: 'Sku'
}
},
state: {
kind: {
required: false,
readOnly: true,
serializedName: 'properties.state',
serializedName: 'kind',
type: {
name: 'String'
}
},
edition: {
state: {
required: false,
serializedName: 'properties.edition',
readOnly: true,
serializedName: 'properties.state',
type: {
name: 'String'
}
},
dtu: {
required: false,
serializedName: 'properties.dtu',
type: {
name: 'Number'
}
},
databaseDtuMax: {
creationDate: {
required: false,
serializedName: 'properties.databaseDtuMax',
readOnly: true,
serializedName: 'properties.creationDate',
type: {
name: 'Number'
name: 'DateTime'
}
},
databaseDtuMin: {
maxSizeBytes: {
required: false,
serializedName: 'properties.databaseDtuMin',
serializedName: 'properties.maxSizeBytes',
type: {
name: 'Number'
}
},
storageMB: {
perDatabaseSettings: {
required: false,
serializedName: 'properties.storageMB',
serializedName: 'properties.perDatabaseSettings',
type: {
name: 'Number'
name: 'Composite',
className: 'ElasticPoolPerDatabaseSettings'
}
},
zoneRedundant: {
Expand All @@ -160,10 +166,9 @@ class ElasticPool extends models['TrackedResource'] {
name: 'Boolean'
}
},
kind: {
licenseType: {
required: false,
readOnly: true,
serializedName: 'kind',
serializedName: 'properties.licenseType',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@
const models = require('./index');

/**
* The elastic pool edition capabilities.
* The elastic pool edition capability.
*
*/
class ElasticPoolEditionCapability {
/**
* Create a ElasticPoolEditionCapability.
* @member {string} [name] The elastic pool edition name.
* @member {string} [status] The status of the elastic pool edition. Possible
* values include: 'Visible', 'Available', 'Default', 'Disabled'
* @member {array} [supportedElasticPoolDtus] The list of supported elastic
* pool DTU levels for the edition.
* @member {array} [supportedElasticPoolPerformanceLevels] The list of
* supported elastic pool DTU levels for the edition.
* @member {boolean} [zoneRedundant] Whether or not zone redundancy is
* supported for the edition.
* @member {string} [status] The status of the capability. Possible values
* include: 'Visible', 'Available', 'Default', 'Disabled'
* @member {string} [reason] The reason for the capability not being
* available.
*/
constructor() {
}
Expand All @@ -52,27 +54,18 @@ class ElasticPoolEditionCapability {
name: 'String'
}
},
status: {
required: false,
readOnly: true,
serializedName: 'status',
type: {
name: 'Enum',
allowedValues: [ 'Visible', 'Available', 'Default', 'Disabled' ]
}
},
supportedElasticPoolDtus: {
supportedElasticPoolPerformanceLevels: {
required: false,
readOnly: true,
serializedName: 'supportedElasticPoolDtus',
serializedName: 'supportedElasticPoolPerformanceLevels',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ElasticPoolDtuCapabilityElementType',
serializedName: 'ElasticPoolPerformanceLevelCapabilityElementType',
type: {
name: 'Composite',
className: 'ElasticPoolDtuCapability'
className: 'ElasticPoolPerformanceLevelCapability'
}
}
}
Expand All @@ -84,6 +77,22 @@ class ElasticPoolEditionCapability {
type: {
name: 'Boolean'
}
},
status: {
required: false,
readOnly: true,
serializedName: 'status',
type: {
name: 'Enum',
allowedValues: [ 'Visible', 'Available', 'Default', 'Disabled' ]
}
},
reason: {
required: false,
serializedName: 'reason',
type: {
name: 'String'
}
}
}
}
Expand Down
14 changes: 12 additions & 2 deletions lib/services/sqlManagement2/lib/models/elasticPoolListResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
'use strict';

/**
* Represents the response to a list elastic pool request.
* The result of an elastic pool list request.
*/
class ElasticPoolListResult extends Array {
/**
* Create a ElasticPoolListResult.
* @member {string} [nextLink] Link to retrieve next page of results.
*/
constructor() {
super();
Expand All @@ -36,7 +37,8 @@ class ElasticPoolListResult extends Array {
className: 'ElasticPoolListResult',
modelProperties: {
value: {
required: true,
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
Expand All @@ -49,6 +51,14 @@ class ElasticPoolListResult extends Array {
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
Expand Down
Loading