Reference documentation and code samples for the Google Cloud Net App V1 Client class QuotaRule.
QuotaRule specifies the maximum disk space a user or group can use within a
volume. They can be used for creating default and individual quota rules.
Generated from protobuf messagegoogle.cloud.netapp.v1.QuotaRule
Namespace
Google \ Cloud \ NetApp \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the quota rule. Format:projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}.
↳ target
string
Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Net App V1 Client - Class QuotaRule (1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/php/docs/reference/cloud-netapp/latest/V1.QuotaRule)\n- [1.6.0](/php/docs/reference/cloud-netapp/1.6.0/V1.QuotaRule)\n- [1.4.0](/php/docs/reference/cloud-netapp/1.4.0/V1.QuotaRule)\n- [1.3.1](/php/docs/reference/cloud-netapp/1.3.1/V1.QuotaRule)\n- [1.2.1](/php/docs/reference/cloud-netapp/1.2.1/V1.QuotaRule)\n- [1.1.1](/php/docs/reference/cloud-netapp/1.1.1/V1.QuotaRule)\n- [1.0.1](/php/docs/reference/cloud-netapp/1.0.1/V1.QuotaRule)\n- [0.3.1](/php/docs/reference/cloud-netapp/0.3.1/V1.QuotaRule)\n- [0.2.6](/php/docs/reference/cloud-netapp/0.2.6/V1.QuotaRule)\n- [0.1.1](/php/docs/reference/cloud-netapp/0.1.1/V1.QuotaRule) \nReference documentation and code samples for the Google Cloud Net App V1 Client class QuotaRule.\n\nQuotaRule specifies the maximum disk space a user or group can use within a\nvolume. They can be used for creating default and individual quota rules.\n\nGenerated from protobuf message `google.cloud.netapp.v1.QuotaRule`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ NetApp \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nIdentifier. The resource name of the quota rule.\n\nFormat:\n`projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}`.\n\n### setName\n\nIdentifier. The resource name of the quota rule.\n\nFormat:\n`projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}`.\n\n### getTarget\n\nOptional. The quota rule applies to the specified user or group, identified\nby a Unix UID/GID, Windows SID, or null for default.\n\n### setTarget\n\nOptional. The quota rule applies to the specified user or group, identified\nby a Unix UID/GID, Windows SID, or null for default.\n\n### getType\n\nRequired. The type of quota rule.\n\n### setType\n\nRequired. The type of quota rule.\n\n### getDiskLimitMib\n\nRequired. The maximum allowed disk space in MiB.\n\n### setDiskLimitMib\n\nRequired. The maximum allowed disk space in MiB.\n\n### getState\n\nOutput only. State of the quota rule\n\n### setState\n\nOutput only. State of the quota rule\n\n### getStateDetails\n\nOutput only. State details of the quota rule\n\n### setStateDetails\n\nOutput only. State details of the quota rule\n\n### getCreateTime\n\nOutput only. Create time of the quota rule\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. Create time of the quota rule\n\n### getDescription\n\nOptional. Description of the quota rule\n\n### setDescription\n\nOptional. Description of the quota rule\n\n### getLabels\n\nOptional. Labels of the quota rule\n\n### setLabels\n\nOptional. Labels of the quota rule"]]