Skip to content

Commit

Permalink
CodeGen from PR 13689 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Dev sql microsoft.sql 2020 11 01 preview minor change (Azure#13689)

* Adds base for updating Microsoft.Sql from version preview/2020-08-01-preview to version 2020-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add updated 2020-11-01-preview versions of LongTermRetenionBackups.json and Databases.json (Azure#12146)

* add updated databases.json swagger

* update readme with new package

* v4 -> v5

* add missing chunk in readme

* add correct swaggeR

* add examples

* add correct examplese

* remove unreferenced examples

* update swagger and examples. add 2020-11 pure package

* Fix reference to 2020-08-01 reference to ElasticPools.json

* update Databases.json name

* update examples

* remove nonexistant swagger

* fixed reference capitals in readme

* update package composite and fix ref to ManagedInstances.jsON

* make backupstorageredundancy settings consistent

* add requestedBackupStorageRedundancy to properties object in example

* add LTR swagger and examples

* add LTR Policies swagger and examples

* make v5 match v4

* add updated Databses.json

* merge conflicts in LTR Policies swagger'

* take out comments in readme

* taking ImportExport.json out from 2020-11 package

* remove duplicate 2020-11 tag in readme

* modify Databases_legacy.json to exclude ImportExport-related APIs

* add servers.json for IE APIS and remove unused databases examples

* fix model & prettier errors; add missing server example

* add missing servers examples

* fix example to exclude property from server obj

* change RecommendedActions definitoins

* change tag to composite v4

* Add missing properties for api version 2020-02-02-preview of securityAlertPolicies (Azure#13117)

* Add missing properties for api version 2020-02-02-preview

* fix checks

* fix according to prettier check

* Add the change to version 2020-08-01-preview and version 2020-11-01-preview

* remove changes in package-lock

* Add new line at the end of file

* update version 2020-11-01-preview

* Update the ref to system data in serverdevopsaudit

* add missing point

* fix the validation errors

* Delete ServerDevOpsAudit.json

* fix the validation errors

* re add ServerDevOpsAudit.json

* fix the validation errors (Azure#13325)

* fix the validation errors

* Delete ServerDevOpsAudit.json

* fix the validation errors

* re add ServerDevOpsAudit.json

* address PrivateEndpointConnections.json validation issues in v3, v2 and v1

* Address Private Endpoint validation issues in V3, V2 and V1 SDK tags (Azure#13404)

* fix the validation errors

* Delete ServerDevOpsAudit.json

* fix the validation errors

* re add ServerDevOpsAudit.json

* address PrivateEndpointConnections.json validation issues in v3, v2 and v1

* Identity/Key/external Admin API (Azure#13411)

* Add examples for sql mi remove maintenance configuration (Azure#13390)

* Add missing specs 2020 11 01 (Azure#13488)

* fix the validation errors

* Delete ServerDevOpsAudit.json

* fix the validation errors

* re add ServerDevOpsAudit.json

* address PrivateEndpointConnections.json validation issues in v3, v2 and v1

* add missing specs in 2020-11-01-preview

* update the validation errors

* update systemData and sync with global common/v1/types.json

* update legacy to match the latest database specs

* remove RestorableDroppedManagedInstances due to it should be internal

* Updated database extensions (Azure#13584)

Co-authored-by: Geetha Athreya <geathrey@microsoft.com>

Co-authored-by: xaliciayang <59986952+xaliciayang@users.noreply.github.com>
Co-authored-by: ayeletshpigelman <ayshpige@microsoft.com>
Co-authored-by: strehan1993 <70013163+strehan1993@users.noreply.github.com>
Co-authored-by: Ivan Kulezic <72797230+kukislav@users.noreply.github.com>
Co-authored-by: Geetha Athreya <43223869+athreya-geetha@users.noreply.github.com>
Co-authored-by: Geetha Athreya <geathrey@microsoft.com>
  • Loading branch information
7 people committed Mar 29, 2021
1 parent a2224d5 commit 22b27dd
Show file tree
Hide file tree
Showing 201 changed files with 23,971 additions and 9,132 deletions.
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2021 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
9 changes: 4 additions & 5 deletions sdk/sql/arm-sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-sql

### How to use

#### nodejs - Authentication, client creation and get recoverableDatabases as an example written in TypeScript.
#### nodejs - client creation and get recoverableDatabases as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```typescript
import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
import { SqlManagementClient, SqlManagementModels, SqlManagementMappers } from "@azure/arm-sql";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { SqlManagementClient } = require("@azure/arm-sql");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/sql/arm-sql/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -9,7 +9,6 @@
export {
AutomaticTuningOptions,
AutomaticTuningServerOptions,
BackupLongTermRetentionPolicy,
BackupShortTermRetentionPolicy,
BackupShortTermRetentionPolicyListResult,
BaseResource,
Expand Down Expand Up @@ -38,7 +37,7 @@ export {
FailoverGroupReadWriteEndpoint,
FirewallRule,
GeoBackupPolicy,
ImportExportResponse,
ImportExportOperationResult,
InstanceFailoverGroup,
InstanceFailoverGroupReadOnlyEndpoint,
InstanceFailoverGroupReadWriteEndpoint,
Expand All @@ -57,21 +56,35 @@ export {
JobTargetGroup,
JobVersion,
LongTermRetentionBackup,
LongTermRetentionBackupOperationResult,
LongTermRetentionPolicy,
ManagedBackupShortTermRetentionPolicy,
ManagedDatabase,
ManagedDatabaseRestoreDetailsResult,
ManagedDatabaseSecurityAlertPolicy,
ManagedInstance,
ManagedInstanceAdministrator,
ManagedInstanceAzureADOnlyAuthentication,
ManagedInstanceEncryptionProtector,
ManagedInstanceKey,
ManagedInstanceLongTermRetentionBackup,
ManagedInstanceLongTermRetentionPolicy,
ManagedInstanceOperation,
ManagedInstanceOperationParametersPair,
ManagedInstanceOperationSteps,
ManagedInstancePairInfo,
ManagedInstancePecProperty,
ManagedInstancePrivateEndpointConnectionProperties,
ManagedInstancePrivateEndpointProperty,
ManagedInstancePrivateLinkServiceConnectionStateProperty,
ManagedInstanceVulnerabilityAssessment,
ManagedServerSecurityAlertPolicy,
OperationImpact,
PartnerInfo,
PartnerRegionInfo,
PrivateEndpointConnection,
PrivateEndpointConnectionProperties,
PrivateEndpointConnectionRequestStatus,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkResourceProperties,
Expand All @@ -92,12 +105,17 @@ export {
Server,
ServerAutomaticTuning,
ServerAzureADAdministrator,
ServerAzureADOnlyAuthentication,
ServerBlobAuditingPolicy,
ServerCommunicationLink,
ServerConnectionPolicy,
ServerDevOpsAuditingSettings,
ServerDnsAlias,
ServerInfo,
ServerKey,
ServerPrivateEndpointConnection,
ServerSecurityAlertPolicy,
ServerTrustGroup,
ServerVulnerabilityAssessment,
ServiceObjective,
ServiceTierAdvisor,
Expand All @@ -111,13 +129,18 @@ export {
SyncGroupSchemaTable,
SyncGroupSchemaTableColumn,
SyncMember,
SystemData,
TdeCertificate,
TrackedResource,
TransparentDataEncryption,
TransparentDataEncryptionActivity,
UpsertManagedServerOperationParameters,
UpsertManagedServerOperationStep,
VirtualCluster,
VirtualNetworkRule,
VulnerabilityAssessmentRecurringScansProperties,
VulnerabilityAssessmentScanError,
VulnerabilityAssessmentScanRecord
VulnerabilityAssessmentScanRecord,
WorkloadClassifier,
WorkloadGroup
} from "../models/mappers";
15 changes: 12 additions & 3 deletions sdk/sql/arm-sql/src/models/capabilitiesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,38 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
AutoPauseDelayTimeRange,
CloudError,
EditionCapability,
ElasticPoolEditionCapability,
ElasticPoolPerDatabaseMaxPerformanceLevelCapability,
ElasticPoolPerDatabaseMinPerformanceLevelCapability,
ElasticPoolPerformanceLevelCapability,
InstancePoolEditionCapability,
InstancePoolFamilyCapability,
InstancePoolVcoresCapability,
LicenseTypeCapability,
LocationCapabilities,
LogSizeCapability,
MaintenanceConfigurationCapability,
ManagedInstanceEditionCapability,
ManagedInstanceFamilyCapability,
ManagedInstanceMaintenanceConfigurationCapability,
ManagedInstanceVcoresCapability,
ManagedInstanceVersionCapability,
MaxSizeCapability,
MaxSizeRangeCapability,
MinCapacityCapability,
PerformanceLevelCapability,
ReadScaleCapability,
ServerVersionCapability,
ServiceObjectiveCapability,
Sku
Sku,
StorageCapability
} from "../models/mappers";
33 changes: 28 additions & 5 deletions sdk/sql/arm-sql/src/models/dataMaskingPoliciesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -9,7 +9,6 @@
export {
AutomaticTuningOptions,
AutomaticTuningServerOptions,
BackupLongTermRetentionPolicy,
BackupShortTermRetentionPolicy,
BaseResource,
CloudError,
Expand Down Expand Up @@ -37,7 +36,7 @@ export {
FailoverGroupReadWriteEndpoint,
FirewallRule,
GeoBackupPolicy,
ImportExportResponse,
ImportExportOperationResult,
InstanceFailoverGroup,
InstanceFailoverGroupReadOnlyEndpoint,
InstanceFailoverGroupReadWriteEndpoint,
Expand All @@ -56,21 +55,35 @@ export {
JobTargetGroup,
JobVersion,
LongTermRetentionBackup,
LongTermRetentionBackupOperationResult,
LongTermRetentionPolicy,
ManagedBackupShortTermRetentionPolicy,
ManagedDatabase,
ManagedDatabaseRestoreDetailsResult,
ManagedDatabaseSecurityAlertPolicy,
ManagedInstance,
ManagedInstanceAdministrator,
ManagedInstanceAzureADOnlyAuthentication,
ManagedInstanceEncryptionProtector,
ManagedInstanceKey,
ManagedInstanceLongTermRetentionBackup,
ManagedInstanceLongTermRetentionPolicy,
ManagedInstanceOperation,
ManagedInstanceOperationParametersPair,
ManagedInstanceOperationSteps,
ManagedInstancePairInfo,
ManagedInstancePecProperty,
ManagedInstancePrivateEndpointConnectionProperties,
ManagedInstancePrivateEndpointProperty,
ManagedInstancePrivateLinkServiceConnectionStateProperty,
ManagedInstanceVulnerabilityAssessment,
ManagedServerSecurityAlertPolicy,
OperationImpact,
PartnerInfo,
PartnerRegionInfo,
PrivateEndpointConnection,
PrivateEndpointConnectionProperties,
PrivateEndpointConnectionRequestStatus,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkResourceProperties,
Expand All @@ -91,12 +104,17 @@ export {
Server,
ServerAutomaticTuning,
ServerAzureADAdministrator,
ServerAzureADOnlyAuthentication,
ServerBlobAuditingPolicy,
ServerCommunicationLink,
ServerConnectionPolicy,
ServerDevOpsAuditingSettings,
ServerDnsAlias,
ServerInfo,
ServerKey,
ServerPrivateEndpointConnection,
ServerSecurityAlertPolicy,
ServerTrustGroup,
ServerVulnerabilityAssessment,
ServiceObjective,
ServiceTierAdvisor,
Expand All @@ -110,13 +128,18 @@ export {
SyncGroupSchemaTable,
SyncGroupSchemaTableColumn,
SyncMember,
SystemData,
TdeCertificate,
TrackedResource,
TransparentDataEncryption,
TransparentDataEncryptionActivity,
UpsertManagedServerOperationParameters,
UpsertManagedServerOperationStep,
VirtualCluster,
VirtualNetworkRule,
VulnerabilityAssessmentRecurringScansProperties,
VulnerabilityAssessmentScanError,
VulnerabilityAssessmentScanRecord
VulnerabilityAssessmentScanRecord,
WorkloadClassifier,
WorkloadGroup
} from "../models/mappers";
33 changes: 28 additions & 5 deletions sdk/sql/arm-sql/src/models/dataMaskingRulesMappers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand All @@ -9,7 +9,6 @@
export {
AutomaticTuningOptions,
AutomaticTuningServerOptions,
BackupLongTermRetentionPolicy,
BackupShortTermRetentionPolicy,
BaseResource,
CloudError,
Expand Down Expand Up @@ -38,7 +37,7 @@ export {
FailoverGroupReadWriteEndpoint,
FirewallRule,
GeoBackupPolicy,
ImportExportResponse,
ImportExportOperationResult,
InstanceFailoverGroup,
InstanceFailoverGroupReadOnlyEndpoint,
InstanceFailoverGroupReadWriteEndpoint,
Expand All @@ -57,21 +56,35 @@ export {
JobTargetGroup,
JobVersion,
LongTermRetentionBackup,
LongTermRetentionBackupOperationResult,
LongTermRetentionPolicy,
ManagedBackupShortTermRetentionPolicy,
ManagedDatabase,
ManagedDatabaseRestoreDetailsResult,
ManagedDatabaseSecurityAlertPolicy,
ManagedInstance,
ManagedInstanceAdministrator,
ManagedInstanceAzureADOnlyAuthentication,
ManagedInstanceEncryptionProtector,
ManagedInstanceKey,
ManagedInstanceLongTermRetentionBackup,
ManagedInstanceLongTermRetentionPolicy,
ManagedInstanceOperation,
ManagedInstanceOperationParametersPair,
ManagedInstanceOperationSteps,
ManagedInstancePairInfo,
ManagedInstancePecProperty,
ManagedInstancePrivateEndpointConnectionProperties,
ManagedInstancePrivateEndpointProperty,
ManagedInstancePrivateLinkServiceConnectionStateProperty,
ManagedInstanceVulnerabilityAssessment,
ManagedServerSecurityAlertPolicy,
OperationImpact,
PartnerInfo,
PartnerRegionInfo,
PrivateEndpointConnection,
PrivateEndpointConnectionProperties,
PrivateEndpointConnectionRequestStatus,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkResourceProperties,
Expand All @@ -92,12 +105,17 @@ export {
Server,
ServerAutomaticTuning,
ServerAzureADAdministrator,
ServerAzureADOnlyAuthentication,
ServerBlobAuditingPolicy,
ServerCommunicationLink,
ServerConnectionPolicy,
ServerDevOpsAuditingSettings,
ServerDnsAlias,
ServerInfo,
ServerKey,
ServerPrivateEndpointConnection,
ServerSecurityAlertPolicy,
ServerTrustGroup,
ServerVulnerabilityAssessment,
ServiceObjective,
ServiceTierAdvisor,
Expand All @@ -111,13 +129,18 @@ export {
SyncGroupSchemaTable,
SyncGroupSchemaTableColumn,
SyncMember,
SystemData,
TdeCertificate,
TrackedResource,
TransparentDataEncryption,
TransparentDataEncryptionActivity,
UpsertManagedServerOperationParameters,
UpsertManagedServerOperationStep,
VirtualCluster,
VirtualNetworkRule,
VulnerabilityAssessmentRecurringScansProperties,
VulnerabilityAssessmentScanError,
VulnerabilityAssessmentScanRecord
VulnerabilityAssessmentScanRecord,
WorkloadClassifier,
WorkloadGroup
} from "../models/mappers";
Loading

0 comments on commit 22b27dd

Please sign in to comment.