Skip to content

Update Logical Servers swagger file for Azure PowerShell #28213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/Sql/Sql.Management.Sdk/Generated/IServersOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
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));
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));

/// <summary>
/// Deletes a server.
Expand All @@ -168,7 +168,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
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));
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));

/// <summary>
/// Updates a server.
Expand Down Expand Up @@ -198,7 +198,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
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));
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));

/// <summary>
/// Imports a bacpac into a new database.
Expand Down Expand Up @@ -228,7 +228,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
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));
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));

/// <summary>
/// Refresh external governance enablement status.
Expand All @@ -255,7 +255,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
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));
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));

/// <summary>
/// Creates or updates a server.
Expand Down Expand Up @@ -285,7 +285,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
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));
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));

/// <summary>
/// Deletes a server.
Expand All @@ -309,7 +309,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
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));
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));

/// <summary>
/// Updates a server.
Expand Down Expand Up @@ -339,7 +339,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
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));
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));

/// <summary>
/// Imports a bacpac into a new database.
Expand Down Expand Up @@ -369,7 +369,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
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));
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));

/// <summary>
/// Refresh external governance enablement status.
Expand All @@ -396,7 +396,7 @@ public partial interface IServersOperations
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
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));
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));

/// <summary>
/// Gets a list of all servers in the subscription.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public ExportDatabaseDefinition()
/// </summary>

/// <param name="storageKeyType">Storage key type.
/// Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;</param>
/// Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;,
/// &#39;ManagedIdentity&#39;</param>

/// <param name="storageKey">Storage key.
/// </param>
Expand Down Expand Up @@ -64,7 +65,7 @@ public ExportDatabaseDefinition()


/// <summary>
/// Gets or sets storage key type. Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;
/// Gets or sets storage key type. Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;, &#39;ManagedIdentity&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "storageKeyType")]
public string StorageKeyType {get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ public ImportExistingDatabaseDefinition()
/// </summary>

/// <param name="storageKeyType">Storage key type.
/// Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;</param>
/// Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;,
/// &#39;ManagedIdentity&#39;</param>

/// <param name="storageKey">Storage key.
/// </param>
Expand Down Expand Up @@ -65,7 +66,7 @@ public ImportExistingDatabaseDefinition()


/// <summary>
/// Gets or sets storage key type. Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;
/// Gets or sets storage key type. Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;, &#39;ManagedIdentity&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "storageKeyType")]
public string StorageKeyType {get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,32 @@ public ImportNewDatabaseDefinition()
/// <param name="maxSizeBytes">Max size in bytes for the import database.
/// </param>

/// <param name="storageKeyType">Storage key type.
/// Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;</param>
/// <param name="storageKeyType">Storage key type: StorageAccessKey, SharedAccessKey, or ManagedIdentity.
/// Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;,
/// &#39;ManagedIdentity&#39;</param>

/// <param name="storageKey">Storage key.
/// <param name="storageKey">Storage key for the storage account. If StorageKeyType is ManagedIdentity,
/// this field should specify the Managed Identity&#39;s resource ID.
/// </param>

/// <param name="storageUri">Storage Uri.
/// </param>

/// <param name="administratorLogin">Administrator login name.
/// <param name="administratorLogin">Administrator login name. If AuthenticationType is ManagedIdentity, this
/// field should specify the Managed Identity&#39;s resource ID.
/// </param>

/// <param name="administratorLoginPassword">Administrator login password.
/// <param name="administratorLoginPassword">Administrator login password. If AuthenticationType is ManagedIdentity,
/// this field should not be specified.
/// </param>

/// <param name="authenticationType">Authentication type.
/// <param name="authenticationType">Type of credentials provided for access to the target SQL server: SQL,
/// ADPassword or ManagedIdentity.
/// </param>

/// <param name="networkIsolation">Optional resource information to enable network isolation for request.
/// </param>
public ImportNewDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string administratorLoginPassword, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string authenticationType = default(string), NetworkIsolationSettings networkIsolation = default(NetworkIsolationSettings))
public ImportNewDatabaseDefinition(string storageKeyType, string storageKey, string storageUri, string administratorLogin, string databaseName = default(string), string edition = default(string), string serviceObjectiveName = default(string), string maxSizeBytes = default(string), string administratorLoginPassword = default(string), string authenticationType = default(string), NetworkIsolationSettingsAutoGenerated networkIsolation = default(NetworkIsolationSettingsAutoGenerated))

{
this.DatabaseName = databaseName;
Expand Down Expand Up @@ -105,13 +110,16 @@ public ImportNewDatabaseDefinition()
public string MaxSizeBytes {get; set; }

/// <summary>
/// Gets or sets storage key type. Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;
/// Gets or sets storage key type: StorageAccessKey, SharedAccessKey, or
/// ManagedIdentity. Possible values include: &#39;SharedAccessKey&#39;, &#39;StorageAccessKey&#39;, &#39;ManagedIdentity&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "storageKeyType")]
public string StorageKeyType {get; set; }

/// <summary>
/// Gets or sets storage key.
/// Gets or sets storage key for the storage account. If StorageKeyType is
/// ManagedIdentity, this field should specify the Managed Identity&#39;s resource
/// ID.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "storageKey")]
public string StorageKey {get; set; }
Expand All @@ -123,19 +131,23 @@ public ImportNewDatabaseDefinition()
public string StorageUri {get; set; }

/// <summary>
/// Gets or sets administrator login name.
/// Gets or sets administrator login name. If AuthenticationType is
/// ManagedIdentity, this field should specify the Managed Identity&#39;s resource
/// ID.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "administratorLogin")]
public string AdministratorLogin {get; set; }

/// <summary>
/// Gets or sets administrator login password.
/// Gets or sets administrator login password. If AuthenticationType is
/// ManagedIdentity, this field should not be specified.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "administratorLoginPassword")]
public string AdministratorLoginPassword {get; set; }

/// <summary>
/// Gets or sets authentication type.
/// Gets or sets type of credentials provided for access to the target SQL
/// server: SQL, ADPassword or ManagedIdentity.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "authenticationType")]
public string AuthenticationType {get; set; }
Expand All @@ -145,7 +157,7 @@ public ImportNewDatabaseDefinition()
/// request.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "networkIsolation")]
public NetworkIsolationSettings NetworkIsolation {get; set; }
public NetworkIsolationSettingsAutoGenerated NetworkIsolation {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
Expand All @@ -170,10 +182,6 @@ public virtual void Validate()
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "AdministratorLogin");
}
if (this.AdministratorLoginPassword == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "AdministratorLoginPassword");
}



Expand Down
22 changes: 22 additions & 0 deletions src/Sql/Sql.Management.Sdk/Generated/Models/MinimalTlsVersion.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Microsoft.Azure.Management.Sql.Models
{

/// <summary>
/// Defines values for MinimalTlsVersion.
/// </summary>


public static class MinimalTlsVersion
{
public const string None = "None";
public const string One0 = "1.0";
public const string One1 = "1.1";
public const string One2 = "1.2";
public const string One3 = "1.3";
}
}
Loading
Loading