Esempio n. 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. E.g.
 /// "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="administratorLoginPassword">The password of the
 /// administrator login (required for server creation).</param>
 /// <param name="version">Server version. Possible values include:
 /// '5.7'</param>
 /// <param name="sslEnforcement">Enable ssl enforcement or not when
 /// connect to server. Possible values include: 'Enabled',
 /// 'Disabled'</param>
 /// <param name="infrastructureEncryption">Status showing whether the
 /// server enabled infrastructure encryption. Possible values include:
 /// 'Enabled', 'Disabled'</param>
 /// <param name="state">The state of a server. Possible values include:
 /// 'Ready', 'Dropping', 'Disabled', 'Starting', 'Stopping', 'Stopped',
 /// 'Updating'</param>
 /// <param name="haState">The state of a HA server. Possible values
 /// include: 'NotEnabled', 'CreatingStandby', 'ReplicatingData',
 /// 'FailingOver', 'Healthy', 'RemovingStandby'</param>
 /// <param name="haEnabled">Enable HA or not for a server. Possible
 /// values include: 'Enabled', 'Disabled'</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.</param>
 /// <param name="replicaCapacity">The maximum number of replicas that a
 /// primary 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="maintenanceWindow">Maintenance window of a
 /// server.</param>
 /// <param name="sourceServerId">The source MySQL server id.</param>
 /// <param name="restorePointInTime">Restore point creation time
 /// (ISO8601 format), specifying the time to restore from.</param>
 /// <param name="availabilityZone">availability Zone information of the
 /// server.</param>
 /// <param name="standbyAvailabilityZone">availability Zone information
 /// of the server.</param>
 /// <param name="byokEnforcement">Status showing whether the data
 /// encryption is enabled with customer-managed keys.</param>
 /// <param name="delegatedSubnetArguments">Delegated subnet
 /// arguments.</param>
 /// <param name="createMode">The mode to create a new MySQL server.
 /// Possible values include: 'Default', 'PointInTimeRestore',
 /// 'Replica'</param>
 /// <param name="serverTags">Application-specific metadata in the form
 /// of key-value pairs.</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>), Identity identity = default(Identity), Sku sku = default(Sku), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string sslEnforcement = default(string), string infrastructureEncryption = default(string), string state = default(string), string haState = default(string), string haEnabled = default(string), string fullyQualifiedDomainName = default(string), System.DateTime?earliestRestoreDate = default(System.DateTime?), StorageProfile storageProfile = default(StorageProfile), string replicationRole = default(string), int?replicaCapacity = default(int?), string publicNetworkAccess = default(string), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), string sourceServerId = default(string), System.DateTime?restorePointInTime = default(System.DateTime?), string availabilityZone = default(string), string standbyAvailabilityZone = default(string), string byokEnforcement = default(string), DelegatedSubnetArguments delegatedSubnetArguments = default(DelegatedSubnetArguments), string createMode = default(string), IDictionary <string, string> serverTags = default(IDictionary <string, string>))
     : base(location, id, name, type, tags)
 {
     Identity                   = identity;
     Sku                        = sku;
     AdministratorLogin         = administratorLogin;
     AdministratorLoginPassword = administratorLoginPassword;
     Version                    = version;
     SslEnforcement             = sslEnforcement;
     InfrastructureEncryption   = infrastructureEncryption;
     State                      = state;
     HaState                    = haState;
     HaEnabled                  = haEnabled;
     FullyQualifiedDomainName   = fullyQualifiedDomainName;
     EarliestRestoreDate        = earliestRestoreDate;
     StorageProfile             = storageProfile;
     ReplicationRole            = replicationRole;
     ReplicaCapacity            = replicaCapacity;
     PublicNetworkAccess        = publicNetworkAccess;
     MaintenanceWindow          = maintenanceWindow;
     SourceServerId             = sourceServerId;
     RestorePointInTime         = restorePointInTime;
     AvailabilityZone           = availabilityZone;
     StandbyAvailabilityZone    = standbyAvailabilityZone;
     ByokEnforcement            = byokEnforcement;
     DelegatedSubnetArguments   = delegatedSubnetArguments;
     CreateMode                 = createMode;
     ServerTags                 = serverTags;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the ServerForUpdate class.
 /// </summary>
 /// <param name="sku">The SKU (pricing tier) of the server.</param>
 /// <param name="storageProfile">Storage profile of a server.</param>
 /// <param name="administratorLoginPassword">The password of the
 /// administrator login.</param>
 /// <param name="sslEnforcement">Enable ssl enforcement or not when
 /// connect to server. Possible values include: 'Enabled',
 /// 'Disabled'</param>
 /// <param name="delegatedSubnetArguments">Delegated subnet
 /// arguments.</param>
 /// <param name="haEnabled">Enable HA or not for a server. Possible
 /// values include: 'Enabled', 'Disabled'</param>
 /// <param name="maintenanceWindow">Maintenance window of a
 /// server.</param>
 /// <param name="replicationRole">The replication role of the
 /// server.</param>
 /// <param name="tags">Application-specific metadata in the form of
 /// key-value pairs.</param>
 public ServerForUpdate(Sku sku = default(Sku), StorageProfile storageProfile = default(StorageProfile), string administratorLoginPassword = default(string), string sslEnforcement = default(string), DelegatedSubnetArguments delegatedSubnetArguments = default(DelegatedSubnetArguments), string haEnabled = default(string), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), string replicationRole = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>))
 {
     Sku                        = sku;
     StorageProfile             = storageProfile;
     AdministratorLoginPassword = administratorLoginPassword;
     SslEnforcement             = sslEnforcement;
     DelegatedSubnetArguments   = delegatedSubnetArguments;
     HaEnabled                  = haEnabled;
     MaintenanceWindow          = maintenanceWindow;
     ReplicationRole            = replicationRole;
     Tags                       = tags;
     CustomInit();
 }