Skip to content
Merged
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
163 changes: 163 additions & 0 deletions src/Sql/Sql.Sdk/Generated/IServerConfigurationOptionsOperations.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Sql
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// ServerConfigurationOptionsOperations operations.
/// </summary>
public partial interface IServerConfigurationOptionsOperations
{
/// <summary>
/// Gets a list of managed instance server configuration options.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
/// </param>
/// <param name='managedInstanceName'>
/// The name of the managed instance.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ServerConfigurationOption>>> ListByManagedInstanceWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets managed instance server configuration option.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
/// </param>
/// <param name='managedInstanceName'>
/// The name of the managed instance.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ServerConfigurationOption>> GetWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates managed instance server configuration option.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
/// </param>
/// <param name='managedInstanceName'>
/// The name of the managed instance.
/// </param>
/// <param name='parameters'>
/// Server configuration option parameters.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ServerConfigurationOption>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ServerConfigurationOption parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Updates managed instance server configuration option.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group that contains the resource. You can
/// obtain this value from the Azure Resource Manager API or the
/// portal.
/// </param>
/// <param name='managedInstanceName'>
/// The name of the managed instance.
/// </param>
/// <param name='parameters'>
/// Server configuration option parameters.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<ServerConfigurationOption>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string managedInstanceName, ServerConfigurationOption parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Gets a list of managed instance server configuration options.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IPage<ServerConfigurationOption>>> ListByManagedInstanceNextWithHttpMessagesAsync(string nextPageLink, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
5 changes: 5 additions & 0 deletions src/Sql/Sql.Sdk/Generated/ISqlManagementClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -503,5 +503,10 @@ public partial interface ISqlManagementClient : System.IDisposable
/// </summary>
IServersOperations Servers { get; }

/// <summary>
/// Gets the IServerConfigurationOptionsOperations.
/// </summary>
IServerConfigurationOptionsOperations ServerConfigurationOptions { get; }

}
}
80 changes: 80 additions & 0 deletions src/Sql/Sql.Sdk/Generated/Models/ServerConfigurationOption.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Sql.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// A server configuration option
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class ServerConfigurationOption : ProxyResource
{
/// <summary>
/// Initializes a new instance of the ServerConfigurationOption class.
/// </summary>
public ServerConfigurationOption()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ServerConfigurationOption class.
/// </summary>
/// <param name="serverConfigurationOptionValue">Value of the server
/// configuration option.</param>
/// <param name="id">Resource ID.</param>
/// <param name="name">Resource name.</param>
/// <param name="type">Resource type.</param>
/// <param name="provisioningState">Provisioning state of server
/// configuration option. Possible values include: 'Created',
/// 'InProgress', 'Succeeded', 'Failed', 'Canceled'</param>
public ServerConfigurationOption(int serverConfigurationOptionValue, string id = default(string), string name = default(string), string type = default(string), string provisioningState = default(string))
: base(id, name, type)
{
ServerConfigurationOptionValue = serverConfigurationOptionValue;
ProvisioningState = provisioningState;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets value of the server configuration option.
/// </summary>
[JsonProperty(PropertyName = "properties.serverConfigurationOptionValue")]
public int ServerConfigurationOptionValue { get; set; }

/// <summary>
/// Gets provisioning state of server configuration option. Possible
/// values include: 'Created', 'InProgress', 'Succeeded', 'Failed',
/// 'Canceled'
/// </summary>
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
}
}
}
1 change: 1 addition & 0 deletions src/Sql/Sql.Sdk/Generated/SdkInfo_SqlManagementClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_SqlManagementCl
new Tuple<string, string, string>("Sql", "ServerAzureADAdministrators", "2020-11-01-preview"),
new Tuple<string, string, string>("Sql", "ServerAzureADOnlyAuthentications", "2020-11-01-preview"),
new Tuple<string, string, string>("Sql", "ServerBlobAuditingPolicies", "2021-11-01-preview"),
new Tuple<string, string, string>("Sql", "ServerConfigurationOptions", "2022-08-01-preview"),
new Tuple<string, string, string>("Sql", "ServerDevOpsAuditSettings", "2020-11-01-preview"),
new Tuple<string, string, string>("Sql", "ServerDnsAliases", "2020-11-01-preview"),
new Tuple<string, string, string>("Sql", "ServerKeys", "2020-11-01-preview"),
Expand Down
Loading