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

Commit

Permalink
[AutoPR sql/resource-manager] typo: sql/resource-manager/Microsoft.Sql (
Browse files Browse the repository at this point in the history
#4367)

* Generated from 08257e28e384f2beb81968710092f57a5404893c

typo: sql/resource-manager/Microsoft.Sql

- inhertied -> inherited
- heirarchy -> hierarchy
- succesfully -> successfully
- explicity -> explicitly
- Elatic -> Elastic
- mising -> missing
- updatess -> updates
- scheduletype -> schedule type
- bacukps -> backups
- recoverabel -> recoverable
- mininum -> minimum
- recommented -> recommended
- availabities -> availabilities
- properites -> properties
- servers's -> server's
- maxiumum -> maximum
- consuption -> consumption
- historica -> historical

* Generated from 08257e28e384f2beb81968710092f57a5404893c

typo: sql/resource-manager/Microsoft.Sql

- inhertied -> inherited
- heirarchy -> hierarchy
- succesfully -> successfully
- explicity -> explicitly
- Elatic -> Elastic
- mising -> missing
- updatess -> updates
- scheduletype -> schedule type
- bacukps -> backups
- recoverabel -> recoverable
- mininum -> minimum
- recommented -> recommended
- availabities -> availabilities
- properites -> properties
- servers's -> server's
- maxiumum -> maximum
- consuption -> consumption
- historica -> historical
  • Loading branch information
AutorestCI authored Dec 14, 2018
1 parent f5fec47 commit b1a1154
Show file tree
Hide file tree
Showing 20 changed files with 2,477 additions and 37 deletions.
87 changes: 81 additions & 6 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export interface MetricAvailability {
* @property {string} [unit] The unit of the metric. Possible values include:
* 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond'
* @property {array} [metricAvailabilities] The list of database metric
* availabities for the metric.
* availabilities for the metric.
*/
export interface MetricDefinition {
readonly name?: MetricName;
Expand Down Expand Up @@ -582,7 +582,7 @@ export interface RecommendedElasticPoolMetric {
* @class
* Initializes a new instance of the RecommendedElasticPool class.
* @constructor
* Represents a recommented elastic pool.
* Represents a recommended elastic pool.
*
* @property {string} [databaseEdition] The edition of the recommended elastic
* pool. The ElasticPoolEdition enumeration contains all the valid editions.
Expand Down Expand Up @@ -2606,7 +2606,7 @@ export interface JobExecution extends ProxyResource {
* 'Once', 'Recurring'. Default value: 'Once' .
* @property {boolean} [enabled] Whether or not the schedule is enabled.
* @property {string} [interval] Value of the schedule's recurring interval, if
* the scheduletype is recurring. ISO8601 duration format.
* the schedule type is recurring. ISO8601 duration format.
*/
export interface JobSchedule {
startTime?: Date;
Expand All @@ -2633,7 +2633,7 @@ export interface JobSchedule {
* @property {boolean} [schedule.enabled] Whether or not the schedule is
* enabled.
* @property {string} [schedule.interval] Value of the schedule's recurring
* interval, if the scheduletype is recurring. ISO8601 duration format.
* interval, if the schedule type is recurring. ISO8601 duration format.
*/
export interface Job extends ProxyResource {
description?: string;
Expand Down Expand Up @@ -3104,6 +3104,8 @@ export interface ServerDnsAliasAcquisition {
* the Threat Detection audit storage account.
* @property {number} [retentionDays] Specifies the number of days to keep in
* the Threat Detection audit logs.
* @property {date} [creationTime] Specifies the UTC creation time of the
* policy.
*/
export interface ServerSecurityAlertPolicy extends ProxyResource {
state: string;
Expand All @@ -3113,6 +3115,7 @@ export interface ServerSecurityAlertPolicy extends ProxyResource {
storageEndpoint?: string;
storageAccountAccessKey?: string;
retentionDays?: number;
readonly creationTime?: Date;
}

/**
Expand Down Expand Up @@ -3151,6 +3154,78 @@ export interface CreateDatabaseRestorePointDefinition {
restorePointLabel: string;
}

/**
* @class
* Initializes a new instance of the ManagedDatabaseSecurityAlertPolicy class.
* @constructor
* A managed database security alert policy.
*
* @property {string} state Specifies the state of the policy, whether it is
* enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled'
* @property {array} [disabledAlerts] Specifies an array of alerts that are
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
* Access_Anomaly, Data_Exfiltration, Unsafe_Action
* @property {array} [emailAddresses] Specifies an array of e-mail addresses to
* which the alert is sent.
* @property {boolean} [emailAccountAdmins] Specifies that the alert is sent to
* the account administrators.
* @property {string} [storageEndpoint] Specifies the blob storage endpoint
* (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold
* all Threat Detection audit logs.
* @property {string} [storageAccountAccessKey] Specifies the identifier key of
* the Threat Detection audit storage account.
* @property {number} [retentionDays] Specifies the number of days to keep in
* the Threat Detection audit logs.
* @property {date} [creationTime] Specifies the UTC creation time of the
* policy.
*/
export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource {
state: string;
disabledAlerts?: string[];
emailAddresses?: string[];
emailAccountAdmins?: boolean;
storageEndpoint?: string;
storageAccountAccessKey?: string;
retentionDays?: number;
readonly creationTime?: Date;
}

/**
* @class
* Initializes a new instance of the ManagedServerSecurityAlertPolicy class.
* @constructor
* A managed server security alert policy.
*
* @property {string} state Specifies the state of the policy, whether it is
* enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled'
* @property {array} [disabledAlerts] Specifies an array of alerts that are
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
* Access_Anomaly, Data_Exfiltration, Unsafe_Action
* @property {array} [emailAddresses] Specifies an array of e-mail addresses to
* which the alert is sent.
* @property {boolean} [emailAccountAdmins] Specifies that the alert is sent to
* the account administrators.
* @property {string} [storageEndpoint] Specifies the blob storage endpoint
* (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold
* all Threat Detection audit logs.
* @property {string} [storageAccountAccessKey] Specifies the identifier key of
* the Threat Detection audit storage account.
* @property {number} [retentionDays] Specifies the number of days to keep in
* the Threat Detection audit logs.
* @property {date} [creationTime] Specifies the UTC creation time of the
* policy.
*/
export interface ManagedServerSecurityAlertPolicy extends ProxyResource {
state: string;
disabledAlerts?: string[];
emailAddresses?: string[];
emailAccountAdmins?: boolean;
storageEndpoint?: string;
storageAccountAccessKey?: string;
retentionDays?: number;
readonly creationTime?: Date;
}

/**
* @class
* Initializes a new instance of the DatabaseOperation class.
Expand Down Expand Up @@ -4918,7 +4993,7 @@ export interface JobVersionListResult extends Array<JobVersion> {
* @class
* Initializes a new instance of the LongTermRetentionBackupListResult class.
* @constructor
* A list of long term retention bacukps.
* A list of long term retention backups.
*
* @property {string} [nextLink] Link to retrieve next page of results.
*/
Expand Down Expand Up @@ -4966,7 +5041,7 @@ export interface ServerDnsAliasListResult extends Array<ServerDnsAlias> {
* @class
* Initializes a new instance of the RestorePointListResult class.
* @constructor
* A list of long term retention bacukps.
* A list of long term retention backups.
*
* @property {string} [nextLink] Link to retrieve next page of results.
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/services/sqlManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ exports.ServerDnsAliasAcquisition = require('./serverDnsAliasAcquisition');
exports.ServerSecurityAlertPolicy = require('./serverSecurityAlertPolicy');
exports.RestorePoint = require('./restorePoint');
exports.CreateDatabaseRestorePointDefinition = require('./createDatabaseRestorePointDefinition');
exports.ManagedDatabaseSecurityAlertPolicy = require('./managedDatabaseSecurityAlertPolicy');
exports.ManagedServerSecurityAlertPolicy = require('./managedServerSecurityAlertPolicy');
exports.DatabaseOperation = require('./databaseOperation');
exports.ElasticPoolOperation = require('./elasticPoolOperation');
exports.MaxSizeCapability = require('./maxSizeCapability');
Expand Down
2 changes: 1 addition & 1 deletion lib/services/sqlManagement2/lib/models/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Job extends models['ProxyResource'] {
* @property {boolean} [schedule.enabled] Whether or not the schedule is
* enabled.
* @property {string} [schedule.interval] Value of the schedule's recurring
* interval, if the scheduletype is recurring. ISO8601 duration format.
* interval, if the schedule type is recurring. ISO8601 duration format.
*/
constructor() {
super();
Expand Down
2 changes: 1 addition & 1 deletion lib/services/sqlManagement2/lib/models/jobSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class JobSchedule {
* 'Once', 'Recurring'. Default value: 'Once' .
* @property {boolean} [enabled] Whether or not the schedule is enabled.
* @property {string} [interval] Value of the schedule's recurring interval,
* if the scheduletype is recurring. ISO8601 duration format.
* if the schedule type is recurring. ISO8601 duration format.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'use strict';

/**
* A list of long term retention bacukps.
* A list of long term retention backups.
*/
class LongTermRetentionBackupListResult extends Array {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
/*
* 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 managed database security alert policy.
*
* @extends models['ProxyResource']
*/
class ManagedDatabaseSecurityAlertPolicy extends models['ProxyResource'] {
/**
* Create a ManagedDatabaseSecurityAlertPolicy.
* @property {string} state Specifies the state of the policy, whether it is
* enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled'
* @property {array} [disabledAlerts] Specifies an array of alerts that are
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
* Access_Anomaly, Data_Exfiltration, Unsafe_Action
* @property {array} [emailAddresses] Specifies an array of e-mail addresses
* to which the alert is sent.
* @property {boolean} [emailAccountAdmins] Specifies that the alert is sent
* to the account administrators.
* @property {string} [storageEndpoint] Specifies the blob storage endpoint
* (e.g. https://MyAccount.blob.core.windows.net). This blob storage will
* hold all Threat Detection audit logs.
* @property {string} [storageAccountAccessKey] Specifies the identifier key
* of the Threat Detection audit storage account.
* @property {number} [retentionDays] Specifies the number of days to keep in
* the Threat Detection audit logs.
* @property {date} [creationTime] Specifies the UTC creation time of the
* policy.
*/
constructor() {
super();
}

/**
* Defines the metadata of ManagedDatabaseSecurityAlertPolicy
*
* @returns {object} metadata of ManagedDatabaseSecurityAlertPolicy
*
*/
mapper() {
return {
required: false,
serializedName: 'ManagedDatabaseSecurityAlertPolicy',
type: {
name: 'Composite',
className: 'ManagedDatabaseSecurityAlertPolicy',
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'
}
},
state: {
required: true,
serializedName: 'properties.state',
type: {
name: 'Enum',
allowedValues: [ 'New', 'Enabled', 'Disabled' ]
}
},
disabledAlerts: {
required: false,
serializedName: 'properties.disabledAlerts',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
emailAddresses: {
required: false,
serializedName: 'properties.emailAddresses',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
emailAccountAdmins: {
required: false,
serializedName: 'properties.emailAccountAdmins',
type: {
name: 'Boolean'
}
},
storageEndpoint: {
required: false,
serializedName: 'properties.storageEndpoint',
type: {
name: 'String'
}
},
storageAccountAccessKey: {
required: false,
serializedName: 'properties.storageAccountAccessKey',
type: {
name: 'String'
}
},
retentionDays: {
required: false,
serializedName: 'properties.retentionDays',
type: {
name: 'Number'
}
},
creationTime: {
required: false,
readOnly: true,
serializedName: 'properties.creationTime',
type: {
name: 'DateTime'
}
}
}
}
};
}
}

module.exports = ManagedDatabaseSecurityAlertPolicy;
Loading

0 comments on commit b1a1154

Please sign in to comment.