@azure/arm-sql 11.0.0-beta.1 → 11.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/CHANGELOG.md +150 -9
  2. package/dist/index.js +2956 -3280
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/distributedAvailabilityGroupsCreateOrUpdateSample.js +7 -36
  7. package/dist-esm/samples-dev/distributedAvailabilityGroupsCreateOrUpdateSample.js.map +1 -1
  8. package/dist-esm/samples-dev/distributedAvailabilityGroupsDeleteSample.js +2 -2
  9. package/dist-esm/samples-dev/distributedAvailabilityGroupsGetSample.js +2 -2
  10. package/dist-esm/samples-dev/distributedAvailabilityGroupsListByInstanceSample.js +1 -1
  11. package/dist-esm/samples-dev/distributedAvailabilityGroupsUpdateSample.js +1 -1
  12. package/dist-esm/samples-dev/failoverGroupsCreateOrUpdateSample.js +38 -1
  13. package/dist-esm/samples-dev/failoverGroupsCreateOrUpdateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/failoverGroupsDeleteSample.js +1 -1
  15. package/dist-esm/samples-dev/failoverGroupsFailoverSample.js +1 -1
  16. package/dist-esm/samples-dev/failoverGroupsForceFailoverAllowDataLossSample.js +1 -1
  17. package/dist-esm/samples-dev/failoverGroupsGetSample.js +1 -1
  18. package/dist-esm/samples-dev/failoverGroupsListByServerSample.js +1 -1
  19. package/dist-esm/samples-dev/failoverGroupsTryPlannedBeforeForcedFailoverSample.js +1 -1
  20. package/dist-esm/samples-dev/failoverGroupsUpdateSample.js +31 -1
  21. package/dist-esm/samples-dev/failoverGroupsUpdateSample.js.map +1 -1
  22. package/dist-esm/samples-dev/replicationLinksCreateOrUpdateSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/replicationLinksCreateOrUpdateSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/{distributedAvailabilityGroupsFailoverSample.js → replicationLinksCreateOrUpdateSample.js} +13 -14
  25. package/dist-esm/samples-dev/replicationLinksCreateOrUpdateSample.js.map +1 -0
  26. package/dist-esm/samples-dev/replicationLinksDeleteSample.js +1 -1
  27. package/dist-esm/samples-dev/replicationLinksFailoverAllowDataLossSample.js +1 -1
  28. package/dist-esm/samples-dev/replicationLinksFailoverSample.js +1 -1
  29. package/dist-esm/samples-dev/replicationLinksGetSample.js +1 -1
  30. package/dist-esm/samples-dev/replicationLinksListByDatabaseSample.js +1 -1
  31. package/dist-esm/samples-dev/replicationLinksListByServerSample.js +1 -1
  32. package/dist-esm/samples-dev/replicationLinksUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/replicationLinksUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/{distributedAvailabilityGroupsSetRoleSample.js → replicationLinksUpdateSample.js} +13 -15
  35. package/dist-esm/samples-dev/replicationLinksUpdateSample.js.map +1 -0
  36. package/dist-esm/src/index.d.ts +0 -1
  37. package/dist-esm/src/index.d.ts.map +1 -1
  38. package/dist-esm/src/models/index.d.ts +315 -549
  39. package/dist-esm/src/models/index.d.ts.map +1 -1
  40. package/dist-esm/src/models/index.js +36 -94
  41. package/dist-esm/src/models/index.js.map +1 -1
  42. package/dist-esm/src/models/mappers.d.ts +6 -10
  43. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  44. package/dist-esm/src/models/mappers.js +270 -478
  45. package/dist-esm/src/models/mappers.js.map +1 -1
  46. package/dist-esm/src/models/parameters.d.ts +26 -29
  47. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  48. package/dist-esm/src/models/parameters.js +66 -107
  49. package/dist-esm/src/models/parameters.js.map +1 -1
  50. package/dist-esm/src/operations/databaseAdvancedThreatProtectionSettings.js +4 -4
  51. package/dist-esm/src/operations/databaseBlobAuditingPolicies.js +4 -4
  52. package/dist-esm/src/operations/databaseOperations.js +2 -2
  53. package/dist-esm/src/operations/databaseSqlVulnerabilityAssessmentBaselines.js +4 -4
  54. package/dist-esm/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.js +1 -1
  55. package/dist-esm/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.js +5 -5
  56. package/dist-esm/src/operations/databaseSqlVulnerabilityAssessmentScanResult.js +2 -2
  57. package/dist-esm/src/operations/databaseSqlVulnerabilityAssessmentScans.js +2 -2
  58. package/dist-esm/src/operations/databaseSqlVulnerabilityAssessmentsSettings.js +2 -2
  59. package/dist-esm/src/operations/distributedAvailabilityGroups.d.ts +1 -41
  60. package/dist-esm/src/operations/distributedAvailabilityGroups.d.ts.map +1 -1
  61. package/dist-esm/src/operations/distributedAvailabilityGroups.js +6 -227
  62. package/dist-esm/src/operations/distributedAvailabilityGroups.js.map +1 -1
  63. package/dist-esm/src/operations/endpointCertificates.js +2 -2
  64. package/dist-esm/src/operations/extendedDatabaseBlobAuditingPolicies.js +4 -4
  65. package/dist-esm/src/operations/extendedServerBlobAuditingPolicies.js +4 -4
  66. package/dist-esm/src/operations/failoverGroups.js +10 -10
  67. package/dist-esm/src/operations/iPv6FirewallRules.js +5 -5
  68. package/dist-esm/src/operations/index.d.ts +1 -1
  69. package/dist-esm/src/operations/index.d.ts.map +1 -1
  70. package/dist-esm/src/operations/index.js +1 -1
  71. package/dist-esm/src/operations/index.js.map +1 -1
  72. package/dist-esm/src/operations/instanceFailoverGroups.js +7 -7
  73. package/dist-esm/src/operations/instanceFailoverGroups.js.map +1 -1
  74. package/dist-esm/src/operations/instancePools.js +2 -2
  75. package/dist-esm/src/operations/longTermRetentionBackups.js +6 -6
  76. package/dist-esm/src/operations/longTermRetentionBackups.js.map +1 -1
  77. package/dist-esm/src/operations/longTermRetentionPolicies.js +1 -1
  78. package/dist-esm/src/operations/managedDatabaseAdvancedThreatProtectionSettings.js +1 -1
  79. package/dist-esm/src/operations/managedDatabaseMoveOperations.js +2 -2
  80. package/dist-esm/src/operations/managedDatabaseMoveOperations.js.map +1 -1
  81. package/dist-esm/src/operations/managedDatabaseRecommendedSensitivityLabels.js +1 -1
  82. package/dist-esm/src/operations/managedDatabaseRestoreDetails.js +1 -1
  83. package/dist-esm/src/operations/managedDatabaseRestoreDetails.js.map +1 -1
  84. package/dist-esm/src/operations/managedDatabaseSensitivityLabels.js +2 -2
  85. package/dist-esm/src/operations/managedDatabases.js +6 -6
  86. package/dist-esm/src/operations/managedInstanceAdvancedThreatProtectionSettings.js +1 -1
  87. package/dist-esm/src/operations/managedInstanceDtcs.js +4 -4
  88. package/dist-esm/src/operations/managedInstanceDtcs.js.map +1 -1
  89. package/dist-esm/src/operations/managedInstances.js +2 -2
  90. package/dist-esm/src/operations/managedLedgerDigestUploadsOperations.js +1 -1
  91. package/dist-esm/src/operations/managedServerDnsAliases.js +7 -7
  92. package/dist-esm/src/operations/recommendedSensitivityLabels.js +1 -1
  93. package/dist-esm/src/operations/replicationLinks.d.ts +45 -1
  94. package/dist-esm/src/operations/replicationLinks.d.ts.map +1 -1
  95. package/dist-esm/src/operations/replicationLinks.js +214 -6
  96. package/dist-esm/src/operations/replicationLinks.js.map +1 -1
  97. package/dist-esm/src/operations/sensitivityLabels.js +2 -2
  98. package/dist-esm/src/operations/serverAdvancedThreatProtectionSettings.js +4 -4
  99. package/dist-esm/src/operations/serverBlobAuditingPolicies.js +4 -4
  100. package/dist-esm/src/operations/serverConfigurationOptions.js +1 -1
  101. package/dist-esm/src/operations/serverTrustCertificates.js +5 -5
  102. package/dist-esm/src/operations/servers.js +4 -4
  103. package/dist-esm/src/operations/sqlVulnerabilityAssessmentBaseline.js +2 -2
  104. package/dist-esm/src/operations/sqlVulnerabilityAssessmentBaselines.js +2 -2
  105. package/dist-esm/src/operations/sqlVulnerabilityAssessmentExecuteScan.js +1 -1
  106. package/dist-esm/src/operations/sqlVulnerabilityAssessmentRuleBaseline.js +4 -4
  107. package/dist-esm/src/operations/sqlVulnerabilityAssessmentRuleBaselines.js +1 -1
  108. package/dist-esm/src/operations/sqlVulnerabilityAssessmentScanResult.js +2 -2
  109. package/dist-esm/src/operations/sqlVulnerabilityAssessmentScans.js +2 -2
  110. package/dist-esm/src/operations/sqlVulnerabilityAssessments.js +1 -1
  111. package/dist-esm/src/operations/sqlVulnerabilityAssessmentsSettings.js +4 -4
  112. package/dist-esm/src/operations/startStopManagedInstanceSchedules.js +1 -1
  113. package/dist-esm/src/operations/synapseLinkWorkspaces.js +1 -1
  114. package/dist-esm/src/operations/synapseLinkWorkspaces.js.map +1 -1
  115. package/dist-esm/src/operations/transparentDataEncryptions.js +1 -1
  116. package/dist-esm/src/operations/virtualClusters.js +7 -7
  117. package/dist-esm/src/operations/virtualClusters.js.map +1 -1
  118. package/dist-esm/src/operationsInterfaces/distributedAvailabilityGroups.d.ts +1 -41
  119. package/dist-esm/src/operationsInterfaces/distributedAvailabilityGroups.d.ts.map +1 -1
  120. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -1
  121. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  122. package/dist-esm/src/operationsInterfaces/index.js +1 -1
  123. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/replicationLinks.d.ts +45 -1
  125. package/dist-esm/src/operationsInterfaces/replicationLinks.d.ts.map +1 -1
  126. package/dist-esm/src/sqlManagementClient.d.ts +2 -2
  127. package/dist-esm/src/sqlManagementClient.d.ts.map +1 -1
  128. package/dist-esm/src/sqlManagementClient.js +3 -3
  129. package/dist-esm/src/sqlManagementClient.js.map +1 -1
  130. package/dist-esm/test/sql_examples.js +3 -3
  131. package/dist-esm/test/sql_examples.js.map +1 -1
  132. package/package.json +7 -7
  133. package/review/arm-sql.api.md +50 -155
  134. package/src/lroImpl.ts +1 -1
  135. package/src/models/index.ts +331 -585
  136. package/src/models/mappers.ts +289 -500
  137. package/src/models/parameters.ts +70 -114
  138. package/src/operations/databaseAdvancedThreatProtectionSettings.ts +4 -4
  139. package/src/operations/databaseBlobAuditingPolicies.ts +4 -4
  140. package/src/operations/databaseOperations.ts +2 -2
  141. package/src/operations/databaseSqlVulnerabilityAssessmentBaselines.ts +4 -4
  142. package/src/operations/databaseSqlVulnerabilityAssessmentExecuteScan.ts +1 -1
  143. package/src/operations/databaseSqlVulnerabilityAssessmentRuleBaselines.ts +5 -5
  144. package/src/operations/databaseSqlVulnerabilityAssessmentScanResult.ts +2 -2
  145. package/src/operations/databaseSqlVulnerabilityAssessmentScans.ts +2 -2
  146. package/src/operations/databaseSqlVulnerabilityAssessmentsSettings.ts +2 -2
  147. package/src/operations/distributedAvailabilityGroups.ts +6 -313
  148. package/src/operations/endpointCertificates.ts +2 -2
  149. package/src/operations/extendedDatabaseBlobAuditingPolicies.ts +4 -4
  150. package/src/operations/extendedServerBlobAuditingPolicies.ts +4 -4
  151. package/src/operations/failoverGroups.ts +10 -10
  152. package/src/operations/iPv6FirewallRules.ts +5 -5
  153. package/src/operations/index.ts +1 -1
  154. package/src/operations/instanceFailoverGroups.ts +7 -7
  155. package/src/operations/instancePools.ts +2 -2
  156. package/src/operations/longTermRetentionBackups.ts +6 -6
  157. package/src/operations/longTermRetentionPolicies.ts +1 -1
  158. package/src/operations/managedDatabaseAdvancedThreatProtectionSettings.ts +1 -1
  159. package/src/operations/managedDatabaseMoveOperations.ts +2 -2
  160. package/src/operations/managedDatabaseRecommendedSensitivityLabels.ts +1 -1
  161. package/src/operations/managedDatabaseRestoreDetails.ts +1 -1
  162. package/src/operations/managedDatabaseSensitivityLabels.ts +2 -2
  163. package/src/operations/managedDatabases.ts +6 -6
  164. package/src/operations/managedInstanceAdvancedThreatProtectionSettings.ts +1 -1
  165. package/src/operations/managedInstanceDtcs.ts +4 -4
  166. package/src/operations/managedInstances.ts +2 -2
  167. package/src/operations/managedLedgerDigestUploadsOperations.ts +1 -1
  168. package/src/operations/managedServerDnsAliases.ts +7 -7
  169. package/src/operations/recommendedSensitivityLabels.ts +1 -1
  170. package/src/operations/replicationLinks.ts +305 -6
  171. package/src/operations/sensitivityLabels.ts +2 -2
  172. package/src/operations/serverAdvancedThreatProtectionSettings.ts +4 -4
  173. package/src/operations/serverBlobAuditingPolicies.ts +4 -4
  174. package/src/operations/serverConfigurationOptions.ts +1 -1
  175. package/src/operations/serverTrustCertificates.ts +5 -5
  176. package/src/operations/servers.ts +4 -4
  177. package/src/operations/sqlVulnerabilityAssessmentBaseline.ts +2 -2
  178. package/src/operations/sqlVulnerabilityAssessmentBaselines.ts +2 -2
  179. package/src/operations/sqlVulnerabilityAssessmentExecuteScan.ts +1 -1
  180. package/src/operations/sqlVulnerabilityAssessmentRuleBaseline.ts +4 -4
  181. package/src/operations/sqlVulnerabilityAssessmentRuleBaselines.ts +1 -1
  182. package/src/operations/sqlVulnerabilityAssessmentScanResult.ts +2 -2
  183. package/src/operations/sqlVulnerabilityAssessmentScans.ts +2 -2
  184. package/src/operations/sqlVulnerabilityAssessments.ts +1 -1
  185. package/src/operations/sqlVulnerabilityAssessmentsSettings.ts +4 -4
  186. package/src/operations/startStopManagedInstanceSchedules.ts +1 -1
  187. package/src/operations/synapseLinkWorkspaces.ts +1 -1
  188. package/src/operations/transparentDataEncryptions.ts +1 -1
  189. package/src/operations/virtualClusters.ts +7 -7
  190. package/src/operationsInterfaces/distributedAvailabilityGroups.ts +0 -80
  191. package/src/operationsInterfaces/index.ts +1 -1
  192. package/src/operationsInterfaces/replicationLinks.ts +87 -0
  193. package/src/sqlManagementClient.ts +5 -5
  194. package/types/arm-sql.d.ts +125 -373
  195. package/types/tsdoc-metadata.json +1 -1
  196. package/dist-esm/samples-dev/distributedAvailabilityGroupsFailoverSample.d.ts +0 -2
  197. package/dist-esm/samples-dev/distributedAvailabilityGroupsFailoverSample.d.ts.map +0 -1
  198. package/dist-esm/samples-dev/distributedAvailabilityGroupsFailoverSample.js.map +0 -1
  199. package/dist-esm/samples-dev/distributedAvailabilityGroupsSetRoleSample.d.ts +0 -2
  200. package/dist-esm/samples-dev/distributedAvailabilityGroupsSetRoleSample.d.ts.map +0 -1
  201. package/dist-esm/samples-dev/distributedAvailabilityGroupsSetRoleSample.js.map +0 -1
@@ -2625,182 +2625,6 @@ export interface DistributedAvailabilityGroupsListResult {
2625
2625
  */
2626
2626
  readonly nextLink?: string;
2627
2627
  }
2628
- /** Database specific information */
2629
- export interface DistributedAvailabilityGroupDatabase {
2630
- /** The name of the database in link */
2631
- databaseName?: string;
2632
- /**
2633
- * Managed instance replica id
2634
- * NOTE: This property will not be serialized. It can only be populated by the server.
2635
- */
2636
- readonly instanceReplicaId?: string;
2637
- /**
2638
- * SQL server replica id
2639
- * NOTE: This property will not be serialized. It can only be populated by the server.
2640
- */
2641
- readonly partnerReplicaId?: string;
2642
- /**
2643
- * Current link state
2644
- * NOTE: This property will not be serialized. It can only be populated by the server.
2645
- */
2646
- readonly replicaState?: string;
2647
- /**
2648
- * Seeding progress
2649
- * NOTE: This property will not be serialized. It can only be populated by the server.
2650
- */
2651
- readonly seedingProgress?: string;
2652
- /**
2653
- * Link health state
2654
- * NOTE: This property will not be serialized. It can only be populated by the server.
2655
- */
2656
- readonly synchronizationHealth?: ReplicaSynchronizationHealth;
2657
- /**
2658
- * Link connected state
2659
- * NOTE: This property will not be serialized. It can only be populated by the server.
2660
- */
2661
- readonly connectedState?: ReplicaConnectedState;
2662
- /**
2663
- * Last received LSN
2664
- * NOTE: This property will not be serialized. It can only be populated by the server.
2665
- */
2666
- readonly lastReceivedLsn?: string;
2667
- /**
2668
- * Last received LSN time
2669
- * NOTE: This property will not be serialized. It can only be populated by the server.
2670
- */
2671
- readonly lastReceivedTime?: Date;
2672
- /**
2673
- * Last sent LSN
2674
- * NOTE: This property will not be serialized. It can only be populated by the server.
2675
- */
2676
- readonly lastSentLsn?: string;
2677
- /**
2678
- * Last sent LSN time
2679
- * NOTE: This property will not be serialized. It can only be populated by the server.
2680
- */
2681
- readonly lastSentTime?: Date;
2682
- /**
2683
- * Last commit LSN
2684
- * NOTE: This property will not be serialized. It can only be populated by the server.
2685
- */
2686
- readonly lastCommitLsn?: string;
2687
- /**
2688
- * Last commit LSN time
2689
- * NOTE: This property will not be serialized. It can only be populated by the server.
2690
- */
2691
- readonly lastCommitTime?: Date;
2692
- /**
2693
- * Last hardened LSN
2694
- * NOTE: This property will not be serialized. It can only be populated by the server.
2695
- */
2696
- readonly lastHardenedLsn?: string;
2697
- /**
2698
- * Last hardened LSN time
2699
- * NOTE: This property will not be serialized. It can only be populated by the server.
2700
- */
2701
- readonly lastHardenedTime?: Date;
2702
- /**
2703
- * Last backup LSN
2704
- * NOTE: This property will not be serialized. It can only be populated by the server.
2705
- */
2706
- readonly lastBackupLsn?: string;
2707
- /**
2708
- * Last backup LSN time
2709
- * NOTE: This property will not be serialized. It can only be populated by the server.
2710
- */
2711
- readonly lastBackupTime?: Date;
2712
- /**
2713
- * The most recent link connection error description
2714
- * NOTE: This property will not be serialized. It can only be populated by the server.
2715
- */
2716
- readonly mostRecentLinkError?: string;
2717
- /**
2718
- * SQL server certificate validity
2719
- * NOTE: This property will not be serialized. It can only be populated by the server.
2720
- */
2721
- readonly partnerAuthCertValidity?: CertificateInfo;
2722
- /**
2723
- * Replication lag when Managed Instance link side is primary
2724
- * NOTE: This property will not be serialized. It can only be populated by the server.
2725
- */
2726
- readonly instanceSendReplicationLagSeconds?: number;
2727
- /**
2728
- * Redo lag when Managed Instance link side is primary
2729
- * NOTE: This property will not be serialized. It can only be populated by the server.
2730
- */
2731
- readonly instanceRedoReplicationLagSeconds?: number;
2732
- }
2733
- /** Certificate information */
2734
- export interface CertificateInfo {
2735
- /**
2736
- * The certificate name
2737
- * NOTE: This property will not be serialized. It can only be populated by the server.
2738
- */
2739
- readonly certificateName?: string;
2740
- /**
2741
- * The certificate expiry date
2742
- * NOTE: This property will not be serialized. It can only be populated by the server.
2743
- */
2744
- readonly expiryDate?: Date;
2745
- }
2746
- /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
2747
- export interface ErrorResponse {
2748
- /** The error object. */
2749
- error?: ErrorDetail;
2750
- }
2751
- /** The error detail. */
2752
- export interface ErrorDetail {
2753
- /**
2754
- * The error code.
2755
- * NOTE: This property will not be serialized. It can only be populated by the server.
2756
- */
2757
- readonly code?: string;
2758
- /**
2759
- * The error message.
2760
- * NOTE: This property will not be serialized. It can only be populated by the server.
2761
- */
2762
- readonly message?: string;
2763
- /**
2764
- * The error target.
2765
- * NOTE: This property will not be serialized. It can only be populated by the server.
2766
- */
2767
- readonly target?: string;
2768
- /**
2769
- * The error details.
2770
- * NOTE: This property will not be serialized. It can only be populated by the server.
2771
- */
2772
- readonly details?: ErrorDetail[];
2773
- /**
2774
- * The error additional info.
2775
- * NOTE: This property will not be serialized. It can only be populated by the server.
2776
- */
2777
- readonly additionalInfo?: ErrorAdditionalInfo[];
2778
- }
2779
- /** The resource management error additional info. */
2780
- export interface ErrorAdditionalInfo {
2781
- /**
2782
- * The additional info type.
2783
- * NOTE: This property will not be serialized. It can only be populated by the server.
2784
- */
2785
- readonly type?: string;
2786
- /**
2787
- * The additional info.
2788
- * NOTE: This property will not be serialized. It can only be populated by the server.
2789
- */
2790
- readonly info?: Record<string, unknown>;
2791
- }
2792
- /** Distributed availability group failover. */
2793
- export interface DistributedAvailabilityGroupsFailoverRequest {
2794
- /** The failover type, can be ForcedAllowDataLoss or Planned. */
2795
- failoverType: FailoverType;
2796
- }
2797
- /** Distributed availability group failover request. */
2798
- export interface DistributedAvailabilityGroupSetRole {
2799
- /** New role of managed instance in a distributed availability group, can be Primary or Secondary. */
2800
- instanceRole: InstanceRole;
2801
- /** The type of the role change, can be Planned or Forced. */
2802
- roleChangeType: RoleChangeType;
2803
- }
2804
2628
  /** A list of server trust certificates in instance. */
2805
2629
  export interface ServerTrustCertificatesListResult {
2806
2630
  /**
@@ -2975,19 +2799,6 @@ export interface ManagedInstanceAdvancedThreatProtectionListResult {
2975
2799
  */
2976
2800
  readonly nextLink?: string;
2977
2801
  }
2978
- /** A list of replication links. */
2979
- export interface ReplicationLinkListResult {
2980
- /**
2981
- * Array of results.
2982
- * NOTE: This property will not be serialized. It can only be populated by the server.
2983
- */
2984
- readonly value?: ReplicationLink[];
2985
- /**
2986
- * Link to retrieve next page of results.
2987
- * NOTE: This property will not be serialized. It can only be populated by the server.
2988
- */
2989
- readonly nextLink?: string;
2990
- }
2991
2802
  /** List of managed database move operations. */
2992
2803
  export interface ManagedDatabaseMoveOperationListResult {
2993
2804
  /**
@@ -4030,6 +3841,8 @@ export interface FailoverGroupUpdate {
4030
3841
  databases?: string[];
4031
3842
  /** List of partner server information for the failover group. */
4032
3843
  partnerServers?: PartnerInfo[];
3844
+ /** Databases secondary type on partner server. */
3845
+ secondaryType?: FailoverGroupDatabasesSecondaryType;
4033
3846
  }
4034
3847
  /** A list of Azure SQL instance pools. */
4035
3848
  export interface InstancePoolListResult {
@@ -4079,6 +3892,52 @@ export interface LongTermRetentionBackupListResult {
4079
3892
  */
4080
3893
  readonly nextLink?: string;
4081
3894
  }
3895
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
3896
+ export interface ErrorResponse {
3897
+ /** The error object. */
3898
+ error?: ErrorDetail;
3899
+ }
3900
+ /** The error detail. */
3901
+ export interface ErrorDetail {
3902
+ /**
3903
+ * The error code.
3904
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3905
+ */
3906
+ readonly code?: string;
3907
+ /**
3908
+ * The error message.
3909
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3910
+ */
3911
+ readonly message?: string;
3912
+ /**
3913
+ * The error target.
3914
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3915
+ */
3916
+ readonly target?: string;
3917
+ /**
3918
+ * The error details.
3919
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3920
+ */
3921
+ readonly details?: ErrorDetail[];
3922
+ /**
3923
+ * The error additional info.
3924
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3925
+ */
3926
+ readonly additionalInfo?: ErrorAdditionalInfo[];
3927
+ }
3928
+ /** The resource management error additional info. */
3929
+ export interface ErrorAdditionalInfo {
3930
+ /**
3931
+ * The additional info type.
3932
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3933
+ */
3934
+ readonly type?: string;
3935
+ /**
3936
+ * The additional info.
3937
+ * NOTE: This property will not be serialized. It can only be populated by the server.
3938
+ */
3939
+ readonly info?: Record<string, unknown>;
3940
+ }
4082
3941
  /** Contains the information necessary to change long term retention backup access tier and related operation mode. */
4083
3942
  export interface ChangeLongTermRetentionBackupAccessTierParameters {
4084
3943
  /** The long term retention backup storage access tier */
@@ -4635,6 +4494,19 @@ export interface ImportNewDatabaseDefinition {
4635
4494
  /** Optional resource information to enable network isolation for request. */
4636
4495
  networkIsolation?: NetworkIsolationSettings;
4637
4496
  }
4497
+ /** A list of replication links. */
4498
+ export interface ReplicationLinkListResult {
4499
+ /**
4500
+ * Array of results.
4501
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4502
+ */
4503
+ readonly value?: ReplicationLink[];
4504
+ /**
4505
+ * Link to retrieve next page of results.
4506
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4507
+ */
4508
+ readonly nextLink?: string;
4509
+ }
4638
4510
  /** A Slo Usage Metric. */
4639
4511
  export interface SloUsageMetric {
4640
4512
  /**
@@ -6587,37 +6459,41 @@ export interface ServerConnectionPolicy extends ProxyResource {
6587
6459
  }
6588
6460
  /** Distributed availability group between box and Sql Managed Instance. */
6589
6461
  export interface DistributedAvailabilityGroup extends ProxyResource {
6462
+ /** The name of the target database */
6463
+ targetDatabase?: string;
6464
+ /** The source endpoint */
6465
+ sourceEndpoint?: string;
6466
+ /** The primary availability group name */
6467
+ primaryAvailabilityGroupName?: string;
6468
+ /** The secondary availability group name */
6469
+ secondaryAvailabilityGroupName?: string;
6470
+ /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */
6471
+ replicationMode?: ReplicationMode;
6590
6472
  /**
6591
- * Name of the distributed availability group
6473
+ * The distributed availability group id
6592
6474
  * NOTE: This property will not be serialized. It can only be populated by the server.
6593
6475
  */
6594
- readonly distributedAvailabilityGroupName?: string;
6476
+ readonly distributedAvailabilityGroupId?: string;
6595
6477
  /**
6596
- * ID of the distributed availability group
6478
+ * The source replica id
6597
6479
  * NOTE: This property will not be serialized. It can only be populated by the server.
6598
6480
  */
6599
- readonly distributedAvailabilityGroupId?: string;
6600
- /** Replication mode of the link */
6601
- replicationMode?: ReplicationModeType;
6602
- /**
6603
- * SQL server side link role
6604
- * NOTE: This property will not be serialized. It can only be populated by the server.
6605
- */
6606
- readonly partnerLinkRole?: LinkRole;
6607
- /** SQL server side availability group name */
6608
- partnerAvailabilityGroupName?: string;
6609
- /** SQL server side endpoint - IP or DNS resolvable name */
6610
- partnerEndpoint?: string;
6611
- /** Managed instance side link role */
6612
- instanceLinkRole?: LinkRole;
6613
- /** Managed instance side availability group name */
6614
- instanceAvailabilityGroupName?: string;
6615
- /** The link failover mode - can be Manual if intended to be used for two-way failover with a supported SQL Server, or None for one-way failover to Azure. */
6616
- failoverMode?: FailoverModeType;
6617
- /** Database seeding mode – can be Automatic (default), or Manual for supported scenarios. */
6618
- seedingMode?: SeedingModeType;
6619
- /** Databases in the distributed availability group */
6620
- databases?: DistributedAvailabilityGroupDatabase[];
6481
+ readonly sourceReplicaId?: string;
6482
+ /**
6483
+ * The target replica id
6484
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6485
+ */
6486
+ readonly targetReplicaId?: string;
6487
+ /**
6488
+ * The link state
6489
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6490
+ */
6491
+ readonly linkState?: string;
6492
+ /**
6493
+ * The last hardened lsn
6494
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6495
+ */
6496
+ readonly lastHardenedLsn?: string;
6621
6497
  }
6622
6498
  /** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */
6623
6499
  export interface ServerTrustCertificate extends ProxyResource {
@@ -7240,64 +7116,6 @@ export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource {
7240
7116
  */
7241
7117
  readonly creationTime?: Date;
7242
7118
  }
7243
- /** A replication link. */
7244
- export interface ReplicationLink extends ProxyResource {
7245
- /**
7246
- * Resource partner server.
7247
- * NOTE: This property will not be serialized. It can only be populated by the server.
7248
- */
7249
- readonly partnerServer?: string;
7250
- /**
7251
- * Resource partner database.
7252
- * NOTE: This property will not be serialized. It can only be populated by the server.
7253
- */
7254
- readonly partnerDatabase?: string;
7255
- /**
7256
- * Resource partner location.
7257
- * NOTE: This property will not be serialized. It can only be populated by the server.
7258
- */
7259
- readonly partnerLocation?: string;
7260
- /**
7261
- * Local replication role.
7262
- * NOTE: This property will not be serialized. It can only be populated by the server.
7263
- */
7264
- readonly role?: ReplicationRole;
7265
- /**
7266
- * Partner replication role.
7267
- * NOTE: This property will not be serialized. It can only be populated by the server.
7268
- */
7269
- readonly partnerRole?: ReplicationRole;
7270
- /**
7271
- * Replication mode.
7272
- * NOTE: This property will not be serialized. It can only be populated by the server.
7273
- */
7274
- readonly replicationMode?: string;
7275
- /**
7276
- * Time at which the link was created.
7277
- * NOTE: This property will not be serialized. It can only be populated by the server.
7278
- */
7279
- readonly startTime?: Date;
7280
- /**
7281
- * Seeding completion percentage for the link.
7282
- * NOTE: This property will not be serialized. It can only be populated by the server.
7283
- */
7284
- readonly percentComplete?: number;
7285
- /**
7286
- * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
7287
- * NOTE: This property will not be serialized. It can only be populated by the server.
7288
- */
7289
- readonly replicationState?: ReplicationState;
7290
- /**
7291
- * Whether the user is currently allowed to terminate the link.
7292
- * NOTE: This property will not be serialized. It can only be populated by the server.
7293
- */
7294
- readonly isTerminationAllowed?: boolean;
7295
- /**
7296
- * Link type (GEO, NAMED, STANDBY).
7297
- * NOTE: This property will not be serialized. It can only be populated by the server.
7298
- */
7299
- readonly linkType?: ReplicationLinkType;
7300
- }
7301
7119
  /** A managed database move operation. */
7302
7120
  export interface ManagedDatabaseMoveOperationResult extends ProxyResource {
7303
7121
  /**
@@ -8028,6 +7846,8 @@ export interface FailoverGroup extends ProxyResource {
8028
7846
  partnerServers?: PartnerInfo[];
8029
7847
  /** List of databases in the failover group. */
8030
7848
  databases?: string[];
7849
+ /** Databases secondary type on partner server. */
7850
+ secondaryType?: FailoverGroupDatabasesSecondaryType;
8031
7851
  }
8032
7852
  /** A long term retention backup. */
8033
7853
  export interface LongTermRetentionBackup extends ProxyResource {
@@ -8195,6 +8015,71 @@ export interface RefreshExternalGovernanceStatusOperationResult extends ProxyRes
8195
8015
  */
8196
8016
  readonly errorMessage?: string;
8197
8017
  }
8018
+ /** A replication link. */
8019
+ export interface ReplicationLink extends ProxyResource {
8020
+ /**
8021
+ * Resource partner server.
8022
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8023
+ */
8024
+ readonly partnerServer?: string;
8025
+ /**
8026
+ * Resource partner database.
8027
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8028
+ */
8029
+ readonly partnerDatabase?: string;
8030
+ /**
8031
+ * Resource partner database Id.
8032
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8033
+ */
8034
+ readonly partnerDatabaseId?: string;
8035
+ /**
8036
+ * Resource partner location.
8037
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8038
+ */
8039
+ readonly partnerLocation?: string;
8040
+ /**
8041
+ * Local replication role.
8042
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8043
+ */
8044
+ readonly role?: ReplicationRole;
8045
+ /**
8046
+ * Partner replication role.
8047
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8048
+ */
8049
+ readonly partnerRole?: ReplicationRole;
8050
+ /**
8051
+ * Replication mode.
8052
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8053
+ */
8054
+ readonly replicationMode?: string;
8055
+ /**
8056
+ * Time at which the link was created.
8057
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8058
+ */
8059
+ readonly startTime?: Date;
8060
+ /**
8061
+ * Seeding completion percentage for the link.
8062
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8063
+ */
8064
+ readonly percentComplete?: number;
8065
+ /**
8066
+ * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
8067
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8068
+ */
8069
+ readonly replicationState?: ReplicationState;
8070
+ /**
8071
+ * Whether the user is currently allowed to terminate the link.
8072
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8073
+ */
8074
+ readonly isTerminationAllowed?: boolean;
8075
+ /** Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED. */
8076
+ linkType?: ReplicationLinkType;
8077
+ }
8078
+ /** A replication link update request. */
8079
+ export interface ReplicationLinkUpdate extends ProxyResource {
8080
+ /** Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED. */
8081
+ linkType?: ReplicationLinkType;
8082
+ }
8198
8083
  /** An Azure SQL job agent. */
8199
8084
  export interface JobAgent extends TrackedResource {
8200
8085
  /** The name and tier of the SKU. */
@@ -8797,10 +8682,6 @@ export interface IPv6FirewallRule extends ProxyResourceWithWritableName {
8797
8682
  /** The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpv6Address. */
8798
8683
  endIPv6Address?: string;
8799
8684
  }
8800
- /** Defines headers for DistributedAvailabilityGroups_failover operation. */
8801
- export interface DistributedAvailabilityGroupsFailoverHeaders {
8802
- location?: string;
8803
- }
8804
8685
  /** Defines headers for FailoverGroups_tryPlannedBeforeForcedFailover operation. */
8805
8686
  export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders {
8806
8687
  location?: string;
@@ -10169,183 +10050,52 @@ export declare enum KnownDatabaseState {
10169
10050
  export type DatabaseState = string;
10170
10051
  /** Known values of {@link ConnectionPolicyName} that the service accepts. */
10171
10052
  export declare enum KnownConnectionPolicyName {
10172
- /** Default */
10173
- Default = "default"
10174
- }
10175
- /**
10176
- * Defines values for ConnectionPolicyName. \
10177
- * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName,
10178
- * this enum contains the known values that the service supports.
10179
- * ### Known values supported by the service
10180
- * **default**
10181
- */
10182
- export type ConnectionPolicyName = string;
10183
- /** Known values of {@link ServerConnectionType} that the service accepts. */
10184
- export declare enum KnownServerConnectionType {
10185
- /** Default */
10186
- Default = "Default",
10187
- /** Redirect */
10188
- Redirect = "Redirect",
10189
- /** Proxy */
10190
- Proxy = "Proxy"
10191
- }
10192
- /**
10193
- * Defines values for ServerConnectionType. \
10194
- * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType,
10195
- * this enum contains the known values that the service supports.
10196
- * ### Known values supported by the service
10197
- * **Default** \
10198
- * **Redirect** \
10199
- * **Proxy**
10200
- */
10201
- export type ServerConnectionType = string;
10202
- /** Known values of {@link ReplicationModeType} that the service accepts. */
10203
- export declare enum KnownReplicationModeType {
10204
- /** Async */
10205
- Async = "Async",
10206
- /** Sync */
10207
- Sync = "Sync"
10208
- }
10209
- /**
10210
- * Defines values for ReplicationModeType. \
10211
- * {@link KnownReplicationModeType} can be used interchangeably with ReplicationModeType,
10212
- * this enum contains the known values that the service supports.
10213
- * ### Known values supported by the service
10214
- * **Async** \
10215
- * **Sync**
10216
- */
10217
- export type ReplicationModeType = string;
10218
- /** Known values of {@link LinkRole} that the service accepts. */
10219
- export declare enum KnownLinkRole {
10220
- /** Primary */
10221
- Primary = "Primary",
10222
- /** Secondary */
10223
- Secondary = "Secondary"
10224
- }
10225
- /**
10226
- * Defines values for LinkRole. \
10227
- * {@link KnownLinkRole} can be used interchangeably with LinkRole,
10228
- * this enum contains the known values that the service supports.
10229
- * ### Known values supported by the service
10230
- * **Primary** \
10231
- * **Secondary**
10232
- */
10233
- export type LinkRole = string;
10234
- /** Known values of {@link FailoverModeType} that the service accepts. */
10235
- export declare enum KnownFailoverModeType {
10236
- /** None */
10237
- None = "None",
10238
- /** Manual */
10239
- Manual = "Manual"
10240
- }
10241
- /**
10242
- * Defines values for FailoverModeType. \
10243
- * {@link KnownFailoverModeType} can be used interchangeably with FailoverModeType,
10244
- * this enum contains the known values that the service supports.
10245
- * ### Known values supported by the service
10246
- * **None** \
10247
- * **Manual**
10248
- */
10249
- export type FailoverModeType = string;
10250
- /** Known values of {@link SeedingModeType} that the service accepts. */
10251
- export declare enum KnownSeedingModeType {
10252
- /** Automatic */
10253
- Automatic = "Automatic",
10254
- /** Manual */
10255
- Manual = "Manual"
10256
- }
10257
- /**
10258
- * Defines values for SeedingModeType. \
10259
- * {@link KnownSeedingModeType} can be used interchangeably with SeedingModeType,
10260
- * this enum contains the known values that the service supports.
10261
- * ### Known values supported by the service
10262
- * **Automatic** \
10263
- * **Manual**
10264
- */
10265
- export type SeedingModeType = string;
10266
- /** Known values of {@link ReplicaSynchronizationHealth} that the service accepts. */
10267
- export declare enum KnownReplicaSynchronizationHealth {
10268
- /** NOTHealthy */
10269
- NOTHealthy = "NOT_HEALTHY",
10270
- /** PartiallyHealthy */
10271
- PartiallyHealthy = "PARTIALLY_HEALTHY",
10272
- /** Healthy */
10273
- Healthy = "HEALTHY"
10274
- }
10275
- /**
10276
- * Defines values for ReplicaSynchronizationHealth. \
10277
- * {@link KnownReplicaSynchronizationHealth} can be used interchangeably with ReplicaSynchronizationHealth,
10278
- * this enum contains the known values that the service supports.
10279
- * ### Known values supported by the service
10280
- * **NOT_HEALTHY** \
10281
- * **PARTIALLY_HEALTHY** \
10282
- * **HEALTHY**
10283
- */
10284
- export type ReplicaSynchronizationHealth = string;
10285
- /** Known values of {@link ReplicaConnectedState} that the service accepts. */
10286
- export declare enum KnownReplicaConnectedState {
10287
- /** Disconnected */
10288
- Disconnected = "DISCONNECTED",
10289
- /** Connected */
10290
- Connected = "CONNECTED"
10291
- }
10292
- /**
10293
- * Defines values for ReplicaConnectedState. \
10294
- * {@link KnownReplicaConnectedState} can be used interchangeably with ReplicaConnectedState,
10295
- * this enum contains the known values that the service supports.
10296
- * ### Known values supported by the service
10297
- * **DISCONNECTED** \
10298
- * **CONNECTED**
10299
- */
10300
- export type ReplicaConnectedState = string;
10301
- /** Known values of {@link FailoverType} that the service accepts. */
10302
- export declare enum KnownFailoverType {
10303
- /** ForcedAllowDataLoss */
10304
- ForcedAllowDataLoss = "ForcedAllowDataLoss",
10305
- /** Planned */
10306
- Planned = "Planned"
10053
+ /** Default */
10054
+ Default = "default"
10307
10055
  }
10308
10056
  /**
10309
- * Defines values for FailoverType. \
10310
- * {@link KnownFailoverType} can be used interchangeably with FailoverType,
10057
+ * Defines values for ConnectionPolicyName. \
10058
+ * {@link KnownConnectionPolicyName} can be used interchangeably with ConnectionPolicyName,
10311
10059
  * this enum contains the known values that the service supports.
10312
10060
  * ### Known values supported by the service
10313
- * **ForcedAllowDataLoss** \
10314
- * **Planned**
10061
+ * **default**
10315
10062
  */
10316
- export type FailoverType = string;
10317
- /** Known values of {@link InstanceRole} that the service accepts. */
10318
- export declare enum KnownInstanceRole {
10319
- /** Primary */
10320
- Primary = "Primary",
10321
- /** Secondary */
10322
- Secondary = "Secondary"
10063
+ export type ConnectionPolicyName = string;
10064
+ /** Known values of {@link ServerConnectionType} that the service accepts. */
10065
+ export declare enum KnownServerConnectionType {
10066
+ /** Default */
10067
+ Default = "Default",
10068
+ /** Redirect */
10069
+ Redirect = "Redirect",
10070
+ /** Proxy */
10071
+ Proxy = "Proxy"
10323
10072
  }
10324
10073
  /**
10325
- * Defines values for InstanceRole. \
10326
- * {@link KnownInstanceRole} can be used interchangeably with InstanceRole,
10074
+ * Defines values for ServerConnectionType. \
10075
+ * {@link KnownServerConnectionType} can be used interchangeably with ServerConnectionType,
10327
10076
  * this enum contains the known values that the service supports.
10328
10077
  * ### Known values supported by the service
10329
- * **Primary** \
10330
- * **Secondary**
10078
+ * **Default** \
10079
+ * **Redirect** \
10080
+ * **Proxy**
10331
10081
  */
10332
- export type InstanceRole = string;
10333
- /** Known values of {@link RoleChangeType} that the service accepts. */
10334
- export declare enum KnownRoleChangeType {
10335
- /** Forced */
10336
- Forced = "Forced",
10337
- /** Planned */
10338
- Planned = "Planned"
10082
+ export type ServerConnectionType = string;
10083
+ /** Known values of {@link ReplicationMode} that the service accepts. */
10084
+ export declare enum KnownReplicationMode {
10085
+ /** Async */
10086
+ Async = "Async",
10087
+ /** Sync */
10088
+ Sync = "Sync"
10339
10089
  }
10340
10090
  /**
10341
- * Defines values for RoleChangeType. \
10342
- * {@link KnownRoleChangeType} can be used interchangeably with RoleChangeType,
10091
+ * Defines values for ReplicationMode. \
10092
+ * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode,
10343
10093
  * this enum contains the known values that the service supports.
10344
10094
  * ### Known values supported by the service
10345
- * **Forced** \
10346
- * **Planned**
10095
+ * **Async** \
10096
+ * **Sync**
10347
10097
  */
10348
- export type RoleChangeType = string;
10098
+ export type ReplicationMode = string;
10349
10099
  /** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */
10350
10100
  export declare enum KnownAdvancedThreatProtectionName {
10351
10101
  /** Default */
@@ -10359,47 +10109,6 @@ export declare enum KnownAdvancedThreatProtectionName {
10359
10109
  * **Default**
10360
10110
  */
10361
10111
  export type AdvancedThreatProtectionName = string;
10362
- /** Known values of {@link ReplicationState} that the service accepts. */
10363
- export declare enum KnownReplicationState {
10364
- /** Pending */
10365
- Pending = "PENDING",
10366
- /** Seeding */
10367
- Seeding = "SEEDING",
10368
- /** CatchUP */
10369
- CatchUP = "CATCH_UP",
10370
- /** Suspended */
10371
- Suspended = "SUSPENDED"
10372
- }
10373
- /**
10374
- * Defines values for ReplicationState. \
10375
- * {@link KnownReplicationState} can be used interchangeably with ReplicationState,
10376
- * this enum contains the known values that the service supports.
10377
- * ### Known values supported by the service
10378
- * **PENDING** \
10379
- * **SEEDING** \
10380
- * **CATCH_UP** \
10381
- * **SUSPENDED**
10382
- */
10383
- export type ReplicationState = string;
10384
- /** Known values of {@link ReplicationLinkType} that the service accepts. */
10385
- export declare enum KnownReplicationLinkType {
10386
- /** GEO */
10387
- GEO = "GEO",
10388
- /** Named */
10389
- Named = "NAMED",
10390
- /** Standby */
10391
- Standby = "STANDBY"
10392
- }
10393
- /**
10394
- * Defines values for ReplicationLinkType. \
10395
- * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType,
10396
- * this enum contains the known values that the service supports.
10397
- * ### Known values supported by the service
10398
- * **GEO** \
10399
- * **NAMED** \
10400
- * **STANDBY**
10401
- */
10402
- export type ReplicationLinkType = string;
10403
10112
  /** Known values of {@link MoveOperationMode} that the service accepts. */
10404
10113
  export declare enum KnownMoveOperationMode {
10405
10114
  /** Move */
@@ -11136,6 +10845,22 @@ export declare enum KnownFailoverGroupReplicationRole {
11136
10845
  * **Secondary**
11137
10846
  */
11138
10847
  export type FailoverGroupReplicationRole = string;
10848
+ /** Known values of {@link FailoverGroupDatabasesSecondaryType} that the service accepts. */
10849
+ export declare enum KnownFailoverGroupDatabasesSecondaryType {
10850
+ /** Geo */
10851
+ Geo = "Geo",
10852
+ /** Standby */
10853
+ Standby = "Standby"
10854
+ }
10855
+ /**
10856
+ * Defines values for FailoverGroupDatabasesSecondaryType. \
10857
+ * {@link KnownFailoverGroupDatabasesSecondaryType} can be used interchangeably with FailoverGroupDatabasesSecondaryType,
10858
+ * this enum contains the known values that the service supports.
10859
+ * ### Known values supported by the service
10860
+ * **Geo** \
10861
+ * **Standby**
10862
+ */
10863
+ export type FailoverGroupDatabasesSecondaryType = string;
11139
10864
  /** Known values of {@link InstancePoolLicenseType} that the service accepts. */
11140
10865
  export declare enum KnownInstancePoolLicenseType {
11141
10866
  /** LicenseIncluded */
@@ -11514,6 +11239,47 @@ export declare enum KnownServerNetworkAccessFlag {
11514
11239
  * **Disabled**
11515
11240
  */
11516
11241
  export type ServerNetworkAccessFlag = string;
11242
+ /** Known values of {@link ReplicationState} that the service accepts. */
11243
+ export declare enum KnownReplicationState {
11244
+ /** Pending */
11245
+ Pending = "PENDING",
11246
+ /** Seeding */
11247
+ Seeding = "SEEDING",
11248
+ /** CatchUP */
11249
+ CatchUP = "CATCH_UP",
11250
+ /** Suspended */
11251
+ Suspended = "SUSPENDED"
11252
+ }
11253
+ /**
11254
+ * Defines values for ReplicationState. \
11255
+ * {@link KnownReplicationState} can be used interchangeably with ReplicationState,
11256
+ * this enum contains the known values that the service supports.
11257
+ * ### Known values supported by the service
11258
+ * **PENDING** \
11259
+ * **SEEDING** \
11260
+ * **CATCH_UP** \
11261
+ * **SUSPENDED**
11262
+ */
11263
+ export type ReplicationState = string;
11264
+ /** Known values of {@link ReplicationLinkType} that the service accepts. */
11265
+ export declare enum KnownReplicationLinkType {
11266
+ /** GEO */
11267
+ GEO = "GEO",
11268
+ /** Named */
11269
+ Named = "NAMED",
11270
+ /** Standby */
11271
+ Standby = "STANDBY"
11272
+ }
11273
+ /**
11274
+ * Defines values for ReplicationLinkType. \
11275
+ * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType,
11276
+ * this enum contains the known values that the service supports.
11277
+ * ### Known values supported by the service
11278
+ * **GEO** \
11279
+ * **NAMED** \
11280
+ * **STANDBY**
11281
+ */
11282
+ export type ReplicationLinkType = string;
11517
11283
  /** Known values of {@link ServiceObjectiveName} that the service accepts. */
11518
11284
  export declare enum KnownServiceObjectiveName {
11519
11285
  /** System */
@@ -11783,12 +11549,12 @@ export type SensitivityLabelUpdateKind = "set" | "remove";
11783
11549
  export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable";
11784
11550
  /** Defines values for AdvancedThreatProtectionState. */
11785
11551
  export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled";
11786
- /** Defines values for ReplicationRole. */
11787
- export type ReplicationRole = "Primary" | "Secondary" | "NonReadableSecondary" | "Source" | "Copy";
11788
11552
  /** Defines values for SqlVulnerabilityAssessmentState. */
11789
11553
  export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled";
11790
11554
  /** Defines values for CheckNameAvailabilityReason. */
11791
11555
  export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists";
11556
+ /** Defines values for ReplicationRole. */
11557
+ export type ReplicationRole = "Primary" | "Secondary" | "NonReadableSecondary" | "Source" | "Copy";
11792
11558
  /** Optional parameters. */
11793
11559
  export interface DataMaskingPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
11794
11560
  }
@@ -14325,24 +14091,6 @@ export interface DistributedAvailabilityGroupsUpdateOptionalParams extends coreC
14325
14091
  /** Contains response data for the update operation. */
14326
14092
  export type DistributedAvailabilityGroupsUpdateResponse = DistributedAvailabilityGroup;
14327
14093
  /** Optional parameters. */
14328
- export interface DistributedAvailabilityGroupsFailoverOptionalParams extends coreClient.OperationOptions {
14329
- /** Delay to wait until next poll, in milliseconds. */
14330
- updateIntervalInMs?: number;
14331
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
14332
- resumeFrom?: string;
14333
- }
14334
- /** Contains response data for the failover operation. */
14335
- export type DistributedAvailabilityGroupsFailoverResponse = DistributedAvailabilityGroup;
14336
- /** Optional parameters. */
14337
- export interface DistributedAvailabilityGroupsSetRoleOptionalParams extends coreClient.OperationOptions {
14338
- /** Delay to wait until next poll, in milliseconds. */
14339
- updateIntervalInMs?: number;
14340
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
14341
- resumeFrom?: string;
14342
- }
14343
- /** Contains response data for the setRole operation. */
14344
- export type DistributedAvailabilityGroupsSetRoleResponse = DistributedAvailabilityGroup;
14345
- /** Optional parameters. */
14346
14094
  export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams extends coreClient.OperationOptions {
14347
14095
  }
14348
14096
  /** Contains response data for the listByInstanceNext operation. */
@@ -14718,56 +14466,6 @@ export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNe
14718
14466
  /** Contains response data for the listByInstanceNext operation. */
14719
14467
  export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse = ManagedInstanceAdvancedThreatProtectionListResult;
14720
14468
  /** Optional parameters. */
14721
- export interface ReplicationLinksListByDatabaseOptionalParams extends coreClient.OperationOptions {
14722
- }
14723
- /** Contains response data for the listByDatabase operation. */
14724
- export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult;
14725
- /** Optional parameters. */
14726
- export interface ReplicationLinksGetOptionalParams extends coreClient.OperationOptions {
14727
- }
14728
- /** Contains response data for the get operation. */
14729
- export type ReplicationLinksGetResponse = ReplicationLink;
14730
- /** Optional parameters. */
14731
- export interface ReplicationLinksDeleteOptionalParams extends coreClient.OperationOptions {
14732
- /** Delay to wait until next poll, in milliseconds. */
14733
- updateIntervalInMs?: number;
14734
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
14735
- resumeFrom?: string;
14736
- }
14737
- /** Optional parameters. */
14738
- export interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions {
14739
- /** Delay to wait until next poll, in milliseconds. */
14740
- updateIntervalInMs?: number;
14741
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
14742
- resumeFrom?: string;
14743
- }
14744
- /** Contains response data for the failover operation. */
14745
- export type ReplicationLinksFailoverResponse = ReplicationLink;
14746
- /** Optional parameters. */
14747
- export interface ReplicationLinksFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions {
14748
- /** Delay to wait until next poll, in milliseconds. */
14749
- updateIntervalInMs?: number;
14750
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
14751
- resumeFrom?: string;
14752
- }
14753
- /** Contains response data for the failoverAllowDataLoss operation. */
14754
- export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink;
14755
- /** Optional parameters. */
14756
- export interface ReplicationLinksListByServerOptionalParams extends coreClient.OperationOptions {
14757
- }
14758
- /** Contains response data for the listByServer operation. */
14759
- export type ReplicationLinksListByServerResponse = ReplicationLinkListResult;
14760
- /** Optional parameters. */
14761
- export interface ReplicationLinksListByDatabaseNextOptionalParams extends coreClient.OperationOptions {
14762
- }
14763
- /** Contains response data for the listByDatabaseNext operation. */
14764
- export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult;
14765
- /** Optional parameters. */
14766
- export interface ReplicationLinksListByServerNextOptionalParams extends coreClient.OperationOptions {
14767
- }
14768
- /** Contains response data for the listByServerNext operation. */
14769
- export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult;
14770
- /** Optional parameters. */
14771
14469
  export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams extends coreClient.OperationOptions {
14772
14470
  /** An OData filter expression that filters elements in the collection. */
14773
14471
  filter?: string;
@@ -15913,6 +15611,74 @@ export interface ServersListByResourceGroupNextOptionalParams extends coreClient
15913
15611
  /** Contains response data for the listByResourceGroupNext operation. */
15914
15612
  export type ServersListByResourceGroupNextResponse = ServerListResult;
15915
15613
  /** Optional parameters. */
15614
+ export interface ReplicationLinksListByDatabaseOptionalParams extends coreClient.OperationOptions {
15615
+ }
15616
+ /** Contains response data for the listByDatabase operation. */
15617
+ export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult;
15618
+ /** Optional parameters. */
15619
+ export interface ReplicationLinksGetOptionalParams extends coreClient.OperationOptions {
15620
+ }
15621
+ /** Contains response data for the get operation. */
15622
+ export type ReplicationLinksGetResponse = ReplicationLink;
15623
+ /** Optional parameters. */
15624
+ export interface ReplicationLinksCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
15625
+ /** Delay to wait until next poll, in milliseconds. */
15626
+ updateIntervalInMs?: number;
15627
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
15628
+ resumeFrom?: string;
15629
+ }
15630
+ /** Contains response data for the createOrUpdate operation. */
15631
+ export type ReplicationLinksCreateOrUpdateResponse = ReplicationLink;
15632
+ /** Optional parameters. */
15633
+ export interface ReplicationLinksDeleteOptionalParams extends coreClient.OperationOptions {
15634
+ /** Delay to wait until next poll, in milliseconds. */
15635
+ updateIntervalInMs?: number;
15636
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
15637
+ resumeFrom?: string;
15638
+ }
15639
+ /** Optional parameters. */
15640
+ export interface ReplicationLinksUpdateOptionalParams extends coreClient.OperationOptions {
15641
+ /** Delay to wait until next poll, in milliseconds. */
15642
+ updateIntervalInMs?: number;
15643
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
15644
+ resumeFrom?: string;
15645
+ }
15646
+ /** Contains response data for the update operation. */
15647
+ export type ReplicationLinksUpdateResponse = ReplicationLink;
15648
+ /** Optional parameters. */
15649
+ export interface ReplicationLinksFailoverOptionalParams extends coreClient.OperationOptions {
15650
+ /** Delay to wait until next poll, in milliseconds. */
15651
+ updateIntervalInMs?: number;
15652
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
15653
+ resumeFrom?: string;
15654
+ }
15655
+ /** Contains response data for the failover operation. */
15656
+ export type ReplicationLinksFailoverResponse = ReplicationLink;
15657
+ /** Optional parameters. */
15658
+ export interface ReplicationLinksFailoverAllowDataLossOptionalParams extends coreClient.OperationOptions {
15659
+ /** Delay to wait until next poll, in milliseconds. */
15660
+ updateIntervalInMs?: number;
15661
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
15662
+ resumeFrom?: string;
15663
+ }
15664
+ /** Contains response data for the failoverAllowDataLoss operation. */
15665
+ export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink;
15666
+ /** Optional parameters. */
15667
+ export interface ReplicationLinksListByServerOptionalParams extends coreClient.OperationOptions {
15668
+ }
15669
+ /** Contains response data for the listByServer operation. */
15670
+ export type ReplicationLinksListByServerResponse = ReplicationLinkListResult;
15671
+ /** Optional parameters. */
15672
+ export interface ReplicationLinksListByDatabaseNextOptionalParams extends coreClient.OperationOptions {
15673
+ }
15674
+ /** Contains response data for the listByDatabaseNext operation. */
15675
+ export type ReplicationLinksListByDatabaseNextResponse = ReplicationLinkListResult;
15676
+ /** Optional parameters. */
15677
+ export interface ReplicationLinksListByServerNextOptionalParams extends coreClient.OperationOptions {
15678
+ }
15679
+ /** Contains response data for the listByServerNext operation. */
15680
+ export type ReplicationLinksListByServerNextResponse = ReplicationLinkListResult;
15681
+ /** Optional parameters. */
15916
15682
  export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions {
15917
15683
  /** server parameter */
15918
15684
  $host?: string;