Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sdk/mysql/arm-mysql/src/models/advisorsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export {
ServerSecurityAlertPolicy,
Sku,
StorageProfile,
SystemData,
TrackedResource,
VirtualNetworkRule,
WaitStatistic
Expand Down
1 change: 0 additions & 1 deletion sdk/mysql/arm-mysql/src/models/configurationsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export {
ServerSecurityAlertPolicy,
Sku,
StorageProfile,
SystemData,
TrackedResource,
VirtualNetworkRule,
WaitStatistic
Expand Down
1 change: 0 additions & 1 deletion sdk/mysql/arm-mysql/src/models/databasesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export {
ServerSecurityAlertPolicy,
Sku,
StorageProfile,
SystemData,
TrackedResource,
VirtualNetworkRule,
WaitStatistic
Expand Down
1 change: 0 additions & 1 deletion sdk/mysql/arm-mysql/src/models/firewallRulesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export {
ServerSecurityAlertPolicy,
Sku,
StorageProfile,
SystemData,
TrackedResource,
VirtualNetworkRule,
WaitStatistic
Expand Down
265 changes: 97 additions & 168 deletions sdk/mysql/arm-mysql/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -1450,19 +1440,6 @@ export interface ServerKeyListResult extends Array<ServerKey> {
readonly nextLink?: string;
}

/**
* @interface
* A list of the server's security alert policies.
* @extends Array<ServerSecurityAlertPolicy>
*/
export interface LogicalServerSecurityAlertPolicyListResult extends Array<ServerSecurityAlertPolicy> {
/**
* 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'
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export {
ServerSecurityAlertPolicy,
Sku,
StorageProfile,
SystemData,
TrackedResource,
VirtualNetworkRule,
WaitStatistic
Expand Down
1 change: 0 additions & 1 deletion sdk/mysql/arm-mysql/src/models/logFilesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export {
ServerSecurityAlertPolicy,
Sku,
StorageProfile,
SystemData,
TrackedResource,
VirtualNetworkRule,
WaitStatistic
Expand Down
Loading