Skip to content
Draft
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
27 changes: 16 additions & 11 deletions sdk/sql/arm-sql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Release History

## 9.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes


## 10.0.0-beta.1 (2022-01-07)

**Features**

- Added Type Alias SyncGroupsType
- Added Enum KnownSyncGroupsType

**Breaking Changes**

- Removed operation group OperationsHealthOperations
- Operation SyncGroups.listLogs has a new signature
- Class SqlManagementClient no longer has parameter operationsHealthOperations
- Removed Enum KnownEnum60


## 9.0.0 (2021-12-07)

The package of @azure/arm-sql is using our next generation design principles since version 9.0.0, which contains breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) 2022 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
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
6 changes: 3 additions & 3 deletions sdk/sql/arm-sql/_meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commit": "a42f1b58607091c4f255ead152a8ef323fa0b280",
"commit": "d2089dd74eac8aca69ac105794a72b5e2f703a36",
"readme": "specification/sql/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/[email protected].20211130.1",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected].20211130.1"
"use": "@autorest/[email protected].20220105.1"
}
18 changes: 4 additions & 14 deletions sdk/sql/arm-sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for SqlManagementClient.",
"version": "9.0.1",
"engines": {
"node": ">=12.0.0"
},
"version": "10.0.0-beta.1",
"engines": { "node": ">=12.0.0" },
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
Expand All @@ -16,13 +14,7 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
Expand All @@ -49,9 +41,7 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
Expand Down
66 changes: 16 additions & 50 deletions sdk/sql/arm-sql/review/arm-sql.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1728,9 +1728,6 @@ export interface EncryptionProtectorsRevalidateOptionalParams extends coreClient
updateIntervalInMs?: number;
}

// @public
export type Enum60 = string;

// @public
export interface ExportDatabaseDefinition {
administratorLogin: string;
Expand Down Expand Up @@ -3366,18 +3363,6 @@ export enum KnownEncryptionProtectorName {
Current = "current"
}

// @public
export enum KnownEnum60 {
// (undocumented)
All = "All",
// (undocumented)
Error = "Error",
// (undocumented)
Success = "Success",
// (undocumented)
Warning = "Warning"
}

// @public
export enum KnownFailoverGroupReplicationRole {
// (undocumented)
Expand Down Expand Up @@ -4164,6 +4149,18 @@ export enum KnownSyncGroupState {
Warning = "Warning"
}

// @public
export enum KnownSyncGroupsType {
// (undocumented)
All = "All",
// (undocumented)
Error = "Error",
// (undocumented)
Success = "Success",
// (undocumented)
Warning = "Warning"
}

// @public
export enum KnownSyncMemberDbType {
// (undocumented)
Expand Down Expand Up @@ -6742,38 +6739,6 @@ export interface Operations {
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
}

// @public
export type OperationsHealth = ProxyResource & {
readonly namePropertiesName?: string;
readonly health?: string;
readonly description?: string;
};

// @public
export interface OperationsHealthListByLocationNextOptionalParams extends coreClient.OperationOptions {
}

// @public
export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult;

// @public
export interface OperationsHealthListByLocationOptionalParams extends coreClient.OperationOptions {
}

// @public
export type OperationsHealthListByLocationResponse = OperationsHealthListResult;

// @public
export interface OperationsHealthListResult {
readonly nextLink?: string;
readonly value?: OperationsHealth[];
}

// @public
export interface OperationsHealthOperations {
listByLocation(locationName: string, options?: OperationsHealthListByLocationOptionalParams): PagedAsyncIterableIterator<OperationsHealth>;
}

// @public
export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -8948,8 +8913,6 @@ export class SqlManagementClient extends coreClient.ServiceClient {
// (undocumented)
operations: Operations;
// (undocumented)
operationsHealthOperations: OperationsHealthOperations;
// (undocumented)
outboundFirewallRules: OutboundFirewallRules;
// (undocumented)
privateEndpointConnections: PrivateEndpointConnections;
Expand Down Expand Up @@ -9310,7 +9273,7 @@ export interface SyncGroups {
get(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsGetOptionalParams): Promise<SyncGroupsGetResponse>;
listByDatabase(resourceGroupName: string, serverName: string, databaseName: string, options?: SyncGroupsListByDatabaseOptionalParams): PagedAsyncIterableIterator<SyncGroup>;
listHubSchemas(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsListHubSchemasOptionalParams): PagedAsyncIterableIterator<SyncFullSchemaProperties>;
listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, typeParam: Enum60, options?: SyncGroupsListLogsOptionalParams): PagedAsyncIterableIterator<SyncGroupLogProperties>;
listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, typeParam: SyncGroupsType, options?: SyncGroupsListLogsOptionalParams): PagedAsyncIterableIterator<SyncGroupLogProperties>;
listSyncDatabaseIds(locationName: string, options?: SyncGroupsListSyncDatabaseIdsOptionalParams): PagedAsyncIterableIterator<SyncDatabaseIdProperties>;
triggerSync(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, options?: SyncGroupsTriggerSyncOptionalParams): Promise<void>;
}
Expand Down Expand Up @@ -9431,6 +9394,9 @@ export type SyncGroupState = string;
export interface SyncGroupsTriggerSyncOptionalParams extends coreClient.OperationOptions {
}

// @public
export type SyncGroupsType = string;

// @public
export interface SyncGroupsUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down
57 changes: 5 additions & 52 deletions sdk/sql/arm-sql/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2361,20 +2361,6 @@ export interface OperationDisplay {
readonly description?: string;
}

/** A list of service health statuses in a location. */
export interface OperationsHealthListResult {
/**
* Array of results.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: OperationsHealth[];
/**
* 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;
}

/** Properties of a private endpoint connection. */
export interface PrivateEndpointConnectionProperties {
/** Private endpoint which the connection belongs to. */
Expand Down Expand Up @@ -5903,25 +5889,6 @@ export type ManagedServerSecurityAlertPolicy = ProxyResource & {
readonly creationTime?: Date;
};

/** Operations health status in a location. */
export type OperationsHealth = ProxyResource & {
/**
* Operation name for the service
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly namePropertiesName?: string;
/**
* Operation health status of the service.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly health?: string;
/**
* Health status description.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly description?: string;
};

/** A private endpoint connection */
export type PrivateEndpointConnection = ProxyResource & {
/** Private endpoint which the connection belongs to. */
Expand Down Expand Up @@ -8570,25 +8537,25 @@ export enum KnownSyncMemberDbType {
*/
export type SyncMemberDbType = string;

/** Known values of {@link Enum60} that the service accepts. */
export enum KnownEnum60 {
/** Known values of {@link SyncGroupsType} that the service accepts. */
export enum KnownSyncGroupsType {
All = "All",
Error = "Error",
Warning = "Warning",
Success = "Success"
}

/**
* Defines values for Enum60. \
* {@link KnownEnum60} can be used interchangeably with Enum60,
* Defines values for SyncGroupsType. \
* {@link KnownSyncGroupsType} can be used interchangeably with SyncGroupsType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **All** \
* **Error** \
* **Warning** \
* **Success**
*/
export type Enum60 = string;
export type SyncGroupsType = string;

/** Known values of {@link SyncGroupLogType} that the service accepts. */
export enum KnownSyncGroupLogType {
Expand Down Expand Up @@ -12353,20 +12320,6 @@ export interface OperationsListNextOptionalParams
/** Contains response data for the listNext operation. */
export type OperationsListNextResponse = OperationListResult;

/** Optional parameters. */
export interface OperationsHealthListByLocationOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listByLocation operation. */
export type OperationsHealthListByLocationResponse = OperationsHealthListResult;

/** Optional parameters. */
export interface OperationsHealthListByLocationNextOptionalParams
extends coreClient.OperationOptions {}

/** Contains response data for the listByLocationNext operation. */
export type OperationsHealthListByLocationNextResponse = OperationsHealthListResult;

/** Optional parameters. */
export interface PrivateEndpointConnectionsGetOptionalParams
extends coreClient.OperationOptions {}
Expand Down
60 changes: 0 additions & 60 deletions sdk/sql/arm-sql/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4890,35 +4890,6 @@ export const OperationDisplay: coreClient.CompositeMapper = {
}
};

export const OperationsHealthListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "OperationsHealthListResult",
modelProperties: {
value: {
serializedName: "value",
readOnly: true,
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "OperationsHealth"
}
}
}
},
nextLink: {
serializedName: "nextLink",
readOnly: true,
type: {
name: "String"
}
}
}
}
};

export const PrivateEndpointConnectionProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down Expand Up @@ -11526,37 +11497,6 @@ export const ManagedServerSecurityAlertPolicy: coreClient.CompositeMapper = {
}
};

export const OperationsHealth: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "OperationsHealth",
modelProperties: {
...ProxyResource.type.modelProperties,
namePropertiesName: {
serializedName: "properties.name",
readOnly: true,
type: {
name: "String"
}
},
health: {
serializedName: "properties.health",
readOnly: true,
type: {
name: "String"
}
},
description: {
serializedName: "properties.description",
readOnly: true,
type: {
name: "String"
}
}
}
}
};

export const PrivateEndpointConnection: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down
1 change: 0 additions & 1 deletion sdk/sql/arm-sql/src/operations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export * from "./managedInstanceVulnerabilityAssessments";
export * from "./managedRestorableDroppedDatabaseBackupShortTermRetentionPolicies";
export * from "./managedServerSecurityAlertPolicies";
export * from "./operations";
export * from "./operationsHealthOperations";
export * from "./privateEndpointConnections";
export * from "./privateLinkResources";
export * from "./recoverableManagedDatabases";
Expand Down
Loading