Skip to content
Draft
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// 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.DataSyncV2
{
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;

/// <summary>
/// The Azure SQL Database management API provides a RESTful set of web APIs
/// that interact with Azure SQL Database services to manage your databases.
/// The API enables users to create, retrieve, update, and delete databases,
/// servers, and other entities.
/// </summary>
public partial interface ISqlManagementClient : System.IDisposable
{
/// <summary>
/// The base URI of the service.
/// </summary>
System.Uri BaseUri { get; set; }

/// <summary>
/// Gets or sets json serialization settings.
/// </summary>
Newtonsoft.Json.JsonSerializerSettings SerializationSettings { get; }

/// <summary>
/// Gets or sets json deserialization settings.
/// </summary>
Newtonsoft.Json.JsonSerializerSettings DeserializationSettings { get; }

/// <summary>
/// Credentials needed for the client to connect to Azure.
/// </summary>
Microsoft.Rest.ServiceClientCredentials Credentials { get;}


/// <summary>
/// The API version to use for this operation.
/// </summary>
string ApiVersion { get;}


/// <summary>
/// The subscription ID that identifies an Azure subscription.
/// </summary>
string SubscriptionId { get; set;}


/// <summary>
/// The preferred language for the response.
/// </summary>
string AcceptLanguage { get; set;}


/// <summary>
/// The retry timeout in seconds for Long Running Operations. Default
/// /// value is 30.
/// </summary>
int? LongRunningOperationRetryTimeout { get; set;}


/// <summary>
/// Whether a unique x-ms-client-request-id should be generated. When
/// /// set to true a unique x-ms-client-request-id value is generated and
/// /// included in each request. Default is true.
/// </summary>
bool? GenerateClientRequestId { get; set;}


/// <summary>
/// Gets the ISyncGroupsOperations
/// </summary>
ISyncGroupsOperations SyncGroups { get; }

/// <summary>
/// Gets the ISyncMembersOperations
/// </summary>
ISyncMembersOperations SyncMembers { get; }

}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// 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.DataSyncV2.Models
{
using System.Linq;

/// <summary>
/// Azure Active Directory identity configuration for a resource.
/// </summary>
public partial class DataSyncParticipantIdentity
{
/// <summary>
/// Initializes a new instance of the DataSyncParticipantIdentity class.
/// </summary>
public DataSyncParticipantIdentity()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DataSyncParticipantIdentity class.
/// </summary>

/// <param name="type">The Datasync identity type
/// Possible values include: &#39;None&#39;, &#39;SystemAssigned&#39;, &#39;UserAssigned&#39;,
/// &#39;SystemAssignedUserAssigned&#39;</param>

/// <param name="tenantId">The DataSync participant identity tenant id
/// </param>

/// <param name="userAssignedIdentities">The resource ids of the user assigned identities to use
/// </param>
public DataSyncParticipantIdentity(string type, System.Guid? tenantId = default(System.Guid?), System.Collections.Generic.IDictionary<string, DataSyncParticipantUserAssignedIdentity> userAssignedIdentities = default(System.Collections.Generic.IDictionary<string, DataSyncParticipantUserAssignedIdentity>))

{
this.Type = type;
this.TenantId = tenantId;
this.UserAssignedIdentities = userAssignedIdentities;
CustomInit();
}

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


/// <summary>
/// Gets or sets the Datasync identity type Possible values include: &#39;None&#39;, &#39;SystemAssigned&#39;, &#39;UserAssigned&#39;, &#39;SystemAssignedUserAssigned&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "type")]
public string Type {get; set; }

/// <summary>
/// Gets or sets the DataSync participant identity tenant id
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "tenantId")]
public System.Guid? TenantId {get; set; }

/// <summary>
/// Gets or sets the resource ids of the user assigned identities to use
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "userAssignedIdentities")]
public System.Collections.Generic.IDictionary<string, DataSyncParticipantUserAssignedIdentity> UserAssignedIdentities {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (this.Type == null)
{
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Type");
}


}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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.DataSyncV2.Models
{

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


public static class DataSyncParticipantIdentityType
{
public const string None = "None";
public const string SystemAssigned = "SystemAssigned";
public const string UserAssigned = "UserAssigned";
public const string SystemAssignedUserAssigned = "SystemAssignedUserAssigned";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// 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.DataSyncV2.Models
{
using System.Linq;

/// <summary>
/// Azure Active Directory identity configuration for a resource.
/// </summary>
public partial class DataSyncParticipantUserAssignedIdentity
{
/// <summary>
/// Initializes a new instance of the DataSyncParticipantUserAssignedIdentity class.
/// </summary>
public DataSyncParticipantUserAssignedIdentity()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DataSyncParticipantUserAssignedIdentity class.
/// </summary>

/// <param name="principalId">The Azure Active Directory principal id.
/// </param>

/// <param name="clientId">The Azure Active Directory client id.
/// </param>
public DataSyncParticipantUserAssignedIdentity(System.Guid? principalId = default(System.Guid?), System.Guid? clientId = default(System.Guid?))

{
this.PrincipalId = principalId;
this.ClientId = clientId;
CustomInit();
}

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


/// <summary>
/// Gets the Azure Active Directory principal id.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "principalId")]
public System.Guid? PrincipalId {get; private set; }

/// <summary>
/// Gets the Azure Active Directory client id.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "clientId")]
public System.Guid? ClientId {get; private set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// 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.DataSyncV2.Models
{
using System.Linq;

/// <summary>
/// The resource management error additional info.
/// </summary>
public partial class ErrorAdditionalInfo
{
/// <summary>
/// Initializes a new instance of the ErrorAdditionalInfo class.
/// </summary>
public ErrorAdditionalInfo()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ErrorAdditionalInfo class.
/// </summary>

/// <param name="type">The additional info type.
/// </param>

/// <param name="info">The additional info.
/// </param>
public ErrorAdditionalInfo(string type = default(string), object info = default(object))

{
this.Type = type;
this.Info = info;
CustomInit();
}

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


/// <summary>
/// Gets the additional info type.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "type")]
public string Type {get; private set; }

/// <summary>
/// Gets the additional info.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "info")]
public object Info {get; private set; }
}
}
Loading