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] Swagger Documentation for Outbound Firewall Rules #4281

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
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
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
15 changes: 7 additions & 8 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 backupShortTermRetentionPolicies as an example written in TypeScript.

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

Expand All @@ -26,19 +26,18 @@ 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) => {
const client = new SqlManagementClient(creds, subscriptionId);
const resourceGroupName = "testresourceGroupName";
const serverName = "testserverName";
const databaseName = "testdatabaseName";
client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => {
client.backupShortTermRetentionPolicies.get(resourceGroupName, serverName, databaseName).then((result) => {
console.log("The result is:");
console.log(result);
});
Expand All @@ -47,7 +46,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
});
```

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

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

Expand Down Expand Up @@ -84,7 +83,7 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
const resourceGroupName = "testresourceGroupName";
const serverName = "testserverName";
const databaseName = "testdatabaseName";
client.recoverableDatabases.get(resourceGroupName, serverName, databaseName).then((result) => {
client.backupShortTermRetentionPolicies.get(resourceGroupName, serverName, databaseName).then((result) => {
console.log("The result is:");
console.log(result);
}).catch((err) => {
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,33 +1,36 @@
/*
* 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,
ElasticPoolOperation,
ElasticPoolPerDatabaseSettings,
EncryptionProtector,
Expand All @@ -37,8 +40,8 @@ export {
FailoverGroupReadOnlyEndpoint,
FailoverGroupReadWriteEndpoint,
FirewallRule,
GeoBackupPolicy,
ImportExportResponse,
ImportExportExtensionsOperationResult,
ImportExportOperationResult,
InstanceFailoverGroup,
InstanceFailoverGroupReadOnlyEndpoint,
InstanceFailoverGroupReadWriteEndpoint,
Expand All @@ -56,53 +59,92 @@ 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,
OutboundFirewallRule,
PartnerInfo,
PartnerRegionInfo,
PrivateEndpointConnection,
PrivateEndpointConnectionProperties,
PrivateEndpointConnectionRequestStatus,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkResourceProperties,
PrivateLinkServiceConnectionStateProperty,
ProxyResource,
RecommendedElasticPool,
RecommendedElasticPoolMetric,
RecommendedIndex,
RecoverableDatabase,
ProxyResourceWithWritableName,
QueryMetricInterval,
QueryMetricProperties,
QueryStatistics,
RecommendedAction,
RecommendedActionErrorInfo,
RecommendedActionImpactRecord,
RecommendedActionImplementationInfo,
RecommendedActionMetricInfo,
RecommendedActionStateInfo,
RecommendedSensitivityLabelUpdate,
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 +153,19 @@ 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