Skip to content

Commit

Permalink
sql release (#26201)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored and dgetu committed Sep 6, 2023
1 parent e4b4226 commit 444450f
Show file tree
Hide file tree
Showing 1,266 changed files with 8,482 additions and 7,323 deletions.
21 changes: 21 additions & 0 deletions sdk/sql/arm-sql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Release History

## 10.1.0-beta.1 (2023-07-28)

**Features**

- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover
- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait
- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders
- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams
- Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse
- Interface ElasticPool has a new optional parameter availabilityZone
- Interface ElasticPool has a new optional parameter minCapacity
- Interface ElasticPool has a new optional parameter preferredEnclaveType
- Interface ElasticPoolUpdate has a new optional parameter availabilityZone
- Interface ElasticPoolUpdate has a new optional parameter minCapacity
- Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType
- Interface ManagedDatabase has a new optional parameter isLedgerOn
- Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn
- Interface PrivateEndpointConnection has a new optional parameter groupIds
- Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime


## 10.0.0 (2023-03-22)

**Features**
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Azure SQL Database management API provides a RESTful set of web services tha

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-sql) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-sql) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/sql/arm-sql/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "cd2b76ce38029e1425ee024cd9403a908c60d71e",
"commit": "4f77103cef1d89060d97aba0fb6a719d133cbd3c",
"readme": "specification/sql/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sql\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.10 --generate-sample=true",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sql\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/typescript@6.0.0-rc.10"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/typescript@6.0.5"
}
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/sql/arm-sql",
"Tag": "js/sql/arm-sql_9acbe51b49"
"Tag": "js/sql/arm-sql_98e1a7b092"
}
6 changes: 3 additions & 3 deletions sdk/sql/arm-sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SqlManagementClient.",
"version": "10.0.0",
"version": "10.1.0-beta.1",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.0",
"@azure/core-lro": "^2.5.3",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
Expand Down Expand Up @@ -120,4 +120,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview"
}
}
}
27 changes: 27 additions & 0 deletions sdk/sql/arm-sql/review/arm-sql.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1773,13 +1773,16 @@ export interface EditionCapability {

// @public
export interface ElasticPool extends TrackedResource {
availabilityZone?: AvailabilityZoneType;
readonly creationDate?: Date;
highAvailabilityReplicaCount?: number;
readonly kind?: string;
licenseType?: ElasticPoolLicenseType;
maintenanceConfigurationId?: string;
maxSizeBytes?: number;
minCapacity?: number;
perDatabaseSettings?: ElasticPoolPerDatabaseSettings;
preferredEnclaveType?: AlwaysEncryptedEnclaveType;
sku?: Sku;
readonly state?: ElasticPoolState;
zoneRedundant?: boolean;
Expand Down Expand Up @@ -2056,11 +2059,14 @@ export type ElasticPoolsUpdateResponse = ElasticPool;

// @public
export interface ElasticPoolUpdate {
availabilityZone?: AvailabilityZoneType;
highAvailabilityReplicaCount?: number;
licenseType?: ElasticPoolLicenseType;
maintenanceConfigurationId?: string;
maxSizeBytes?: number;
minCapacity?: number;
perDatabaseSettings?: ElasticPoolPerDatabaseSettings;
preferredEnclaveType?: AlwaysEncryptedEnclaveType;
sku?: Sku;
tags?: {
[propertyName: string]: string;
Expand Down Expand Up @@ -2358,6 +2364,8 @@ export interface FailoverGroups {
beginFailoverAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsFailoverOptionalParams): Promise<FailoverGroupsFailoverResponse>;
beginForceFailoverAllowDataLoss(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise<SimplePollerLike<OperationState<FailoverGroupsForceFailoverAllowDataLossResponse>, FailoverGroupsForceFailoverAllowDataLossResponse>>;
beginForceFailoverAllowDataLossAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsForceFailoverAllowDataLossOptionalParams): Promise<FailoverGroupsForceFailoverAllowDataLossResponse>;
beginTryPlannedBeforeForcedFailover(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams): Promise<SimplePollerLike<OperationState<FailoverGroupsTryPlannedBeforeForcedFailoverResponse>, FailoverGroupsTryPlannedBeforeForcedFailoverResponse>>;
beginTryPlannedBeforeForcedFailoverAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams): Promise<FailoverGroupsTryPlannedBeforeForcedFailoverResponse>;
beginUpdate(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<FailoverGroupsUpdateResponse>, FailoverGroupsUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, serverName: string, failoverGroupName: string, parameters: FailoverGroupUpdate, options?: FailoverGroupsUpdateOptionalParams): Promise<FailoverGroupsUpdateResponse>;
get(resourceGroupName: string, serverName: string, failoverGroupName: string, options?: FailoverGroupsGetOptionalParams): Promise<FailoverGroupsGetResponse>;
Expand Down Expand Up @@ -2418,6 +2426,21 @@ export interface FailoverGroupsListByServerOptionalParams extends coreClient.Ope
// @public
export type FailoverGroupsListByServerResponse = FailoverGroupListResult;

// @public
export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders {
// (undocumented)
location?: string;
}

// @public
export interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type FailoverGroupsTryPlannedBeforeForcedFailoverResponse = FailoverGroup;

// @public
export interface FailoverGroupsUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down Expand Up @@ -5141,6 +5164,7 @@ export interface ManagedDatabase extends TrackedResource {
readonly defaultSecondaryLocation?: string;
readonly earliestRestorePoint?: Date;
readonly failoverGroupId?: string;
isLedgerOn?: boolean;
lastBackupName?: string;
longTermRetentionBackupResourceId?: string;
recoverableDatabaseId?: string;
Expand Down Expand Up @@ -5782,6 +5806,7 @@ export interface ManagedDatabaseUpdate {
readonly defaultSecondaryLocation?: string;
readonly earliestRestorePoint?: Date;
readonly failoverGroupId?: string;
isLedgerOn?: boolean;
lastBackupName?: string;
longTermRetentionBackupResourceId?: string;
recoverableDatabaseId?: string;
Expand Down Expand Up @@ -7449,6 +7474,7 @@ export type PrincipalType = string;

// @public
export interface PrivateEndpointConnection extends ProxyResource {
readonly groupIds?: string[];
privateEndpoint?: PrivateEndpointProperty;
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty;
readonly provisioningState?: PrivateEndpointProvisioningState;
Expand Down Expand Up @@ -10046,6 +10072,7 @@ export interface SqlVulnerabilityAssessmentScanRecord extends ProxyResource {
readonly errors?: SqlVulnerabilityAssessmentScanError[];
readonly highSeverityFailedRulesCount?: number;
readonly isBaselineApplied?: boolean;
readonly lastScanTime?: Date;
readonly lowSeverityFailedRulesCount?: number;
readonly mediumSeverityFailedRulesCount?: number;
readonly scanId?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Add a database's vulnerability assessment rule baseline list.
*
* @summary Add a database's vulnerability assessment rule baseline list.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAddLatest.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAddLatest.json
*/
async function addADatabaseVulnerabilityAssessmentRuleBaselineFromTheLatestScanResult() {
const subscriptionId =
Expand Down Expand Up @@ -54,7 +54,7 @@ async function addADatabaseVulnerabilityAssessmentRuleBaselineFromTheLatestScanR
* This sample demonstrates how to Add a database's vulnerability assessment rule baseline list.
*
* @summary Add a database's vulnerability assessment rule baseline list.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAdd.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineAdd.json
*/
async function addADatabaseVulnerabilityAssessmentRuleBaselineList() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a list of database's sql vulnerability assessment rule baselines.
*
* @summary Gets a list of database's sql vulnerability assessment rule baselines.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineGet.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineGet.json
*/
async function getsAListOfDatabaseSqlVulnerabilityAssessmentRuleBaselines() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a list of database's sql vulnerability assessment rule baselines.
*
* @summary Gets a list of database's sql vulnerability assessment rule baselines.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessment.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentBaselineListBySqlVulnerabilityAssessment.json
*/
async function getsAListOfDatabaseSqlVulnerabilityAssessmentRuleBaselines() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Executes a Vulnerability Assessment database scan.
*
* @summary Executes a Vulnerability Assessment database scan.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansExecute.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansExecute.json
*/
async function executesADatabaseVulnerabilityAssessmentScan() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Creates or updates a database's vulnerability assessment rule baseline.
*
* @summary Creates or updates a database's vulnerability assessment rule baseline.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineCreate.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineCreate.json
*/
async function createsOrUpdatesADatabaseVulnerabilityAssessmentRuleBaseline() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Removes the database's vulnerability assessment rule baseline.
*
* @summary Removes the database's vulnerability assessment rule baseline.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineDelete.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineDelete.json
*/
async function removesADatabaseVulnerabilityAssessmentRuleBaseline() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a database's sql vulnerability assessment rule baseline.
*
* @summary Gets a database's sql vulnerability assessment rule baseline.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineGet.json
*/
async function getsADatabaseSqlVulnerabilityAssessmentRuleBaseline() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a list of database's sql vulnerability assessment rule baselines.
*
* @summary Gets a list of database's sql vulnerability assessment rule baselines.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineListByBaseline.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentRuleBaselineListByBaseline.json
*/
async function getsAListOfDatabaseSqlVulnerabilityAssessmentRuleBaselines() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a vulnerability assessment scan record of a database.
*
* @summary Gets a vulnerability assessment scan record of a database.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansResults.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScansResults.json
*/
async function getADatabaseSqlVulnerabilityAssessmentScanResultForScanIdAndScanResultId() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets a vulnerability assessment scan record of a database.
*
* @summary Gets a vulnerability assessment scan record of a database.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentListScansResults.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentListScansResults.json
*/
async function listDatabaseSqlVulnerabilityAssessmentScanResultsForScanId() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Get a database vulnerability assessment scan result.
*
* @summary Get a database vulnerability assessment scan result.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScan.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScan.json
*/
async function getADatabaseVulnerabilityAssessmentScan() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists the vulnerability assessment scans of a database.
*
* @summary Lists the vulnerability assessment scans of a database.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScanRecordsListByDatabase.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentScanRecordsListByDatabase.json
*/
async function getsTheListOfADatabaseVulnerabilityAssessmentScanRecords() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets SQL Vulnerability Assessment policy for database.
*
* @summary Gets SQL Vulnerability Assessment policy for database.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentGet.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentGet.json
*/
async function getSqlVulnerabilityAssessmentPolicyForDatabase() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Lists SQL Vulnerability Assessment policies associated with a database.
*
* @summary Lists SQL Vulnerability Assessment policies associated with a database.
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-02-01-preview/examples/DatabaseSqlVulnerabilityAssessmentListByDatabase.json
* x-ms-original-file: specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/DatabaseSqlVulnerabilityAssessmentListByDatabase.json
*/
async function getSqlVulnerabilityAssessmentPoliciesOnAGivenDatabase() {
const subscriptionId =
Expand Down
Loading

0 comments on commit 444450f

Please sign in to comment.