Skip to content

Commit

Permalink
CodeGen from PR 14058 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3ec6de522edf616f389a9f9c1b8cc12084edc513 into 64e122e05a8ff184be8a6d185edfab4e9c3c237e
  • Loading branch information
SDKAuto committed Apr 21, 2021
1 parent c913502 commit 962d8e9
Show file tree
Hide file tree
Showing 246 changed files with 46,269 additions and 13,547 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,30 +1,37 @@
/*
* 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 {
Advisor,
AutomaticTuningOptions,
AutomaticTuningServerOptions,
BackupLongTermRetentionPolicy,
BackupShortTermRetentionPolicy,
BackupShortTermRetentionPolicyListResult,
BaseResource,
CloudError,
Database,
DatabaseAutomaticTuning,
DatabaseBlobAuditingPolicy,
DatabaseColumn,
DatabaseExtensions,
DatabaseOperation,
DatabaseSchema,
DatabaseSecurityAlertPolicy,
DatabaseTable,
DatabaseUsage,
DatabaseVulnerabilityAssessment,
DatabaseVulnerabilityAssessmentRuleBaseline,
DatabaseVulnerabilityAssessmentRuleBaselineItem,
DatabaseVulnerabilityAssessmentScansExport,
DataMaskingPolicy,
DataMaskingRule,
DataWarehouseUserActivities,
DeletedServer,
ElasticPool,
ElasticPoolActivity,
ElasticPoolDatabaseActivity,
Expand All @@ -38,7 +45,8 @@ export {
FailoverGroupReadWriteEndpoint,
FirewallRule,
GeoBackupPolicy,
ImportExportResponse,
ImportExportExtensionsOperationResult,
ImportExportOperationResult,
InstanceFailoverGroup,
InstanceFailoverGroupReadOnlyEndpoint,
InstanceFailoverGroupReadWriteEndpoint,
Expand All @@ -56,53 +64,94 @@ export {
JobTarget,
JobTargetGroup,
JobVersion,
LogicalDatabaseTransparentDataEncryption,
LongTermRetentionBackup,
LongTermRetentionBackupOperationResult,
LongTermRetentionPolicy,
MaintenanceWindowOptions,
MaintenanceWindows,
MaintenanceWindowTimeRange,
ManagedBackupShortTermRetentionPolicy,
ManagedDatabase,
ManagedDatabaseRestoreDetailsResult,
ManagedDatabaseSecurityAlertPolicy,
ManagedInstance,
ManagedInstanceAdministrator,
ManagedInstanceAzureADOnlyAuthentication,
ManagedInstanceEncryptionProtector,
ManagedInstanceExternalAdministrator,
ManagedInstanceKey,
ManagedInstanceLongTermRetentionBackup,
ManagedInstanceLongTermRetentionPolicy,
ManagedInstanceOperation,
ManagedInstanceOperationParametersPair,
ManagedInstanceOperationSteps,
ManagedInstancePairInfo,
ManagedInstancePecProperty,
ManagedInstancePrivateEndpointConnection,
ManagedInstancePrivateEndpointConnectionProperties,
ManagedInstancePrivateEndpointProperty,
ManagedInstancePrivateLink,
ManagedInstancePrivateLinkProperties,
ManagedInstancePrivateLinkServiceConnectionStateProperty,
ManagedInstanceQuery,
ManagedInstanceVulnerabilityAssessment,
ManagedServerSecurityAlertPolicy,
OperationImpact,
ManagedTransparentDataEncryption,
OperationsHealth,
PartnerInfo,
PartnerRegionInfo,
PrivateEndpointConnection,
PrivateEndpointConnectionProperties,
PrivateEndpointConnectionRequestStatus,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkResourceProperties,
PrivateLinkServiceConnectionStateProperty,
ProxyResource,
RecommendedElasticPool,
RecommendedElasticPoolMetric,
RecommendedIndex,
ProxyResourceWithWritableName,
QueryMetricInterval,
QueryMetricProperties,
QueryStatistics,
RecommendedAction,
RecommendedActionErrorInfo,
RecommendedActionImpactRecord,
RecommendedActionImplementationInfo,
RecommendedActionMetricInfo,
RecommendedActionStateInfo,
RecommendedSensitivityLabelUpdate,
RecoverableDatabase,
RecoverableManagedDatabase,
ReplicationLink,
Resource,
ResourceIdentity,
ResourceIdentityWithUserAssignedIdentities,
ResourceWithWritableName,
RestorableDroppedDatabase,
RestorableDroppedManagedDatabase,
RestorePoint,
SecurityEvent,
SecurityEventSqlInjectionAdditionalProperties,
SensitivityLabel,
SensitivityLabelUpdate,
Server,
ServerAutomaticTuning,
ServerAzureADAdministrator,
ServerAzureADOnlyAuthentication,
ServerBlobAuditingPolicy,
ServerCommunicationLink,
ServerConnectionPolicy,
ServerDevOpsAuditingSettings,
ServerDnsAlias,
ServerExternalAdministrator,
ServerInfo,
ServerKey,
ServerOperation,
ServerPrivateEndpointConnection,
ServerSecurityAlertPolicy,
ServerTrustGroup,
ServerVulnerabilityAssessment,
ServiceObjective,
ServiceTierAdvisor,
Sku,
SloUsageMetric,
SqlAgentConfiguration,
SubscriptionUsage,
SyncAgent,
SyncAgentLinkedDatabase,
Expand All @@ -111,13 +160,20 @@ export {
SyncGroupSchemaTable,
SyncGroupSchemaTableColumn,
SyncMember,
SystemData,
TdeCertificate,
TimeZone,
TrackedResource,
TransparentDataEncryption,
TransparentDataEncryptionActivity,
UpdateManagedInstanceDnsServersOperation,
UpsertManagedServerOperationParameters,
UpsertManagedServerOperationStep,
UserIdentity,
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";
Loading

0 comments on commit 962d8e9

Please sign in to comment.