/// <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 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>), Identity identity = default(Identity), 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) { Identity = identity; 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(); }
/// <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="administratorLoginPassword">The administrator login /// password (required for server creation).</param> /// <param name="version">PostgreSQL Server version. Possible values /// include: '12', '11'</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="haState">A state of a HA server that is visible to /// user. Possible values include: 'NotEnabled', 'CreatingStandby', /// 'ReplicatingData', 'FailingOver', 'Healthy', /// 'RemovingStandby'</param> /// <param name="fullyQualifiedDomainName">The fully qualified domain /// name of a server.</param> /// <param name="displayName">The display name of a server.</param> /// <param name="storageProfile">Storage profile of a server.</param> /// <param name="publicNetworkAccess">public network access is enabled /// or not. Possible values include: 'Enabled', 'Disabled'</param> /// <param name="maintenanceWindow">Maintenance window of a /// server.</param> /// <param name="haEnabled">stand by count value can be either enabled /// or disabled. Possible values include: 'Enabled', 'Disabled'</param> /// <param name="sourceServerName">The source PostgreSQL server name to /// restore from.</param> /// <param name="pointInTimeUTC">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="createMode">The mode to create a new PostgreSQL /// server. Possible values include: 'Default', /// 'PointInTimeRestore'</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 state = default(string), string haState = default(string), string fullyQualifiedDomainName = default(string), string displayName = default(string), StorageProfile storageProfile = default(StorageProfile), string publicNetworkAccess = default(string), MaintenanceWindow maintenanceWindow = default(MaintenanceWindow), HAEnabledEnum?haEnabled = default(HAEnabledEnum?), string sourceServerName = default(string), System.DateTime?pointInTimeUTC = default(System.DateTime?), string availabilityZone = default(string), string standbyAvailabilityZone = default(string), string byokEnforcement = default(string), ServerPropertiesDelegatedSubnetArguments delegatedSubnetArguments = default(ServerPropertiesDelegatedSubnetArguments), 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; State = state; HaState = haState; FullyQualifiedDomainName = fullyQualifiedDomainName; DisplayName = displayName; StorageProfile = storageProfile; PublicNetworkAccess = publicNetworkAccess; MaintenanceWindow = maintenanceWindow; HaEnabled = haEnabled; SourceServerName = sourceServerName; PointInTimeUTC = pointInTimeUTC; AvailabilityZone = availabilityZone; StandbyAvailabilityZone = standbyAvailabilityZone; ByokEnforcement = byokEnforcement; DelegatedSubnetArguments = delegatedSubnetArguments; CreateMode = createMode; ServerTags = serverTags; CustomInit(); }