Skip to content

Commit 728b947

Browse files
author
SDKAuto
committed
CodeGen from PR 33764 in Azure/azure-rest-api-specs
Merge f015efb47f4d22c053a0e783eeeac6cbf704f856 into cfa99e453cb5f4eecd04c631729cb38fa1a81df3
1 parent cf9e5b3 commit 728b947

File tree

56 files changed

+2104
-563
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2104
-563
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 50 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/sql/arm-sql/CHANGELOG.md

Lines changed: 201 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,209 @@
11
# Release History
2-
3-
## 11.0.0-beta.3 (Unreleased)
4-
2+
3+
## 11.0.0-beta.3 (2025-04-18)
4+
Compared with version 10.0.0
5+
56
### Features Added
67

7-
### Breaking Changes
8-
9-
### Bugs Fixed
8+
- Added operation group JobPrivateEndpoints
9+
- Added operation DistributedAvailabilityGroups.beginFailover
10+
- Added operation DistributedAvailabilityGroups.beginFailoverAndWait
11+
- Added operation DistributedAvailabilityGroups.beginSetRole
12+
- Added operation DistributedAvailabilityGroups.beginSetRoleAndWait
13+
- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover
14+
- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait
15+
- Added operation LongTermRetentionBackups.beginChangeAccessTier
16+
- Added operation LongTermRetentionBackups.beginChangeAccessTierAndWait
17+
- Added operation LongTermRetentionBackups.beginChangeAccessTierByResourceGroup
18+
- Added operation LongTermRetentionBackups.beginChangeAccessTierByResourceGroupAndWait
19+
- Added operation ManagedInstances.beginRefreshStatus
20+
- Added operation ManagedInstances.beginRefreshStatusAndWait
21+
- Added operation ReplicationLinks.beginCreateOrUpdate
22+
- Added operation ReplicationLinks.beginCreateOrUpdateAndWait
23+
- Added operation ReplicationLinks.beginUpdate
24+
- Added operation ReplicationLinks.beginUpdateAndWait
25+
- Added Interface CertificateInfo
26+
- Added Interface ChangeLongTermRetentionBackupAccessTierParameters
27+
- Added Interface DistributedAvailabilityGroupDatabase
28+
- Added Interface DistributedAvailabilityGroupSetRole
29+
- Added Interface DistributedAvailabilityGroupsFailoverHeaders
30+
- Added Interface DistributedAvailabilityGroupsFailoverOptionalParams
31+
- Added Interface DistributedAvailabilityGroupsFailoverRequest
32+
- Added Interface DistributedAvailabilityGroupsSetRoleOptionalParams
33+
- Added Interface ErrorAdditionalInfo
34+
- Added Interface ErrorDetail
35+
- Added Interface ErrorResponse
36+
- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders
37+
- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams
38+
- Added Interface JobPrivateEndpoint
39+
- Added Interface JobPrivateEndpointListResult
40+
- Added Interface JobPrivateEndpointsCreateOrUpdateOptionalParams
41+
- Added Interface JobPrivateEndpointsDeleteOptionalParams
42+
- Added Interface JobPrivateEndpointsGetOptionalParams
43+
- Added Interface JobPrivateEndpointsListByAgentNextOptionalParams
44+
- Added Interface JobPrivateEndpointsListByAgentOptionalParams
45+
- Added Interface LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams
46+
- Added Interface LongTermRetentionBackupsChangeAccessTierOptionalParams
47+
- Added Interface ManagedInstancesRefreshStatusOptionalParams
48+
- Added Interface NetworkIsolationSettingsAutoGenerated
49+
- Added Interface PhaseDetails
50+
- Added Interface QueryMetricIntervalAutoGenerated
51+
- Added Interface RefreshExternalGovernanceStatusOperationResultMI
52+
- Added Interface ReplicationLinksCreateOrUpdateOptionalParams
53+
- Added Interface ReplicationLinksUpdateOptionalParams
54+
- Added Interface ReplicationLinkUpdate
55+
- Added Interface ServersCreateOrUpdateHeaders
56+
- Added Interface ServersDeleteHeaders
57+
- Added Interface ServersImportDatabaseHeaders
58+
- Added Interface ServersRefreshStatusHeaders
59+
- Added Interface ServersUpdateHeaders
60+
- Added Type Alias AuthMetadataLookupModes
61+
- Added Type Alias BackupStorageAccessTier
62+
- Added Type Alias DistributedAvailabilityGroupsFailoverResponse
63+
- Added Type Alias DistributedAvailabilityGroupsSetRoleResponse
64+
- Added Type Alias FailoverGroupDatabasesSecondaryType
65+
- Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse
66+
- Added Type Alias FailoverModeType
67+
- Added Type Alias FailoverType
68+
- Added Type Alias FreeLimitExhaustionBehavior
69+
- Added Type Alias FreemiumType
70+
- Added Type Alias HybridSecondaryUsage
71+
- Added Type Alias HybridSecondaryUsageDetected
72+
- Added Type Alias InstanceRole
73+
- Added Type Alias JobPrivateEndpointsCreateOrUpdateResponse
74+
- Added Type Alias JobPrivateEndpointsGetResponse
75+
- Added Type Alias JobPrivateEndpointsListByAgentNextResponse
76+
- Added Type Alias JobPrivateEndpointsListByAgentResponse
77+
- Added Type Alias LinkRole
78+
- Added Type Alias LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse
79+
- Added Type Alias LongTermRetentionBackupsChangeAccessTierResponse
80+
- Added Type Alias ManagedInstanceDatabaseFormat
81+
- Added Type Alias ManagedInstancesRefreshStatusResponse
82+
- Added Type Alias ManagedInstancesStartResponse
83+
- Added Type Alias ManagedInstancesStopResponse
84+
- Added Type Alias MinimalTlsVersion
85+
- Added Type Alias Phase
86+
- Added Type Alias ReplicaConnectedState
87+
- Added Type Alias ReplicaSynchronizationHealth
88+
- Added Type Alias ReplicationLinksCreateOrUpdateResponse
89+
- Added Type Alias ReplicationLinksUpdateResponse
90+
- Added Type Alias ReplicationModeType
91+
- Added Type Alias RoleChangeType
92+
- Added Type Alias SeedingModeType
93+
- Added Type Alias ServerCreateMode
94+
- Interface Database has a new optional parameter encryptionProtectorAutoRotation
95+
- Interface Database has a new optional parameter freeLimitExhaustionBehavior
96+
- Interface Database has a new optional parameter useFreeLimit
97+
- Interface DatabaseOperation has a new optional parameter operationPhaseDetails
98+
- Interface DatabaseUpdate has a new optional parameter encryptionProtectorAutoRotation
99+
- Interface DatabaseUpdate has a new optional parameter freeLimitExhaustionBehavior
100+
- Interface DatabaseUpdate has a new optional parameter useFreeLimit
101+
- Interface DistributedAvailabilityGroup has a new optional parameter databases
102+
- Interface DistributedAvailabilityGroup has a new optional parameter distributedAvailabilityGroupName
103+
- Interface DistributedAvailabilityGroup has a new optional parameter failoverMode
104+
- Interface DistributedAvailabilityGroup has a new optional parameter instanceAvailabilityGroupName
105+
- Interface DistributedAvailabilityGroup has a new optional parameter instanceLinkRole
106+
- Interface DistributedAvailabilityGroup has a new optional parameter partnerAvailabilityGroupName
107+
- Interface DistributedAvailabilityGroup has a new optional parameter partnerEndpoint
108+
- Interface DistributedAvailabilityGroup has a new optional parameter partnerLinkRole
109+
- Interface DistributedAvailabilityGroup has a new optional parameter seedingMode
110+
- Interface ElasticPool has a new optional parameter availabilityZone
111+
- Interface ElasticPool has a new optional parameter minCapacity
112+
- Interface ElasticPool has a new optional parameter preferredEnclaveType
113+
- Interface ElasticPoolUpdate has a new optional parameter availabilityZone
114+
- Interface ElasticPoolUpdate has a new optional parameter minCapacity
115+
- Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType
116+
- Interface FailoverGroup has a new optional parameter secondaryType
117+
- Interface FailoverGroupReadOnlyEndpoint has a new optional parameter targetServer
118+
- Interface FailoverGroupUpdate has a new optional parameter partnerServers
119+
- Interface FailoverGroupUpdate has a new optional parameter secondaryType
120+
- Interface InstancePool has a new optional parameter dnsZone
121+
- Interface InstancePool has a new optional parameter maintenanceConfigurationId
122+
- Interface InstancePoolUpdate has a new optional parameter dnsZone
123+
- Interface InstancePoolUpdate has a new optional parameter licenseType
124+
- Interface InstancePoolUpdate has a new optional parameter maintenanceConfigurationId
125+
- Interface InstancePoolUpdate has a new optional parameter sku
126+
- Interface InstancePoolUpdate has a new optional parameter subnetId
127+
- Interface InstancePoolUpdate has a new optional parameter vCores
128+
- Interface LongTermRetentionBackup has a new optional parameter backupStorageAccessTier
129+
- Interface LongTermRetentionBackup has a new optional parameter isBackupImmutable
130+
- Interface LongTermRetentionPolicy has a new optional parameter backupStorageAccessTier
131+
- Interface LongTermRetentionPolicy has a new optional parameter makeBackupsImmutable
132+
- Interface ManagedDatabase has a new optional parameter isLedgerOn
133+
- Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn
134+
- Interface ManagedInstance has a new optional parameter authenticationMetadata
135+
- Interface ManagedInstance has a new optional parameter createTime
136+
- Interface ManagedInstance has a new optional parameter databaseFormat
137+
- Interface ManagedInstance has a new optional parameter externalGovernanceStatus
138+
- Interface ManagedInstance has a new optional parameter hybridSecondaryUsage
139+
- Interface ManagedInstance has a new optional parameter hybridSecondaryUsageDetected
140+
- Interface ManagedInstance has a new optional parameter isGeneralPurposeV2
141+
- Interface ManagedInstance has a new optional parameter pricingModel
142+
- Interface ManagedInstance has a new optional parameter storageIOps
143+
- Interface ManagedInstance has a new optional parameter storageThroughputMBps
144+
- Interface ManagedInstance has a new optional parameter virtualClusterId
145+
- Interface ManagedInstanceUpdate has a new optional parameter authenticationMetadata
146+
- Interface ManagedInstanceUpdate has a new optional parameter createTime
147+
- Interface ManagedInstanceUpdate has a new optional parameter databaseFormat
148+
- Interface ManagedInstanceUpdate has a new optional parameter externalGovernanceStatus
149+
- Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsage
150+
- Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsageDetected
151+
- Interface ManagedInstanceUpdate has a new optional parameter isGeneralPurposeV2
152+
- Interface ManagedInstanceUpdate has a new optional parameter pricingModel
153+
- Interface ManagedInstanceUpdate has a new optional parameter storageIOps
154+
- Interface ManagedInstanceUpdate has a new optional parameter storageThroughputMBps
155+
- Interface ManagedInstanceUpdate has a new optional parameter virtualClusterId
156+
- Interface PrivateEndpointConnection has a new optional parameter groupIds
157+
- Interface ReplicationLink has a new optional parameter partnerDatabaseId
158+
- Interface Server has a new optional parameter createMode
159+
- Interface Server has a new optional parameter isIPv6Enabled
160+
- Interface Server has a new optional parameter retentionDays
161+
- Interface ServerUpdate has a new optional parameter createMode
162+
- Interface ServerUpdate has a new optional parameter isIPv6Enabled
163+
- Interface ServerUpdate has a new optional parameter retentionDays
164+
- Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime
165+
- Added Enum KnownAuthMetadataLookupModes
166+
- Added Enum KnownBackupStorageAccessTier
167+
- Added Enum KnownFailoverGroupDatabasesSecondaryType
168+
- Added Enum KnownFailoverModeType
169+
- Added Enum KnownFailoverType
170+
- Added Enum KnownFreeLimitExhaustionBehavior
171+
- Added Enum KnownFreemiumType
172+
- Added Enum KnownHybridSecondaryUsage
173+
- Added Enum KnownHybridSecondaryUsageDetected
174+
- Added Enum KnownInstanceRole
175+
- Added Enum KnownLinkRole
176+
- Added Enum KnownManagedInstanceDatabaseFormat
177+
- Added Enum KnownMinimalTlsVersion
178+
- Added Enum KnownPhase
179+
- Added Enum KnownReplicaConnectedState
180+
- Added Enum KnownReplicaSynchronizationHealth
181+
- Added Enum KnownReplicationModeType
182+
- Added Enum KnownRoleChangeType
183+
- Added Enum KnownSeedingModeType
184+
- Added Enum KnownServerCreateMode
10185

11-
### Other Changes
186+
### Breaking Changes
12187

188+
- Interface DistributedAvailabilityGroup no longer has parameter lastHardenedLsn
189+
- Interface DistributedAvailabilityGroup no longer has parameter linkState
190+
- Interface DistributedAvailabilityGroup no longer has parameter primaryAvailabilityGroupName
191+
- Interface DistributedAvailabilityGroup no longer has parameter secondaryAvailabilityGroupName
192+
- Interface DistributedAvailabilityGroup no longer has parameter sourceEndpoint
193+
- Interface DistributedAvailabilityGroup no longer has parameter sourceReplicaId
194+
- Interface DistributedAvailabilityGroup no longer has parameter targetDatabase
195+
- Interface DistributedAvailabilityGroup no longer has parameter targetReplicaId
196+
- Type of parameter replicationMode of interface DistributedAvailabilityGroup is changed from ReplicationMode to ReplicationModeType
197+
- Type of parameter networkIsolation of interface ImportNewDatabaseDefinition is changed from NetworkIsolationSettings to NetworkIsolationSettingsAutoGenerated
198+
- Type of parameter provisioningState of interface ManagedInstance is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState
199+
- Type of parameter provisioningState of interface ManagedInstanceUpdate is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState
200+
- Type of parameter intervals of interface QueryStatisticsProperties is changed from QueryMetricInterval[] to QueryMetricIntervalAutoGenerated[]
201+
- Type of parameter minimalTlsVersion of interface Server is changed from string to MinimalTlsVersion
202+
- Type of parameter minimalTlsVersion of interface ServerUpdate is changed from string to MinimalTlsVersion
203+
- Removed Enum KnownManagedInstancePropertiesProvisioningState
204+
- Removed Enum KnownReplicationMode
205+
206+
13207
## 11.0.0-beta.2 (2024-08-20)
14208
Compared with version 10.0.0
15209

sdk/sql/arm-sql/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

sdk/sql/arm-sql/README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,36 +44,33 @@ npm install @azure/identity
4444
```
4545

4646
You will also need to **register a new AAD application and grant access to Azure SqlManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
47-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4847

4948
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
5049

5150
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
52-
51+
5352
```ts snippet:ReadmeSampleCreateClient_Node
5453
import { SqlManagementClient } from "@azure/arm-sql";
5554
import { DefaultAzureCredential } from "@azure/identity";
5655

5756
const subscriptionId = "00000000-0000-0000-0000-000000000000";
5857
const client = new SqlManagementClient(new DefaultAzureCredential(), subscriptionId);
5958
```
60-
59+
6160
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
62-
61+
6362
```ts snippet:ReadmeSampleCreateClient_Browser
6463
import { InteractiveBrowserCredential } from "@azure/identity";
6564
import { SqlManagementClient } from "@azure/arm-sql";
6665

67-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6866
const credential = new InteractiveBrowserCredential({
6967
tenantId: "<YOUR_TENANT_ID>",
70-
clientId: "<YOUR_CLIENT_ID>",
71-
});
68+
clientId: "<YOUR_CLIENT_ID>"
69+
});
7270
const client = new SqlManagementClient(credential, subscriptionId);
7371
```
7472

7573
### JavaScript Bundle
76-
7774
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7875

7976
## Key concepts
@@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide
109106
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
110107

111108

112-
113109
[azure_cli]: https://learn.microsoft.com/cli/azure
114110
[azure_sub]: https://azure.microsoft.com/free/
115111
[azure_sub]: https://azure.microsoft.com/free/

sdk/sql/arm-sql/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "1db2fcc22dec6f21d359d3b56f822f61f5d6ee12",
2+
"commit": "0688cc9b7ace67fd92a0325b43300dfdf56279d8",
33
"readme": "specification/sql/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sql\\resource-manager\\readme.md --use=@autorest/[email protected].24 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].11",
7-
"use": "@autorest/[email protected].24"
6+
"release_tool": "@azure-tools/[email protected].26",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/sql/arm-sql/api-extractor.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3-
"mainEntryPointFilePath": "dist/esm/index.d.ts",
3+
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
44
"docModel": {
55
"enabled": true
66
},
@@ -11,7 +11,7 @@
1111
"dtsRollup": {
1212
"enabled": true,
1313
"untrimmedFilePath": "",
14-
"publicTrimmedFilePath": "dist/arm-sql.d.ts"
14+
"publicTrimmedFilePath": "./types/arm-sql.d.ts"
1515
},
1616
"messages": {
1717
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/sql/arm-sql/package.json

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"dependencies": {
1111
"@azure/abort-controller": "^2.1.2",
1212
"@azure/core-auth": "^1.9.0",
13-
"@azure/core-client": "^1.9.2",
13+
"@azure/core-client": "^1.9.3",
1414
"@azure/core-lro": "^2.5.4",
1515
"@azure/core-paging": "^1.6.2",
16-
"@azure/core-rest-pipeline": "^1.19.0",
16+
"@azure/core-rest-pipeline": "^1.19.1",
1717
"tslib": "^2.8.1"
1818
},
1919
"keywords": [
@@ -25,20 +25,20 @@
2525
],
2626
"license": "MIT",
2727
"main": "./dist/commonjs/index.js",
28-
"module": "./dist/esm/index.js",
28+
"module": "./dist-esm/src/index.js",
2929
"types": "./dist/commonjs/index.d.ts",
3030
"devDependencies": {
3131
"@azure-tools/test-credential": "^2.0.0",
3232
"@azure-tools/test-recorder": "^4.1.0",
3333
"@azure-tools/test-utils-vitest": "^1.0.0",
3434
"@azure/dev-tool": "^1.0.0",
35-
"@azure/identity": "^4.6.0",
35+
"@azure/identity": "^4.9.0",
3636
"@azure/logger": "^1.1.4",
3737
"@types/node": "^18.0.0",
3838
"@vitest/browser": "^3.0.9",
3939
"@vitest/coverage-istanbul": "^3.0.9",
4040
"dotenv": "^16.0.0",
41-
"playwright": "^1.50.1",
41+
"playwright": "^1.52.0",
4242
"typescript": "~5.8.2",
4343
"vitest": "^3.0.9"
4444
},
@@ -71,7 +71,7 @@
7171
"integration-test:browser": "echo skipped",
7272
"integration-test:node": "dev-tool run test:vitest --esm",
7373
"lint": "echo skipped",
74-
"minify": "echo skipped",
74+
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
7575
"pack": "npm pack 2>&1",
7676
"prepack": "npm run build",
7777
"test": "npm run integration-test",
@@ -93,14 +93,6 @@
9393
},
9494
"autoPublish": true,
9595
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql",
96-
"//sampleConfiguration": {
97-
"productName": "",
98-
"productSlugs": [
99-
"azure"
100-
],
101-
"disableDocsMs": true,
102-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview"
103-
},
10496
"type": "module",
10597
"tshy": {
10698
"project": "./tsconfig.src.json",
@@ -141,4 +133,4 @@
141133
}
142134
}
143135
}
144-
}
136+
}

0 commit comments

Comments
 (0)