Reference documentation and code samples for the Google Cloud Lustre V1 Client class AccessRulesOptions.
IP-based access rules for the Managed Lustre instance. These options define the root user squash configuration.
Generated from protobuf message google.cloud.lustre.v1.AccessRulesOptions
Namespace
Google \ Cloud \ Lustre \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ access_rules |
array<AccessRulesOptions\AccessRule>
Optional. The access rules for the instance. |
↳ default_squash_mode |
int
Required. The squash mode for the default access rule. |
↳ default_squash_uid |
int
Optional. The user squash UID for the default access rule. This user squash UID applies to all root users connecting from clients that are not matched by any of the access rules. If not set, the default is 0 (no UID squash). |
↳ default_squash_gid |
int
Optional. The user squash GID for the default access rule. This user squash GID applies to all root users connecting from clients that are not matched by any of the access rules. If not set, the default is 0 (no GID squash). |
getAccessRules
Optional. The access rules for the instance.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<AccessRulesOptions\AccessRule> |
|
setAccessRules
Optional. The access rules for the instance.
| Parameter | |
|---|---|
| Name | Description |
var |
array<AccessRulesOptions\AccessRule>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDefaultSquashMode
Required. The squash mode for the default access rule.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type SquashMode. |
setDefaultSquashMode
Required. The squash mode for the default access rule.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type SquashMode. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDefaultSquashUid
Optional. The user squash UID for the default access rule.
This user squash UID applies to all root users connecting from clients that are not matched by any of the access rules. If not set, the default is 0 (no UID squash).
| Returns | |
|---|---|
| Type | Description |
int |
|
setDefaultSquashUid
Optional. The user squash UID for the default access rule.
This user squash UID applies to all root users connecting from clients that are not matched by any of the access rules. If not set, the default is 0 (no UID squash).
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDefaultSquashGid
Optional. The user squash GID for the default access rule.
This user squash GID applies to all root users connecting from clients that are not matched by any of the access rules. If not set, the default is 0 (no GID squash).
| Returns | |
|---|---|
| Type | Description |
int |
|
setDefaultSquashGid
Optional. The user squash GID for the default access rule.
This user squash GID applies to all root users connecting from clients that are not matched by any of the access rules. If not set, the default is 0 (no GID squash).
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|