Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the ServerForUpdate class.
 /// </summary>
 /// <param name="location">The location the resource resides
 /// in.</param>
 /// <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 properties of a server.</param>
 /// <param name="backup">Backup properties of a server.</param>
 /// <param name="highAvailability">High availability properties of a
 /// server.</param>
 /// <param name="maintenanceWindow">Maintenance window properties of a
 /// server.</param>
 /// <param name="createMode">The mode to update a new PostgreSQL
 /// server. Possible values include: 'Default', 'Update'</param>
 /// <param name="tags">Application-specific metadata in the form of
 /// key-value pairs.</param>
 public ServerForUpdate(string location = default(string), 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 createMode = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>))
 {
     Location = location;
     Sku      = sku;
     AdministratorLoginPassword = administratorLoginPassword;
     Storage           = storage;
     Backup            = backup;
     HighAvailability  = highAvailability;
     MaintenanceWindow = maintenanceWindow;
     CreateMode        = createMode;
     Tags = tags;
     CustomInit();
 }
Ejemplo n.º 2
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="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 administrator login
 /// password (required for server creation).</param>
 /// <param name="version">PostgreSQL Server version. Possible values
 /// include: '13', '12', '11'</param>
 /// <param name="minorVersion">The minor version of the server.</param>
 /// <param name="state">A state of a server that is visible to user.
 /// 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 properties of a server.</param>
 /// <param name="backup">Backup properties of a server.</param>
 /// <param name="network">Network properties of a server.</param>
 /// <param name="highAvailability">High availability properties of a
 /// server.</param>
 /// <param name="maintenanceWindow">Maintenance window properties of a
 /// server.</param>
 /// <param name="sourceServerResourceId">The source server resource ID
 /// to restore from. It's required when 'createMode' is
 /// 'PointInTimeRestore'.</param>
 /// <param name="pointInTimeUTC">Restore point creation time (ISO8601
 /// format), specifying the time to restore from. It's required when
 /// 'createMode' is 'PointInTimeRestore'.</param>
 /// <param name="availabilityZone">availability zone information of the
 /// server.</param>
 /// <param name="createMode">The mode to create a new PostgreSQL
 /// server. Possible values include: 'Default', 'Create', 'Update',
 /// 'PointInTimeRestore'</param>
 /// <param name="serverTags">Application-specific metadata in the form
 /// of key-value pairs.</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 minorVersion = default(string), string state = default(string), string fullyQualifiedDomainName = default(string), Storage storage = default(Storage), Backup backup = default(Backup), Network network = default(Network), HighAvailability highAvailability = default(HighAvailability), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), string sourceServerResourceId = default(string), System.DateTime?pointInTimeUTC = default(System.DateTime?), string availabilityZone = default(string), string createMode = default(string), IDictionary <string, string> serverTags = default(IDictionary <string, string>), SystemData systemData = default(SystemData))
     : base(location, id, name, type, tags)
 {
     Sku = sku;
     AdministratorLogin         = administratorLogin;
     AdministratorLoginPassword = administratorLoginPassword;
     Version                  = version;
     MinorVersion             = minorVersion;
     State                    = state;
     FullyQualifiedDomainName = fullyQualifiedDomainName;
     Storage                  = storage;
     Backup                   = backup;
     Network                  = network;
     HighAvailability         = highAvailability;
     MaintenanceWindow        = maintenanceWindow;
     SourceServerResourceId   = sourceServerResourceId;
     PointInTimeUTC           = pointInTimeUTC;
     AvailabilityZone         = availabilityZone;
     CreateMode               = createMode;
     ServerTags               = serverTags;
     SystemData               = systemData;
     CustomInit();
 }