Skip to content

Commit 4a14bfd

Browse files
committed
Added missing Generated commands and updated the param to EnableSoftDelete
1 parent c819b27 commit 4a14bfd

17 files changed

+408
-123
lines changed

src/Sql/Sql.Management.Sdk/Generated/IServersOperations.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public partial interface IServersOperations
144144
/// <exception cref="Microsoft.Rest.SerializationException">
145145
/// Thrown when unable to deserialize the response
146146
/// </exception>
147-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Server>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, Server parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
147+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Server,ServersCreateOrUpdateHeaders>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, Server parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
148148

149149
/// <summary>
150150
/// Deletes a server.
@@ -168,7 +168,7 @@ public partial interface IServersOperations
168168
/// <exception cref="Microsoft.Rest.Azure.CloudException">
169169
/// Thrown when the operation returned an invalid status code
170170
/// </exception>
171-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
171+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<ServersDeleteHeaders>> DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
172172

173173
/// <summary>
174174
/// Updates a server.
@@ -198,7 +198,7 @@ public partial interface IServersOperations
198198
/// <exception cref="Microsoft.Rest.SerializationException">
199199
/// Thrown when unable to deserialize the response
200200
/// </exception>
201-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Server>> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerUpdate parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
201+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Server,ServersUpdateHeaders>> UpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerUpdate parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
202202

203203
/// <summary>
204204
/// Imports a bacpac into a new database.
@@ -228,7 +228,7 @@ public partial interface IServersOperations
228228
/// <exception cref="Microsoft.Rest.SerializationException">
229229
/// Thrown when unable to deserialize the response
230230
/// </exception>
231-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ImportExportOperationResult>> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
231+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ImportExportOperationResult,ServersImportDatabaseHeaders>> ImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
232232

233233
/// <summary>
234234
/// Refresh external governance enablement status.
@@ -255,7 +255,7 @@ public partial interface IServersOperations
255255
/// <exception cref="Microsoft.Rest.SerializationException">
256256
/// Thrown when unable to deserialize the response
257257
/// </exception>
258-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<RefreshExternalGovernanceStatusOperationResult>> RefreshStatusWithHttpMessagesAsync(string resourceGroupName, string serverName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
258+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<RefreshExternalGovernanceStatusOperationResult,ServersRefreshStatusHeaders>> RefreshStatusWithHttpMessagesAsync(string resourceGroupName, string serverName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
259259

260260
/// <summary>
261261
/// Creates or updates a server.
@@ -285,7 +285,7 @@ public partial interface IServersOperations
285285
/// <exception cref="Microsoft.Rest.SerializationException">
286286
/// Thrown when unable to deserialize the response
287287
/// </exception>
288-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Server>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, Server parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
288+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Server,ServersCreateOrUpdateHeaders>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, Server parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
289289

290290
/// <summary>
291291
/// Deletes a server.
@@ -309,7 +309,7 @@ public partial interface IServersOperations
309309
/// <exception cref="Microsoft.Rest.Azure.CloudException">
310310
/// Thrown when the operation returned an invalid status code
311311
/// </exception>
312-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
312+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationHeaderResponse<ServersDeleteHeaders>> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
313313

314314
/// <summary>
315315
/// Updates a server.
@@ -339,7 +339,7 @@ public partial interface IServersOperations
339339
/// <exception cref="Microsoft.Rest.SerializationException">
340340
/// Thrown when unable to deserialize the response
341341
/// </exception>
342-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Server>> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerUpdate parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
342+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Server,ServersUpdateHeaders>> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerUpdate parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
343343

344344
/// <summary>
345345
/// Imports a bacpac into a new database.
@@ -369,7 +369,7 @@ public partial interface IServersOperations
369369
/// <exception cref="Microsoft.Rest.SerializationException">
370370
/// Thrown when unable to deserialize the response
371371
/// </exception>
372-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ImportExportOperationResult>> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
372+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<ImportExportOperationResult,ServersImportDatabaseHeaders>> BeginImportDatabaseWithHttpMessagesAsync(string resourceGroupName, string serverName, ImportNewDatabaseDefinition parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
373373

374374
/// <summary>
375375
/// Refresh external governance enablement status.
@@ -396,7 +396,7 @@ public partial interface IServersOperations
396396
/// <exception cref="Microsoft.Rest.SerializationException">
397397
/// Thrown when unable to deserialize the response
398398
/// </exception>
399-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<RefreshExternalGovernanceStatusOperationResult>> BeginRefreshStatusWithHttpMessagesAsync(string resourceGroupName, string serverName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
399+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<RefreshExternalGovernanceStatusOperationResult,ServersRefreshStatusHeaders>> BeginRefreshStatusWithHttpMessagesAsync(string resourceGroupName, string serverName, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
400400

401401
/// <summary>
402402
/// Gets a list of all servers in the subscription.

src/Sql/Sql.Management.Sdk/Generated/Models/Server.cs

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ public Server()
8585
/// <param name="keyId">A CMK URI of the key to use for encryption.
8686
/// </param>
8787

88-
/// <param name="administrators">The Azure Active Directory administrator of the server. This can only be
89-
/// used at server create time. If used for server update, it will be ignored
90-
/// or it will result in an error. For updates individual APIs will need to be
91-
/// used.
88+
/// <param name="administrators">The Azure Active Directory administrator can be utilized during server
89+
/// creation and for server updates, except for the azureADOnlyAuthentication
90+
/// property. To update the azureADOnlyAuthentication property, individual API
91+
/// must be used.
9292
/// </param>
9393

9494
/// <param name="restrictOutboundNetworkAccess">Whether or not to restrict outbound network access for this server. Value
@@ -101,7 +101,14 @@ public Server()
101101

102102
/// <param name="externalGovernanceStatus">Status of external governance.
103103
/// Possible values include: &#39;Enabled&#39;, &#39;Disabled&#39;</param>
104-
public Server(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), System.Collections.Generic.IList<ServerPrivateEndpointConnection> privateEndpointConnections = default(System.Collections.Generic.IList<ServerPrivateEndpointConnection>), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), string restrictOutboundNetworkAccess = default(string), string isIPv6Enabled = default(string), string externalGovernanceStatus = default(string))
104+
105+
/// <param name="retentionDays">Number of days this server will stay soft-deleted.
106+
/// </param>
107+
108+
/// <param name="createMode">Create mode for server, only valid values for this are Normal and Restore.
109+
/// Possible values include: &#39;Normal&#39;, &#39;ServerMigrationV1&#39;,
110+
/// &#39;DatabaseMigrationV1&#39;, &#39;ServerMigration&#39;, &#39;Standby&#39;, &#39;Restore&#39;</param>
111+
public Server(string location, string id = default(string), string name = default(string), string type = default(string), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, string>), ResourceIdentity identity = default(ResourceIdentity), string kind = default(string), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), System.Collections.Generic.IList<ServerPrivateEndpointConnection> privateEndpointConnections = default(System.Collections.Generic.IList<ServerPrivateEndpointConnection>), string minimalTlsVersion = default(string), string publicNetworkAccess = default(string), string workspaceFeature = default(string), string primaryUserAssignedIdentityId = default(string), System.Guid? federatedClientId = default(System.Guid?), string keyId = default(string), ServerExternalAdministrator administrators = default(ServerExternalAdministrator), string restrictOutboundNetworkAccess = default(string), string isIPv6Enabled = default(string), string externalGovernanceStatus = default(string), int? retentionDays = default(int?), string createMode = default(string))
105112

106113
: base(location, id, name, type, tags)
107114
{
@@ -123,6 +130,8 @@ public Server()
123130
this.RestrictOutboundNetworkAccess = restrictOutboundNetworkAccess;
124131
this.IsIPv6Enabled = isIPv6Enabled;
125132
this.ExternalGovernanceStatus = externalGovernanceStatus;
133+
this.RetentionDays = retentionDays;
134+
this.CreateMode = createMode;
126135
CustomInit();
127136
}
128137

@@ -225,10 +234,10 @@ public Server()
225234
public string KeyId {get; set; }
226235

227236
/// <summary>
228-
/// Gets or sets the Azure Active Directory administrator of the server. This
229-
/// can only be used at server create time. If used for server update, it will
230-
/// be ignored or it will result in an error. For updates individual APIs will
231-
/// need to be used.
237+
/// Gets or sets the Azure Active Directory administrator can be utilized
238+
/// during server creation and for server updates, except for the
239+
/// azureADOnlyAuthentication property. To update the azureADOnlyAuthentication
240+
/// property, individual API must be used.
232241
/// </summary>
233242
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.administrators")]
234243
public ServerExternalAdministrator Administrators {get; set; }
@@ -253,6 +262,19 @@ public Server()
253262
/// </summary>
254263
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.externalGovernanceStatus")]
255264
public string ExternalGovernanceStatus {get; private set; }
265+
266+
/// <summary>
267+
/// Gets or sets number of days this server will stay soft-deleted.
268+
/// </summary>
269+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.retentionDays")]
270+
public int? RetentionDays {get; set; }
271+
272+
/// <summary>
273+
/// Gets or sets create mode for server, only valid values for this are Normal
274+
/// and Restore. Possible values include: &#39;Normal&#39;, &#39;ServerMigrationV1&#39;, &#39;DatabaseMigrationV1&#39;, &#39;ServerMigration&#39;, &#39;Standby&#39;, &#39;Restore&#39;
275+
/// </summary>
276+
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.createMode")]
277+
public string CreateMode {get; set; }
256278
/// <summary>
257279
/// Validate the object.
258280
/// </summary>
@@ -288,6 +310,7 @@ public override void Validate()
288310

289311

290312

313+
291314
}
292315
}
293316
}

0 commit comments

Comments
 (0)