-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MySqlServerPropertiesForReplica.cs
53 lines (45 loc) · 3.08 KB
/
MySqlServerPropertiesForReplica.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.MySql;
namespace Azure.ResourceManager.MySql.Models
{
/// <summary> The properties to create a new replica. </summary>
public partial class MySqlServerPropertiesForReplica : MySqlServerPropertiesForCreate
{
/// <summary> Initializes a new instance of <see cref="MySqlServerPropertiesForReplica"/>. </summary>
/// <param name="sourceServerId"> The master server id to create replica from. </param>
/// <exception cref="ArgumentNullException"> <paramref name="sourceServerId"/> is null. </exception>
public MySqlServerPropertiesForReplica(ResourceIdentifier sourceServerId)
{
Argument.AssertNotNull(sourceServerId, nameof(sourceServerId));
SourceServerId = sourceServerId;
CreateMode = MySqlCreateMode.Replica;
}
/// <summary> Initializes a new instance of <see cref="MySqlServerPropertiesForReplica"/>. </summary>
/// <param name="version"> Server version. </param>
/// <param name="sslEnforcement"> Enable ssl enforcement or not when connect to server. </param>
/// <param name="minimalTlsVersion"> Enforce a minimal Tls version for the server. </param>
/// <param name="infrastructureEncryption"> Status showing whether the server enabled infrastructure encryption. </param>
/// <param name="publicNetworkAccess"> Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. </param>
/// <param name="storageProfile"> Storage profile of a server. </param>
/// <param name="createMode"> The mode to create a new server. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
/// <param name="sourceServerId"> The master server id to create replica from. </param>
internal MySqlServerPropertiesForReplica(MySqlServerVersion? version, MySqlSslEnforcementEnum? sslEnforcement, MySqlMinimalTlsVersionEnum? minimalTlsVersion, MySqlInfrastructureEncryption? infrastructureEncryption, MySqlPublicNetworkAccessEnum? publicNetworkAccess, MySqlStorageProfile storageProfile, MySqlCreateMode createMode, IDictionary<string, BinaryData> serializedAdditionalRawData, ResourceIdentifier sourceServerId) : base(version, sslEnforcement, minimalTlsVersion, infrastructureEncryption, publicNetworkAccess, storageProfile, createMode, serializedAdditionalRawData)
{
SourceServerId = sourceServerId;
CreateMode = createMode;
}
/// <summary> Initializes a new instance of <see cref="MySqlServerPropertiesForReplica"/> for deserialization. </summary>
internal MySqlServerPropertiesForReplica()
{
}
/// <summary> The master server id to create replica from. </summary>
public ResourceIdentifier SourceServerId { get; }
}
}