@@ -42,7 +42,8 @@ public ManagedDatabase()
4242 /// <param name="collation">Collation of the managed database.</param>
4343 /// <param name="status">Status of the database. Possible values
4444 /// include: 'Online', 'Offline', 'Shutdown', 'Creating',
45- /// 'Inaccessible', 'Restoring', 'Updating'</param>
45+ /// 'Inaccessible', 'Restoring', 'Updating', 'Stopping', 'Stopped',
46+ /// 'Starting', 'DbMoving', 'DbCopying'</param>
4647 /// <param name="creationDate">Creation date of the database.</param>
4748 /// <param name="earliestRestorePoint">Earliest restore point in time
4849 /// for point in time restore.</param>
@@ -75,9 +76,15 @@ public ManagedDatabase()
7576 /// <param name="sourceDatabaseId">The resource identifier of the
7677 /// source database associated with create operation of this
7778 /// database.</param>
79+ /// <param name="crossSubscriptionSourceDatabaseId">The resource
80+ /// identifier of the cross-subscription source database associated
81+ /// with create operation of this database.</param>
7882 /// <param name="restorableDroppedDatabaseId">The restorable dropped
7983 /// database resource id to restore when creating this
8084 /// database.</param>
85+ /// <param name="crossSubscriptionRestorableDroppedDatabaseId">The
86+ /// restorable cross-subscription dropped database resource id to
87+ /// restore when creating this database.</param>
8188 /// <param name="storageContainerIdentity">Conditional. If createMode
8289 /// is RestoreExternalBackup, this value is used. Specifies the
8390 /// identity used for storage container authentication. Can be
@@ -99,7 +106,9 @@ public ManagedDatabase()
99106 /// of this managed database.</param>
100107 /// <param name="lastBackupName">Last backup file name for restore of
101108 /// this managed database.</param>
102- public ManagedDatabase ( string location , string id = default ( string ) , string name = default ( string ) , string type = default ( string ) , IDictionary < string , string > tags = default ( IDictionary < string , string > ) , string collation = default ( string ) , string status = default ( string ) , System . DateTime ? creationDate = default ( System . DateTime ? ) , System . DateTime ? earliestRestorePoint = default ( System . DateTime ? ) , System . DateTime ? restorePointInTime = default ( System . DateTime ? ) , string defaultSecondaryLocation = default ( string ) , string catalogCollation = default ( string ) , string createMode = default ( string ) , string storageContainerUri = default ( string ) , string sourceDatabaseId = default ( string ) , string restorableDroppedDatabaseId = default ( string ) , string storageContainerIdentity = default ( string ) , string storageContainerSasToken = default ( string ) , string failoverGroupId = default ( string ) , string recoverableDatabaseId = default ( string ) , string longTermRetentionBackupResourceId = default ( string ) , bool ? autoCompleteRestore = default ( bool ? ) , string lastBackupName = default ( string ) )
109+ /// <param name="crossSubscriptionTargetManagedInstanceId">Target
110+ /// managed instance id used in cross-subscription restore.</param>
111+ public ManagedDatabase ( string location , string id = default ( string ) , string name = default ( string ) , string type = default ( string ) , IDictionary < string , string > tags = default ( IDictionary < string , string > ) , string collation = default ( string ) , string status = default ( string ) , System . DateTime ? creationDate = default ( System . DateTime ? ) , System . DateTime ? earliestRestorePoint = default ( System . DateTime ? ) , System . DateTime ? restorePointInTime = default ( System . DateTime ? ) , string defaultSecondaryLocation = default ( string ) , string catalogCollation = default ( string ) , string createMode = default ( string ) , string storageContainerUri = default ( string ) , string sourceDatabaseId = default ( string ) , string crossSubscriptionSourceDatabaseId = default ( string ) , string restorableDroppedDatabaseId = default ( string ) , string crossSubscriptionRestorableDroppedDatabaseId = default ( string ) , string storageContainerIdentity = default ( string ) , string storageContainerSasToken = default ( string ) , string failoverGroupId = default ( string ) , string recoverableDatabaseId = default ( string ) , string longTermRetentionBackupResourceId = default ( string ) , bool ? autoCompleteRestore = default ( bool ? ) , string lastBackupName = default ( string ) , string crossSubscriptionTargetManagedInstanceId = default ( string ) )
103112 : base ( location , id , name , type , tags )
104113 {
105114 Collation = collation ;
@@ -112,14 +121,17 @@ public ManagedDatabase()
112121 CreateMode = createMode ;
113122 StorageContainerUri = storageContainerUri ;
114123 SourceDatabaseId = sourceDatabaseId ;
124+ CrossSubscriptionSourceDatabaseId = crossSubscriptionSourceDatabaseId ;
115125 RestorableDroppedDatabaseId = restorableDroppedDatabaseId ;
126+ CrossSubscriptionRestorableDroppedDatabaseId = crossSubscriptionRestorableDroppedDatabaseId ;
116127 StorageContainerIdentity = storageContainerIdentity ;
117128 StorageContainerSasToken = storageContainerSasToken ;
118129 FailoverGroupId = failoverGroupId ;
119130 RecoverableDatabaseId = recoverableDatabaseId ;
120131 LongTermRetentionBackupResourceId = longTermRetentionBackupResourceId ;
121132 AutoCompleteRestore = autoCompleteRestore ;
122133 LastBackupName = lastBackupName ;
134+ CrossSubscriptionTargetManagedInstanceId = crossSubscriptionTargetManagedInstanceId ;
123135 CustomInit ( ) ;
124136 }
125137
@@ -137,7 +149,8 @@ public ManagedDatabase()
137149 /// <summary>
138150 /// Gets status of the database. Possible values include: 'Online',
139151 /// 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Restoring',
140- /// 'Updating'
152+ /// 'Updating', 'Stopping', 'Stopped', 'Starting', 'DbMoving',
153+ /// 'DbCopying'
141154 /// </summary>
142155 [ JsonProperty ( PropertyName = "properties.status" ) ]
143156 public string Status { get ; private set ; }
@@ -209,13 +222,27 @@ public ManagedDatabase()
209222 [ JsonProperty ( PropertyName = "properties.sourceDatabaseId" ) ]
210223 public string SourceDatabaseId { get ; set ; }
211224
225+ /// <summary>
226+ /// Gets or sets the resource identifier of the cross-subscription
227+ /// source database associated with create operation of this database.
228+ /// </summary>
229+ [ JsonProperty ( PropertyName = "properties.crossSubscriptionSourceDatabaseId" ) ]
230+ public string CrossSubscriptionSourceDatabaseId { get ; set ; }
231+
212232 /// <summary>
213233 /// Gets or sets the restorable dropped database resource id to restore
214234 /// when creating this database.
215235 /// </summary>
216236 [ JsonProperty ( PropertyName = "properties.restorableDroppedDatabaseId" ) ]
217237 public string RestorableDroppedDatabaseId { get ; set ; }
218238
239+ /// <summary>
240+ /// Gets or sets the restorable cross-subscription dropped database
241+ /// resource id to restore when creating this database.
242+ /// </summary>
243+ [ JsonProperty ( PropertyName = "properties.crossSubscriptionRestorableDroppedDatabaseId" ) ]
244+ public string CrossSubscriptionRestorableDroppedDatabaseId { get ; set ; }
245+
219246 /// <summary>
220247 /// Gets or sets conditional. If createMode is RestoreExternalBackup,
221248 /// this value is used. Specifies the identity used for storage
@@ -269,6 +296,13 @@ public ManagedDatabase()
269296 [ JsonProperty ( PropertyName = "properties.lastBackupName" ) ]
270297 public string LastBackupName { get ; set ; }
271298
299+ /// <summary>
300+ /// Gets or sets target managed instance id used in cross-subscription
301+ /// restore.
302+ /// </summary>
303+ [ JsonProperty ( PropertyName = "properties.crossSubscriptionTargetManagedInstanceId" ) ]
304+ public string CrossSubscriptionTargetManagedInstanceId { get ; set ; }
305+
272306 /// <summary>
273307 /// Validate the object.
274308 /// </summary>
0 commit comments