Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-sql] Track2 modify sql readme.go.md #5586

Closed
Closed
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
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
10 changes: 4 additions & 6 deletions sdk/sql/arm-sql/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
## Azure SqlManagementClient SDK for JavaScript

This package contains an isomorphic SDK (runs both in Node.js and in browsers) for SqlManagementClient.
This package contains an isomorphic SDK (runs both in node.js and in browsers) for SqlManagementClient.

### Currently supported environments

- [LTS versions of Node.js](https://nodejs.org/about/releases/)
- Latest versions of Safari, Chrome, Edge, and Firefox.
- Latest versions of Safari, Chrome, Edge and Firefox.

### Prerequisites

Expand All @@ -21,7 +21,6 @@ Install both packages using the below command:
```bash
npm install --save @azure/arm-sql @azure/identity
```

> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.

Expand All @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/

In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.

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

##### Sample code
Expand Down Expand Up @@ -88,7 +86,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
const credential = new InteractiveBrowserCredential(
{
clientId: "<client id for your Azure AD app>",
tenantId: "<optional tenant for your organization>"
tenant: "<optional tenant for your organization>"
});
const client = new Azure.ArmSql.SqlManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
Expand All @@ -111,4 +109,4 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/.\sdk\sql\arm-sql\/README.png)
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/sql/arm-sql/README.png)
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/sql/arm-sql",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
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,96 @@ export {
JobTarget,
JobTargetGroup,
JobVersion,
LedgerDigestUploads,
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,
OutboundFirewallRule,
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,
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 +162,21 @@ 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