Пример #1
0
 /// <summary>
 /// Initializes a new instance of the Server class.
 /// </summary>
 /// <param name="location">The geo-location where the resource
 /// lives</param>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="identity">The Azure Active Directory identity of the
 /// server.</param>
 /// <param name="sku">The SKU (pricing tier) of the server.</param>
 /// <param name="administratorLogin">The administrator's login name of
 /// a server. Can only be specified when the server is being created
 /// (and is required for creation).</param>
 /// <param name="version">Server version. Possible values include:
 /// '9.5', '9.6', '10', '10.0', '10.2', '11'</param>
 /// <param name="sslEnforcement">Enable ssl enforcement or not when
 /// connect to server. Possible values include: 'Enabled',
 /// 'Disabled'</param>
 /// <param name="minimalTlsVersion">Enforce a minimal Tls version for
 /// the server. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2',
 /// 'TLSEnforcementDisabled'</param>
 /// <param name="byokEnforcement">Status showing whether the server
 /// data encryption is enabled with customer-managed keys.</param>
 /// <param name="infrastructureEncryption">Status showing whether the
 /// server enabled infrastructure encryption. Possible values include:
 /// 'Enabled', 'Disabled'</param>
 /// <param name="userVisibleState">A state of a server that is visible
 /// to user. Possible values include: 'Ready', 'Dropping', 'Disabled',
 /// 'Inaccessible'</param>
 /// <param name="fullyQualifiedDomainName">The fully qualified domain
 /// name of a server.</param>
 /// <param name="earliestRestoreDate">Earliest restore point creation
 /// time (ISO8601 format)</param>
 /// <param name="storageProfile">Storage profile of a server.</param>
 /// <param name="replicationRole">The replication role of the
 /// server.</param>
 /// <param name="masterServerId">The master server id of a replica
 /// server.</param>
 /// <param name="replicaCapacity">The maximum number of replicas that a
 /// master server can have.</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'. Possible values include:
 /// 'Enabled', 'Disabled'</param>
 /// <param name="privateEndpointConnections">List of private endpoint
 /// connections on a server</param>
 public Server(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceIdentity identity = default(ResourceIdentity), Sku sku = default(Sku), string administratorLogin = default(string), string version = default(string), SslEnforcementEnum?sslEnforcement = default(SslEnforcementEnum?), string minimalTlsVersion = default(string), string byokEnforcement = default(string), string infrastructureEncryption = default(string), string userVisibleState = default(string), string fullyQualifiedDomainName = default(string), System.DateTime?earliestRestoreDate = default(System.DateTime?), StorageProfile storageProfile = default(StorageProfile), string replicationRole = default(string), string masterServerId = default(string), int?replicaCapacity = default(int?), string publicNetworkAccess = default(string), IList <ServerPrivateEndpointConnection> privateEndpointConnections = default(IList <ServerPrivateEndpointConnection>))
     : base(location, id, name, type, tags)
 {
     Identity                   = identity;
     Sku                        = sku;
     AdministratorLogin         = administratorLogin;
     Version                    = version;
     SslEnforcement             = sslEnforcement;
     MinimalTlsVersion          = minimalTlsVersion;
     ByokEnforcement            = byokEnforcement;
     InfrastructureEncryption   = infrastructureEncryption;
     UserVisibleState           = userVisibleState;
     FullyQualifiedDomainName   = fullyQualifiedDomainName;
     EarliestRestoreDate        = earliestRestoreDate;
     StorageProfile             = storageProfile;
     ReplicationRole            = replicationRole;
     MasterServerId             = masterServerId;
     ReplicaCapacity            = replicaCapacity;
     PublicNetworkAccess        = publicNetworkAccess;
     PrivateEndpointConnections = privateEndpointConnections;
     CustomInit();
 }