From 2683ee8fe68de6ee5fd10e3d13afe17571cd3e2f Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 20 Aug 2020 02:51:24 +0000 Subject: [PATCH] Generated from 3268ba2206820e98c0b1c9859ca4234f6bf9591a Add new line at the end of the file --- .../arm-mysql/src/models/advisorsMappers.ts | 1 - .../src/models/configurationsMappers.ts | 1 - .../arm-mysql/src/models/databasesMappers.ts | 1 - .../src/models/firewallRulesMappers.ts | 1 - sdk/mysql/arm-mysql/src/models/index.ts | 265 +++++++----------- ...dRecommendedActionSessionsResultMappers.ts | 1 - .../arm-mysql/src/models/logFilesMappers.ts | 1 - sdk/mysql/arm-mysql/src/models/mappers.ts | 174 +++++------- .../privateEndpointConnectionsMappers.ts | 1 - .../src/models/privateLinkResourcesMappers.ts | 1 - .../arm-mysql/src/models/queryTextsMappers.ts | 1 - .../src/models/recommendedActionsMappers.ts | 1 - .../arm-mysql/src/models/replicasMappers.ts | 1 - .../src/models/serverAdministratorsMappers.ts | 1 - .../arm-mysql/src/models/serverKeysMappers.ts | 1 - .../serverSecurityAlertPoliciesMappers.ts | 2 - .../arm-mysql/src/models/serversMappers.ts | 1 - .../src/models/topQueryStatisticsMappers.ts | 1 - .../src/models/virtualNetworkRulesMappers.ts | 1 - .../src/models/waitStatisticsMappers.ts | 1 - .../arm-mysql/src/mySQLManagementClient.ts | 4 +- sdk/mysql/arm-mysql/src/operations/index.ts | 2 +- .../operations/serverSecurityAlertPolicies.ts | 110 +------- 23 files changed, 170 insertions(+), 404 deletions(-) diff --git a/sdk/mysql/arm-mysql/src/models/advisorsMappers.ts b/sdk/mysql/arm-mysql/src/models/advisorsMappers.ts index cd2afaff9e4e..153048e01383 100644 --- a/sdk/mysql/arm-mysql/src/models/advisorsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/advisorsMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/configurationsMappers.ts b/sdk/mysql/arm-mysql/src/models/configurationsMappers.ts index ac38844911ab..a1bdb44478d7 100644 --- a/sdk/mysql/arm-mysql/src/models/configurationsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/configurationsMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/databasesMappers.ts b/sdk/mysql/arm-mysql/src/models/databasesMappers.ts index 193d3b39ebad..9f140b1c3b5c 100644 --- a/sdk/mysql/arm-mysql/src/models/databasesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/databasesMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts b/sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts index 512e444e1564..ec40ca6b0c4d 100644 --- a/sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/index.ts b/sdk/mysql/arm-mysql/src/models/index.ts index 1ee28164750a..591a3b86cdde 100644 --- a/sdk/mysql/arm-mysql/src/models/index.ts +++ b/sdk/mysql/arm-mysql/src/models/index.ts @@ -902,6 +902,43 @@ export interface AzureEntityResource extends Resource { readonly etag?: string; } +/** + * A server security alert policy. + */ +export interface ServerSecurityAlertPolicy extends ProxyResource { + /** + * Specifies the state of the policy, whether it is enabled or disabled. Possible values include: + * 'Enabled', 'Disabled' + */ + state: ServerSecurityAlertPolicyState; + /** + * Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, + * Sql_Injection_Vulnerability, Access_Anomaly + */ + disabledAlerts?: string[]; + /** + * Specifies an array of e-mail addresses to which the alert is sent. + */ + emailAddresses?: string[]; + /** + * Specifies that the alert is sent to the account administrators. + */ + emailAccountAdmins?: boolean; + /** + * Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob + * storage will hold all Threat Detection audit logs. + */ + storageEndpoint?: string; + /** + * Specifies the identifier key of the Threat Detection audit storage account. + */ + storageAccountAccessKey?: string; + /** + * Specifies the number of days to keep in the Threat Detection audit logs. + */ + retentionDays?: number; +} + /** * Represents a Query Text. */ @@ -1213,53 +1250,6 @@ export interface ServerKey extends ProxyResource { readonly creationDate?: Date; } -/** - * Metadata pertaining to creation and last modification of the resource. - */ -export interface SystemData { - /** - * The identity that created the resource. - */ - createdBy?: string; - /** - * The type of identity that created the resource. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' - */ - createdByType?: CreatedByType; - /** - * The timestamp of resource creation (UTC). - */ - createdAt?: Date; - /** - * The identity that last modified the resource. - */ - lastModifiedBy?: string; - /** - * The type of identity that last modified the resource. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' - */ - lastModifiedByType?: CreatedByType; - /** - * The type of identity that last modified the resource. - */ - lastModifiedAt?: Date; -} - -/** - * A server security alert policy. - */ -export interface ServerSecurityAlertPolicy extends ProxyResource { - /** - * Specifies the state of the policy, whether it is enabled or disabled. Possible values include: - * 'Enabled', 'Disabled' - */ - state: ServerSecurityAlertPolicyState; - /** - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly systemData?: SystemData; -} - /** * Optional Parameters. */ @@ -1450,19 +1440,6 @@ export interface ServerKeyListResult extends Array { readonly nextLink?: string; } -/** - * @interface - * A list of the server's security alert policies. - * @extends Array - */ -export interface LogicalServerSecurityAlertPolicyListResult extends Array { - /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - /** * Defines values for ServerVersion. * Possible values include: '5.6', '5.7', '8.0' @@ -1591,14 +1568,6 @@ export type OperationOrigin = 'NotSpecified' | 'user' | 'system'; */ export type ServerSecurityAlertPolicyState = 'Enabled' | 'Disabled'; -/** - * Defines values for CreatedByType. - * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' - * @readonly - * @enum {string} - */ -export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; - /** * Contains response data for the create operation. */ @@ -2259,6 +2228,66 @@ export type OperationsListResponse = OperationListResult & { }; }; +/** + * Contains response data for the get operation. + */ +export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerSecurityAlertPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerSecurityAlertPolicy; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ServerSecurityAlertPolicy; + }; +}; + /** * Contains response data for the get operation. */ @@ -2918,103 +2947,3 @@ export type ServerKeysListNextResponse = ServerKeyListResult & { parsedBody: ServerKeyListResult; }; }; - -/** - * Contains response data for the get operation. - */ -export type ServerSecurityAlertPoliciesGetResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ServerSecurityAlertPoliciesCreateOrUpdateResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the listByServer operation. - */ -export type ServerSecurityAlertPoliciesListByServerResponse = LogicalServerSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LogicalServerSecurityAlertPolicyListResult; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type ServerSecurityAlertPoliciesBeginCreateOrUpdateResponse = ServerSecurityAlertPolicy & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: ServerSecurityAlertPolicy; - }; -}; - -/** - * Contains response data for the listByServerNext operation. - */ -export type ServerSecurityAlertPoliciesListByServerNextResponse = LogicalServerSecurityAlertPolicyListResult & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: LogicalServerSecurityAlertPolicyListResult; - }; -}; diff --git a/sdk/mysql/arm-mysql/src/models/locationBasedRecommendedActionSessionsResultMappers.ts b/sdk/mysql/arm-mysql/src/models/locationBasedRecommendedActionSessionsResultMappers.ts index 9a370ce0f9c7..2c50ada3b730 100644 --- a/sdk/mysql/arm-mysql/src/models/locationBasedRecommendedActionSessionsResultMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/locationBasedRecommendedActionSessionsResultMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/logFilesMappers.ts b/sdk/mysql/arm-mysql/src/models/logFilesMappers.ts index 853deae67529..9e62a10f2c63 100644 --- a/sdk/mysql/arm-mysql/src/models/logFilesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/logFilesMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/mappers.ts b/sdk/mysql/arm-mysql/src/models/mappers.ts index d86c67296752..74c0a4c322de 100644 --- a/sdk/mysql/arm-mysql/src/models/mappers.ts +++ b/sdk/mysql/arm-mysql/src/models/mappers.ts @@ -1273,6 +1273,74 @@ export const AzureEntityResource: msRest.CompositeMapper = { } }; +export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { + serializedName: "ServerSecurityAlertPolicy", + type: { + name: "Composite", + className: "ServerSecurityAlertPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + state: { + required: true, + serializedName: "properties.state", + type: { + name: "Enum", + allowedValues: [ + "Enabled", + "Disabled" + ] + } + }, + disabledAlerts: { + serializedName: "properties.disabledAlerts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAddresses: { + serializedName: "properties.emailAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + emailAccountAdmins: { + serializedName: "properties.emailAccountAdmins", + type: { + name: "Boolean" + } + }, + storageEndpoint: { + serializedName: "properties.storageEndpoint", + type: { + name: "String" + } + }, + storageAccountAccessKey: { + serializedName: "properties.storageAccountAccessKey", + type: { + name: "String" + } + }, + retentionDays: { + serializedName: "properties.retentionDays", + type: { + name: "Number" + } + } + } + } +}; + export const QueryText: msRest.CompositeMapper = { serializedName: "QueryText", type: { @@ -1801,82 +1869,6 @@ export const ServerKey: msRest.CompositeMapper = { } }; -export const SystemData: msRest.CompositeMapper = { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - -export const ServerSecurityAlertPolicy: msRest.CompositeMapper = { - serializedName: "ServerSecurityAlertPolicy", - type: { - name: "Composite", - className: "ServerSecurityAlertPolicy", - modelProperties: { - ...ProxyResource.type.modelProperties, - state: { - required: true, - serializedName: "properties.state", - type: { - name: "Enum", - allowedValues: [ - "Enabled", - "Disabled" - ] - } - }, - systemData: { - readOnly: true, - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } - } - } - } -}; - export const ServerListResult: msRest.CompositeMapper = { serializedName: "ServerListResult", type: { @@ -2301,36 +2293,6 @@ export const ServerKeyListResult: msRest.CompositeMapper = { } }; -export const LogicalServerSecurityAlertPolicyListResult: msRest.CompositeMapper = { - serializedName: "LogicalServerSecurityAlertPolicyListResult", - type: { - name: "Composite", - className: "LogicalServerSecurityAlertPolicyListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerSecurityAlertPolicy" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const discriminators = { 'ServerPropertiesForCreate' : ServerPropertiesForCreate, 'ServerPropertiesForCreate.Default' : ServerPropertiesForDefaultCreate, diff --git a/sdk/mysql/arm-mysql/src/models/privateEndpointConnectionsMappers.ts b/sdk/mysql/arm-mysql/src/models/privateEndpointConnectionsMappers.ts index 047b47f5ecb2..e78d29ea0b36 100644 --- a/sdk/mysql/arm-mysql/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/privateEndpointConnectionsMappers.ts @@ -39,7 +39,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TagsObject, TrackedResource, VirtualNetworkRule, diff --git a/sdk/mysql/arm-mysql/src/models/privateLinkResourcesMappers.ts b/sdk/mysql/arm-mysql/src/models/privateLinkResourcesMappers.ts index 25c656f41966..c2d7cf1721dc 100644 --- a/sdk/mysql/arm-mysql/src/models/privateLinkResourcesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/privateLinkResourcesMappers.ts @@ -39,7 +39,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/queryTextsMappers.ts b/sdk/mysql/arm-mysql/src/models/queryTextsMappers.ts index 8b1f4b15413f..95192ca5c20f 100644 --- a/sdk/mysql/arm-mysql/src/models/queryTextsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/queryTextsMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/recommendedActionsMappers.ts b/sdk/mysql/arm-mysql/src/models/recommendedActionsMappers.ts index 9a370ce0f9c7..2c50ada3b730 100644 --- a/sdk/mysql/arm-mysql/src/models/recommendedActionsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/recommendedActionsMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/replicasMappers.ts b/sdk/mysql/arm-mysql/src/models/replicasMappers.ts index 6f03d350d03f..00664bf629fe 100644 --- a/sdk/mysql/arm-mysql/src/models/replicasMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/replicasMappers.ts @@ -37,7 +37,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/serverAdministratorsMappers.ts b/sdk/mysql/arm-mysql/src/models/serverAdministratorsMappers.ts index 6a642424c659..b603c8aad0fb 100644 --- a/sdk/mysql/arm-mysql/src/models/serverAdministratorsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/serverAdministratorsMappers.ts @@ -39,7 +39,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/serverKeysMappers.ts b/sdk/mysql/arm-mysql/src/models/serverKeysMappers.ts index 64648a050204..df596d683f17 100644 --- a/sdk/mysql/arm-mysql/src/models/serverKeysMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/serverKeysMappers.ts @@ -39,7 +39,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/serverSecurityAlertPoliciesMappers.ts b/sdk/mysql/arm-mysql/src/models/serverSecurityAlertPoliciesMappers.ts index 44fb0d17c774..a9d0ce4d32ee 100644 --- a/sdk/mysql/arm-mysql/src/models/serverSecurityAlertPoliciesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/serverSecurityAlertPoliciesMappers.ts @@ -16,7 +16,6 @@ export { Database, FirewallRule, LogFile, - LogicalServerSecurityAlertPolicyListResult, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, @@ -37,7 +36,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/serversMappers.ts b/sdk/mysql/arm-mysql/src/models/serversMappers.ts index 664ebe37ad4d..6f814f5d68b3 100644 --- a/sdk/mysql/arm-mysql/src/models/serversMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/serversMappers.ts @@ -44,7 +44,6 @@ export { ServerUpdateParameters, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic diff --git a/sdk/mysql/arm-mysql/src/models/topQueryStatisticsMappers.ts b/sdk/mysql/arm-mysql/src/models/topQueryStatisticsMappers.ts index 6e26528389fa..90a1e6a92427 100644 --- a/sdk/mysql/arm-mysql/src/models/topQueryStatisticsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/topQueryStatisticsMappers.ts @@ -36,7 +36,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TopQueryStatisticsInput, TopQueryStatisticsResultList, TrackedResource, diff --git a/sdk/mysql/arm-mysql/src/models/virtualNetworkRulesMappers.ts b/sdk/mysql/arm-mysql/src/models/virtualNetworkRulesMappers.ts index 4d8d3eb1a1ef..362fb2c78762 100644 --- a/sdk/mysql/arm-mysql/src/models/virtualNetworkRulesMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/virtualNetworkRulesMappers.ts @@ -36,7 +36,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, VirtualNetworkRuleListResult, diff --git a/sdk/mysql/arm-mysql/src/models/waitStatisticsMappers.ts b/sdk/mysql/arm-mysql/src/models/waitStatisticsMappers.ts index 81994613d1e8..5a3c5fc994c2 100644 --- a/sdk/mysql/arm-mysql/src/models/waitStatisticsMappers.ts +++ b/sdk/mysql/arm-mysql/src/models/waitStatisticsMappers.ts @@ -36,7 +36,6 @@ export { ServerSecurityAlertPolicy, Sku, StorageProfile, - SystemData, TrackedResource, VirtualNetworkRule, WaitStatistic, diff --git a/sdk/mysql/arm-mysql/src/mySQLManagementClient.ts b/sdk/mysql/arm-mysql/src/mySQLManagementClient.ts index 2ae2d4927947..5cd55e375cda 100644 --- a/sdk/mysql/arm-mysql/src/mySQLManagementClient.ts +++ b/sdk/mysql/arm-mysql/src/mySQLManagementClient.ts @@ -30,6 +30,7 @@ class MySQLManagementClient extends MySQLManagementClientContext { locationBasedPerformanceTier: operations.LocationBasedPerformanceTier; checkNameAvailability: operations.CheckNameAvailability; operations: operations.Operations; + serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies; queryTexts: operations.QueryTexts; topQueryStatistics: operations.TopQueryStatistics; waitStatistics: operations.WaitStatistics; @@ -40,7 +41,6 @@ class MySQLManagementClient extends MySQLManagementClientContext { privateEndpointConnections: operations.PrivateEndpointConnections; privateLinkResources: operations.PrivateLinkResources; serverKeys: operations.ServerKeys; - serverSecurityAlertPolicies: operations.ServerSecurityAlertPolicies; /** * Initializes a new instance of the MySQLManagementClient class. @@ -61,6 +61,7 @@ class MySQLManagementClient extends MySQLManagementClientContext { this.locationBasedPerformanceTier = new operations.LocationBasedPerformanceTier(this); this.checkNameAvailability = new operations.CheckNameAvailability(this); this.operations = new operations.Operations(this); + this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this); this.queryTexts = new operations.QueryTexts(this); this.topQueryStatistics = new operations.TopQueryStatistics(this); this.waitStatistics = new operations.WaitStatistics(this); @@ -71,7 +72,6 @@ class MySQLManagementClient extends MySQLManagementClientContext { this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); this.privateLinkResources = new operations.PrivateLinkResources(this); this.serverKeys = new operations.ServerKeys(this); - this.serverSecurityAlertPolicies = new operations.ServerSecurityAlertPolicies(this); } /** diff --git a/sdk/mysql/arm-mysql/src/operations/index.ts b/sdk/mysql/arm-mysql/src/operations/index.ts index 638bc5bed23f..1fc78c01685b 100644 --- a/sdk/mysql/arm-mysql/src/operations/index.ts +++ b/sdk/mysql/arm-mysql/src/operations/index.ts @@ -19,6 +19,7 @@ export * from "./serverAdministrators"; export * from "./locationBasedPerformanceTier"; export * from "./checkNameAvailability"; export * from "./operations"; +export * from "./serverSecurityAlertPolicies"; export * from "./queryTexts"; export * from "./topQueryStatistics"; export * from "./waitStatistics"; @@ -29,4 +30,3 @@ export * from "./locationBasedRecommendedActionSessionsResult"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; export * from "./serverKeys"; -export * from "./serverSecurityAlertPolicies"; diff --git a/sdk/mysql/arm-mysql/src/operations/serverSecurityAlertPolicies.ts b/sdk/mysql/arm-mysql/src/operations/serverSecurityAlertPolicies.ts index 4da0eb6e7436..50ce4767929b 100644 --- a/sdk/mysql/arm-mysql/src/operations/serverSecurityAlertPolicies.ts +++ b/sdk/mysql/arm-mysql/src/operations/serverSecurityAlertPolicies.ts @@ -72,38 +72,6 @@ export class ServerSecurityAlertPolicies { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } - /** - * Get the server's threat detection policies. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serverName The name of the server. - * @param [options] The optional parameters - * @returns Promise - */ - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serverName The name of the server. - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param serverName The name of the server. - * @param options The optional parameters - * @param callback The callback - */ - listByServer(resourceGroupName: string, serverName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServer(resourceGroupName: string, serverName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - serverName, - options - }, - listByServerOperationSpec, - callback) as Promise; - } - /** * Creates or updates a threat detection policy. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -123,34 +91,6 @@ export class ServerSecurityAlertPolicies { beginCreateOrUpdateOperationSpec, options); } - - /** - * Get the server's threat detection policies. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByServerNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByServerNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByServerNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByServerNextOperationSpec, - callback) as Promise; - } } // Operation Specifications @@ -165,7 +105,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -181,31 +121,6 @@ const getOperationSpec: msRest.OperationSpec = { serializer }; -const listByServerOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.serverName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}", @@ -216,7 +131,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -239,24 +154,3 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; - -const listByServerNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.LogicalServerSecurityAlertPolicyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -};