diff --git a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts index e5c8650c35ad..4918050ab296 100644 --- a/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts +++ b/packages/@azure/arm-sql/lib/models/databaseVulnerabilityAssessmentScansMappers.ts @@ -9,13 +9,13 @@ */ export { + VulnerabilityAssessmentScanRecordListResult, VulnerabilityAssessmentScanRecord, ProxyResource, Resource, BaseResource, VulnerabilityAssessmentScanError, CloudError, - VulnerabilityAssessmentScanRecordListResult, DatabaseVulnerabilityAssessmentScansExport, RecoverableDatabase, RestorableDroppedDatabase, diff --git a/packages/@azure/arm-sql/lib/models/index.ts b/packages/@azure/arm-sql/lib/models/index.ts index d97795b5192f..3188a585decb 100644 --- a/packages/@azure/arm-sql/lib/models/index.ts +++ b/packages/@azure/arm-sql/lib/models/index.ts @@ -3223,11 +3223,11 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { * REFERENCES * * The general form for defining an action to be audited is: - * ON BY + * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are + * latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. * * For example: @@ -3259,10 +3259,11 @@ export interface ExtendedDatabaseBlobAuditingPolicy extends ProxyResource { * 'SQLSecurityAuditEvents' diagnostic logs category on the database should * be also created. * Note that for server level audit you should use the 'master' database as - * . + * {databaseName}. + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST * API](https://go.microsoft.com/fwlink/?linkid=2033207) @@ -3367,11 +3368,11 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { * REFERENCES * * The general form for defining an action to be audited is: - * ON BY + * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are + * latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. * * For example: @@ -3403,10 +3404,11 @@ export interface ExtendedServerBlobAuditingPolicy extends ProxyResource { * 'SQLSecurityAuditEvents' diagnostic logs category on the database should * be also created. * Note that for server level audit you should use the 'master' database as - * . + * {databaseName}. + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST * API](https://go.microsoft.com/fwlink/?linkid=2033207) @@ -3506,11 +3508,11 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { * REFERENCES * * The general form for defining an action to be audited is: - * ON BY + * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are + * latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. * * For example: @@ -3542,10 +3544,11 @@ export interface ServerBlobAuditingPolicy extends ProxyResource { * 'SQLSecurityAuditEvents' diagnostic logs category on the database should * be also created. * Note that for server level audit you should use the 'master' database as - * . + * {databaseName}. + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST * API](https://go.microsoft.com/fwlink/?linkid=2033207) @@ -3651,11 +3654,11 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { * REFERENCES * * The general form for defining an action to be audited is: - * ON BY + * {action} ON {object} BY {principal} * * Note that in the above format can refer to an object like a * table, view, or stored procedure, or an entire database or schema. For the - * latter cases, the forms DATABASE:: and SCHEMA:: are + * latter cases, the forms DATABASE::{db_name} and SCHEMA::{schema_name} are * used, respectively. * * For example: @@ -3687,10 +3690,11 @@ export interface DatabaseBlobAuditingPolicy extends ProxyResource { * 'SQLSecurityAuditEvents' diagnostic logs category on the database should * be also created. * Note that for server level audit you should use the 'master' database as - * . + * {databaseName}. + * * Diagnostic Settings URI format: * PUT - * https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Sql/servers//databases//providers/microsoft.insights/diagnosticSettings/?api-version=2017-05-01-preview + * https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview * * For more information, see [Diagnostic Settings REST * API](https://go.microsoft.com/fwlink/?linkid=2033207) @@ -7618,10 +7622,7 @@ export interface ManagedInstanceEncryptionProtectorListResult extends Array"someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', + * 'Stretch', 'DataWarehouse', 'System', 'System2' * @readonly * @enum {string} */ -export enum DatabaseEdition { - Web = 'Web', - Business = 'Business', - Basic = 'Basic', - Standard = 'Standard', - Premium = 'Premium', - PremiumRS = 'PremiumRS', - Free = 'Free', - Stretch = 'Stretch', - DataWarehouse = 'DataWarehouse', - System = 'System', - System2 = 'System2', -} +export type DatabaseEdition = 'Web' | 'Business' | 'Basic' | 'Standard' | 'Premium' | 'PremiumRS' | 'Free' | 'Stretch' | 'DataWarehouse' | 'System' | 'System2'; /** * Defines values for ServiceObjectiveName. - * 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' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServiceObjectiveName = - * "someUnknownValueThatWillStillBeValid"; + * 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' * @readonly * @enum {string} */ -export enum ServiceObjectiveName { - System = 'System', - System0 = 'System0', - System1 = 'System1', - System2 = 'System2', - System3 = 'System3', - System4 = 'System4', - System2L = 'System2L', - System3L = 'System3L', - System4L = 'System4L', - Free = 'Free', - Basic = 'Basic', - S0 = 'S0', - S1 = 'S1', - S2 = 'S2', - S3 = 'S3', - S4 = 'S4', - S6 = 'S6', - S7 = 'S7', - S9 = 'S9', - S12 = 'S12', - P1 = 'P1', - P2 = 'P2', - P3 = 'P3', - P4 = 'P4', - P6 = 'P6', - P11 = 'P11', - P15 = 'P15', - PRS1 = 'PRS1', - PRS2 = 'PRS2', - PRS4 = 'PRS4', - PRS6 = 'PRS6', - DW100 = 'DW100', - DW200 = 'DW200', - DW300 = 'DW300', - DW400 = 'DW400', - DW500 = 'DW500', - DW600 = 'DW600', - DW1000 = 'DW1000', - DW1200 = 'DW1200', - DW1000c = 'DW1000c', - DW1500 = 'DW1500', - DW1500c = 'DW1500c', - DW2000 = 'DW2000', - DW2000c = 'DW2000c', - DW3000 = 'DW3000', - DW2500c = 'DW2500c', - DW3000c = 'DW3000c', - DW6000 = 'DW6000', - DW5000c = 'DW5000c', - DW6000c = 'DW6000c', - DW7500c = 'DW7500c', - DW10000c = 'DW10000c', - DW15000c = 'DW15000c', - DW30000c = 'DW30000c', - DS100 = 'DS100', - DS200 = 'DS200', - DS300 = 'DS300', - DS400 = 'DS400', - DS500 = 'DS500', - DS600 = 'DS600', - DS1000 = 'DS1000', - DS1200 = 'DS1200', - DS1500 = 'DS1500', - DS2000 = 'DS2000', - ElasticPool = 'ElasticPool', -} +export type ServiceObjectiveName = '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'; /** * Defines values for StorageKeyType. @@ -7836,10 +7717,7 @@ export enum ServiceObjectiveName { * @readonly * @enum {string} */ -export enum StorageKeyType { - StorageAccessKey = 'StorageAccessKey', - SharedAccessKey = 'SharedAccessKey', -} +export type StorageKeyType = 'StorageAccessKey' | 'SharedAccessKey'; /** * Defines values for AuthenticationType. @@ -7847,122 +7725,57 @@ export enum StorageKeyType { * @readonly * @enum {string} */ -export enum AuthenticationType { - SQL = 'SQL', - ADPassword = 'ADPassword', -} +export type AuthenticationType = 'SQL' | 'ADPassword'; /** * Defines values for UnitType. - * Possible values include: 'count', 'bytes', 'seconds', 'percent', - * 'countPerSecond', 'bytesPerSecond' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UnitType = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'count', 'bytes', 'seconds', 'percent', 'countPerSecond', + * 'bytesPerSecond' * @readonly * @enum {string} */ -export enum UnitType { - Count = 'count', - Bytes = 'bytes', - Seconds = 'seconds', - Percent = 'percent', - CountPerSecond = 'countPerSecond', - BytesPerSecond = 'bytesPerSecond', -} +export type UnitType = 'count' | 'bytes' | 'seconds' | 'percent' | 'countPerSecond' | 'bytesPerSecond'; /** * Defines values for PrimaryAggregationType. - * Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', - * 'Total' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PrimaryAggregationType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' * @readonly * @enum {string} */ -export enum PrimaryAggregationType { - None = 'None', - Average = 'Average', - Count = 'Count', - Minimum = 'Minimum', - Maximum = 'Maximum', - Total = 'Total', -} +export type PrimaryAggregationType = 'None' | 'Average' | 'Count' | 'Minimum' | 'Maximum' | 'Total'; /** * Defines values for UnitDefinitionType. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', - * 'CountPerSecond', 'BytesPerSecond' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: UnitDefinitionType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', + * 'BytesPerSecond' * @readonly * @enum {string} */ -export enum UnitDefinitionType { - Count = 'Count', - Bytes = 'Bytes', - Seconds = 'Seconds', - Percent = 'Percent', - CountPerSecond = 'CountPerSecond', - BytesPerSecond = 'BytesPerSecond', -} +export type UnitDefinitionType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond'; /** * Defines values for ElasticPoolEdition. * Possible values include: 'Basic', 'Standard', 'Premium' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ElasticPoolEdition = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ElasticPoolEdition { - Basic = 'Basic', - Standard = 'Standard', - Premium = 'Premium', -} +export type ElasticPoolEdition = 'Basic' | 'Standard' | 'Premium'; /** * Defines values for ReplicationRole. - * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', - * 'Source', 'Copy' + * Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy' * @readonly * @enum {string} */ -export enum ReplicationRole { - Primary = 'Primary', - Secondary = 'Secondary', - NonReadableSecondary = 'NonReadableSecondary', - Source = 'Source', - Copy = 'Copy', -} +export type ReplicationRole = 'Primary' | 'Secondary' | 'NonReadableSecondary' | 'Source' | 'Copy'; /** * Defines values for ReplicationState. * Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReplicationState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ReplicationState { - PENDING = 'PENDING', - SEEDING = 'SEEDING', - CATCHUP = 'CATCH_UP', - SUSPENDED = 'SUSPENDED', -} +export type ReplicationState = 'PENDING' | 'SEEDING' | 'CATCH_UP' | 'SUSPENDED'; /** * Defines values for RecommendedIndexAction. @@ -7970,47 +7783,24 @@ export enum ReplicationState { * @readonly * @enum {string} */ -export enum RecommendedIndexAction { - Create = 'Create', - Drop = 'Drop', - Rebuild = 'Rebuild', -} +export type RecommendedIndexAction = 'Create' | 'Drop' | 'Rebuild'; /** * Defines values for RecommendedIndexState. - * Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', - * 'Pending Revert', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', - * 'Success' + * Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'Pending Revert', + * 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Blocked', 'Success' * @readonly * @enum {string} */ -export enum RecommendedIndexState { - Active = 'Active', - Pending = 'Pending', - Executing = 'Executing', - Verifying = 'Verifying', - PendingRevert = 'Pending Revert', - Reverting = 'Reverting', - Reverted = 'Reverted', - Ignored = 'Ignored', - Expired = 'Expired', - Blocked = 'Blocked', - Success = 'Success', -} +export type RecommendedIndexState = 'Active' | 'Pending' | 'Executing' | 'Verifying' | 'Pending Revert' | 'Reverting' | 'Reverted' | 'Ignored' | 'Expired' | 'Blocked' | 'Success'; /** * Defines values for RecommendedIndexType. - * Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', - * 'CLUSTERED COLUMNSTORE' + * Possible values include: 'CLUSTERED', 'NONCLUSTERED', 'COLUMNSTORE', 'CLUSTERED COLUMNSTORE' * @readonly * @enum {string} */ -export enum RecommendedIndexType { - CLUSTERED = 'CLUSTERED', - NONCLUSTERED = 'NONCLUSTERED', - COLUMNSTORE = 'COLUMNSTORE', - CLUSTEREDCOLUMNSTORE = 'CLUSTERED COLUMNSTORE', -} +export type RecommendedIndexType = 'CLUSTERED' | 'NONCLUSTERED' | 'COLUMNSTORE' | 'CLUSTERED COLUMNSTORE'; /** * Defines values for TransparentDataEncryptionStatus. @@ -8018,26 +7808,15 @@ export enum RecommendedIndexType { * @readonly * @enum {string} */ -export enum TransparentDataEncryptionStatus { - Enabled = 'Enabled', - Disabled = 'Disabled', -} +export type TransparentDataEncryptionStatus = 'Enabled' | 'Disabled'; /** * Defines values for TransparentDataEncryptionActivityStatus. * Possible values include: 'Encrypting', 'Decrypting' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: TransparentDataEncryptionActivityStatus = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum TransparentDataEncryptionActivityStatus { - Encrypting = 'Encrypting', - Decrypting = 'Decrypting', -} +export type TransparentDataEncryptionActivityStatus = 'Encrypting' | 'Decrypting'; /** * Defines values for AutomaticTuningMode. @@ -8045,12 +7824,7 @@ export enum TransparentDataEncryptionActivityStatus { * @readonly * @enum {string} */ -export enum AutomaticTuningMode { - Inherit = 'Inherit', - Custom = 'Custom', - Auto = 'Auto', - Unspecified = 'Unspecified', -} +export type AutomaticTuningMode = 'Inherit' | 'Custom' | 'Auto' | 'Unspecified'; /** * Defines values for AutomaticTuningOptionModeDesired. @@ -8058,11 +7832,7 @@ export enum AutomaticTuningMode { * @readonly * @enum {string} */ -export enum AutomaticTuningOptionModeDesired { - Off = 'Off', - On = 'On', - Default = 'Default', -} +export type AutomaticTuningOptionModeDesired = 'Off' | 'On' | 'Default'; /** * Defines values for AutomaticTuningOptionModeActual. @@ -8070,284 +7840,132 @@ export enum AutomaticTuningOptionModeDesired { * @readonly * @enum {string} */ -export enum AutomaticTuningOptionModeActual { - Off = 'Off', - On = 'On', -} +export type AutomaticTuningOptionModeActual = 'Off' | 'On'; /** * Defines values for AutomaticTuningDisabledReason. - * Possible values include: 'Default', 'Disabled', 'AutoConfigured', - * 'InheritedFromServer', 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported' + * Possible values include: 'Default', 'Disabled', 'AutoConfigured', 'InheritedFromServer', + * 'QueryStoreOff', 'QueryStoreReadOnly', 'NotSupported' * @readonly * @enum {string} */ -export enum AutomaticTuningDisabledReason { - Default = 'Default', - Disabled = 'Disabled', - AutoConfigured = 'AutoConfigured', - InheritedFromServer = 'InheritedFromServer', - QueryStoreOff = 'QueryStoreOff', - QueryStoreReadOnly = 'QueryStoreReadOnly', - NotSupported = 'NotSupported', -} +export type AutomaticTuningDisabledReason = 'Default' | 'Disabled' | 'AutoConfigured' | 'InheritedFromServer' | 'QueryStoreOff' | 'QueryStoreReadOnly' | 'NotSupported'; /** * Defines values for ServerKeyType. * Possible values include: 'ServiceManaged', 'AzureKeyVault' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ServerKeyType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ServerKeyType { - ServiceManaged = 'ServiceManaged', - AzureKeyVault = 'AzureKeyVault', -} +export type ServerKeyType = 'ServiceManaged' | 'AzureKeyVault'; /** * Defines values for ReadWriteEndpointFailoverPolicy. * Possible values include: 'Manual', 'Automatic' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReadWriteEndpointFailoverPolicy = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ReadWriteEndpointFailoverPolicy { - Manual = 'Manual', - Automatic = 'Automatic', -} +export type ReadWriteEndpointFailoverPolicy = 'Manual' | 'Automatic'; /** * Defines values for ReadOnlyEndpointFailoverPolicy. * Possible values include: 'Disabled', 'Enabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ReadOnlyEndpointFailoverPolicy = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ReadOnlyEndpointFailoverPolicy { - Disabled = 'Disabled', - Enabled = 'Enabled', -} +export type ReadOnlyEndpointFailoverPolicy = 'Disabled' | 'Enabled'; /** * Defines values for FailoverGroupReplicationRole. * Possible values include: 'Primary', 'Secondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: FailoverGroupReplicationRole = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum FailoverGroupReplicationRole { - Primary = 'Primary', - Secondary = 'Secondary', -} +export type FailoverGroupReplicationRole = 'Primary' | 'Secondary'; /** * Defines values for IdentityType. * Possible values include: 'SystemAssigned' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: IdentityType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum IdentityType { - SystemAssigned = 'SystemAssigned', -} +export type IdentityType = 'SystemAssigned'; /** * Defines values for OperationOrigin. * Possible values include: 'user', 'system' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: OperationOrigin = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum OperationOrigin { - User = 'user', - System = 'system', -} +export type OperationOrigin = 'user' | 'system'; /** * Defines values for SyncAgentState. * Possible values include: 'Online', 'Offline', 'NeverConnected' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncAgentState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncAgentState { - Online = 'Online', - Offline = 'Offline', - NeverConnected = 'NeverConnected', -} +export type SyncAgentState = 'Online' | 'Offline' | 'NeverConnected'; /** * Defines values for SyncMemberDbType. * Possible values include: 'AzureSqlDatabase', 'SqlServerDatabase' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncMemberDbType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncMemberDbType { - AzureSqlDatabase = 'AzureSqlDatabase', - SqlServerDatabase = 'SqlServerDatabase', -} +export type SyncMemberDbType = 'AzureSqlDatabase' | 'SqlServerDatabase'; /** * Defines values for SyncGroupLogType. * Possible values include: 'All', 'Error', 'Warning', 'Success' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncGroupLogType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncGroupLogType { - All = 'All', - Error = 'Error', - Warning = 'Warning', - Success = 'Success', -} +export type SyncGroupLogType = 'All' | 'Error' | 'Warning' | 'Success'; /** * Defines values for SyncConflictResolutionPolicy. * Possible values include: 'HubWin', 'MemberWin' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncConflictResolutionPolicy = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncConflictResolutionPolicy { - HubWin = 'HubWin', - MemberWin = 'MemberWin', -} +export type SyncConflictResolutionPolicy = 'HubWin' | 'MemberWin'; /** * Defines values for SyncGroupState. - * Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', - * 'Good' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncGroupState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'NotReady', 'Error', 'Warning', 'Progressing', 'Good' * @readonly * @enum {string} */ -export enum SyncGroupState { - NotReady = 'NotReady', - Error = 'Error', - Warning = 'Warning', - Progressing = 'Progressing', - Good = 'Good', -} +export type SyncGroupState = 'NotReady' | 'Error' | 'Warning' | 'Progressing' | 'Good'; /** * Defines values for SyncDirection. - * Possible values include: 'Bidirectional', 'OneWayMemberToHub', - * 'OneWayHubToMember' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncDirection = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Bidirectional', 'OneWayMemberToHub', 'OneWayHubToMember' * @readonly * @enum {string} */ -export enum SyncDirection { - Bidirectional = 'Bidirectional', - OneWayMemberToHub = 'OneWayMemberToHub', - OneWayHubToMember = 'OneWayHubToMember', -} +export type SyncDirection = 'Bidirectional' | 'OneWayMemberToHub' | 'OneWayHubToMember'; /** * Defines values for SyncMemberState. * Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', - * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', - * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', - * 'UnProvisioned', 'Provisioning', 'Provisioned', 'ProvisionFailed', - * 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', + * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', + * 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', + * 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', * 'ReprovisionFailed', 'UnReprovisioned' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SyncMemberState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum SyncMemberState { - SyncInProgress = 'SyncInProgress', - SyncSucceeded = 'SyncSucceeded', - SyncFailed = 'SyncFailed', - DisabledTombstoneCleanup = 'DisabledTombstoneCleanup', - DisabledBackupRestore = 'DisabledBackupRestore', - SyncSucceededWithWarnings = 'SyncSucceededWithWarnings', - SyncCancelling = 'SyncCancelling', - SyncCancelled = 'SyncCancelled', - UnProvisioned = 'UnProvisioned', - Provisioning = 'Provisioning', - Provisioned = 'Provisioned', - ProvisionFailed = 'ProvisionFailed', - DeProvisioning = 'DeProvisioning', - DeProvisioned = 'DeProvisioned', - DeProvisionFailed = 'DeProvisionFailed', - Reprovisioning = 'Reprovisioning', - ReprovisionFailed = 'ReprovisionFailed', - UnReprovisioned = 'UnReprovisioned', -} +export type SyncMemberState = 'SyncInProgress' | 'SyncSucceeded' | 'SyncFailed' | 'DisabledTombstoneCleanup' | 'DisabledBackupRestore' | 'SyncSucceededWithWarnings' | 'SyncCancelling' | 'SyncCancelled' | 'UnProvisioned' | 'Provisioning' | 'Provisioned' | 'ProvisionFailed' | 'DeProvisioning' | 'DeProvisioned' | 'DeProvisionFailed' | 'Reprovisioning' | 'ReprovisionFailed' | 'UnReprovisioned'; /** * Defines values for VirtualNetworkRuleState. - * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', - * 'Unknown' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VirtualNetworkRuleState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Initializing', 'InProgress', 'Ready', 'Deleting', 'Unknown' * @readonly * @enum {string} */ -export enum VirtualNetworkRuleState { - Initializing = 'Initializing', - InProgress = 'InProgress', - Ready = 'Ready', - Deleting = 'Deleting', - Unknown = 'Unknown', -} +export type VirtualNetworkRuleState = 'Initializing' | 'InProgress' | 'Ready' | 'Deleting' | 'Unknown'; /** * Defines values for BlobAuditingPolicyState. @@ -8355,96 +7973,42 @@ export enum VirtualNetworkRuleState { * @readonly * @enum {string} */ -export enum BlobAuditingPolicyState { - Enabled = 'Enabled', - Disabled = 'Disabled', -} +export type BlobAuditingPolicyState = 'Enabled' | 'Disabled'; /** * Defines values for JobAgentState. - * Possible values include: 'Creating', 'Ready', 'Updating', 'Deleting', - * 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobAgentState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Creating', 'Ready', 'Updating', 'Deleting', 'Disabled' * @readonly * @enum {string} */ -export enum JobAgentState { - Creating = 'Creating', - Ready = 'Ready', - Updating = 'Updating', - Deleting = 'Deleting', - Disabled = 'Disabled', -} +export type JobAgentState = 'Creating' | 'Ready' | 'Updating' | 'Deleting' | 'Disabled'; /** * Defines values for JobExecutionLifecycle. - * Possible values include: 'Created', 'InProgress', - * 'WaitingForChildJobExecutions', 'WaitingForRetry', 'Succeeded', - * 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', 'Skipped' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobExecutionLifecycle = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Created', 'InProgress', 'WaitingForChildJobExecutions', + * 'WaitingForRetry', 'Succeeded', 'SucceededWithSkipped', 'Failed', 'TimedOut', 'Canceled', + * 'Skipped' * @readonly * @enum {string} */ -export enum JobExecutionLifecycle { - Created = 'Created', - InProgress = 'InProgress', - WaitingForChildJobExecutions = 'WaitingForChildJobExecutions', - WaitingForRetry = 'WaitingForRetry', - Succeeded = 'Succeeded', - SucceededWithSkipped = 'SucceededWithSkipped', - Failed = 'Failed', - TimedOut = 'TimedOut', - Canceled = 'Canceled', - Skipped = 'Skipped', -} +export type JobExecutionLifecycle = 'Created' | 'InProgress' | 'WaitingForChildJobExecutions' | 'WaitingForRetry' | 'Succeeded' | 'SucceededWithSkipped' | 'Failed' | 'TimedOut' | 'Canceled' | 'Skipped'; /** * Defines values for ProvisioningState. - * Possible values include: 'Created', 'InProgress', 'Succeeded', 'Failed', - * 'Canceled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ProvisioningState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Created', 'InProgress', 'Succeeded', 'Failed', 'Canceled' * @readonly * @enum {string} */ -export enum ProvisioningState { - Created = 'Created', - InProgress = 'InProgress', - Succeeded = 'Succeeded', - Failed = 'Failed', - Canceled = 'Canceled', -} +export type ProvisioningState = 'Created' | 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled'; /** * Defines values for JobTargetType. - * Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', - * 'SqlShardMap', 'SqlServer' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobTargetType = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'TargetGroup', 'SqlDatabase', 'SqlElasticPool', 'SqlShardMap', + * 'SqlServer' * @readonly * @enum {string} */ -export enum JobTargetType { - TargetGroup = 'TargetGroup', - SqlDatabase = 'SqlDatabase', - SqlElasticPool = 'SqlElasticPool', - SqlShardMap = 'SqlShardMap', - SqlServer = 'SqlServer', -} +export type JobTargetType = 'TargetGroup' | 'SqlDatabase' | 'SqlElasticPool' | 'SqlShardMap' | 'SqlServer'; /** * Defines values for JobScheduleType. @@ -8452,55 +8016,31 @@ export enum JobTargetType { * @readonly * @enum {string} */ -export enum JobScheduleType { - Once = 'Once', - Recurring = 'Recurring', -} +export type JobScheduleType = 'Once' | 'Recurring'; /** * Defines values for JobStepActionType. * Possible values include: 'TSql' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobStepActionType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum JobStepActionType { - TSql = 'TSql', -} +export type JobStepActionType = 'TSql'; /** * Defines values for JobStepActionSource. * Possible values include: 'Inline' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobStepActionSource = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum JobStepActionSource { - Inline = 'Inline', -} +export type JobStepActionSource = 'Inline'; /** * Defines values for JobStepOutputType. * Possible values include: 'SqlDatabase' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: JobStepOutputType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum JobStepOutputType { - SqlDatabase = 'SqlDatabase', -} +export type JobStepOutputType = 'SqlDatabase'; /** * Defines values for JobTargetGroupMembershipType. @@ -8508,64 +8048,31 @@ export enum JobStepOutputType { * @readonly * @enum {string} */ -export enum JobTargetGroupMembershipType { - Include = 'Include', - Exclude = 'Exclude', -} +export type JobTargetGroupMembershipType = 'Include' | 'Exclude'; /** * Defines values for ManagedDatabaseStatus. - * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ManagedDatabaseStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible' * @readonly * @enum {string} */ -export enum ManagedDatabaseStatus { - Online = 'Online', - Offline = 'Offline', - Shutdown = 'Shutdown', - Creating = 'Creating', - Inaccessible = 'Inaccessible', -} +export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible'; /** * Defines values for CatalogCollationType. * Possible values include: 'DATABASE_DEFAULT', 'SQL_Latin1_General_CP1_CI_AS' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CatalogCollationType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum CatalogCollationType { - DATABASEDEFAULT = 'DATABASE_DEFAULT', - SQLLatin1GeneralCP1CIAS = 'SQL_Latin1_General_CP1_CI_AS', -} +export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_CI_AS'; /** * Defines values for ManagedDatabaseCreateMode. - * Possible values include: 'Default', 'RestoreExternalBackup', - * 'PointInTimeRestore' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ManagedDatabaseCreateMode = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore' * @readonly * @enum {string} */ -export enum ManagedDatabaseCreateMode { - Default = 'Default', - RestoreExternalBackup = 'RestoreExternalBackup', - PointInTimeRestore = 'PointInTimeRestore', -} +export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore'; /** * Defines values for AutomaticTuningServerMode. @@ -8573,11 +8080,7 @@ export enum ManagedDatabaseCreateMode { * @readonly * @enum {string} */ -export enum AutomaticTuningServerMode { - Custom = 'Custom', - Auto = 'Auto', - Unspecified = 'Unspecified', -} +export type AutomaticTuningServerMode = 'Custom' | 'Auto' | 'Unspecified'; /** * Defines values for AutomaticTuningServerReason. @@ -8585,11 +8088,7 @@ export enum AutomaticTuningServerMode { * @readonly * @enum {string} */ -export enum AutomaticTuningServerReason { - Default = 'Default', - Disabled = 'Disabled', - AutoConfigured = 'AutoConfigured', -} +export type AutomaticTuningServerReason = 'Default' | 'Disabled' | 'AutoConfigured'; /** * Defines values for RestorePointType. @@ -8597,69 +8096,32 @@ export enum AutomaticTuningServerReason { * @readonly * @enum {string} */ -export enum RestorePointType { - CONTINUOUS = 'CONTINUOUS', - DISCRETE = 'DISCRETE', -} +export type RestorePointType = 'CONTINUOUS' | 'DISCRETE'; /** * Defines values for ManagementOperationState. - * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', - * 'CancelInProgress', 'Cancelled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ManagementOperationState = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Pending', 'InProgress', 'Succeeded', 'Failed', 'CancelInProgress', + * 'Cancelled' * @readonly * @enum {string} */ -export enum ManagementOperationState { - Pending = 'Pending', - InProgress = 'InProgress', - Succeeded = 'Succeeded', - Failed = 'Failed', - CancelInProgress = 'CancelInProgress', - Cancelled = 'Cancelled', -} +export type ManagementOperationState = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'CancelInProgress' | 'Cancelled'; /** * Defines values for MaxSizeUnit. * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: MaxSizeUnit = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum MaxSizeUnit { - Megabytes = 'Megabytes', - Gigabytes = 'Gigabytes', - Terabytes = 'Terabytes', - Petabytes = 'Petabytes', -} +export type MaxSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes'; /** * Defines values for LogSizeUnit. - * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', - * 'Percent' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LogSizeUnit = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Megabytes', 'Gigabytes', 'Terabytes', 'Petabytes', 'Percent' * @readonly * @enum {string} */ -export enum LogSizeUnit { - Megabytes = 'Megabytes', - Gigabytes = 'Gigabytes', - Terabytes = 'Terabytes', - Petabytes = 'Petabytes', - Percent = 'Percent', -} +export type LogSizeUnit = 'Megabytes' | 'Gigabytes' | 'Terabytes' | 'Petabytes' | 'Percent'; /** * Defines values for CapabilityStatus. @@ -8667,238 +8129,107 @@ export enum LogSizeUnit { * @readonly * @enum {string} */ -export enum CapabilityStatus { - Visible = 'Visible', - Available = 'Available', - Default = 'Default', - Disabled = 'Disabled', -} +export type CapabilityStatus = 'Visible' | 'Available' | 'Default' | 'Disabled'; /** * Defines values for PerformanceLevelUnit. * Possible values include: 'DTU', 'VCores' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: PerformanceLevelUnit = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum PerformanceLevelUnit { - DTU = 'DTU', - VCores = 'VCores', -} +export type PerformanceLevelUnit = 'DTU' | 'VCores'; /** * Defines values for CreateMode. - * Possible values include: 'Default', 'Copy', 'Secondary', - * 'PointInTimeRestore', 'Restore', 'Recovery', 'RestoreExternalBackup', - * 'RestoreExternalBackupSecondary', 'RestoreLongTermRetentionBackup', - * 'OnlineSecondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CreateMode = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Default', 'Copy', 'Secondary', 'PointInTimeRestore', 'Restore', + * 'Recovery', 'RestoreExternalBackup', 'RestoreExternalBackupSecondary', + * 'RestoreLongTermRetentionBackup', 'OnlineSecondary' * @readonly * @enum {string} */ -export enum CreateMode { - Default = 'Default', - Copy = 'Copy', - Secondary = 'Secondary', - PointInTimeRestore = 'PointInTimeRestore', - Restore = 'Restore', - Recovery = 'Recovery', - RestoreExternalBackup = 'RestoreExternalBackup', - RestoreExternalBackupSecondary = 'RestoreExternalBackupSecondary', - RestoreLongTermRetentionBackup = 'RestoreLongTermRetentionBackup', - OnlineSecondary = 'OnlineSecondary', -} +export type CreateMode = 'Default' | 'Copy' | 'Secondary' | 'PointInTimeRestore' | 'Restore' | 'Recovery' | 'RestoreExternalBackup' | 'RestoreExternalBackupSecondary' | 'RestoreLongTermRetentionBackup' | 'OnlineSecondary'; /** * Defines values for SampleName. - * Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', - * 'WideWorldImportersFull' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: SampleName = "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'AdventureWorksLT', 'WideWorldImportersStd', 'WideWorldImportersFull' * @readonly * @enum {string} */ -export enum SampleName { - AdventureWorksLT = 'AdventureWorksLT', - WideWorldImportersStd = 'WideWorldImportersStd', - WideWorldImportersFull = 'WideWorldImportersFull', -} +export type SampleName = 'AdventureWorksLT' | 'WideWorldImportersStd' | 'WideWorldImportersFull'; /** * Defines values for DatabaseStatus. - * Possible values include: 'Online', 'Restoring', 'RecoveryPending', - * 'Recovering', 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', - * 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', - * 'Pausing', 'Paused', 'Resuming', 'Scaling' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseStatus = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', + * 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', + * 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling' * @readonly * @enum {string} */ -export enum DatabaseStatus { - Online = 'Online', - Restoring = 'Restoring', - RecoveryPending = 'RecoveryPending', - Recovering = 'Recovering', - Suspect = 'Suspect', - Offline = 'Offline', - Standby = 'Standby', - Shutdown = 'Shutdown', - EmergencyMode = 'EmergencyMode', - AutoClosed = 'AutoClosed', - Copying = 'Copying', - Creating = 'Creating', - Inaccessible = 'Inaccessible', - OfflineSecondary = 'OfflineSecondary', - Pausing = 'Pausing', - Paused = 'Paused', - Resuming = 'Resuming', - Scaling = 'Scaling', -} +export type DatabaseStatus = 'Online' | 'Restoring' | 'RecoveryPending' | 'Recovering' | 'Suspect' | 'Offline' | 'Standby' | 'Shutdown' | 'EmergencyMode' | 'AutoClosed' | 'Copying' | 'Creating' | 'Inaccessible' | 'OfflineSecondary' | 'Pausing' | 'Paused' | 'Resuming' | 'Scaling'; /** * Defines values for DatabaseLicenseType. * Possible values include: 'LicenseIncluded', 'BasePrice' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseLicenseType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DatabaseLicenseType { - LicenseIncluded = 'LicenseIncluded', - BasePrice = 'BasePrice', -} +export type DatabaseLicenseType = 'LicenseIncluded' | 'BasePrice'; /** * Defines values for DatabaseReadScale. * Possible values include: 'Enabled', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: DatabaseReadScale = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum DatabaseReadScale { - Enabled = 'Enabled', - Disabled = 'Disabled', -} +export type DatabaseReadScale = 'Enabled' | 'Disabled'; /** * Defines values for ElasticPoolState. * Possible values include: 'Creating', 'Ready', 'Disabled' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ElasticPoolState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ElasticPoolState { - Creating = 'Creating', - Ready = 'Ready', - Disabled = 'Disabled', -} +export type ElasticPoolState = 'Creating' | 'Ready' | 'Disabled'; /** * Defines values for ElasticPoolLicenseType. * Possible values include: 'LicenseIncluded', 'BasePrice' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: ElasticPoolLicenseType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum ElasticPoolLicenseType { - LicenseIncluded = 'LicenseIncluded', - BasePrice = 'BasePrice', -} +export type ElasticPoolLicenseType = 'LicenseIncluded' | 'BasePrice'; /** * Defines values for VulnerabilityAssessmentScanTriggerType. * Possible values include: 'OnDemand', 'Recurring' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VulnerabilityAssessmentScanTriggerType = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum VulnerabilityAssessmentScanTriggerType { - OnDemand = 'OnDemand', - Recurring = 'Recurring', -} +export type VulnerabilityAssessmentScanTriggerType = 'OnDemand' | 'Recurring'; /** * Defines values for VulnerabilityAssessmentScanState. * Possible values include: 'Passed', 'Failed', 'FailedToRun', 'InProgress' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: VulnerabilityAssessmentScanState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum VulnerabilityAssessmentScanState { - Passed = 'Passed', - Failed = 'Failed', - FailedToRun = 'FailedToRun', - InProgress = 'InProgress', -} +export type VulnerabilityAssessmentScanState = 'Passed' | 'Failed' | 'FailedToRun' | 'InProgress'; /** * Defines values for InstanceFailoverGroupReplicationRole. * Possible values include: 'Primary', 'Secondary' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: InstanceFailoverGroupReplicationRole = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum InstanceFailoverGroupReplicationRole { - Primary = 'Primary', - Secondary = 'Secondary', -} +export type InstanceFailoverGroupReplicationRole = 'Primary' | 'Secondary'; /** * Defines values for LongTermRetentionDatabaseState. * Possible values include: 'All', 'Live', 'Deleted' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: LongTermRetentionDatabaseState = - * "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum LongTermRetentionDatabaseState { - All = 'All', - Live = 'Live', - Deleted = 'Deleted', -} +export type LongTermRetentionDatabaseState = 'All' | 'Live' | 'Deleted'; /** * Defines values for VulnerabilityAssessmentPolicyBaselineName. @@ -8906,45 +8237,24 @@ export enum LongTermRetentionDatabaseState { * @readonly * @enum {string} */ -export enum VulnerabilityAssessmentPolicyBaselineName { - Master = 'master', - Default = 'default', -} +export type VulnerabilityAssessmentPolicyBaselineName = 'master' | 'default'; /** * Defines values for CapabilityGroup. - * Possible values include: 'supportedEditions', - * 'supportedElasticPoolEditions', 'supportedManagedInstanceVersions' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: CapabilityGroup = - * "someUnknownValueThatWillStillBeValid"; + * Possible values include: 'supportedEditions', 'supportedElasticPoolEditions', + * 'supportedManagedInstanceVersions' * @readonly * @enum {string} */ -export enum CapabilityGroup { - SupportedEditions = 'supportedEditions', - SupportedElasticPoolEditions = 'supportedElasticPoolEditions', - SupportedManagedInstanceVersions = 'supportedManagedInstanceVersions', -} +export type CapabilityGroup = 'supportedEditions' | 'supportedElasticPoolEditions' | 'supportedManagedInstanceVersions'; /** * Defines values for Type. * Possible values include: 'All', 'Error', 'Warning', 'Success' - * There could be more values for this enum apart from the ones defined here.If - * you want to set a value that is not from the known values then you can do - * the following: - * let param: Type = "someUnknownValueThatWillStillBeValid"; * @readonly * @enum {string} */ -export enum Type { - All = 'All', - Error = 'Error', - Warning = 'Warning', - Success = 'Success', -} +export type Type = 'All' | 'Error' | 'Warning' | 'Success'; /** * Contains response data for the get operation. @@ -13792,9 +13102,9 @@ export type CapabilitiesListByLocationResponse = LocationCapabilities & { }; /** - * Contains response data for the get operation. + * Contains response data for the listByDatabase operation. */ -export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { +export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { /** * The underlying HTTP response. */ @@ -13806,14 +13116,14 @@ export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAsses /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecord; + parsedBody: VulnerabilityAssessmentScanRecordListResult; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the get operation. */ -export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = VulnerabilityAssessmentScanRecordListResult & { +export type DatabaseVulnerabilityAssessmentScansGetResponse = VulnerabilityAssessmentScanRecord & { /** * The underlying HTTP response. */ @@ -13825,7 +13135,7 @@ export type DatabaseVulnerabilityAssessmentScansListByDatabaseResponse = Vulnera /** * The response body as parsed JSON or XML */ - parsedBody: VulnerabilityAssessmentScanRecordListResult; + parsedBody: VulnerabilityAssessmentScanRecord; }; }; diff --git a/packages/@azure/arm-sql/lib/operations/backupLongTermRetentionPolicies.ts b/packages/@azure/arm-sql/lib/operations/backupLongTermRetentionPolicies.ts index 8a8539190861..9d9003c73522 100644 --- a/packages/@azure/arm-sql/lib/operations/backupLongTermRetentionPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/backupLongTermRetentionPolicies.ts @@ -54,7 +54,7 @@ export class BackupLongTermRetentionPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -108,7 +108,7 @@ export class BackupLongTermRetentionPolicies { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/backupShortTermRetentionPolicies.ts b/packages/@azure/arm-sql/lib/operations/backupShortTermRetentionPolicies.ts index 194e862ff7b9..a617ad949a8a 100644 --- a/packages/@azure/arm-sql/lib/operations/backupShortTermRetentionPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/backupShortTermRetentionPolicies.ts @@ -54,7 +54,7 @@ export class BackupShortTermRetentionPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -123,7 +123,7 @@ export class BackupShortTermRetentionPolicies { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -199,7 +199,7 @@ export class BackupShortTermRetentionPolicies { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/capabilities.ts b/packages/@azure/arm-sql/lib/operations/capabilities.ts index 4d922fcc6fa9..8ae55f07de98 100644 --- a/packages/@azure/arm-sql/lib/operations/capabilities.ts +++ b/packages/@azure/arm-sql/lib/operations/capabilities.ts @@ -44,7 +44,7 @@ export class Capabilities { * @param callback The callback */ listByLocation(locationName: string, options: Models.CapabilitiesListByLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: Models.CapabilitiesListByLocationOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByLocation(locationName: string, options?: Models.CapabilitiesListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, diff --git a/packages/@azure/arm-sql/lib/operations/dataMaskingPolicies.ts b/packages/@azure/arm-sql/lib/operations/dataMaskingPolicies.ts index 4b18e2c0b2f6..f3c1b6bbf0ac 100644 --- a/packages/@azure/arm-sql/lib/operations/dataMaskingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/dataMaskingPolicies.ts @@ -56,7 +56,7 @@ export class DataMaskingPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DataMaskingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class DataMaskingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/dataMaskingRules.ts b/packages/@azure/arm-sql/lib/operations/dataMaskingRules.ts index e2fd66d0219b..e43e8d5d1b42 100644 --- a/packages/@azure/arm-sql/lib/operations/dataMaskingRules.ts +++ b/packages/@azure/arm-sql/lib/operations/dataMaskingRules.ts @@ -59,7 +59,7 @@ export class DataMaskingRules { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, dataMaskingRuleName: string, parameters: Models.DataMaskingRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -100,7 +100,7 @@ export class DataMaskingRules { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseAutomaticTuningOperations.ts b/packages/@azure/arm-sql/lib/operations/databaseAutomaticTuningOperations.ts index b54a5d288227..cfaeb9ddfa3a 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseAutomaticTuningOperations.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseAutomaticTuningOperations.ts @@ -53,7 +53,7 @@ export class DatabaseAutomaticTuningOperations { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class DatabaseAutomaticTuningOperations { * @param callback The callback */ update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseAutomaticTuning, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseBlobAuditingPolicies.ts b/packages/@azure/arm-sql/lib/operations/databaseBlobAuditingPolicies.ts index 40b6610f76dc..a21faa8f104e 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseBlobAuditingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseBlobAuditingPolicies.ts @@ -53,7 +53,7 @@ export class DatabaseBlobAuditingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class DatabaseBlobAuditingPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseOperations.ts b/packages/@azure/arm-sql/lib/operations/databaseOperations.ts index e009d835634d..160c00f10eca 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseOperations.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseOperations.ts @@ -56,7 +56,7 @@ export class DatabaseOperations { * @param callback The callback */ cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(resourceGroupName: string, serverName: string, databaseName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class DatabaseOperations { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -126,7 +126,7 @@ export class DatabaseOperations { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/databaseThreatDetectionPolicies.ts b/packages/@azure/arm-sql/lib/operations/databaseThreatDetectionPolicies.ts index 902e065e1624..632378db57f0 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseThreatDetectionPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseThreatDetectionPolicies.ts @@ -56,7 +56,7 @@ export class DatabaseThreatDetectionPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -101,7 +101,7 @@ export class DatabaseThreatDetectionPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseSecurityAlertPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseUsages.ts b/packages/@azure/arm-sql/lib/operations/databaseUsages.ts index 359798a16c38..1371a7ef1350 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseUsages.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseUsages.ts @@ -53,7 +53,7 @@ export class DatabaseUsages { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentRuleBaselines.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentRuleBaselines.ts index c9e150ef3a7f..4f53146a5e9c 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentRuleBaselines.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentRuleBaselines.ts @@ -68,7 +68,7 @@ export class DatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -127,7 +127,7 @@ export class DatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -184,7 +184,7 @@ export class DatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts index f897e4781cd0..8ee776567460 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessmentScans.ts @@ -28,100 +28,100 @@ export class DatabaseVulnerabilityAssessmentScans { } /** - * Gets a vulnerability assessment scan record of a database. + * Lists the vulnerability assessment scans of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. - * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, - scanId, options }, - getOperationSpec, - callback) as Promise; + listByDatabaseOperationSpec, + callback) as Promise; } /** - * Executes a Vulnerability Assessment database scan. + * Gets a vulnerability assessment scan record of a database. * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param [options] The optional parameters - * @returns Promise - */ - initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginInitiateScan(resourceGroupName,serverName,databaseName,scanId,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Lists the vulnerability assessment scans of a database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. - * @param serverName The name of the server. - * @param databaseName The name of the database. - * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName The name of the resource group that contains the resource. You can * obtain this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. * @param options The optional parameters * @param callback The callback */ - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, serverName, databaseName, + scanId, options }, - listByDatabaseOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; + } + + /** + * Executes a Vulnerability Assessment database scan. + * @param resourceGroupName The name of the resource group that contains the resource. You can + * obtain this value from the Azure Resource Manager API or the portal. + * @param serverName The name of the server. + * @param databaseName The name of the database. + * @param scanId The vulnerability assessment scan Id of the scan to retrieve. + * @param [options] The optional parameters + * @returns Promise + */ + initiateScan(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginInitiateScan(resourceGroupName,serverName,databaseName,scanId,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -154,7 +154,7 @@ export class DatabaseVulnerabilityAssessmentScans { * @param callback The callback */ exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + exportMethod(resourceGroupName: string, serverName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -208,7 +208,7 @@ export class DatabaseVulnerabilityAssessmentScans { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -221,15 +221,14 @@ export class DatabaseVulnerabilityAssessmentScans { // Operation Specifications const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { +const listByDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, Parameters.vulnerabilityAssessmentName, - Parameters.scanId, Parameters.subscriptionId ], queryParameters: [ @@ -240,7 +239,7 @@ const getOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecord + bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult }, default: { bodyMapper: Mappers.CloudError @@ -249,14 +248,15 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByDatabaseOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}", urlParameters: [ Parameters.resourceGroupName, Parameters.serverName, Parameters.databaseName, Parameters.vulnerabilityAssessmentName, + Parameters.scanId, Parameters.subscriptionId ], queryParameters: [ @@ -267,7 +267,7 @@ const listByDatabaseOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.VulnerabilityAssessmentScanRecordListResult + bodyMapper: Mappers.VulnerabilityAssessmentScanRecord }, default: { bodyMapper: Mappers.CloudError diff --git a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts index 4cc14b598567..89ea1f41fd7d 100644 --- a/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/databaseVulnerabilityAssessments.ts @@ -53,7 +53,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -135,7 +135,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -177,7 +177,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -207,7 +207,7 @@ export class DatabaseVulnerabilityAssessments { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/databases.ts b/packages/@azure/arm-sql/lib/operations/databases.ts index cfc33583ec04..fceebf768045 100644 --- a/packages/@azure/arm-sql/lib/operations/databases.ts +++ b/packages/@azure/arm-sql/lib/operations/databases.ts @@ -102,7 +102,7 @@ export class Databases { * @param callback The callback */ listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetrics(resourceGroupName: string, serverName: string, databaseName: string, filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -142,7 +142,7 @@ export class Databases { * @param callback The callback */ listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetricDefinitions(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -192,7 +192,7 @@ export class Databases { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -230,7 +230,7 @@ export class Databases { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -313,7 +313,7 @@ export class Databases { * @param callback The callback */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -383,7 +383,7 @@ export class Databases { * @param callback The callback */ rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + rename(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ResourceMoveDefinition, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -612,7 +612,7 @@ export class Databases { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -640,7 +640,7 @@ export class Databases { * @param callback The callback */ listByElasticPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/elasticPoolActivities.ts b/packages/@azure/arm-sql/lib/operations/elasticPoolActivities.ts index f0cd55a3bf16..b92a53a28564 100644 --- a/packages/@azure/arm-sql/lib/operations/elasticPoolActivities.ts +++ b/packages/@azure/arm-sql/lib/operations/elasticPoolActivities.ts @@ -53,7 +53,7 @@ export class ElasticPoolActivities { * @param callback The callback */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/elasticPoolDatabaseActivities.ts b/packages/@azure/arm-sql/lib/operations/elasticPoolDatabaseActivities.ts index 40bd860dad04..ce192573ba8f 100644 --- a/packages/@azure/arm-sql/lib/operations/elasticPoolDatabaseActivities.ts +++ b/packages/@azure/arm-sql/lib/operations/elasticPoolDatabaseActivities.ts @@ -53,7 +53,7 @@ export class ElasticPoolDatabaseActivities { * @param callback The callback */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/elasticPoolOperations.ts b/packages/@azure/arm-sql/lib/operations/elasticPoolOperations.ts index a3df02920d9e..466c2521e191 100644 --- a/packages/@azure/arm-sql/lib/operations/elasticPoolOperations.ts +++ b/packages/@azure/arm-sql/lib/operations/elasticPoolOperations.ts @@ -56,7 +56,7 @@ export class ElasticPoolOperations { * @param callback The callback */ cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(resourceGroupName: string, serverName: string, elasticPoolName: string, operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class ElasticPoolOperations { * @param callback The callback */ listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPool(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -126,7 +126,7 @@ export class ElasticPoolOperations { * @param callback The callback */ listByElasticPoolNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByElasticPoolNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/elasticPools.ts b/packages/@azure/arm-sql/lib/operations/elasticPools.ts index 5aac4d0d8dab..7cbca290d4a0 100644 --- a/packages/@azure/arm-sql/lib/operations/elasticPools.ts +++ b/packages/@azure/arm-sql/lib/operations/elasticPools.ts @@ -57,7 +57,7 @@ export class ElasticPools { * @param callback The callback */ listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetrics(resourceGroupName: string, serverName: string, elasticPoolName: string, filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -97,7 +97,7 @@ export class ElasticPools { * @param callback The callback */ listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetricDefinitions(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -133,7 +133,7 @@ export class ElasticPools { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: Models.ElasticPoolsListByServerOptionalParams, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: Models.ElasticPoolsListByServerOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: Models.ElasticPoolsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -171,7 +171,7 @@ export class ElasticPools { * @param callback The callback */ get(resourceGroupName: string, serverName: string, elasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, elasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -312,7 +312,7 @@ export class ElasticPools { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/encryptionProtectors.ts b/packages/@azure/arm-sql/lib/operations/encryptionProtectors.ts index 754eaaccda7e..c71397cbefbd 100644 --- a/packages/@azure/arm-sql/lib/operations/encryptionProtectors.ts +++ b/packages/@azure/arm-sql/lib/operations/encryptionProtectors.ts @@ -51,7 +51,7 @@ export class EncryptionProtectors { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -86,7 +86,7 @@ export class EncryptionProtectors { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -150,7 +150,7 @@ export class EncryptionProtectors { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/extendedDatabaseBlobAuditingPolicies.ts b/packages/@azure/arm-sql/lib/operations/extendedDatabaseBlobAuditingPolicies.ts index b7111daf6c03..9159678a491c 100644 --- a/packages/@azure/arm-sql/lib/operations/extendedDatabaseBlobAuditingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/extendedDatabaseBlobAuditingPolicies.ts @@ -53,7 +53,7 @@ export class ExtendedDatabaseBlobAuditingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class ExtendedDatabaseBlobAuditingPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.ExtendedDatabaseBlobAuditingPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/extendedServerBlobAuditingPolicies.ts b/packages/@azure/arm-sql/lib/operations/extendedServerBlobAuditingPolicies.ts index ad63a5ca6f15..1c5750a89df1 100644 --- a/packages/@azure/arm-sql/lib/operations/extendedServerBlobAuditingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/extendedServerBlobAuditingPolicies.ts @@ -51,7 +51,7 @@ export class ExtendedServerBlobAuditingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/failoverGroups.ts b/packages/@azure/arm-sql/lib/operations/failoverGroups.ts index c91e0c4bbafd..21e1271e129b 100644 --- a/packages/@azure/arm-sql/lib/operations/failoverGroups.ts +++ b/packages/@azure/arm-sql/lib/operations/failoverGroups.ts @@ -54,7 +54,7 @@ export class FailoverGroups { * @param callback The callback */ get(resourceGroupName: string, serverName: string, failoverGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -134,7 +134,7 @@ export class FailoverGroups { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -302,7 +302,7 @@ export class FailoverGroups { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/firewallRules.ts b/packages/@azure/arm-sql/lib/operations/firewallRules.ts index 2e43b97e51d7..973727b6c7b6 100644 --- a/packages/@azure/arm-sql/lib/operations/firewallRules.ts +++ b/packages/@azure/arm-sql/lib/operations/firewallRules.ts @@ -56,7 +56,7 @@ export class FirewallRules { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, firewallRuleName: string, parameters: Models.FirewallRule, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class FirewallRules { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -135,7 +135,7 @@ export class FirewallRules { * @param callback The callback */ get(resourceGroupName: string, serverName: string, firewallRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, firewallRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -171,7 +171,7 @@ export class FirewallRules { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/geoBackupPolicies.ts b/packages/@azure/arm-sql/lib/operations/geoBackupPolicies.ts index 316213527d55..1d5e8530fe2b 100644 --- a/packages/@azure/arm-sql/lib/operations/geoBackupPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/geoBackupPolicies.ts @@ -56,7 +56,7 @@ export class GeoBackupPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.GeoBackupPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class GeoBackupPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -135,7 +135,7 @@ export class GeoBackupPolicies { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/instanceFailoverGroups.ts b/packages/@azure/arm-sql/lib/operations/instanceFailoverGroups.ts index bffd1e010731..49859eecb3ef 100644 --- a/packages/@azure/arm-sql/lib/operations/instanceFailoverGroups.ts +++ b/packages/@azure/arm-sql/lib/operations/instanceFailoverGroups.ts @@ -54,7 +54,7 @@ export class InstanceFailoverGroups { * @param callback The callback */ get(resourceGroupName: string, locationName: string, failoverGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, locationName: string, failoverGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -119,7 +119,7 @@ export class InstanceFailoverGroups { * @param callback The callback */ listByLocation(resourceGroupName: string, locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocation(resourceGroupName: string, locationName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocation(resourceGroupName: string, locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -264,7 +264,7 @@ export class InstanceFailoverGroups { * @param callback The callback */ listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobAgents.ts b/packages/@azure/arm-sql/lib/operations/jobAgents.ts index 69e7bc400df8..903641d6f319 100644 --- a/packages/@azure/arm-sql/lib/operations/jobAgents.ts +++ b/packages/@azure/arm-sql/lib/operations/jobAgents.ts @@ -51,7 +51,7 @@ export class JobAgents { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class JobAgents { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -230,7 +230,7 @@ export class JobAgents { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobCredentials.ts b/packages/@azure/arm-sql/lib/operations/jobCredentials.ts index a9d1a3df8077..53c8197733f4 100644 --- a/packages/@azure/arm-sql/lib/operations/jobCredentials.ts +++ b/packages/@azure/arm-sql/lib/operations/jobCredentials.ts @@ -53,7 +53,7 @@ export class JobCredentials { * @param callback The callback */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class JobCredentials { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -141,7 +141,7 @@ export class JobCredentials { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, parameters: Models.JobCredential, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,7 +185,7 @@ export class JobCredentials { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, credentialName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -216,7 +216,7 @@ export class JobCredentials { * @param callback The callback */ listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobExecutions.ts b/packages/@azure/arm-sql/lib/operations/jobExecutions.ts index e6218dc90edd..1e929e52832a 100644 --- a/packages/@azure/arm-sql/lib/operations/jobExecutions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobExecutions.ts @@ -54,7 +54,7 @@ export class JobExecutions { * @param callback The callback */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: Models.JobExecutionsListByAgentOptionalParams, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: Models.JobExecutionsListByAgentOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: Models.JobExecutionsListByAgentOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -99,7 +99,7 @@ export class JobExecutions { * @param callback The callback */ cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancel(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -158,7 +158,7 @@ export class JobExecutions { * @param callback The callback */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: Models.JobExecutionsListByJobOptionalParams, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: Models.JobExecutionsListByJobOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: Models.JobExecutionsListByJobOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -204,7 +204,7 @@ export class JobExecutions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -300,7 +300,7 @@ export class JobExecutions { * @param callback The callback */ listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -328,7 +328,7 @@ export class JobExecutions { * @param callback The callback */ listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobStepExecutions.ts b/packages/@azure/arm-sql/lib/operations/jobStepExecutions.ts index f421d4b5b31c..6054ec657780 100644 --- a/packages/@azure/arm-sql/lib/operations/jobStepExecutions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobStepExecutions.ts @@ -59,7 +59,7 @@ export class JobStepExecutions { * @param callback The callback */ listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: Models.JobStepExecutionsListByJobExecutionOptionalParams, callback: msRest.ServiceCallback): void; - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobStepExecutionsListByJobExecutionOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobStepExecutionsListByJobExecutionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -109,7 +109,7 @@ export class JobStepExecutions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -142,7 +142,7 @@ export class JobStepExecutions { * @param callback The callback */ listByJobExecutionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobSteps.ts b/packages/@azure/arm-sql/lib/operations/jobSteps.ts index 861b9991db68..81d830892008 100644 --- a/packages/@azure/arm-sql/lib/operations/jobSteps.ts +++ b/packages/@azure/arm-sql/lib/operations/jobSteps.ts @@ -59,7 +59,7 @@ export class JobSteps { * @param callback The callback */ listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -109,7 +109,7 @@ export class JobSteps { * @param callback The callback */ getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + getByVersion(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class JobSteps { * @param callback The callback */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -200,7 +200,7 @@ export class JobSteps { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -250,7 +250,7 @@ export class JobSteps { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, parameters: Models.JobStep, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -298,7 +298,7 @@ export class JobSteps { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, stepName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -330,7 +330,7 @@ export class JobSteps { * @param callback The callback */ listByVersionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByVersionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByVersionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -358,7 +358,7 @@ export class JobSteps { * @param callback The callback */ listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobTargetExecutions.ts b/packages/@azure/arm-sql/lib/operations/jobTargetExecutions.ts index 27c0ffd22a4c..96d69772ca6d 100644 --- a/packages/@azure/arm-sql/lib/operations/jobTargetExecutions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobTargetExecutions.ts @@ -59,7 +59,7 @@ export class JobTargetExecutions { * @param callback The callback */ listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options: Models.JobTargetExecutionsListByJobExecutionOptionalParams, callback: msRest.ServiceCallback): void; - listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobTargetExecutionsListByJobExecutionOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByJobExecution(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, options?: Models.JobTargetExecutionsListByJobExecutionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -109,7 +109,7 @@ export class JobTargetExecutions { * @param callback The callback */ listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options: Models.JobTargetExecutionsListByStepOptionalParams, callback: msRest.ServiceCallback): void; - listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: Models.JobTargetExecutionsListByStepOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByStep(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, options?: Models.JobTargetExecutionsListByStepOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -163,7 +163,7 @@ export class JobTargetExecutions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobExecutionId: string, stepName: string, targetId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -197,7 +197,7 @@ export class JobTargetExecutions { * @param callback The callback */ listByJobExecutionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobExecutionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -225,7 +225,7 @@ export class JobTargetExecutions { * @param callback The callback */ listByStepNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByStepNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByStepNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobTargetGroups.ts b/packages/@azure/arm-sql/lib/operations/jobTargetGroups.ts index 93f7e3e10b11..e2db4c4a0853 100644 --- a/packages/@azure/arm-sql/lib/operations/jobTargetGroups.ts +++ b/packages/@azure/arm-sql/lib/operations/jobTargetGroups.ts @@ -53,7 +53,7 @@ export class JobTargetGroups { * @param callback The callback */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class JobTargetGroups { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -141,7 +141,7 @@ export class JobTargetGroups { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, parameters: Models.JobTargetGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,7 +185,7 @@ export class JobTargetGroups { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, targetGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -216,7 +216,7 @@ export class JobTargetGroups { * @param callback The callback */ listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobVersions.ts b/packages/@azure/arm-sql/lib/operations/jobVersions.ts index 3dc6238682c6..31016c7f1429 100644 --- a/packages/@azure/arm-sql/lib/operations/jobVersions.ts +++ b/packages/@azure/arm-sql/lib/operations/jobVersions.ts @@ -56,7 +56,7 @@ export class JobVersions { * @param callback The callback */ listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJob(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -102,7 +102,7 @@ export class JobVersions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, jobVersion: number, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -134,7 +134,7 @@ export class JobVersions { * @param callback The callback */ listByJobNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByJobNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/jobs.ts b/packages/@azure/arm-sql/lib/operations/jobs.ts index 5f98993595ed..c4c46ebb7525 100644 --- a/packages/@azure/arm-sql/lib/operations/jobs.ts +++ b/packages/@azure/arm-sql/lib/operations/jobs.ts @@ -53,7 +53,7 @@ export class Jobs { * @param callback The callback */ listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgent(resourceGroupName: string, serverName: string, jobAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class Jobs { * @param callback The callback */ get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -141,7 +141,7 @@ export class Jobs { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, parameters: Models.Job, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,7 +185,7 @@ export class Jobs { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, jobAgentName: string, jobName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -216,7 +216,7 @@ export class Jobs { * @param callback The callback */ listByAgentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByAgentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts b/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts index f720121359b3..01641e38b809 100644 --- a/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts +++ b/packages/@azure/arm-sql/lib/operations/longTermRetentionBackups.ts @@ -54,7 +54,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, backupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -105,7 +105,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options: Models.LongTermRetentionBackupsListByDatabaseOptionalParams, callback: msRest.ServiceCallback): void; - listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByDatabase(locationName: string, longTermRetentionServerName: string, longTermRetentionDatabaseName: string, options?: Models.LongTermRetentionBackupsListByDatabaseOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -135,7 +135,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByLocation(locationName: string, options: Models.LongTermRetentionBackupsListByLocationOptionalParams, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByLocation(locationName: string, options?: Models.LongTermRetentionBackupsListByLocationOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -166,7 +166,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByServer(locationName: string, longTermRetentionServerName: string, options: Models.LongTermRetentionBackupsListByServerOptionalParams, callback: msRest.ServiceCallback): void; - listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByServer(locationName: string, longTermRetentionServerName: string, options?: Models.LongTermRetentionBackupsListByServerOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -217,7 +217,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -245,7 +245,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -273,7 +273,7 @@ export class LongTermRetentionBackups { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts index 0e597389c0d1..c896f162e50f 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentRuleBaselines.ts @@ -68,7 +68,7 @@ export class ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -128,7 +128,7 @@ export class ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, parameters: Models.DatabaseVulnerabilityAssessmentRuleBaseline, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -185,7 +185,7 @@ export class ManagedDatabaseVulnerabilityAssessmentRuleBaselines { * @param callback The callback */ deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, ruleId: string, baselineName: Models.VulnerabilityAssessmentPolicyBaselineName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentScans.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentScans.ts index 7ebf91e2a1e6..0e0d7b3a6690 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentScans.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessmentScans.ts @@ -54,7 +54,7 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { * @param callback The callback */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { * @param callback The callback */ exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + exportMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, scanId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -208,7 +208,7 @@ export class ManagedDatabaseVulnerabilityAssessmentScans { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts index e750987e8fc4..1c8ea822e78b 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabaseVulnerabilityAssessments.ts @@ -53,7 +53,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -95,7 +95,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @param callback The callback */ createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, managedInstanceName: string, databaseName: string, parameters: Models.DatabaseVulnerabilityAssessment, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -135,7 +135,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @param callback The callback */ deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -174,7 +174,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @param callback The callback */ listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -204,7 +204,7 @@ export class ManagedDatabaseVulnerabilityAssessments { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedDatabases.ts b/packages/@azure/arm-sql/lib/operations/managedDatabases.ts index 40dd8c4b9ddc..d8a6f60e4a10 100644 --- a/packages/@azure/arm-sql/lib/operations/managedDatabases.ts +++ b/packages/@azure/arm-sql/lib/operations/managedDatabases.ts @@ -64,7 +64,7 @@ export class ManagedDatabases { * @param callback The callback */ listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -102,7 +102,7 @@ export class ManagedDatabases { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -263,7 +263,7 @@ export class ManagedDatabases { * @param callback The callback */ listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedInstanceEncryptionProtectors.ts b/packages/@azure/arm-sql/lib/operations/managedInstanceEncryptionProtectors.ts index 28d6393fd1b7..4246958c299b 100644 --- a/packages/@azure/arm-sql/lib/operations/managedInstanceEncryptionProtectors.ts +++ b/packages/@azure/arm-sql/lib/operations/managedInstanceEncryptionProtectors.ts @@ -51,7 +51,7 @@ export class ManagedInstanceEncryptionProtectors { * @param callback The callback */ listByInstance(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -86,7 +86,7 @@ export class ManagedInstanceEncryptionProtectors { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -150,7 +150,7 @@ export class ManagedInstanceEncryptionProtectors { * @param callback The callback */ listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedInstanceKeys.ts b/packages/@azure/arm-sql/lib/operations/managedInstanceKeys.ts index 3101009705bf..7c47dbcbde46 100644 --- a/packages/@azure/arm-sql/lib/operations/managedInstanceKeys.ts +++ b/packages/@azure/arm-sql/lib/operations/managedInstanceKeys.ts @@ -51,7 +51,7 @@ export class ManagedInstanceKeys { * @param callback The callback */ listByInstance(resourceGroupName: string, managedInstanceName: string, options: Models.ManagedInstanceKeysListByInstanceOptionalParams, callback: msRest.ServiceCallback): void; - listByInstance(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstanceKeysListByInstanceOptionalParams, callback?: msRest.ServiceCallback): Promise { + listByInstance(resourceGroupName: string, managedInstanceName: string, options?: Models.ManagedInstanceKeysListByInstanceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class ManagedInstanceKeys { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -192,7 +192,7 @@ export class ManagedInstanceKeys { * @param callback The callback */ listByInstanceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByInstanceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/managedInstances.ts b/packages/@azure/arm-sql/lib/operations/managedInstances.ts index 061d16448fc6..552a3c69f748 100644 --- a/packages/@azure/arm-sql/lib/operations/managedInstances.ts +++ b/packages/@azure/arm-sql/lib/operations/managedInstances.ts @@ -42,7 +42,7 @@ export class ManagedInstances { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -72,7 +72,7 @@ export class ManagedInstances { * @param callback The callback */ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -106,7 +106,7 @@ export class ManagedInstances { * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -237,7 +237,7 @@ export class ManagedInstances { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -265,7 +265,7 @@ export class ManagedInstances { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/operations.ts b/packages/@azure/arm-sql/lib/operations/operations.ts index 87f5b2fa5688..177a37976b51 100644 --- a/packages/@azure/arm-sql/lib/operations/operations.ts +++ b/packages/@azure/arm-sql/lib/operations/operations.ts @@ -41,7 +41,7 @@ export class Operations { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -68,7 +68,7 @@ export class Operations { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts b/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts index 256982fceaad..460b515c9db3 100644 --- a/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts +++ b/packages/@azure/arm-sql/lib/operations/recommendedElasticPools.ts @@ -53,7 +53,7 @@ export class RecommendedElasticPools { * @param callback The callback */ get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class RecommendedElasticPools { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -127,7 +127,7 @@ export class RecommendedElasticPools { * @param callback The callback */ listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMetrics(resourceGroupName: string, serverName: string, recommendedElasticPoolName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/recoverableDatabases.ts b/packages/@azure/arm-sql/lib/operations/recoverableDatabases.ts index 192c7c3078cf..95d777731ee6 100644 --- a/packages/@azure/arm-sql/lib/operations/recoverableDatabases.ts +++ b/packages/@azure/arm-sql/lib/operations/recoverableDatabases.ts @@ -53,7 +53,7 @@ export class RecoverableDatabases { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class RecoverableDatabases { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/replicationLinks.ts b/packages/@azure/arm-sql/lib/operations/replicationLinks.ts index 55db150f0564..4be73d0fc290 100644 --- a/packages/@azure/arm-sql/lib/operations/replicationLinks.ts +++ b/packages/@azure/arm-sql/lib/operations/replicationLinks.ts @@ -57,7 +57,7 @@ export class ReplicationLinks { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -100,7 +100,7 @@ export class ReplicationLinks { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, linkId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -172,7 +172,7 @@ export class ReplicationLinks { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/restorableDroppedDatabases.ts b/packages/@azure/arm-sql/lib/operations/restorableDroppedDatabases.ts index 786c56b95a7e..d1799028da81 100644 --- a/packages/@azure/arm-sql/lib/operations/restorableDroppedDatabases.ts +++ b/packages/@azure/arm-sql/lib/operations/restorableDroppedDatabases.ts @@ -56,7 +56,7 @@ export class RestorableDroppedDatabases { * @param callback The callback */ get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, restorableDroppededDatabaseId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -92,7 +92,7 @@ export class RestorableDroppedDatabases { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/restorePoints.ts b/packages/@azure/arm-sql/lib/operations/restorePoints.ts index 674c6cc91803..a1496af0b04e 100644 --- a/packages/@azure/arm-sql/lib/operations/restorePoints.ts +++ b/packages/@azure/arm-sql/lib/operations/restorePoints.ts @@ -54,7 +54,7 @@ export class RestorePoints { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -111,7 +111,7 @@ export class RestorePoints { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class RestorePoints { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, databaseName: string, restorePointName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverAutomaticTuningOperations.ts b/packages/@azure/arm-sql/lib/operations/serverAutomaticTuningOperations.ts index d23ec6a13284..0b9405cc7914 100644 --- a/packages/@azure/arm-sql/lib/operations/serverAutomaticTuningOperations.ts +++ b/packages/@azure/arm-sql/lib/operations/serverAutomaticTuningOperations.ts @@ -50,7 +50,7 @@ export class ServerAutomaticTuningOperations { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -88,7 +88,7 @@ export class ServerAutomaticTuningOperations { * @param callback The callback */ update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, serverName: string, parameters: Models.ServerAutomaticTuning, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverAzureADAdministrators.ts b/packages/@azure/arm-sql/lib/operations/serverAzureADAdministrators.ts index c16ecded9d18..7d0c9c6730d5 100644 --- a/packages/@azure/arm-sql/lib/operations/serverAzureADAdministrators.ts +++ b/packages/@azure/arm-sql/lib/operations/serverAzureADAdministrators.ts @@ -80,7 +80,7 @@ export class ServerAzureADAdministrators { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -115,7 +115,7 @@ export class ServerAzureADAdministrators { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverBlobAuditingPolicies.ts b/packages/@azure/arm-sql/lib/operations/serverBlobAuditingPolicies.ts index ab6adc70d82d..9ea90510f866 100644 --- a/packages/@azure/arm-sql/lib/operations/serverBlobAuditingPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/serverBlobAuditingPolicies.ts @@ -51,7 +51,7 @@ export class ServerBlobAuditingPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverCommunicationLinks.ts b/packages/@azure/arm-sql/lib/operations/serverCommunicationLinks.ts index 0025b2d52b6a..ea566ec6ee37 100644 --- a/packages/@azure/arm-sql/lib/operations/serverCommunicationLinks.ts +++ b/packages/@azure/arm-sql/lib/operations/serverCommunicationLinks.ts @@ -54,7 +54,7 @@ export class ServerCommunicationLinks { * @param callback The callback */ deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -93,7 +93,7 @@ export class ServerCommunicationLinks { * @param callback The callback */ get(resourceGroupName: string, serverName: string, communicationLinkName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, communicationLinkName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -144,7 +144,7 @@ export class ServerCommunicationLinks { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverConnectionPolicies.ts b/packages/@azure/arm-sql/lib/operations/serverConnectionPolicies.ts index 9f9db7fc570e..571b5136ad20 100644 --- a/packages/@azure/arm-sql/lib/operations/serverConnectionPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/serverConnectionPolicies.ts @@ -53,7 +53,7 @@ export class ServerConnectionPolicies { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, parameters: Models.ServerConnectionPolicy, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class ServerConnectionPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverDnsAliases.ts b/packages/@azure/arm-sql/lib/operations/serverDnsAliases.ts index 3ddfb2d90c08..39f226ebecdf 100644 --- a/packages/@azure/arm-sql/lib/operations/serverDnsAliases.ts +++ b/packages/@azure/arm-sql/lib/operations/serverDnsAliases.ts @@ -54,7 +54,7 @@ export class ServerDnsAliases { * @param callback The callback */ get(resourceGroupName: string, serverName: string, dnsAliasName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, dnsAliasName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -118,7 +118,7 @@ export class ServerDnsAliases { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -227,7 +227,7 @@ export class ServerDnsAliases { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/serverKeys.ts b/packages/@azure/arm-sql/lib/operations/serverKeys.ts index 95f55eb26983..794bac8879a7 100644 --- a/packages/@azure/arm-sql/lib/operations/serverKeys.ts +++ b/packages/@azure/arm-sql/lib/operations/serverKeys.ts @@ -51,7 +51,7 @@ export class ServerKeys { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class ServerKeys { * @param callback The callback */ get(resourceGroupName: string, serverName: string, keyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, keyName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, keyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -200,7 +200,7 @@ export class ServerKeys { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts b/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts index eff5e8ca8bc3..f1f28b579fa3 100644 --- a/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts +++ b/packages/@azure/arm-sql/lib/operations/serverSecurityAlertPolicies.ts @@ -51,7 +51,7 @@ export class ServerSecurityAlertPolicies { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serverUsages.ts b/packages/@azure/arm-sql/lib/operations/serverUsages.ts index 36045ebdfe7b..66f08058d052 100644 --- a/packages/@azure/arm-sql/lib/operations/serverUsages.ts +++ b/packages/@azure/arm-sql/lib/operations/serverUsages.ts @@ -50,7 +50,7 @@ export class ServerUsages { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/servers.ts b/packages/@azure/arm-sql/lib/operations/servers.ts index 77a1b586600d..9f0f2065699c 100644 --- a/packages/@azure/arm-sql/lib/operations/servers.ts +++ b/packages/@azure/arm-sql/lib/operations/servers.ts @@ -45,7 +45,7 @@ export class Servers { * @param callback The callback */ checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + checkNameAvailability(parameters: Models.CheckNameAvailabilityRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { parameters, @@ -70,7 +70,7 @@ export class Servers { * @param callback The callback */ list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -100,7 +100,7 @@ export class Servers { * @param callback The callback */ listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -134,7 +134,7 @@ export class Servers { * @param callback The callback */ get(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -265,7 +265,7 @@ export class Servers { * @param callback The callback */ listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -293,7 +293,7 @@ export class Servers { * @param callback The callback */ listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/serviceObjectives.ts b/packages/@azure/arm-sql/lib/operations/serviceObjectives.ts index 4b44b380c420..a4f56319eac3 100644 --- a/packages/@azure/arm-sql/lib/operations/serviceObjectives.ts +++ b/packages/@azure/arm-sql/lib/operations/serviceObjectives.ts @@ -53,7 +53,7 @@ export class ServiceObjectives { * @param callback The callback */ get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, serviceObjectiveName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -89,7 +89,7 @@ export class ServiceObjectives { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/serviceTierAdvisors.ts b/packages/@azure/arm-sql/lib/operations/serviceTierAdvisors.ts index 0dfa0a866dfd..397138fe3422 100644 --- a/packages/@azure/arm-sql/lib/operations/serviceTierAdvisors.ts +++ b/packages/@azure/arm-sql/lib/operations/serviceTierAdvisors.ts @@ -56,7 +56,7 @@ export class ServiceTierAdvisors { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, serviceTierAdvisorName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -96,7 +96,7 @@ export class ServiceTierAdvisors { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/subscriptionUsages.ts b/packages/@azure/arm-sql/lib/operations/subscriptionUsages.ts index cafe1f59310d..d840a52e73e7 100644 --- a/packages/@azure/arm-sql/lib/operations/subscriptionUsages.ts +++ b/packages/@azure/arm-sql/lib/operations/subscriptionUsages.ts @@ -44,7 +44,7 @@ export class SubscriptionUsages { * @param callback The callback */ listByLocation(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocation(locationName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocation(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -75,7 +75,7 @@ export class SubscriptionUsages { * @param callback The callback */ get(locationName: string, usageName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(locationName: string, usageName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(locationName: string, usageName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -104,7 +104,7 @@ export class SubscriptionUsages { * @param callback The callback */ listByLocationNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByLocationNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/syncAgents.ts b/packages/@azure/arm-sql/lib/operations/syncAgents.ts index 46bb3cf0e95d..c54e459b1be4 100644 --- a/packages/@azure/arm-sql/lib/operations/syncAgents.ts +++ b/packages/@azure/arm-sql/lib/operations/syncAgents.ts @@ -54,7 +54,7 @@ export class SyncAgents { * @param callback The callback */ get(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -119,7 +119,7 @@ export class SyncAgents { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -157,7 +157,7 @@ export class SyncAgents { * @param callback The callback */ generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + generateKey(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -196,7 +196,7 @@ export class SyncAgents { * @param callback The callback */ listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listLinkedDatabases(resourceGroupName: string, serverName: string, syncAgentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -270,7 +270,7 @@ export class SyncAgents { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -298,7 +298,7 @@ export class SyncAgents { * @param callback The callback */ listLinkedDatabasesNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLinkedDatabasesNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listLinkedDatabasesNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/syncGroups.ts b/packages/@azure/arm-sql/lib/operations/syncGroups.ts index e329d6e8bea0..166c242dea88 100644 --- a/packages/@azure/arm-sql/lib/operations/syncGroups.ts +++ b/packages/@azure/arm-sql/lib/operations/syncGroups.ts @@ -45,7 +45,7 @@ export class SyncGroups { * @param callback The callback */ listSyncDatabaseIds(locationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSyncDatabaseIds(locationName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSyncDatabaseIds(locationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { locationName, @@ -100,7 +100,7 @@ export class SyncGroups { * @param callback The callback */ listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -155,7 +155,7 @@ export class SyncGroups { * @param callback The callback */ listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options: Models.SyncGroupsListLogsOptionalParams, callback: msRest.ServiceCallback): void; - listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options?: Models.SyncGroupsListLogsOptionalParams, callback?: msRest.ServiceCallback): Promise { + listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, type: Models.Type, options?: Models.SyncGroupsListLogsOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -201,7 +201,7 @@ export class SyncGroups { * @param callback The callback */ cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + cancelSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -244,7 +244,7 @@ export class SyncGroups { * @param callback The callback */ triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -287,7 +287,7 @@ export class SyncGroups { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -374,7 +374,7 @@ export class SyncGroups { * @param callback The callback */ listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -500,7 +500,7 @@ export class SyncGroups { * @param callback The callback */ listSyncDatabaseIdsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listSyncDatabaseIdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listSyncDatabaseIdsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -528,7 +528,7 @@ export class SyncGroups { * @param callback The callback */ listHubSchemasNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listHubSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listHubSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -556,7 +556,7 @@ export class SyncGroups { * @param callback The callback */ listLogsNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listLogsNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listLogsNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -584,7 +584,7 @@ export class SyncGroups { * @param callback The callback */ listByDatabaseNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByDatabaseNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/syncMembers.ts b/packages/@azure/arm-sql/lib/operations/syncMembers.ts index e17cc5d3c84f..e5c80427fb1c 100644 --- a/packages/@azure/arm-sql/lib/operations/syncMembers.ts +++ b/packages/@azure/arm-sql/lib/operations/syncMembers.ts @@ -60,7 +60,7 @@ export class SyncMembers { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -154,7 +154,7 @@ export class SyncMembers { * @param callback The callback */ listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listBySyncGroup(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -200,7 +200,7 @@ export class SyncMembers { * @param callback The callback */ listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMemberSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, syncMemberName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -352,7 +352,7 @@ export class SyncMembers { * @param callback The callback */ listBySyncGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySyncGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listBySyncGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -380,7 +380,7 @@ export class SyncMembers { * @param callback The callback */ listMemberSchemasNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listMemberSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listMemberSchemasNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/operations/transparentDataEncryptionActivities.ts b/packages/@azure/arm-sql/lib/operations/transparentDataEncryptionActivities.ts index 549b54b27089..7aa76fa6f621 100644 --- a/packages/@azure/arm-sql/lib/operations/transparentDataEncryptionActivities.ts +++ b/packages/@azure/arm-sql/lib/operations/transparentDataEncryptionActivities.ts @@ -53,7 +53,7 @@ export class TransparentDataEncryptionActivities { * @param callback The callback */ listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByConfiguration(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/transparentDataEncryptions.ts b/packages/@azure/arm-sql/lib/operations/transparentDataEncryptions.ts index 6a14b3c1ec27..6298b9c5ac7e 100644 --- a/packages/@azure/arm-sql/lib/operations/transparentDataEncryptions.ts +++ b/packages/@azure/arm-sql/lib/operations/transparentDataEncryptions.ts @@ -59,7 +59,7 @@ export class TransparentDataEncryptions { * @param callback The callback */ createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + createOrUpdate(resourceGroupName: string, serverName: string, databaseName: string, parameters: Models.TransparentDataEncryption, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -99,7 +99,7 @@ export class TransparentDataEncryptions { * @param callback The callback */ get(resourceGroupName: string, serverName: string, databaseName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, databaseName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/packages/@azure/arm-sql/lib/operations/virtualNetworkRules.ts b/packages/@azure/arm-sql/lib/operations/virtualNetworkRules.ts index 81752c8dd9f7..c54904291fd9 100644 --- a/packages/@azure/arm-sql/lib/operations/virtualNetworkRules.ts +++ b/packages/@azure/arm-sql/lib/operations/virtualNetworkRules.ts @@ -54,7 +54,7 @@ export class VirtualNetworkRules { * @param callback The callback */ get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, serverName: string, virtualNetworkRuleName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -119,7 +119,7 @@ export class VirtualNetworkRules { * @param callback The callback */ listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -192,7 +192,7 @@ export class VirtualNetworkRules { * @param callback The callback */ listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise { + listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, diff --git a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts index 90e0186f833f..7a2ae0da6264 100644 --- a/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts +++ b/packages/@azure/arm-sql/lib/sqlManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "ms-rest-js"; import * as msRestAzure from "ms-rest-azure-js"; const packageName = "@azure/arm-sql"; -const packageVersion = "1.0.0-preview"; +const packageVersion = "0.1.0"; export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -36,6 +36,11 @@ export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { if (!options) { options = {}; } + if(!options.userAgent) { + const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); + options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; + } + super(credentials, options); this.acceptLanguage = 'en-US'; @@ -45,7 +50,6 @@ export class SqlManagementClientContext extends msRestAzure.AzureServiceClient { this.credentials = credentials; this.subscriptionId = subscriptionId; - this.addUserAgentInfo(`${packageName}/${packageVersion}`); if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } diff --git a/packages/@azure/arm-sql/package.json b/packages/@azure/arm-sql/package.json index 01938af85ae2..1132efc12f51 100644 --- a/packages/@azure/arm-sql/package.json +++ b/packages/@azure/arm-sql/package.json @@ -4,8 +4,8 @@ "description": "SqlManagementClient Library with typescript type definitions for node.js and browser.", "version": "0.1.0", "dependencies": { - "ms-rest-azure-js": "^1.0.176", - "ms-rest-js": "^1.0.455", + "ms-rest-azure-js": "^1.0.181", + "ms-rest-js": "^1.0.461", "tslib": "^1.9.3" }, "keywords": [ @@ -52,4 +52,4 @@ "prepack": "npm install && npm run build" }, "sideEffects": false -} \ No newline at end of file +}