/// <summary> /// Initializes a new instance of the ServerForUpdate class. /// </summary> /// <param name="sku">The SKU (pricing tier) of the server.</param> /// <param name="administratorLoginPassword">The password of the /// administrator login.</param> /// <param name="storage">Storage related properties of a /// server.</param> /// <param name="backup">Backup related properties of a server.</param> /// <param name="highAvailability">High availability related properties /// of a server.</param> /// <param name="maintenanceWindow">Maintenance window of a /// server.</param> /// <param name="replicationRole">The replication role of the server. /// Possible values include: 'None', 'Source', 'Replica'</param> /// <param name="tags">Application-specific metadata in the form of /// key-value pairs.</param> public ServerForUpdate(Sku sku = default(Sku), string administratorLoginPassword = default(string), Storage storage = default(Storage), Backup backup = default(Backup), HighAvailability highAvailability = default(HighAvailability), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), string replicationRole = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>)) { Sku = sku; AdministratorLoginPassword = administratorLoginPassword; Storage = storage; Backup = backup; HighAvailability = highAvailability; MaintenanceWindow = maintenanceWindow; ReplicationRole = replicationRole; Tags = tags; CustomInit(); }
/// <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="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', '8.0.21'</param> /// <param name="availabilityZone">availability Zone information of the /// server.</param> /// <param name="createMode">The mode to create a new MySQL server. /// Possible values include: 'Default', 'PointInTimeRestore', /// 'Replica', 'GeoRestore'</param> /// <param name="sourceServerResourceId">The source MySQL server /// id.</param> /// <param name="restorePointInTime">Restore point creation time /// (ISO8601 format), specifying the time to restore from.</param> /// <param name="replicationRole">The replication role. Possible values /// include: 'None', 'Source', 'Replica'</param> /// <param name="replicaCapacity">The maximum number of replicas that a /// primary server can have.</param> /// <param name="state">The state of a server. Possible values include: /// 'Ready', 'Dropping', 'Disabled', 'Starting', 'Stopping', 'Stopped', /// 'Updating'</param> /// <param name="fullyQualifiedDomainName">The fully qualified domain /// name of a server.</param> /// <param name="storage">Storage related properties of a /// server.</param> /// <param name="backup">Backup related properties of a server.</param> /// <param name="highAvailability">High availability related properties /// of a server.</param> /// <param name="network">Network related properties of a /// server.</param> /// <param name="maintenanceWindow">Maintenance window of a /// server.</param> /// <param name="systemData">The system metadata relating to this /// resource.</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>), Sku sku = default(Sku), string administratorLogin = default(string), string administratorLoginPassword = default(string), string version = default(string), string availabilityZone = default(string), string createMode = default(string), string sourceServerResourceId = default(string), System.DateTime?restorePointInTime = default(System.DateTime?), string replicationRole = default(string), int?replicaCapacity = default(int?), string state = default(string), string fullyQualifiedDomainName = default(string), Storage storage = default(Storage), Backup backup = default(Backup), HighAvailability highAvailability = default(HighAvailability), Network network = default(Network), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), SystemData systemData = default(SystemData)) : base(location, id, name, type, tags) { Sku = sku; AdministratorLogin = administratorLogin; AdministratorLoginPassword = administratorLoginPassword; Version = version; AvailabilityZone = availabilityZone; CreateMode = createMode; SourceServerResourceId = sourceServerResourceId; RestorePointInTime = restorePointInTime; ReplicationRole = replicationRole; ReplicaCapacity = replicaCapacity; State = state; FullyQualifiedDomainName = fullyQualifiedDomainName; Storage = storage; Backup = backup; HighAvailability = highAvailability; Network = network; MaintenanceWindow = maintenanceWindow; SystemData = systemData; CustomInit(); }