Google Cloud Memorystore V1beta Client - Class AclRule (0.14.0)

Reference documentation and code samples for the Google Cloud Memorystore V1beta Client class AclRule.

A single ACL rule which defines the policy for a user.

Generated from protobuf message google.cloud.memorystore.v1beta.AclRule

Namespace

Google \ Cloud \ Memorystore \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ username string

Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.

↳ rule string

Required. The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/

getUsername

Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.

Returns
Type Description
string

setUsername

Required. Specifies the IAM user or service account to be added to the ACL policy. This username will be directly set on the Valkey OSS.

Parameter
Name Description
var string
Returns
Type Description
$this

getRule

Required. The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/

Returns
Type Description
string

setRule

Required. The rule to be applied to the username. Ex: "on >password123 ~* +@all" The format of the rule is defined by Valkey OSS: https://valkey.io/topics/acl/

Parameter
Name Description
var string
Returns
Type Description
$this