Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
650c595
Add test for AzureRmSqlServerActiveDirectoryAdministratorTest
jaczhan May 4, 2017
e69d515
Add test for AzureRmSqlServerActiveDirectoryAdministratorTest
jaczhan May 4, 2017
4e46ebf
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 10, 2017
a235c76
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 10, 2017
e8393b6
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 10, 2017
e1a867b
Merge branch 'vs17Dev' into vs17Dev
jaczhan May 10, 2017
cc0bf67
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 10, 2017
286b0f3
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 10, 2017
1da9ef9
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 10, 2017
1e46a01
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 11, 2017
c589c8e
Update Sql.Tests.csproj
jaczhan May 11, 2017
4549c0f
Update Sql.Tests.csproj
jaczhan May 11, 2017
761824b
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 11, 2017
4a79d09
Update Sql.Tests.csproj
jaczhan May 11, 2017
8fab667
Update Sql.Tests.csproj
jaczhan May 11, 2017
35f0428
Merge branch 'vs17Dev' into vs17Dev
shahabhijeet May 11, 2017
1eeb26b
Merge branch 'vs17Dev' into vs17Dev
shahabhijeet May 11, 2017
8f462a0
Merge branch 'vs17Dev' into vs17Dev
shahabhijeet May 11, 2017
d6b18ef
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 13, 2017
51694a8
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 13, 2017
2c5b379
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 22, 2017
ddd5cde
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 22, 2017
3514dba
Merge branch 'vs17Dev' of https://github.com/jaczhan/azure-sdk-for-ne…
jaczhan May 23, 2017
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
// 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 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

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

/// <summary>
/// ServerAzureADAdministratorsOperations operations.
/// </summary>
public partial interface IServerAzureADAdministratorsOperations
{
/// <summary>
/// Creates a new Server Active Directory Administrator or updates an
/// existing server Active Directory Administrator.
/// </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='serverName'>
/// The name of the server.
/// </param>
/// <param name='parameters'>
/// The required parameters for creating or updating an Active
/// Directory Administrator.
/// </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<ServerAzureADAdministrator>> CreateOrUpdateAzureADAdministratorWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerAzureADAdministrator parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes an existing server Active Directory Administrator.
/// </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='serverName'>
/// The name of the server.
/// </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.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Returns an server Administrator.
/// </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='serverName'>
/// The name of the server.
/// </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<ServerAzureADAdministrator>> GetWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Returns a list of server Administrators.
/// </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='serverName'>
/// The name of the server.
/// </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<IEnumerable<ServerAzureADAdministrator>>> ListWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates a new Server Active Directory Administrator or updates an
/// existing server Active Directory Administrator.
/// </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='serverName'>
/// The name of the server.
/// </param>
/// <param name='parameters'>
/// The required parameters for creating or updating an Active
/// Directory Administrator.
/// </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<ServerAzureADAdministrator>> BeginCreateOrUpdateAzureADAdministratorWithHttpMessagesAsync(string resourceGroupName, string serverName, ServerAzureADAdministrator parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes an existing server Active Directory Administrator.
/// </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='serverName'>
/// The name of the server.
/// </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.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string serverName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ public partial interface ISqlManagementClient : System.IDisposable
/// </summary>
IRecommendedElasticPoolsOperations RecommendedElasticPools { get; }

/// <summary>
/// Gets the IServerAzureADAdministratorsOperations.
/// </summary>
IServerAzureADAdministratorsOperations ServerAzureADAdministrators { get; }

/// <summary>
/// Gets the IFailoverGroupsOperations.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
// 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 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

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

/// <summary>
/// An server Active Directory Administrator.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class ServerAzureADAdministrator : SqlSubResource
{
/// <summary>
/// Initializes a new instance of the ServerAzureADAdministrator class.
/// </summary>
public ServerAzureADAdministrator()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ServerAzureADAdministrator class.
/// </summary>
/// <param name="login">The server administrator login value.</param>
/// <param name="sid">The server administrator Sid (Secure ID).</param>
/// <param name="tenantId">The server Active Directory Administrator
/// tenant id.</param>
/// <param name="name">Resource name</param>
/// <param name="id">Resource Id</param>
public ServerAzureADAdministrator(string login, System.Guid sid, System.Guid tenantId, string name = default(string), string id = default(string))
: base(name, id)
{
Login = login;
Sid = sid;
TenantId = tenantId;
CustomInit();
}
/// <summary>
/// Static constructor for ServerAzureADAdministrator class.
/// </summary>
static ServerAzureADAdministrator()
{
AdministratorType = "ActiveDirectory";
}

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

/// <summary>
/// Gets or sets the server administrator login value.
/// </summary>
[JsonProperty(PropertyName = "properties.login")]
public string Login { get; set; }

/// <summary>
/// Gets or sets the server administrator Sid (Secure ID).
/// </summary>
[JsonProperty(PropertyName = "properties.sid")]
public System.Guid Sid { get; set; }

/// <summary>
/// Gets or sets the server Active Directory Administrator tenant id.
/// </summary>
[JsonProperty(PropertyName = "properties.tenantId")]
public System.Guid TenantId { get; set; }

/// <summary>
/// The type of administrator.
/// </summary>
[JsonProperty(PropertyName = "properties.administratorType")]
public static string AdministratorType { get; private set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Login == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Login");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// 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 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.

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

/// <summary>
/// Subresource properties
/// </summary>
public partial class SqlSubResource
{
/// <summary>
/// Initializes a new instance of the SqlSubResource class.
/// </summary>
public SqlSubResource()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the SqlSubResource class.
/// </summary>
/// <param name="name">Resource name</param>
/// <param name="id">Resource Id</param>
public SqlSubResource(string name = default(string), string id = default(string))
{
Name = name;
Id = id;
CustomInit();
}

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

/// <summary>
/// Gets resource name
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; private set; }

/// <summary>
/// Gets resource Id
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; private set; }

}
}
Loading