Skip to content

Commit

Permalink
sql-track2 (#17724)
Browse files Browse the repository at this point in the history
* sql-track2

* sql-track2
  • Loading branch information
colawwj authored Sep 17, 2021
1 parent c3ef516 commit 1e3c1e7
Show file tree
Hide file tree
Showing 132 changed files with 195 additions and 232 deletions.
31 changes: 19 additions & 12 deletions sdk/sql/arm-sql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
# Release History

## 30.0.0-beta.4 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 30.0.0-beta.4 (2021-09-17)

**Features**

- Added Type Alias Enum76
- Added Enum KnownEnum76

**Breaking Changes**

- Operation ManagedServerSecurityAlertPolicies.beginCreateOrUpdate has a new signature
- Operation ManagedServerSecurityAlertPolicies.beginCreateOrUpdateAndWait has a new signature
- Operation ManagedServerSecurityAlertPolicies.get has a new signature
- Operation ServerSecurityAlertPolicies.beginCreateOrUpdate has a new signature
- Operation ServerSecurityAlertPolicies.beginCreateOrUpdateAndWait has a new signature
- Operation ServerSecurityAlertPolicies.get has a new signature
- Operation SyncGroups.listLogs has a new signature
- Removed Enum KnownEnum77
- Removed Enum KnownSecurityAlertPolicyNameAutoGenerated

## 30.0.0-beta.3 (2021-09-06)

**Bug Fixes**
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 @@ -68,7 +68,7 @@ const client = new SqlManagementClient(new DefaultAzureCredential(), subscriptio
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:

```javascript
import { setLogLevel } from "@azure/logger";
const { setLogLevel } = require("@azure/logger");
setLogLevel("info");
```

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": "1b5776391579d7958a9a6dd40333e1b2a593c08c",
"commit": "e07d7900e7e02c9bb6caba0ee15f0e280e97b8f5",
"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 --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/[email protected]alpha.8.20210810.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=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/[email protected]beta.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/[email protected]alpha.8.20210810.1"
"use": "@autorest/[email protected]beta.12"
}
19 changes: 4 additions & 15 deletions sdk/sql/arm-sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"author": "Microsoft Corporation",
"description": "A generated SDK for SqlManagementClient.",
"version": "30.0.0-beta.4",
"engines": {
"node": ">=12.0.0"
},
"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/index.js",
Expand All @@ -36,7 +28,6 @@
"mkdirp": "^1.0.4",
"rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-node-resolve": "^3.4.0",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9"
},
Expand All @@ -45,9 +36,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 All @@ -64,7 +53,7 @@
"tsconfig.json",
"review/*",
"CHANGELOG.md",
"types"
"types/*"
],
"scripts": {
"build": "tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
Expand Down
27 changes: 9 additions & 18 deletions sdk/sql/arm-sql/review/arm-sql.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1699,7 +1699,7 @@ export interface EncryptionProtectorsRevalidateOptionalParams extends coreClient
}

// @public
export type Enum77 = string;
export type Enum76 = string;

// @public
export interface ExportDatabaseDefinition {
Expand Down Expand Up @@ -3331,7 +3331,7 @@ export enum KnownEncryptionProtectorName {
}

// @public
export enum KnownEnum77 {
export enum KnownEnum76 {
// (undocumented)
All = "All",
// (undocumented)
Expand Down Expand Up @@ -3856,12 +3856,6 @@ export enum KnownSecondaryType {

// @public
export enum KnownSecurityAlertPolicyName {
// (undocumented)
Default = "default"
}

// @public
export enum KnownSecurityAlertPolicyNameAutoGenerated {
// (undocumented)
Default = "Default"
}
Expand Down Expand Up @@ -6502,9 +6496,9 @@ export type ManagedServerCreateMode = string;

// @public
export interface ManagedServerSecurityAlertPolicies {
beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>;
get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise<ManagedServerSecurityAlertPoliciesGetResponse>;
beginCreateOrUpdate(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>, ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ManagedServerSecurityAlertPolicy, options?: ManagedServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<ManagedServerSecurityAlertPoliciesCreateOrUpdateResponse>;
get(resourceGroupName: string, managedInstanceName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ManagedServerSecurityAlertPoliciesGetOptionalParams): Promise<ManagedServerSecurityAlertPoliciesGetResponse>;
listByInstance(resourceGroupName: string, managedInstanceName: string, options?: ManagedServerSecurityAlertPoliciesListByInstanceOptionalParams): PagedAsyncIterableIterator<ManagedServerSecurityAlertPolicy>;
}

Expand Down Expand Up @@ -7522,9 +7516,6 @@ export type SecondaryType = string;
// @public
export type SecurityAlertPolicyName = string;

// @public
export type SecurityAlertPolicyNameAutoGenerated = string;

// @public
export type SecurityAlertPolicyState = "New" | "Enabled" | "Disabled";

Expand Down Expand Up @@ -8329,9 +8320,9 @@ export interface ServersDeleteOptionalParams extends coreClient.OperationOptions

// @public
export interface ServerSecurityAlertPolicies {
beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServerSecurityAlertPoliciesCreateOrUpdateResponse>, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<ServerSecurityAlertPoliciesCreateOrUpdateResponse>;
get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyNameAutoGenerated, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise<ServerSecurityAlertPoliciesGetResponse>;
beginCreateOrUpdate(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<ServerSecurityAlertPoliciesCreateOrUpdateResponse>, ServerSecurityAlertPoliciesCreateOrUpdateResponse>>;
beginCreateOrUpdateAndWait(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, parameters: ServerSecurityAlertPolicy, options?: ServerSecurityAlertPoliciesCreateOrUpdateOptionalParams): Promise<ServerSecurityAlertPoliciesCreateOrUpdateResponse>;
get(resourceGroupName: string, serverName: string, securityAlertPolicyName: SecurityAlertPolicyName, options?: ServerSecurityAlertPoliciesGetOptionalParams): Promise<ServerSecurityAlertPoliciesGetResponse>;
listByServer(resourceGroupName: string, serverName: string, options?: ServerSecurityAlertPoliciesListByServerOptionalParams): PagedAsyncIterableIterator<ServerSecurityAlertPolicy>;
}

Expand Down Expand Up @@ -9262,7 +9253,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: Enum77, options?: SyncGroupsListLogsOptionalParams): PagedAsyncIterableIterator<SyncGroupLogProperties>;
listLogs(resourceGroupName: string, serverName: string, databaseName: string, syncGroupName: string, startTime: string, endTime: string, typeParam: Enum76, 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
28 changes: 7 additions & 21 deletions sdk/sql/arm-sql/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7604,15 +7604,15 @@ export type TableTemporalType = string;

/** Known values of {@link SecurityAlertPolicyName} that the service accepts. */
export enum KnownSecurityAlertPolicyName {
Default = "default"
Default = "Default"
}

/**
* Defines values for SecurityAlertPolicyName. \
* {@link KnownSecurityAlertPolicyName} can be used interchangeably with SecurityAlertPolicyName,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **default**
* **Default**
*/
export type SecurityAlertPolicyName = string;

Expand Down Expand Up @@ -8644,20 +8644,6 @@ export enum KnownReplicaType {
*/
export type ReplicaType = string;

/** Known values of {@link SecurityAlertPolicyNameAutoGenerated} that the service accepts. */
export enum KnownSecurityAlertPolicyNameAutoGenerated {
Default = "Default"
}

/**
* Defines values for SecurityAlertPolicyNameAutoGenerated. \
* {@link KnownSecurityAlertPolicyNameAutoGenerated} can be used interchangeably with SecurityAlertPolicyNameAutoGenerated,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Default**
*/
export type SecurityAlertPolicyNameAutoGenerated = string;

/** Known values of {@link OperationOrigin} that the service accepts. */
export enum KnownOperationOrigin {
User = "user",
Expand Down Expand Up @@ -8796,25 +8782,25 @@ export enum KnownSyncMemberDbType {
*/
export type SyncMemberDbType = string;

/** Known values of {@link Enum77} that the service accepts. */
export enum KnownEnum77 {
/** Known values of {@link Enum76} that the service accepts. */
export enum KnownEnum76 {
All = "All",
Error = "Error",
Warning = "Warning",
Success = "Success"
}

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

/** Known values of {@link SyncGroupLogType} that the service accepts. */
export enum KnownSyncGroupLogType {
Expand Down
1 change: 1 addition & 0 deletions sdk/sql/arm-sql/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10239,6 +10239,7 @@ export const Job: coreClient.CompositeMapper = {
modelProperties: {
...ProxyResource.type.modelProperties,
description: {
defaultValue: "",
serializedName: "properties.description",
type: {
name: "String"
Expand Down
11 changes: 0 additions & 11 deletions sdk/sql/arm-sql/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1484,17 +1484,6 @@ export const restorableDroppedDatabaseId: OperationURLParameter = {
}
};

export const securityAlertPolicyName1: OperationURLParameter = {
parameterPath: "securityAlertPolicyName",
mapper: {
serializedName: "securityAlertPolicyName",
required: true,
type: {
name: "String"
}
}
};

export const parameters61: OperationParameter = {
parameterPath: "parameters",
mapper: ManagedServerSecurityAlertPolicyMapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
} from "../models";

/// <reference lib="esnext.asynciterable" />
/** Class representing a BackupShortTermRetentionPolicies. */
/** Class containing BackupShortTermRetentionPolicies operations. */
export class BackupShortTermRetentionPoliciesImpl
implements BackupShortTermRetentionPolicies {
private readonly client: SqlManagementClientContext;
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/src/operations/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
CapabilitiesListByLocationResponse
} from "../models";

/** Class representing a Capabilities. */
/** Class containing Capabilities operations. */
export class CapabilitiesImpl implements Capabilities {
private readonly client: SqlManagementClientContext;

Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/src/operations/dataMaskingPolicies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
DataMaskingPoliciesGetResponse
} from "../models";

/** Class representing a DataMaskingPolicies. */
/** Class containing DataMaskingPolicies operations. */
export class DataMaskingPoliciesImpl implements DataMaskingPolicies {
private readonly client: SqlManagementClientContext;

Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/src/operations/dataMaskingRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
} from "../models";

/// <reference lib="esnext.asynciterable" />
/** Class representing a DataMaskingRules. */
/** Class containing DataMaskingRules operations. */
export class DataMaskingRulesImpl implements DataMaskingRules {
private readonly client: SqlManagementClientContext;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from "../models";

/// <reference lib="esnext.asynciterable" />
/** Class representing a DataWarehouseUserActivitiesOperations. */
/** Class containing DataWarehouseUserActivitiesOperations operations. */
export class DataWarehouseUserActivitiesOperationsImpl
implements DataWarehouseUserActivitiesOperations {
private readonly client: SqlManagementClientContext;
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/src/operations/databaseAdvisors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
DatabaseAdvisorsUpdateResponse
} from "../models";

/** Class representing a DatabaseAdvisors. */
/** Class containing DatabaseAdvisors operations. */
export class DatabaseAdvisorsImpl implements DatabaseAdvisors {
private readonly client: SqlManagementClientContext;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
DatabaseAutomaticTuningOperationsUpdateResponse
} from "../models";

/** Class representing a DatabaseAutomaticTuningOperations. */
/** Class containing DatabaseAutomaticTuningOperations operations. */
export class DatabaseAutomaticTuningOperationsImpl
implements DatabaseAutomaticTuningOperations {
private readonly client: SqlManagementClientContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
} from "../models";

/// <reference lib="esnext.asynciterable" />
/** Class representing a DatabaseBlobAuditingPolicies. */
/** Class containing DatabaseBlobAuditingPolicies operations. */
export class DatabaseBlobAuditingPoliciesImpl
implements DatabaseBlobAuditingPolicies {
private readonly client: SqlManagementClientContext;
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/src/operations/databaseColumns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from "../models";

/// <reference lib="esnext.asynciterable" />
/** Class representing a DatabaseColumns. */
/** Class containing DatabaseColumns operations. */
export class DatabaseColumnsImpl implements DatabaseColumns {
private readonly client: SqlManagementClientContext;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
} from "../models";

/// <reference lib="esnext.asynciterable" />
/** Class representing a DatabaseExtensionsOperations. */
/** Class containing DatabaseExtensionsOperations operations. */
export class DatabaseExtensionsOperationsImpl
implements DatabaseExtensionsOperations {
private readonly client: SqlManagementClientContext;
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/src/operations/databaseOperations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from "../models";

/// <reference lib="esnext.asynciterable" />
/** Class representing a DatabaseOperations. */
/** Class containing DatabaseOperations operations. */
export class DatabaseOperationsImpl implements DatabaseOperations {
private readonly client: SqlManagementClientContext;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
DatabaseRecommendedActionsUpdateResponse
} from "../models";

/** Class representing a DatabaseRecommendedActions. */
/** Class containing DatabaseRecommendedActions operations. */
export class DatabaseRecommendedActionsImpl
implements DatabaseRecommendedActions {
private readonly client: SqlManagementClientContext;
Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/src/operations/databaseSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
} from "../models";

/// <reference lib="esnext.asynciterable" />
/** Class representing a DatabaseSchemas. */
/** Class containing DatabaseSchemas operations. */
export class DatabaseSchemasImpl implements DatabaseSchemas {
private readonly client: SqlManagementClientContext;

Expand Down
Loading

0 comments on commit 1e3c1e7

Please sign in to comment.