@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
@@ -2795,189 +2795,6 @@ export interface DistributedAvailabilityGroupsListResult {
2795
2795
  readonly nextLink?: string;
2796
2796
  }
2797
2797
 
2798
- /** Database specific information */
2799
- export interface DistributedAvailabilityGroupDatabase {
2800
- /** The name of the database in link */
2801
- databaseName?: string;
2802
- /**
2803
- * Managed instance replica id
2804
- * NOTE: This property will not be serialized. It can only be populated by the server.
2805
- */
2806
- readonly instanceReplicaId?: string;
2807
- /**
2808
- * SQL server replica id
2809
- * NOTE: This property will not be serialized. It can only be populated by the server.
2810
- */
2811
- readonly partnerReplicaId?: string;
2812
- /**
2813
- * Current link state
2814
- * NOTE: This property will not be serialized. It can only be populated by the server.
2815
- */
2816
- readonly replicaState?: string;
2817
- /**
2818
- * Seeding progress
2819
- * NOTE: This property will not be serialized. It can only be populated by the server.
2820
- */
2821
- readonly seedingProgress?: string;
2822
- /**
2823
- * Link health state
2824
- * NOTE: This property will not be serialized. It can only be populated by the server.
2825
- */
2826
- readonly synchronizationHealth?: ReplicaSynchronizationHealth;
2827
- /**
2828
- * Link connected state
2829
- * NOTE: This property will not be serialized. It can only be populated by the server.
2830
- */
2831
- readonly connectedState?: ReplicaConnectedState;
2832
- /**
2833
- * Last received LSN
2834
- * NOTE: This property will not be serialized. It can only be populated by the server.
2835
- */
2836
- readonly lastReceivedLsn?: string;
2837
- /**
2838
- * Last received LSN time
2839
- * NOTE: This property will not be serialized. It can only be populated by the server.
2840
- */
2841
- readonly lastReceivedTime?: Date;
2842
- /**
2843
- * Last sent LSN
2844
- * NOTE: This property will not be serialized. It can only be populated by the server.
2845
- */
2846
- readonly lastSentLsn?: string;
2847
- /**
2848
- * Last sent LSN time
2849
- * NOTE: This property will not be serialized. It can only be populated by the server.
2850
- */
2851
- readonly lastSentTime?: Date;
2852
- /**
2853
- * Last commit LSN
2854
- * NOTE: This property will not be serialized. It can only be populated by the server.
2855
- */
2856
- readonly lastCommitLsn?: string;
2857
- /**
2858
- * Last commit LSN time
2859
- * NOTE: This property will not be serialized. It can only be populated by the server.
2860
- */
2861
- readonly lastCommitTime?: Date;
2862
- /**
2863
- * Last hardened LSN
2864
- * NOTE: This property will not be serialized. It can only be populated by the server.
2865
- */
2866
- readonly lastHardenedLsn?: string;
2867
- /**
2868
- * Last hardened LSN time
2869
- * NOTE: This property will not be serialized. It can only be populated by the server.
2870
- */
2871
- readonly lastHardenedTime?: Date;
2872
- /**
2873
- * Last backup LSN
2874
- * NOTE: This property will not be serialized. It can only be populated by the server.
2875
- */
2876
- readonly lastBackupLsn?: string;
2877
- /**
2878
- * Last backup LSN time
2879
- * NOTE: This property will not be serialized. It can only be populated by the server.
2880
- */
2881
- readonly lastBackupTime?: Date;
2882
- /**
2883
- * The most recent link connection error description
2884
- * NOTE: This property will not be serialized. It can only be populated by the server.
2885
- */
2886
- readonly mostRecentLinkError?: string;
2887
- /**
2888
- * SQL server certificate validity
2889
- * NOTE: This property will not be serialized. It can only be populated by the server.
2890
- */
2891
- readonly partnerAuthCertValidity?: CertificateInfo;
2892
- /**
2893
- * Replication lag when Managed Instance link side is primary
2894
- * NOTE: This property will not be serialized. It can only be populated by the server.
2895
- */
2896
- readonly instanceSendReplicationLagSeconds?: number;
2897
- /**
2898
- * Redo lag when Managed Instance link side is primary
2899
- * NOTE: This property will not be serialized. It can only be populated by the server.
2900
- */
2901
- readonly instanceRedoReplicationLagSeconds?: number;
2902
- }
2903
-
2904
- /** Certificate information */
2905
- export interface CertificateInfo {
2906
- /**
2907
- * The certificate name
2908
- * NOTE: This property will not be serialized. It can only be populated by the server.
2909
- */
2910
- readonly certificateName?: string;
2911
- /**
2912
- * The certificate expiry date
2913
- * NOTE: This property will not be serialized. It can only be populated by the server.
2914
- */
2915
- readonly expiryDate?: Date;
2916
- }
2917
-
2918
- /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
2919
- export interface ErrorResponse {
2920
- /** The error object. */
2921
- error?: ErrorDetail;
2922
- }
2923
-
2924
- /** The error detail. */
2925
- export interface ErrorDetail {
2926
- /**
2927
- * The error code.
2928
- * NOTE: This property will not be serialized. It can only be populated by the server.
2929
- */
2930
- readonly code?: string;
2931
- /**
2932
- * The error message.
2933
- * NOTE: This property will not be serialized. It can only be populated by the server.
2934
- */
2935
- readonly message?: string;
2936
- /**
2937
- * The error target.
2938
- * NOTE: This property will not be serialized. It can only be populated by the server.
2939
- */
2940
- readonly target?: string;
2941
- /**
2942
- * The error details.
2943
- * NOTE: This property will not be serialized. It can only be populated by the server.
2944
- */
2945
- readonly details?: ErrorDetail[];
2946
- /**
2947
- * The error additional info.
2948
- * NOTE: This property will not be serialized. It can only be populated by the server.
2949
- */
2950
- readonly additionalInfo?: ErrorAdditionalInfo[];
2951
- }
2952
-
2953
- /** The resource management error additional info. */
2954
- export interface ErrorAdditionalInfo {
2955
- /**
2956
- * The additional info type.
2957
- * NOTE: This property will not be serialized. It can only be populated by the server.
2958
- */
2959
- readonly type?: string;
2960
- /**
2961
- * The additional info.
2962
- * NOTE: This property will not be serialized. It can only be populated by the server.
2963
- */
2964
- readonly info?: Record<string, unknown>;
2965
- }
2966
-
2967
- /** Distributed availability group failover. */
2968
- export interface DistributedAvailabilityGroupsFailoverRequest {
2969
- /** The failover type, can be ForcedAllowDataLoss or Planned. */
2970
- failoverType: FailoverType;
2971
- }
2972
-
2973
- /** Distributed availability group failover request. */
2974
- export interface DistributedAvailabilityGroupSetRole {
2975
- /** New role of managed instance in a distributed availability group, can be Primary or Secondary. */
2976
- instanceRole: InstanceRole;
2977
- /** The type of the role change, can be Planned or Forced. */
2978
- roleChangeType: RoleChangeType;
2979
- }
2980
-
2981
2798
  /** A list of server trust certificates in instance. */
2982
2799
  export interface ServerTrustCertificatesListResult {
2983
2800
  /**
@@ -3168,20 +2985,6 @@ export interface ManagedInstanceAdvancedThreatProtectionListResult {
3168
2985
  readonly nextLink?: string;
3169
2986
  }
3170
2987
 
3171
- /** A list of replication links. */
3172
- export interface ReplicationLinkListResult {
3173
- /**
3174
- * Array of results.
3175
- * NOTE: This property will not be serialized. It can only be populated by the server.
3176
- */
3177
- readonly value?: ReplicationLink[];
3178
- /**
3179
- * Link to retrieve next page of results.
3180
- * NOTE: This property will not be serialized. It can only be populated by the server.
3181
- */
3182
- readonly nextLink?: string;
3183
- }
3184
-
3185
2988
  /** List of managed database move operations. */
3186
2989
  export interface ManagedDatabaseMoveOperationListResult {
3187
2990
  /**
@@ -4267,6 +4070,8 @@ export interface FailoverGroupUpdate {
4267
4070
  databases?: string[];
4268
4071
  /** List of partner server information for the failover group. */
4269
4072
  partnerServers?: PartnerInfo[];
4073
+ /** Databases secondary type on partner server. */
4074
+ secondaryType?: FailoverGroupDatabasesSecondaryType;
4270
4075
  }
4271
4076
 
4272
4077
  /** A list of Azure SQL instance pools. */
@@ -4318,6 +4123,55 @@ export interface LongTermRetentionBackupListResult {
4318
4123
  readonly nextLink?: string;
4319
4124
  }
4320
4125
 
4126
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
4127
+ export interface ErrorResponse {
4128
+ /** The error object. */
4129
+ error?: ErrorDetail;
4130
+ }
4131
+
4132
+ /** The error detail. */
4133
+ export interface ErrorDetail {
4134
+ /**
4135
+ * The error code.
4136
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4137
+ */
4138
+ readonly code?: string;
4139
+ /**
4140
+ * The error message.
4141
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4142
+ */
4143
+ readonly message?: string;
4144
+ /**
4145
+ * The error target.
4146
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4147
+ */
4148
+ readonly target?: string;
4149
+ /**
4150
+ * The error details.
4151
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4152
+ */
4153
+ readonly details?: ErrorDetail[];
4154
+ /**
4155
+ * The error additional info.
4156
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4157
+ */
4158
+ readonly additionalInfo?: ErrorAdditionalInfo[];
4159
+ }
4160
+
4161
+ /** The resource management error additional info. */
4162
+ export interface ErrorAdditionalInfo {
4163
+ /**
4164
+ * The additional info type.
4165
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4166
+ */
4167
+ readonly type?: string;
4168
+ /**
4169
+ * The additional info.
4170
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4171
+ */
4172
+ readonly info?: Record<string, unknown>;
4173
+ }
4174
+
4321
4175
  /** Contains the information necessary to change long term retention backup access tier and related operation mode. */
4322
4176
  export interface ChangeLongTermRetentionBackupAccessTierParameters {
4323
4177
  /** The long term retention backup storage access tier */
@@ -4894,6 +4748,20 @@ export interface ImportNewDatabaseDefinition {
4894
4748
  networkIsolation?: NetworkIsolationSettings;
4895
4749
  }
4896
4750
 
4751
+ /** A list of replication links. */
4752
+ export interface ReplicationLinkListResult {
4753
+ /**
4754
+ * Array of results.
4755
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4756
+ */
4757
+ readonly value?: ReplicationLink[];
4758
+ /**
4759
+ * Link to retrieve next page of results.
4760
+ * NOTE: This property will not be serialized. It can only be populated by the server.
4761
+ */
4762
+ readonly nextLink?: string;
4763
+ }
4764
+
4897
4765
  /** A Slo Usage Metric. */
4898
4766
  export interface SloUsageMetric {
4899
4767
  /**
@@ -6925,37 +6793,41 @@ export interface ServerConnectionPolicy extends ProxyResource {
6925
6793
 
6926
6794
  /** Distributed availability group between box and Sql Managed Instance. */
6927
6795
  export interface DistributedAvailabilityGroup extends ProxyResource {
6796
+ /** The name of the target database */
6797
+ targetDatabase?: string;
6798
+ /** The source endpoint */
6799
+ sourceEndpoint?: string;
6800
+ /** The primary availability group name */
6801
+ primaryAvailabilityGroupName?: string;
6802
+ /** The secondary availability group name */
6803
+ secondaryAvailabilityGroupName?: string;
6804
+ /** The replication mode of a distributed availability group. Parameter will be ignored during link creation. */
6805
+ replicationMode?: ReplicationMode;
6928
6806
  /**
6929
- * Name of the distributed availability group
6807
+ * The distributed availability group id
6930
6808
  * NOTE: This property will not be serialized. It can only be populated by the server.
6931
6809
  */
6932
- readonly distributedAvailabilityGroupName?: string;
6810
+ readonly distributedAvailabilityGroupId?: string;
6933
6811
  /**
6934
- * ID of the distributed availability group
6812
+ * The source replica id
6935
6813
  * NOTE: This property will not be serialized. It can only be populated by the server.
6936
6814
  */
6937
- readonly distributedAvailabilityGroupId?: string;
6938
- /** Replication mode of the link */
6939
- replicationMode?: ReplicationModeType;
6815
+ readonly sourceReplicaId?: string;
6816
+ /**
6817
+ * The target replica id
6818
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6819
+ */
6820
+ readonly targetReplicaId?: string;
6821
+ /**
6822
+ * The link state
6823
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6824
+ */
6825
+ readonly linkState?: string;
6940
6826
  /**
6941
- * SQL server side link role
6827
+ * The last hardened lsn
6942
6828
  * NOTE: This property will not be serialized. It can only be populated by the server.
6943
6829
  */
6944
- readonly partnerLinkRole?: LinkRole;
6945
- /** SQL server side availability group name */
6946
- partnerAvailabilityGroupName?: string;
6947
- /** SQL server side endpoint - IP or DNS resolvable name */
6948
- partnerEndpoint?: string;
6949
- /** Managed instance side link role */
6950
- instanceLinkRole?: LinkRole;
6951
- /** Managed instance side availability group name */
6952
- instanceAvailabilityGroupName?: string;
6953
- /** 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. */
6954
- failoverMode?: FailoverModeType;
6955
- /** Database seeding mode – can be Automatic (default), or Manual for supported scenarios. */
6956
- seedingMode?: SeedingModeType;
6957
- /** Databases in the distributed availability group */
6958
- databases?: DistributedAvailabilityGroupDatabase[];
6830
+ readonly lastHardenedLsn?: string;
6959
6831
  }
6960
6832
 
6961
6833
  /** Server trust certificate imported from box to enable connection between box and Sql Managed Instance. */
@@ -7593,65 +7465,6 @@ export interface ManagedInstanceAdvancedThreatProtection extends ProxyResource {
7593
7465
  readonly creationTime?: Date;
7594
7466
  }
7595
7467
 
7596
- /** A replication link. */
7597
- export interface ReplicationLink extends ProxyResource {
7598
- /**
7599
- * Resource partner server.
7600
- * NOTE: This property will not be serialized. It can only be populated by the server.
7601
- */
7602
- readonly partnerServer?: string;
7603
- /**
7604
- * Resource partner database.
7605
- * NOTE: This property will not be serialized. It can only be populated by the server.
7606
- */
7607
- readonly partnerDatabase?: string;
7608
- /**
7609
- * Resource partner location.
7610
- * NOTE: This property will not be serialized. It can only be populated by the server.
7611
- */
7612
- readonly partnerLocation?: string;
7613
- /**
7614
- * Local replication role.
7615
- * NOTE: This property will not be serialized. It can only be populated by the server.
7616
- */
7617
- readonly role?: ReplicationRole;
7618
- /**
7619
- * Partner replication role.
7620
- * NOTE: This property will not be serialized. It can only be populated by the server.
7621
- */
7622
- readonly partnerRole?: ReplicationRole;
7623
- /**
7624
- * Replication mode.
7625
- * NOTE: This property will not be serialized. It can only be populated by the server.
7626
- */
7627
- readonly replicationMode?: string;
7628
- /**
7629
- * Time at which the link was created.
7630
- * NOTE: This property will not be serialized. It can only be populated by the server.
7631
- */
7632
- readonly startTime?: Date;
7633
- /**
7634
- * Seeding completion percentage for the link.
7635
- * NOTE: This property will not be serialized. It can only be populated by the server.
7636
- */
7637
- readonly percentComplete?: number;
7638
- /**
7639
- * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
7640
- * NOTE: This property will not be serialized. It can only be populated by the server.
7641
- */
7642
- readonly replicationState?: ReplicationState;
7643
- /**
7644
- * Whether the user is currently allowed to terminate the link.
7645
- * NOTE: This property will not be serialized. It can only be populated by the server.
7646
- */
7647
- readonly isTerminationAllowed?: boolean;
7648
- /**
7649
- * Link type (GEO, NAMED, STANDBY).
7650
- * NOTE: This property will not be serialized. It can only be populated by the server.
7651
- */
7652
- readonly linkType?: ReplicationLinkType;
7653
- }
7654
-
7655
7468
  /** A managed database move operation. */
7656
7469
  export interface ManagedDatabaseMoveOperationResult extends ProxyResource {
7657
7470
  /**
@@ -8396,6 +8209,8 @@ export interface FailoverGroup extends ProxyResource {
8396
8209
  partnerServers?: PartnerInfo[];
8397
8210
  /** List of databases in the failover group. */
8398
8211
  databases?: string[];
8212
+ /** Databases secondary type on partner server. */
8213
+ secondaryType?: FailoverGroupDatabasesSecondaryType;
8399
8214
  }
8400
8215
 
8401
8216
  /** A long term retention backup. */
@@ -8571,6 +8386,73 @@ export interface RefreshExternalGovernanceStatusOperationResult
8571
8386
  readonly errorMessage?: string;
8572
8387
  }
8573
8388
 
8389
+ /** A replication link. */
8390
+ export interface ReplicationLink extends ProxyResource {
8391
+ /**
8392
+ * Resource partner server.
8393
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8394
+ */
8395
+ readonly partnerServer?: string;
8396
+ /**
8397
+ * Resource partner database.
8398
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8399
+ */
8400
+ readonly partnerDatabase?: string;
8401
+ /**
8402
+ * Resource partner database Id.
8403
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8404
+ */
8405
+ readonly partnerDatabaseId?: string;
8406
+ /**
8407
+ * Resource partner location.
8408
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8409
+ */
8410
+ readonly partnerLocation?: string;
8411
+ /**
8412
+ * Local replication role.
8413
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8414
+ */
8415
+ readonly role?: ReplicationRole;
8416
+ /**
8417
+ * Partner replication role.
8418
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8419
+ */
8420
+ readonly partnerRole?: ReplicationRole;
8421
+ /**
8422
+ * Replication mode.
8423
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8424
+ */
8425
+ readonly replicationMode?: string;
8426
+ /**
8427
+ * Time at which the link was created.
8428
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8429
+ */
8430
+ readonly startTime?: Date;
8431
+ /**
8432
+ * Seeding completion percentage for the link.
8433
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8434
+ */
8435
+ readonly percentComplete?: number;
8436
+ /**
8437
+ * Replication state (PENDING, SEEDING, CATCHUP, SUSPENDED).
8438
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8439
+ */
8440
+ readonly replicationState?: ReplicationState;
8441
+ /**
8442
+ * Whether the user is currently allowed to terminate the link.
8443
+ * NOTE: This property will not be serialized. It can only be populated by the server.
8444
+ */
8445
+ readonly isTerminationAllowed?: boolean;
8446
+ /** Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED. */
8447
+ linkType?: ReplicationLinkType;
8448
+ }
8449
+
8450
+ /** A replication link update request. */
8451
+ export interface ReplicationLinkUpdate extends ProxyResource {
8452
+ /** Link type (GEO, NAMED, STANDBY). Update operation does not support NAMED. */
8453
+ linkType?: ReplicationLinkType;
8454
+ }
8455
+
8574
8456
  /** An Azure SQL job agent. */
8575
8457
  export interface JobAgent extends TrackedResource {
8576
8458
  /** The name and tier of the SKU. */
@@ -9182,11 +9064,6 @@ export interface IPv6FirewallRule extends ProxyResourceWithWritableName {
9182
9064
  endIPv6Address?: string;
9183
9065
  }
9184
9066
 
9185
- /** Defines headers for DistributedAvailabilityGroups_failover operation. */
9186
- export interface DistributedAvailabilityGroupsFailoverHeaders {
9187
- location?: string;
9188
- }
9189
-
9190
9067
  /** Defines headers for FailoverGroups_tryPlannedBeforeForcedFailover operation. */
9191
9068
  export interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders {
9192
9069
  location?: string;
@@ -10716,8 +10593,8 @@ export enum KnownServerConnectionType {
10716
10593
  */
10717
10594
  export type ServerConnectionType = string;
10718
10595
 
10719
- /** Known values of {@link ReplicationModeType} that the service accepts. */
10720
- export enum KnownReplicationModeType {
10596
+ /** Known values of {@link ReplicationMode} that the service accepts. */
10597
+ export enum KnownReplicationMode {
10721
10598
  /** Async */
10722
10599
  Async = "Async",
10723
10600
  /** Sync */
@@ -10725,161 +10602,14 @@ export enum KnownReplicationModeType {
10725
10602
  }
10726
10603
 
10727
10604
  /**
10728
- * Defines values for ReplicationModeType. \
10729
- * {@link KnownReplicationModeType} can be used interchangeably with ReplicationModeType,
10605
+ * Defines values for ReplicationMode. \
10606
+ * {@link KnownReplicationMode} can be used interchangeably with ReplicationMode,
10730
10607
  * this enum contains the known values that the service supports.
10731
10608
  * ### Known values supported by the service
10732
10609
  * **Async** \
10733
10610
  * **Sync**
10734
10611
  */
10735
- export type ReplicationModeType = string;
10736
-
10737
- /** Known values of {@link LinkRole} that the service accepts. */
10738
- export enum KnownLinkRole {
10739
- /** Primary */
10740
- Primary = "Primary",
10741
- /** Secondary */
10742
- Secondary = "Secondary",
10743
- }
10744
-
10745
- /**
10746
- * Defines values for LinkRole. \
10747
- * {@link KnownLinkRole} can be used interchangeably with LinkRole,
10748
- * this enum contains the known values that the service supports.
10749
- * ### Known values supported by the service
10750
- * **Primary** \
10751
- * **Secondary**
10752
- */
10753
- export type LinkRole = string;
10754
-
10755
- /** Known values of {@link FailoverModeType} that the service accepts. */
10756
- export enum KnownFailoverModeType {
10757
- /** None */
10758
- None = "None",
10759
- /** Manual */
10760
- Manual = "Manual",
10761
- }
10762
-
10763
- /**
10764
- * Defines values for FailoverModeType. \
10765
- * {@link KnownFailoverModeType} can be used interchangeably with FailoverModeType,
10766
- * this enum contains the known values that the service supports.
10767
- * ### Known values supported by the service
10768
- * **None** \
10769
- * **Manual**
10770
- */
10771
- export type FailoverModeType = string;
10772
-
10773
- /** Known values of {@link SeedingModeType} that the service accepts. */
10774
- export enum KnownSeedingModeType {
10775
- /** Automatic */
10776
- Automatic = "Automatic",
10777
- /** Manual */
10778
- Manual = "Manual",
10779
- }
10780
-
10781
- /**
10782
- * Defines values for SeedingModeType. \
10783
- * {@link KnownSeedingModeType} can be used interchangeably with SeedingModeType,
10784
- * this enum contains the known values that the service supports.
10785
- * ### Known values supported by the service
10786
- * **Automatic** \
10787
- * **Manual**
10788
- */
10789
- export type SeedingModeType = string;
10790
-
10791
- /** Known values of {@link ReplicaSynchronizationHealth} that the service accepts. */
10792
- export enum KnownReplicaSynchronizationHealth {
10793
- /** NOTHealthy */
10794
- NOTHealthy = "NOT_HEALTHY",
10795
- /** PartiallyHealthy */
10796
- PartiallyHealthy = "PARTIALLY_HEALTHY",
10797
- /** Healthy */
10798
- Healthy = "HEALTHY",
10799
- }
10800
-
10801
- /**
10802
- * Defines values for ReplicaSynchronizationHealth. \
10803
- * {@link KnownReplicaSynchronizationHealth} can be used interchangeably with ReplicaSynchronizationHealth,
10804
- * this enum contains the known values that the service supports.
10805
- * ### Known values supported by the service
10806
- * **NOT_HEALTHY** \
10807
- * **PARTIALLY_HEALTHY** \
10808
- * **HEALTHY**
10809
- */
10810
- export type ReplicaSynchronizationHealth = string;
10811
-
10812
- /** Known values of {@link ReplicaConnectedState} that the service accepts. */
10813
- export enum KnownReplicaConnectedState {
10814
- /** Disconnected */
10815
- Disconnected = "DISCONNECTED",
10816
- /** Connected */
10817
- Connected = "CONNECTED",
10818
- }
10819
-
10820
- /**
10821
- * Defines values for ReplicaConnectedState. \
10822
- * {@link KnownReplicaConnectedState} can be used interchangeably with ReplicaConnectedState,
10823
- * this enum contains the known values that the service supports.
10824
- * ### Known values supported by the service
10825
- * **DISCONNECTED** \
10826
- * **CONNECTED**
10827
- */
10828
- export type ReplicaConnectedState = string;
10829
-
10830
- /** Known values of {@link FailoverType} that the service accepts. */
10831
- export enum KnownFailoverType {
10832
- /** ForcedAllowDataLoss */
10833
- ForcedAllowDataLoss = "ForcedAllowDataLoss",
10834
- /** Planned */
10835
- Planned = "Planned",
10836
- }
10837
-
10838
- /**
10839
- * Defines values for FailoverType. \
10840
- * {@link KnownFailoverType} can be used interchangeably with FailoverType,
10841
- * this enum contains the known values that the service supports.
10842
- * ### Known values supported by the service
10843
- * **ForcedAllowDataLoss** \
10844
- * **Planned**
10845
- */
10846
- export type FailoverType = string;
10847
-
10848
- /** Known values of {@link InstanceRole} that the service accepts. */
10849
- export enum KnownInstanceRole {
10850
- /** Primary */
10851
- Primary = "Primary",
10852
- /** Secondary */
10853
- Secondary = "Secondary",
10854
- }
10855
-
10856
- /**
10857
- * Defines values for InstanceRole. \
10858
- * {@link KnownInstanceRole} can be used interchangeably with InstanceRole,
10859
- * this enum contains the known values that the service supports.
10860
- * ### Known values supported by the service
10861
- * **Primary** \
10862
- * **Secondary**
10863
- */
10864
- export type InstanceRole = string;
10865
-
10866
- /** Known values of {@link RoleChangeType} that the service accepts. */
10867
- export enum KnownRoleChangeType {
10868
- /** Forced */
10869
- Forced = "Forced",
10870
- /** Planned */
10871
- Planned = "Planned",
10872
- }
10873
-
10874
- /**
10875
- * Defines values for RoleChangeType. \
10876
- * {@link KnownRoleChangeType} can be used interchangeably with RoleChangeType,
10877
- * this enum contains the known values that the service supports.
10878
- * ### Known values supported by the service
10879
- * **Forced** \
10880
- * **Planned**
10881
- */
10882
- export type RoleChangeType = string;
10612
+ export type ReplicationMode = string;
10883
10613
 
10884
10614
  /** Known values of {@link AdvancedThreatProtectionName} that the service accepts. */
10885
10615
  export enum KnownAdvancedThreatProtectionName {
@@ -10887,59 +10617,14 @@ export enum KnownAdvancedThreatProtectionName {
10887
10617
  Default = "Default",
10888
10618
  }
10889
10619
 
10890
- /**
10891
- * Defines values for AdvancedThreatProtectionName. \
10892
- * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName,
10893
- * this enum contains the known values that the service supports.
10894
- * ### Known values supported by the service
10895
- * **Default**
10896
- */
10897
- export type AdvancedThreatProtectionName = string;
10898
-
10899
- /** Known values of {@link ReplicationState} that the service accepts. */
10900
- export enum KnownReplicationState {
10901
- /** Pending */
10902
- Pending = "PENDING",
10903
- /** Seeding */
10904
- Seeding = "SEEDING",
10905
- /** CatchUP */
10906
- CatchUP = "CATCH_UP",
10907
- /** Suspended */
10908
- Suspended = "SUSPENDED",
10909
- }
10910
-
10911
- /**
10912
- * Defines values for ReplicationState. \
10913
- * {@link KnownReplicationState} can be used interchangeably with ReplicationState,
10914
- * this enum contains the known values that the service supports.
10915
- * ### Known values supported by the service
10916
- * **PENDING** \
10917
- * **SEEDING** \
10918
- * **CATCH_UP** \
10919
- * **SUSPENDED**
10920
- */
10921
- export type ReplicationState = string;
10922
-
10923
- /** Known values of {@link ReplicationLinkType} that the service accepts. */
10924
- export enum KnownReplicationLinkType {
10925
- /** GEO */
10926
- GEO = "GEO",
10927
- /** Named */
10928
- Named = "NAMED",
10929
- /** Standby */
10930
- Standby = "STANDBY",
10931
- }
10932
-
10933
- /**
10934
- * Defines values for ReplicationLinkType. \
10935
- * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType,
10620
+ /**
10621
+ * Defines values for AdvancedThreatProtectionName. \
10622
+ * {@link KnownAdvancedThreatProtectionName} can be used interchangeably with AdvancedThreatProtectionName,
10936
10623
  * this enum contains the known values that the service supports.
10937
10624
  * ### Known values supported by the service
10938
- * **GEO** \
10939
- * **NAMED** \
10940
- * **STANDBY**
10625
+ * **Default**
10941
10626
  */
10942
- export type ReplicationLinkType = string;
10627
+ export type AdvancedThreatProtectionName = string;
10943
10628
 
10944
10629
  /** Known values of {@link MoveOperationMode} that the service accepts. */
10945
10630
  export enum KnownMoveOperationMode {
@@ -11751,6 +11436,24 @@ export enum KnownFailoverGroupReplicationRole {
11751
11436
  */
11752
11437
  export type FailoverGroupReplicationRole = string;
11753
11438
 
11439
+ /** Known values of {@link FailoverGroupDatabasesSecondaryType} that the service accepts. */
11440
+ export enum KnownFailoverGroupDatabasesSecondaryType {
11441
+ /** Geo */
11442
+ Geo = "Geo",
11443
+ /** Standby */
11444
+ Standby = "Standby",
11445
+ }
11446
+
11447
+ /**
11448
+ * Defines values for FailoverGroupDatabasesSecondaryType. \
11449
+ * {@link KnownFailoverGroupDatabasesSecondaryType} can be used interchangeably with FailoverGroupDatabasesSecondaryType,
11450
+ * this enum contains the known values that the service supports.
11451
+ * ### Known values supported by the service
11452
+ * **Geo** \
11453
+ * **Standby**
11454
+ */
11455
+ export type FailoverGroupDatabasesSecondaryType = string;
11456
+
11754
11457
  /** Known values of {@link InstancePoolLicenseType} that the service accepts. */
11755
11458
  export enum KnownInstancePoolLicenseType {
11756
11459
  /** LicenseIncluded */
@@ -12171,6 +11874,51 @@ export enum KnownServerNetworkAccessFlag {
12171
11874
  */
12172
11875
  export type ServerNetworkAccessFlag = string;
12173
11876
 
11877
+ /** Known values of {@link ReplicationState} that the service accepts. */
11878
+ export enum KnownReplicationState {
11879
+ /** Pending */
11880
+ Pending = "PENDING",
11881
+ /** Seeding */
11882
+ Seeding = "SEEDING",
11883
+ /** CatchUP */
11884
+ CatchUP = "CATCH_UP",
11885
+ /** Suspended */
11886
+ Suspended = "SUSPENDED",
11887
+ }
11888
+
11889
+ /**
11890
+ * Defines values for ReplicationState. \
11891
+ * {@link KnownReplicationState} can be used interchangeably with ReplicationState,
11892
+ * this enum contains the known values that the service supports.
11893
+ * ### Known values supported by the service
11894
+ * **PENDING** \
11895
+ * **SEEDING** \
11896
+ * **CATCH_UP** \
11897
+ * **SUSPENDED**
11898
+ */
11899
+ export type ReplicationState = string;
11900
+
11901
+ /** Known values of {@link ReplicationLinkType} that the service accepts. */
11902
+ export enum KnownReplicationLinkType {
11903
+ /** GEO */
11904
+ GEO = "GEO",
11905
+ /** Named */
11906
+ Named = "NAMED",
11907
+ /** Standby */
11908
+ Standby = "STANDBY",
11909
+ }
11910
+
11911
+ /**
11912
+ * Defines values for ReplicationLinkType. \
11913
+ * {@link KnownReplicationLinkType} can be used interchangeably with ReplicationLinkType,
11914
+ * this enum contains the known values that the service supports.
11915
+ * ### Known values supported by the service
11916
+ * **GEO** \
11917
+ * **NAMED** \
11918
+ * **STANDBY**
11919
+ */
11920
+ export type ReplicationLinkType = string;
11921
+
12174
11922
  /** Known values of {@link ServiceObjectiveName} that the service accepts. */
12175
11923
  export enum KnownServiceObjectiveName {
12176
11924
  /** System */
@@ -12474,6 +12222,10 @@ export type SensitivityLabelUpdateKind = "set" | "remove";
12474
12222
  export type RecommendedSensitivityLabelUpdateKind = "enable" | "disable";
12475
12223
  /** Defines values for AdvancedThreatProtectionState. */
12476
12224
  export type AdvancedThreatProtectionState = "New" | "Enabled" | "Disabled";
12225
+ /** Defines values for SqlVulnerabilityAssessmentState. */
12226
+ export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled";
12227
+ /** Defines values for CheckNameAvailabilityReason. */
12228
+ export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists";
12477
12229
  /** Defines values for ReplicationRole. */
12478
12230
  export type ReplicationRole =
12479
12231
  | "Primary"
@@ -12481,10 +12233,6 @@ export type ReplicationRole =
12481
12233
  | "NonReadableSecondary"
12482
12234
  | "Source"
12483
12235
  | "Copy";
12484
- /** Defines values for SqlVulnerabilityAssessmentState. */
12485
- export type SqlVulnerabilityAssessmentState = "Enabled" | "Disabled";
12486
- /** Defines values for CheckNameAvailabilityReason. */
12487
- export type CheckNameAvailabilityReason = "Invalid" | "AlreadyExists";
12488
12236
 
12489
12237
  /** Optional parameters. */
12490
12238
  export interface DataMaskingPoliciesCreateOrUpdateOptionalParams
@@ -16121,32 +15869,6 @@ export interface DistributedAvailabilityGroupsUpdateOptionalParams
16121
15869
  export type DistributedAvailabilityGroupsUpdateResponse =
16122
15870
  DistributedAvailabilityGroup;
16123
15871
 
16124
- /** Optional parameters. */
16125
- export interface DistributedAvailabilityGroupsFailoverOptionalParams
16126
- extends coreClient.OperationOptions {
16127
- /** Delay to wait until next poll, in milliseconds. */
16128
- updateIntervalInMs?: number;
16129
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
16130
- resumeFrom?: string;
16131
- }
16132
-
16133
- /** Contains response data for the failover operation. */
16134
- export type DistributedAvailabilityGroupsFailoverResponse =
16135
- DistributedAvailabilityGroup;
16136
-
16137
- /** Optional parameters. */
16138
- export interface DistributedAvailabilityGroupsSetRoleOptionalParams
16139
- extends coreClient.OperationOptions {
16140
- /** Delay to wait until next poll, in milliseconds. */
16141
- updateIntervalInMs?: number;
16142
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
16143
- resumeFrom?: string;
16144
- }
16145
-
16146
- /** Contains response data for the setRole operation. */
16147
- export type DistributedAvailabilityGroupsSetRoleResponse =
16148
- DistributedAvailabilityGroup;
16149
-
16150
15872
  /** Optional parameters. */
16151
15873
  export interface DistributedAvailabilityGroupsListByInstanceNextOptionalParams
16152
15874
  extends coreClient.OperationOptions {}
@@ -16710,76 +16432,6 @@ export interface ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNe
16710
16432
  export type ManagedInstanceAdvancedThreatProtectionSettingsListByInstanceNextResponse =
16711
16433
  ManagedInstanceAdvancedThreatProtectionListResult;
16712
16434
 
16713
- /** Optional parameters. */
16714
- export interface ReplicationLinksListByDatabaseOptionalParams
16715
- extends coreClient.OperationOptions {}
16716
-
16717
- /** Contains response data for the listByDatabase operation. */
16718
- export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult;
16719
-
16720
- /** Optional parameters. */
16721
- export interface ReplicationLinksGetOptionalParams
16722
- extends coreClient.OperationOptions {}
16723
-
16724
- /** Contains response data for the get operation. */
16725
- export type ReplicationLinksGetResponse = ReplicationLink;
16726
-
16727
- /** Optional parameters. */
16728
- export interface ReplicationLinksDeleteOptionalParams
16729
- extends coreClient.OperationOptions {
16730
- /** Delay to wait until next poll, in milliseconds. */
16731
- updateIntervalInMs?: number;
16732
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
16733
- resumeFrom?: string;
16734
- }
16735
-
16736
- /** Optional parameters. */
16737
- export interface ReplicationLinksFailoverOptionalParams
16738
- extends coreClient.OperationOptions {
16739
- /** Delay to wait until next poll, in milliseconds. */
16740
- updateIntervalInMs?: number;
16741
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
16742
- resumeFrom?: string;
16743
- }
16744
-
16745
- /** Contains response data for the failover operation. */
16746
- export type ReplicationLinksFailoverResponse = ReplicationLink;
16747
-
16748
- /** Optional parameters. */
16749
- export interface ReplicationLinksFailoverAllowDataLossOptionalParams
16750
- extends coreClient.OperationOptions {
16751
- /** Delay to wait until next poll, in milliseconds. */
16752
- updateIntervalInMs?: number;
16753
- /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
16754
- resumeFrom?: string;
16755
- }
16756
-
16757
- /** Contains response data for the failoverAllowDataLoss operation. */
16758
- export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink;
16759
-
16760
- /** Optional parameters. */
16761
- export interface ReplicationLinksListByServerOptionalParams
16762
- extends coreClient.OperationOptions {}
16763
-
16764
- /** Contains response data for the listByServer operation. */
16765
- export type ReplicationLinksListByServerResponse = ReplicationLinkListResult;
16766
-
16767
- /** Optional parameters. */
16768
- export interface ReplicationLinksListByDatabaseNextOptionalParams
16769
- extends coreClient.OperationOptions {}
16770
-
16771
- /** Contains response data for the listByDatabaseNext operation. */
16772
- export type ReplicationLinksListByDatabaseNextResponse =
16773
- ReplicationLinkListResult;
16774
-
16775
- /** Optional parameters. */
16776
- export interface ReplicationLinksListByServerNextOptionalParams
16777
- extends coreClient.OperationOptions {}
16778
-
16779
- /** Contains response data for the listByServerNext operation. */
16780
- export type ReplicationLinksListByServerNextResponse =
16781
- ReplicationLinkListResult;
16782
-
16783
16435
  /** Optional parameters. */
16784
16436
  export interface ManagedDatabaseMoveOperationsListByLocationOptionalParams
16785
16437
  extends coreClient.OperationOptions {
@@ -18445,6 +18097,100 @@ export interface ServersListByResourceGroupNextOptionalParams
18445
18097
  /** Contains response data for the listByResourceGroupNext operation. */
18446
18098
  export type ServersListByResourceGroupNextResponse = ServerListResult;
18447
18099
 
18100
+ /** Optional parameters. */
18101
+ export interface ReplicationLinksListByDatabaseOptionalParams
18102
+ extends coreClient.OperationOptions {}
18103
+
18104
+ /** Contains response data for the listByDatabase operation. */
18105
+ export type ReplicationLinksListByDatabaseResponse = ReplicationLinkListResult;
18106
+
18107
+ /** Optional parameters. */
18108
+ export interface ReplicationLinksGetOptionalParams
18109
+ extends coreClient.OperationOptions {}
18110
+
18111
+ /** Contains response data for the get operation. */
18112
+ export type ReplicationLinksGetResponse = ReplicationLink;
18113
+
18114
+ /** Optional parameters. */
18115
+ export interface ReplicationLinksCreateOrUpdateOptionalParams
18116
+ extends coreClient.OperationOptions {
18117
+ /** Delay to wait until next poll, in milliseconds. */
18118
+ updateIntervalInMs?: number;
18119
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
18120
+ resumeFrom?: string;
18121
+ }
18122
+
18123
+ /** Contains response data for the createOrUpdate operation. */
18124
+ export type ReplicationLinksCreateOrUpdateResponse = ReplicationLink;
18125
+
18126
+ /** Optional parameters. */
18127
+ export interface ReplicationLinksDeleteOptionalParams
18128
+ extends coreClient.OperationOptions {
18129
+ /** Delay to wait until next poll, in milliseconds. */
18130
+ updateIntervalInMs?: number;
18131
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
18132
+ resumeFrom?: string;
18133
+ }
18134
+
18135
+ /** Optional parameters. */
18136
+ export interface ReplicationLinksUpdateOptionalParams
18137
+ extends coreClient.OperationOptions {
18138
+ /** Delay to wait until next poll, in milliseconds. */
18139
+ updateIntervalInMs?: number;
18140
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
18141
+ resumeFrom?: string;
18142
+ }
18143
+
18144
+ /** Contains response data for the update operation. */
18145
+ export type ReplicationLinksUpdateResponse = ReplicationLink;
18146
+
18147
+ /** Optional parameters. */
18148
+ export interface ReplicationLinksFailoverOptionalParams
18149
+ extends coreClient.OperationOptions {
18150
+ /** Delay to wait until next poll, in milliseconds. */
18151
+ updateIntervalInMs?: number;
18152
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
18153
+ resumeFrom?: string;
18154
+ }
18155
+
18156
+ /** Contains response data for the failover operation. */
18157
+ export type ReplicationLinksFailoverResponse = ReplicationLink;
18158
+
18159
+ /** Optional parameters. */
18160
+ export interface ReplicationLinksFailoverAllowDataLossOptionalParams
18161
+ extends coreClient.OperationOptions {
18162
+ /** Delay to wait until next poll, in milliseconds. */
18163
+ updateIntervalInMs?: number;
18164
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
18165
+ resumeFrom?: string;
18166
+ }
18167
+
18168
+ /** Contains response data for the failoverAllowDataLoss operation. */
18169
+ export type ReplicationLinksFailoverAllowDataLossResponse = ReplicationLink;
18170
+
18171
+ /** Optional parameters. */
18172
+ export interface ReplicationLinksListByServerOptionalParams
18173
+ extends coreClient.OperationOptions {}
18174
+
18175
+ /** Contains response data for the listByServer operation. */
18176
+ export type ReplicationLinksListByServerResponse = ReplicationLinkListResult;
18177
+
18178
+ /** Optional parameters. */
18179
+ export interface ReplicationLinksListByDatabaseNextOptionalParams
18180
+ extends coreClient.OperationOptions {}
18181
+
18182
+ /** Contains response data for the listByDatabaseNext operation. */
18183
+ export type ReplicationLinksListByDatabaseNextResponse =
18184
+ ReplicationLinkListResult;
18185
+
18186
+ /** Optional parameters. */
18187
+ export interface ReplicationLinksListByServerNextOptionalParams
18188
+ extends coreClient.OperationOptions {}
18189
+
18190
+ /** Contains response data for the listByServerNext operation. */
18191
+ export type ReplicationLinksListByServerNextResponse =
18192
+ ReplicationLinkListResult;
18193
+
18448
18194
  /** Optional parameters. */
18449
18195
  export interface SqlManagementClientOptionalParams
18450
18196
  extends coreClient.ServiceClientOptions {