Skip to content
Open
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
184 changes: 92 additions & 92 deletions src/Sql/Sql.Management.Sdk/Generated/ISyncGroupsOperations.cs

Large diffs are not rendered by default.

84 changes: 42 additions & 42 deletions src/Sql/Sql.Management.Sdk/Generated/ISyncMembersOperations.cs

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.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.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.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
Expand Up @@ -49,7 +49,7 @@ public ExportDatabaseDefinition()

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

{
this.StorageKeyType = storageKeyType;
Expand Down Expand Up @@ -116,7 +116,7 @@ public ExportDatabaseDefinition()
/// request.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "networkIsolation")]
public NetworkIsolationSettings NetworkIsolation {get; set; }
public NetworkIsolationSettingsAutoGenerated NetworkIsolation {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ImportExistingDatabaseDefinition()

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

{
this.StorageKeyType = storageKeyType;
Expand Down Expand Up @@ -117,7 +117,7 @@ public ImportExistingDatabaseDefinition()
/// request.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "networkIsolation")]
public NetworkIsolationSettings NetworkIsolation {get; set; }
public NetworkIsolationSettingsAutoGenerated NetworkIsolation {get; set; }
/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// 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
{
using System.Linq;

/// <summary>
/// Contains the ARM resources for which to create private endpoint connection.
/// </summary>
public partial class NetworkIsolationSettingsAutoGenerated
{
/// <summary>
/// Initializes a new instance of the NetworkIsolationSettingsAutoGenerated class.
/// </summary>
public NetworkIsolationSettingsAutoGenerated()
{
CustomInit();
}

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

/// <param name="storageAccountResourceId">The resource id for the storage account used to store BACPAC file. If set,
/// private endpoint connection will be created for the storage account. Must
/// match storage account used for StorageUri parameter.
/// </param>

/// <param name="sqlServerResourceId">The resource id for the SQL server which is the target of this request. If
/// set, private endpoint connection will be created for the SQL server. Must
/// match server which is target of the operation.
/// </param>
public NetworkIsolationSettingsAutoGenerated(string storageAccountResourceId = default(string), string sqlServerResourceId = default(string))

{
this.StorageAccountResourceId = storageAccountResourceId;
this.SqlServerResourceId = sqlServerResourceId;
CustomInit();
}

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


/// <summary>
/// Gets or sets the resource id for the storage account used to store BACPAC
/// file. If set, private endpoint connection will be created for the storage
/// account. Must match storage account used for StorageUri parameter.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "storageAccountResourceId")]
public string StorageAccountResourceId {get; set; }

/// <summary>
/// Gets or sets the resource id for the SQL server which is the target of this
/// request. If set, private endpoint connection will be created for the SQL
/// server. Must match server which is target of the operation.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "sqlServerResourceId")]
public string SqlServerResourceId {get; set; }
}
}
5 changes: 2 additions & 3 deletions src/Sql/Sql.Management.Sdk/Generated/Models/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public Server()
/// </param>

/// <param name="createMode">Create mode for server, only valid values for this are Normal and Restore.
/// Possible values include: &#39;Normal&#39;, &#39;ServerMigrationV1&#39;,
/// &#39;DatabaseMigrationV1&#39;, &#39;ServerMigration&#39;, &#39;Standby&#39;, &#39;Restore&#39;</param>
/// Possible values include: &#39;Normal&#39;, &#39;Restore&#39;</param>
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))

: base(location, id, name, type, tags)
Expand Down Expand Up @@ -271,7 +270,7 @@ public Server()

/// <summary>
/// Gets or sets create mode for server, only valid values for this are Normal
/// and Restore. Possible values include: &#39;Normal&#39;, &#39;ServerMigrationV1&#39;, &#39;DatabaseMigrationV1&#39;, &#39;ServerMigration&#39;, &#39;Standby&#39;, &#39;Restore&#39;
/// and Restore. Possible values include: &#39;Normal&#39;, &#39;Restore&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.createMode")]
public string CreateMode {get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@ namespace Microsoft.Azure.Management.Sql.Models
public static class ServerCreateMode
{
public const string Normal = "Normal";
public const string ServerMigrationV1 = "ServerMigrationV1";
public const string DatabaseMigrationV1 = "DatabaseMigrationV1";
public const string ServerMigration = "ServerMigration";
public const string Standby = "Standby";
public const string Restore = "Restore";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ public ServerProperties()
/// </param>

/// <param name="createMode">Create mode for server, only valid values for this are Normal and Restore.
/// Possible values include: &#39;Normal&#39;, &#39;ServerMigrationV1&#39;,
/// &#39;DatabaseMigrationV1&#39;, &#39;ServerMigration&#39;, &#39;Standby&#39;, &#39;Restore&#39;</param>
/// Possible values include: &#39;Normal&#39;, &#39;Restore&#39;</param>
public ServerProperties(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))

{
Expand Down Expand Up @@ -233,7 +232,7 @@ public ServerProperties()

/// <summary>
/// Gets or sets create mode for server, only valid values for this are Normal
/// and Restore. Possible values include: &#39;Normal&#39;, &#39;ServerMigrationV1&#39;, &#39;DatabaseMigrationV1&#39;, &#39;ServerMigration&#39;, &#39;Standby&#39;, &#39;Restore&#39;
/// and Restore. Possible values include: &#39;Normal&#39;, &#39;Restore&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "createMode")]
public string CreateMode {get; set; }
Expand Down
5 changes: 2 additions & 3 deletions src/Sql/Sql.Management.Sdk/Generated/Models/ServerUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ public ServerUpdate()
/// </param>

/// <param name="createMode">Create mode for server, only valid values for this are Normal and Restore.
/// Possible values include: &#39;Normal&#39;, &#39;ServerMigrationV1&#39;,
/// &#39;DatabaseMigrationV1&#39;, &#39;ServerMigration&#39;, &#39;Standby&#39;, &#39;Restore&#39;</param>
/// Possible values include: &#39;Normal&#39;, &#39;Restore&#39;</param>
public ServerUpdate(ResourceIdentity identity = default(ResourceIdentity), System.Collections.Generic.IDictionary<string, string> tags = default(System.Collections.Generic.IDictionary<string, 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))

{
Expand Down Expand Up @@ -254,7 +253,7 @@ public ServerUpdate()

/// <summary>
/// Gets or sets create mode for server, only valid values for this are Normal
/// and Restore. Possible values include: &#39;Normal&#39;, &#39;ServerMigrationV1&#39;, &#39;DatabaseMigrationV1&#39;, &#39;ServerMigration&#39;, &#39;Standby&#39;, &#39;Restore&#39;
/// and Restore. Possible values include: &#39;Normal&#39;, &#39;Restore&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "properties.createMode")]
public string CreateMode {get; set; }
Expand Down
Loading