Skip to content

Commit

Permalink
CodeGen from PR 32885 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 9378776a8820cfec547fa8f093258afa68e886d3 into 22e1351be300556311c09f94c97ae378fb6095c8
  • Loading branch information
SDKAuto committed Feb 27, 2025
1 parent 82343df commit 5db11d1
Show file tree
Hide file tree
Showing 56 changed files with 1,824 additions and 446 deletions.
12 changes: 6 additions & 6 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

195 changes: 188 additions & 7 deletions sdk/sql/arm-sql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,196 @@
# Release History

## 11.0.0-beta.3 (Unreleased)


## 11.0.0-beta.3 (2025-02-27)
Compared with version 10.0.0

### Features Added

### Breaking Changes

### Bugs Fixed
- Added operation group JobPrivateEndpoints
- Added operation DistributedAvailabilityGroups.beginFailover
- Added operation DistributedAvailabilityGroups.beginFailoverAndWait
- Added operation DistributedAvailabilityGroups.beginSetRole
- Added operation DistributedAvailabilityGroups.beginSetRoleAndWait
- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover
- Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait
- Added operation LongTermRetentionBackups.beginChangeAccessTier
- Added operation LongTermRetentionBackups.beginChangeAccessTierAndWait
- Added operation LongTermRetentionBackups.beginChangeAccessTierByResourceGroup
- Added operation LongTermRetentionBackups.beginChangeAccessTierByResourceGroupAndWait
- Added operation ManagedInstances.beginRefreshStatus
- Added operation ManagedInstances.beginRefreshStatusAndWait
- Added operation ReplicationLinks.beginCreateOrUpdate
- Added operation ReplicationLinks.beginCreateOrUpdateAndWait
- Added operation ReplicationLinks.beginUpdate
- Added operation ReplicationLinks.beginUpdateAndWait
- Added Interface CertificateInfo
- Added Interface ChangeLongTermRetentionBackupAccessTierParameters
- Added Interface DistributedAvailabilityGroupDatabase
- Added Interface DistributedAvailabilityGroupSetRole
- Added Interface DistributedAvailabilityGroupsFailoverHeaders
- Added Interface DistributedAvailabilityGroupsFailoverOptionalParams
- Added Interface DistributedAvailabilityGroupsFailoverRequest
- Added Interface DistributedAvailabilityGroupsSetRoleOptionalParams
- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface ErrorResponse
- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders
- Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams
- Added Interface JobPrivateEndpoint
- Added Interface JobPrivateEndpointListResult
- Added Interface JobPrivateEndpointsCreateOrUpdateOptionalParams
- Added Interface JobPrivateEndpointsDeleteOptionalParams
- Added Interface JobPrivateEndpointsGetOptionalParams
- Added Interface JobPrivateEndpointsListByAgentNextOptionalParams
- Added Interface JobPrivateEndpointsListByAgentOptionalParams
- Added Interface LongTermRetentionBackupsChangeAccessTierByResourceGroupOptionalParams
- Added Interface LongTermRetentionBackupsChangeAccessTierOptionalParams
- Added Interface ManagedInstancesRefreshStatusOptionalParams
- Added Interface PhaseDetails
- Added Interface QueryMetricIntervalAutoGenerated
- Added Interface RefreshExternalGovernanceStatusOperationResultMI
- Added Interface ReplicationLinksCreateOrUpdateOptionalParams
- Added Interface ReplicationLinksUpdateOptionalParams
- Added Interface ReplicationLinkUpdate
- Added Type Alias AuthMetadataLookupModes
- Added Type Alias BackupStorageAccessTier
- Added Type Alias DistributedAvailabilityGroupsFailoverResponse
- Added Type Alias DistributedAvailabilityGroupsSetRoleResponse
- Added Type Alias FailoverGroupDatabasesSecondaryType
- Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse
- Added Type Alias FailoverModeType
- Added Type Alias FailoverType
- Added Type Alias FreeLimitExhaustionBehavior
- Added Type Alias FreemiumType
- Added Type Alias HybridSecondaryUsage
- Added Type Alias HybridSecondaryUsageDetected
- Added Type Alias InstanceRole
- Added Type Alias JobPrivateEndpointsCreateOrUpdateResponse
- Added Type Alias JobPrivateEndpointsGetResponse
- Added Type Alias JobPrivateEndpointsListByAgentNextResponse
- Added Type Alias JobPrivateEndpointsListByAgentResponse
- Added Type Alias LinkRole
- Added Type Alias LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse
- Added Type Alias LongTermRetentionBackupsChangeAccessTierResponse
- Added Type Alias ManagedInstanceDatabaseFormat
- Added Type Alias ManagedInstancesRefreshStatusResponse
- Added Type Alias ManagedInstancesStartResponse
- Added Type Alias ManagedInstancesStopResponse
- Added Type Alias MinimalTlsVersion
- Added Type Alias Phase
- Added Type Alias ReplicaConnectedState
- Added Type Alias ReplicaSynchronizationHealth
- Added Type Alias ReplicationLinksCreateOrUpdateResponse
- Added Type Alias ReplicationLinksUpdateResponse
- Added Type Alias ReplicationModeType
- Added Type Alias RoleChangeType
- Added Type Alias SeedingModeType
- Interface Database has a new optional parameter encryptionProtectorAutoRotation
- Interface Database has a new optional parameter freeLimitExhaustionBehavior
- Interface Database has a new optional parameter useFreeLimit
- Interface DatabaseOperation has a new optional parameter operationPhaseDetails
- Interface DatabaseUpdate has a new optional parameter encryptionProtectorAutoRotation
- Interface DatabaseUpdate has a new optional parameter freeLimitExhaustionBehavior
- Interface DatabaseUpdate has a new optional parameter useFreeLimit
- Interface DistributedAvailabilityGroup has a new optional parameter databases
- Interface DistributedAvailabilityGroup has a new optional parameter distributedAvailabilityGroupName
- Interface DistributedAvailabilityGroup has a new optional parameter failoverMode
- Interface DistributedAvailabilityGroup has a new optional parameter instanceAvailabilityGroupName
- Interface DistributedAvailabilityGroup has a new optional parameter instanceLinkRole
- Interface DistributedAvailabilityGroup has a new optional parameter partnerAvailabilityGroupName
- Interface DistributedAvailabilityGroup has a new optional parameter partnerEndpoint
- Interface DistributedAvailabilityGroup has a new optional parameter partnerLinkRole
- Interface DistributedAvailabilityGroup has a new optional parameter seedingMode
- Interface ElasticPool has a new optional parameter availabilityZone
- Interface ElasticPool has a new optional parameter minCapacity
- Interface ElasticPool has a new optional parameter preferredEnclaveType
- Interface ElasticPoolUpdate has a new optional parameter availabilityZone
- Interface ElasticPoolUpdate has a new optional parameter minCapacity
- Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType
- Interface FailoverGroup has a new optional parameter secondaryType
- Interface FailoverGroupReadOnlyEndpoint has a new optional parameter targetServer
- Interface FailoverGroupUpdate has a new optional parameter partnerServers
- Interface FailoverGroupUpdate has a new optional parameter secondaryType
- Interface InstancePool has a new optional parameter dnsZone
- Interface InstancePool has a new optional parameter maintenanceConfigurationId
- Interface InstancePoolUpdate has a new optional parameter dnsZone
- Interface InstancePoolUpdate has a new optional parameter licenseType
- Interface InstancePoolUpdate has a new optional parameter maintenanceConfigurationId
- Interface InstancePoolUpdate has a new optional parameter sku
- Interface InstancePoolUpdate has a new optional parameter subnetId
- Interface InstancePoolUpdate has a new optional parameter vCores
- Interface LongTermRetentionBackup has a new optional parameter backupStorageAccessTier
- Interface LongTermRetentionBackup has a new optional parameter isBackupImmutable
- Interface LongTermRetentionPolicy has a new optional parameter backupStorageAccessTier
- Interface LongTermRetentionPolicy has a new optional parameter makeBackupsImmutable
- Interface ManagedDatabase has a new optional parameter isLedgerOn
- Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn
- Interface ManagedInstance has a new optional parameter authenticationMetadata
- Interface ManagedInstance has a new optional parameter createTime
- Interface ManagedInstance has a new optional parameter databaseFormat
- Interface ManagedInstance has a new optional parameter externalGovernanceStatus
- Interface ManagedInstance has a new optional parameter hybridSecondaryUsage
- Interface ManagedInstance has a new optional parameter hybridSecondaryUsageDetected
- Interface ManagedInstance has a new optional parameter isGeneralPurposeV2
- Interface ManagedInstance has a new optional parameter pricingModel
- Interface ManagedInstance has a new optional parameter storageIOps
- Interface ManagedInstance has a new optional parameter storageThroughputMBps
- Interface ManagedInstance has a new optional parameter virtualClusterId
- Interface ManagedInstanceUpdate has a new optional parameter authenticationMetadata
- Interface ManagedInstanceUpdate has a new optional parameter createTime
- Interface ManagedInstanceUpdate has a new optional parameter databaseFormat
- Interface ManagedInstanceUpdate has a new optional parameter externalGovernanceStatus
- Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsage
- Interface ManagedInstanceUpdate has a new optional parameter hybridSecondaryUsageDetected
- Interface ManagedInstanceUpdate has a new optional parameter isGeneralPurposeV2
- Interface ManagedInstanceUpdate has a new optional parameter pricingModel
- Interface ManagedInstanceUpdate has a new optional parameter storageIOps
- Interface ManagedInstanceUpdate has a new optional parameter storageThroughputMBps
- Interface ManagedInstanceUpdate has a new optional parameter virtualClusterId
- Interface PrivateEndpointConnection has a new optional parameter groupIds
- Interface ReplicationLink has a new optional parameter partnerDatabaseId
- Interface Server has a new optional parameter isIPv6Enabled
- Interface ServerUpdate has a new optional parameter isIPv6Enabled
- Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime
- Added Enum KnownAuthMetadataLookupModes
- Added Enum KnownBackupStorageAccessTier
- Added Enum KnownFailoverGroupDatabasesSecondaryType
- Added Enum KnownFailoverModeType
- Added Enum KnownFailoverType
- Added Enum KnownFreeLimitExhaustionBehavior
- Added Enum KnownFreemiumType
- Added Enum KnownHybridSecondaryUsage
- Added Enum KnownHybridSecondaryUsageDetected
- Added Enum KnownInstanceRole
- Added Enum KnownLinkRole
- Added Enum KnownManagedInstanceDatabaseFormat
- Added Enum KnownMinimalTlsVersion
- Added Enum KnownPhase
- Added Enum KnownReplicaConnectedState
- Added Enum KnownReplicaSynchronizationHealth
- Added Enum KnownReplicationModeType
- Added Enum KnownRoleChangeType
- Added Enum KnownSeedingModeType

### Other Changes
### Breaking Changes

- Interface DistributedAvailabilityGroup no longer has parameter lastHardenedLsn
- Interface DistributedAvailabilityGroup no longer has parameter linkState
- Interface DistributedAvailabilityGroup no longer has parameter primaryAvailabilityGroupName
- Interface DistributedAvailabilityGroup no longer has parameter secondaryAvailabilityGroupName
- Interface DistributedAvailabilityGroup no longer has parameter sourceEndpoint
- Interface DistributedAvailabilityGroup no longer has parameter sourceReplicaId
- Interface DistributedAvailabilityGroup no longer has parameter targetDatabase
- Interface DistributedAvailabilityGroup no longer has parameter targetReplicaId
- Type of parameter replicationMode of interface DistributedAvailabilityGroup is changed from ReplicationMode to ReplicationModeType
- Type of parameter provisioningState of interface ManagedInstance is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState
- Type of parameter provisioningState of interface ManagedInstanceUpdate is changed from ManagedInstancePropertiesProvisioningState to ProvisioningState
- Type of parameter intervals of interface QueryStatisticsProperties is changed from QueryMetricInterval[] to QueryMetricIntervalAutoGenerated[]
- Type of parameter minimalTlsVersion of interface Server is changed from string to MinimalTlsVersion
- Type of parameter minimalTlsVersion of interface ServerUpdate is changed from string to MinimalTlsVersion
- Removed Enum KnownManagedInstancePropertiesProvisioningState
- Removed Enum KnownReplicationMode


## 11.0.0-beta.2 (2024-08-20)
Compared with version 10.0.0

Expand Down
2 changes: 1 addition & 1 deletion sdk/sql/arm-sql/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
15 changes: 6 additions & 9 deletions sdk/sql/arm-sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,36 +44,33 @@ npm install @azure/identity
```

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).
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`.

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).

Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.

```ts snippet:ReadmeSampleCreateClient_Node
import { SqlManagementClient } from "@azure/arm-sql";
import { DefaultAzureCredential } from "@azure/identity";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new SqlManagementClient(new DefaultAzureCredential(), subscriptionId);
```

For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.

```ts snippet:ReadmeSampleCreateClient_Browser
import { InteractiveBrowserCredential } from "@azure/identity";
import { SqlManagementClient } from "@azure/arm-sql";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
clientId: "<YOUR_CLIENT_ID>"
});
const client = new SqlManagementClient(credential, subscriptionId);
```

### JavaScript Bundle

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).

## Key concepts
Expand Down Expand Up @@ -108,7 +105,7 @@ If you'd like to contribute to this library, please read the [contributing guide

- [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%2Fsdk%2Fsql%2Farm-sql%2FREADME.png)

[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
Expand Down
8 changes: 4 additions & 4 deletions sdk/sql/arm-sql/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1db2fcc22dec6f21d359d3b56f822f61f5d6ee12",
"commit": "d98b683ba5de521f6a57967b5991c6c34f0ad9f6",
"readme": "specification/sql/resource-manager/readme.md",
"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/typescript@6.0.24 --generate-sample=true",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.11",
"use": "@autorest/typescript@6.0.24"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.21",
"use": "@autorest/typescript@^6.0.12"
}
6 changes: 3 additions & 3 deletions sdk/sql/arm-sql/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "dist/esm/index.d.ts",
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
"docModel": {
"enabled": true
},
Expand All @@ -11,7 +11,7 @@
"dtsRollup": {
"enabled": true,
"untrimmedFilePath": "",
"publicTrimmedFilePath": "dist/arm-sql.d.ts"
"publicTrimmedFilePath": "./types/arm-sql.d.ts"
},
"messages": {
"tsdocMessageReporting": {
Expand All @@ -28,4 +28,4 @@
}
}
}
}
}
Loading

0 comments on commit 5db11d1

Please sign in to comment.