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 message google.cloud.netapp.v1.QuotaRule
Namespace
Google \ Cloud \ NetApp \ V1Methods
__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: |
↳ 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. |
↳ type |
int
Required. The type of quota rule. |
↳ disk_limit_mib |
int
Required. The maximum allowed disk space in MiB. |
↳ state |
int
Output only. State of the quota rule |
↳ state_details |
string
Output only. State details of the quota rule |
↳ create_time |
Google\Protobuf\Timestamp
Output only. Create time of the quota rule |
↳ description |
string
Optional. Description of the quota rule |
↳ labels |
array|Google\Protobuf\Internal\MapField
Optional. Labels of the quota rule |
getName
Identifier. The resource name of the quota rule.
Format:
projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Identifier. The resource name of the quota rule.
Format:
projects/{project_number}/locations/{location_id}/volumes/volumes/{volume_id}/quotaRules/{quota_rule_id}.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTarget
Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTarget
Optional. The quota rule applies to the specified user or group, identified by a Unix UID/GID, Windows SID, or null for default.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Required. The type of quota rule.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Type. |
setType
Required. The type of quota rule.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Type. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDiskLimitMib
Required. The maximum allowed disk space in MiB.
| Returns | |
|---|---|
| Type | Description |
int |
|
setDiskLimitMib
Required. The maximum allowed disk space in MiB.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getState
Output only. State of the quota rule
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type State. |
setState
Output only. State of the quota rule
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getStateDetails
Output only. State details of the quota rule
| Returns | |
|---|---|
| Type | Description |
string |
|
setStateDetails
Output only. State details of the quota rule
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCreateTime
Output only. Create time of the quota rule
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create time of the quota rule
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Optional. Description of the quota rule
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Optional. Description of the quota rule
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLabels
Optional. Labels of the quota rule
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\MapField |
|
setLabels
Optional. Labels of the quota rule
| Parameter | |
|---|---|
| Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
| Returns | |
|---|---|
| Type | Description |
$this |
|