Show / Hide Table of Contents

Class QuotaRule

A rule that can restrict the logical space that a user or group can consume in a file system.

Inheritance
object
QuotaRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.FilestorageService.Models
Assembly: OCI.DotNetSDK.Filestorage.dll
Syntax
public class QuotaRule

Properties

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information. Example: UserXYZ's quota

Remarks

Required

FileSystemId

Declaration
[Required(ErrorMessage = "FileSystemId is required.")]
[JsonProperty(PropertyName = "fileSystemId")]
public string FileSystemId { get; set; }
Property Value
Type Description
string

The OCID of the file System.

Remarks

Required

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

IsHardQuota

Declaration
[Required(ErrorMessage = "IsHardQuota is required.")]
[JsonProperty(PropertyName = "isHardQuota")]
public bool? IsHardQuota { get; set; }
Property Value
Type Description
bool?

Whether the quota rule will be enforced. If isHardQuota is true, the quota rule is enforced so that the write is blocked if usage exceeds the hard quota limit. If isHardQuota is false, writes succeed even if usage exceeds the soft quota limit, but the quota rule is violated.

Remarks

Required

PrincipalId

Declaration
[JsonProperty(PropertyName = "principalId")]
public int? PrincipalId { get; set; }
Property Value
Type Description
int?

An identifier for the user or the group associated with quota rule and usage. UNIX-like operating systems use this integer value to identify a user or group to manage access control.

PrincipalType

Declaration
[JsonProperty(PropertyName = "principalType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public QuotaRule.PrincipalTypeEnum? PrincipalType { get; set; }
Property Value
Type Description
QuotaRule.PrincipalTypeEnum?

The type of the owner of this quota rule and usage.

QuotaLimitInGigabytes

Declaration
[Required(ErrorMessage = "QuotaLimitInGigabytes is required.")]
[JsonProperty(PropertyName = "quotaLimitInGigabytes")]
public int? QuotaLimitInGigabytes { get; set; }
Property Value
Type Description
int?

The value of the quota rule in gigabytes.

Remarks

Required

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the quota rule was created, expressed in RFC 3339 timestamp format.
Example: 2016-08-25T21:10:29.600Z

Remarks

Required

TimeUpdated

Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The date and time the quota rule was last updated, expressed in RFC 3339 timestamp format.
Example: 2016-08-25T21:10:29.600Z

Remarks

Required

In this article
Back to top