Skip to content

Commit f6730e1

Browse files
author
SDKAuto
committed
CodeGen from PR 33764 in Azure/azure-rest-api-specs
Merge 660ef3a861ccac55ee881904d93c772ecf9d63bf into 31869e6038974dbd20dd5028feaec2c402835cad
1 parent a74a3ae commit f6730e1

File tree

56 files changed

+1879
-437
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

+1879
-437
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
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: 194 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,202 @@
11
# Release History
2-
3-
## 11.0.0-beta.3 (Unreleased)
4-
2+
3+
## 11.0.0-beta.3 (2025-04-25)
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 PhaseDetails
49+
- Added Interface QueryMetricIntervalAutoGenerated
50+
- Added Interface RefreshExternalGovernanceStatusOperationResultMI
51+
- Added Interface ReplicationLinksCreateOrUpdateOptionalParams
52+
- Added Interface ReplicationLinksUpdateOptionalParams
53+
- Added Interface ReplicationLinkUpdate
54+
- Added Type Alias AuthMetadataLookupModes
55+
- Added Type Alias BackupStorageAccessTier
56+
- Added Type Alias DistributedAvailabilityGroupsFailoverResponse
57+
- Added Type Alias DistributedAvailabilityGroupsSetRoleResponse
58+
- Added Type Alias FailoverGroupDatabasesSecondaryType
59+
- Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse
60+
- Added Type Alias FailoverModeType
61+
- Added Type Alias FailoverType
62+
- Added Type Alias FreeLimitExhaustionBehavior
63+
- Added Type Alias FreemiumType
64+
- Added Type Alias HybridSecondaryUsage
65+
- Added Type Alias HybridSecondaryUsageDetected
66+
- Added Type Alias InstanceRole
67+
- Added Type Alias JobPrivateEndpointsCreateOrUpdateResponse
68+
- Added Type Alias JobPrivateEndpointsGetResponse
69+
- Added Type Alias JobPrivateEndpointsListByAgentNextResponse
70+
- Added Type Alias JobPrivateEndpointsListByAgentResponse
71+
- Added Type Alias LinkRole
72+
- Added Type Alias LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse
73+
- Added Type Alias LongTermRetentionBackupsChangeAccessTierResponse
74+
- Added Type Alias ManagedInstanceDatabaseFormat
75+
- Added Type Alias ManagedInstancesRefreshStatusResponse
76+
- Added Type Alias ManagedInstancesStartResponse
77+
- Added Type Alias ManagedInstancesStopResponse
78+
- Added Type Alias MinimalTlsVersion
79+
- Added Type Alias Phase
80+
- Added Type Alias ReplicaConnectedState
81+
- Added Type Alias ReplicaSynchronizationHealth
82+
- Added Type Alias ReplicationLinksCreateOrUpdateResponse
83+
- Added Type Alias ReplicationLinksUpdateResponse
84+
- Added Type Alias ReplicationModeType
85+
- Added Type Alias RoleChangeType
86+
- Added Type Alias SeedingModeType
87+
- Added Type Alias ServerCreateMode
88+
- Interface Database has a new optional parameter encryptionProtectorAutoRotation
89+
- Interface Database has a new optional parameter freeLimitExhaustionBehavior
90+
- Interface Database has a new optional parameter useFreeLimit
91+
- Interface DatabaseOperation has a new optional parameter operationPhaseDetails
92+
- Interface DatabaseUpdate has a new optional parameter encryptionProtectorAutoRotation
93+
- Interface DatabaseUpdate has a new optional parameter freeLimitExhaustionBehavior
94+
- Interface DatabaseUpdate has a new optional parameter useFreeLimit
95+
- Interface DistributedAvailabilityGroup has a new optional parameter databases
96+
- Interface DistributedAvailabilityGroup has a new optional parameter distributedAvailabilityGroupName
97+
- Interface DistributedAvailabilityGroup has a new optional parameter failoverMode
98+
- Interface DistributedAvailabilityGroup has a new optional parameter instanceAvailabilityGroupName
99+
- Interface DistributedAvailabilityGroup has a new optional parameter instanceLinkRole
100+
- Interface DistributedAvailabilityGroup has a new optional parameter partnerAvailabilityGroupName
101+
- Interface DistributedAvailabilityGroup has a new optional parameter partnerEndpoint
102+
- Interface DistributedAvailabilityGroup has a new optional parameter partnerLinkRole
103+
- Interface DistributedAvailabilityGroup has a new optional parameter seedingMode
104+
- Interface ElasticPool has a new optional parameter availabilityZone
105+
- Interface ElasticPool has a new optional parameter minCapacity
106+
- Interface ElasticPool has a new optional parameter preferredEnclaveType
107+
- Interface ElasticPoolUpdate has a new optional parameter availabilityZone
108+
- Interface ElasticPoolUpdate has a new optional parameter minCapacity
109+
- Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType
110+
- Interface FailoverGroup has a new optional parameter secondaryType
111+
- Interface FailoverGroupReadOnlyEndpoint has a new optional parameter targetServer
112+
- Interface FailoverGroupUpdate has a new optional parameter partnerServers
113+
- Interface FailoverGroupUpdate has a new optional parameter secondaryType
114+
- Interface InstancePool has a new optional parameter dnsZone
115+
- Interface InstancePool has a new optional parameter maintenanceConfigurationId
116+
- Interface InstancePoolUpdate has a new optional parameter dnsZone
117+
- Interface InstancePoolUpdate has a new optional parameter licenseType
118+
- Interface InstancePoolUpdate has a new optional parameter maintenanceConfigurationId
119+
- Interface InstancePoolUpdate has a new optional parameter sku
120+
- Interface InstancePoolUpdate has a new optional parameter subnetId
121+
- Interface InstancePoolUpdate has a new optional parameter vCores
122+
- Interface LongTermRetentionBackup has a new optional parameter backupStorageAccessTier
123+
- Interface LongTermRetentionBackup has a new optional parameter isBackupImmutable
124+
- Interface LongTermRetentionPolicy has a new optional parameter backupStorageAccessTier
125+
- Interface LongTermRetentionPolicy has a new optional parameter makeBackupsImmutable
126+
- Interface ManagedDatabase has a new optional parameter isLedgerOn
127+
- Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn
128+
- Interface ManagedInstance has a new optional parameter authenticationMetadata
129+
- Interface ManagedInstance has a new optional parameter createTime
130+
- Interface ManagedInstance has a new optional parameter databaseFormat
131+
- Interface ManagedInstance has a new optional parameter externalGovernanceStatus
132+
- Interface ManagedInstance has a new optional parameter hybridSecondaryUsage
133+
- Interface ManagedInstance has a new optional parameter hybridSecondaryUsageDetected
134+
- Interface ManagedInstance has a new optional parameter isGeneralPurposeV2
135+
- Interface ManagedInstance has a new optional parameter pricingModel
136+
- Interface ManagedInstance has a new optional parameter storageIOps
137+
- Interface ManagedInstance has a new optional parameter storageThroughputMBps
138+
- Interface ManagedInstance has a new optional parameter virtualClusterId
139+
- Interface ManagedInstanceUpdate has a new optional parameter authenticationMetadata
140+
- Interface ManagedInstanceUpdate has a new optional parameter createTime
141+
- Interface ManagedInstanceUpdate has a new optional parameter databaseFormat
142+
- Interface ManagedInstanceUpdate has a new optional parameter externalGovernanceStatus
143+
- Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsage
144+
- Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsageDetected
145+
- Interface ManagedInstanceUpdate has a new optional parameter isGeneralPurposeV2
146+
- Interface ManagedInstanceUpdate has a new optional parameter pricingModel
147+
- Interface ManagedInstanceUpdate has a new optional parameter storageIOps
148+
- Interface ManagedInstanceUpdate has a new optional parameter storageThroughputMBps
149+
- Interface ManagedInstanceUpdate has a new optional parameter virtualClusterId
150+
- Interface PrivateEndpointConnection has a new optional parameter groupIds
151+
- Interface ReplicationLink has a new optional parameter partnerDatabaseId
152+
- Interface Server has a new optional parameter createMode
153+
- Interface Server has a new optional parameter isIPv6Enabled
154+
- Interface Server has a new optional parameter retentionDays
155+
- Interface ServerUpdate has a new optional parameter createMode
156+
- Interface ServerUpdate has a new optional parameter isIPv6Enabled
157+
- Interface ServerUpdate has a new optional parameter retentionDays
158+
- Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime
159+
- Added Enum KnownAuthMetadataLookupModes
160+
- Added Enum KnownBackupStorageAccessTier
161+
- Added Enum KnownFailoverGroupDatabasesSecondaryType
162+
- Added Enum KnownFailoverModeType
163+
- Added Enum KnownFailoverType
164+
- Added Enum KnownFreeLimitExhaustionBehavior
165+
- Added Enum KnownFreemiumType
166+
- Added Enum KnownHybridSecondaryUsage
167+
- Added Enum KnownHybridSecondaryUsageDetected
168+
- Added Enum KnownInstanceRole
169+
- Added Enum KnownLinkRole
170+
- Added Enum KnownManagedInstanceDatabaseFormat
171+
- Added Enum KnownMinimalTlsVersion
172+
- Added Enum KnownPhase
173+
- Added Enum KnownReplicaConnectedState
174+
- Added Enum KnownReplicaSynchronizationHealth
175+
- Added Enum KnownReplicationModeType
176+
- Added Enum KnownRoleChangeType
177+
- Added Enum KnownSeedingModeType
178+
- Added Enum KnownServerCreateMode
10179

11-
### Other Changes
180+
### Breaking Changes
12181

182+
- Interface DistributedAvailabilityGroup no longer has parameter lastHardenedLsn
183+
- Interface DistributedAvailabilityGroup no longer has parameter linkState
184+
- Interface DistributedAvailabilityGroup no longer has parameter primaryAvailabilityGroupName
185+
- Interface DistributedAvailabilityGroup no longer has parameter secondaryAvailabilityGroupName
186+
- Interface DistributedAvailabilityGroup no longer has parameter sourceEndpoint
187+
- Interface DistributedAvailabilityGroup no longer has parameter sourceReplicaId
188+
- Interface DistributedAvailabilityGroup no longer has parameter targetDatabase
189+
- Interface DistributedAvailabilityGroup no longer has parameter targetReplicaId
190+
- Type of parameter replicationMode of interface DistributedAvailabilityGroup is changed from ReplicationMode to ReplicationModeType
191+
- Type of parameter provisioningState of interface ManagedInstance is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState
192+
- Type of parameter provisioningState of interface ManagedInstanceUpdate is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState
193+
- Type of parameter intervals of interface QueryStatisticsProperties is changed from QueryMetricInterval[] to QueryMetricIntervalAutoGenerated[]
194+
- Type of parameter minimalTlsVersion of interface Server is changed from string to MinimalTlsVersion
195+
- Type of parameter minimalTlsVersion of interface ServerUpdate is changed from string to MinimalTlsVersion
196+
- Removed Enum KnownManagedInstancePropertiesProvisioningState
197+
- Removed Enum KnownReplicationMode
198+
199+
13200
## 11.0.0-beta.2 (2024-08-20)
14201
Compared with version 10.0.0
15202

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": "dbe78f9d70597107b2ce58b196de3f04f0a2c877",
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.1",
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)