Reference documentation and code samples for the Google Cloud Managed Kafka V1 Client class AclEntry.
Represents the access granted for a given Resource Pattern in an ACL.
Generated from protobuf messagegoogle.cloud.managedkafka.v1.AclEntry
Namespace
Google \ Cloud \ ManagedKafka \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ principal
string
Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:test-kafka-client@test-project.iam.gserviceaccount.com". Can be the wildcard "User:*" to refer to all users.
↳ permission_type
string
Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY.
↳ operation
string
Required. The operation type. Allowed values are (case insensitive): ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION, DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. Seehttps://kafka.apache.org/documentation/#operations_resources_and_protocolsfor valid combinations of resource_type and operation for different Kafka API requests.
↳ host
string
Required. The host. Must be set to "*" for Managed Service for Apache Kafka.
getPrincipal
Required. The principal. Specified as Google Cloud account, with the Kafka
StandardAuthorizer prefix "User:". For example:
"User:test-kafka-client@test-project.iam.gserviceaccount.com".
Can be the wildcard "User:*" to refer to all users.
Returns
Type
Description
string
setPrincipal
Required. The principal. Specified as Google Cloud account, with the Kafka
StandardAuthorizer prefix "User:". For example:
"User:test-kafka-client@test-project.iam.gserviceaccount.com".
Can be the wildcard "User:*" to refer to all users.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPermissionType
Required. The permission type. Accepted values are (case insensitive):
ALLOW, DENY.
Returns
Type
Description
string
setPermissionType
Required. The permission type. Accepted values are (case insensitive):
ALLOW, DENY.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getOperation
Required. The operation type. Allowed values are (case insensitive): ALL,
READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION,
DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. Seehttps://kafka.apache.org/documentation/#operations_resources_and_protocolsfor valid combinations of resource_type and operation for different Kafka
API requests.
Returns
Type
Description
string
setOperation
Required. The operation type. Allowed values are (case insensitive): ALL,
READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION,
DESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. Seehttps://kafka.apache.org/documentation/#operations_resources_and_protocolsfor valid combinations of resource_type and operation for different Kafka
API requests.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getHost
Required. The host. Must be set to "*" for Managed Service for Apache
Kafka.
Returns
Type
Description
string
setHost
Required. The host. Must be set to "*" for Managed Service for Apache
Kafka.
[[["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 Managed Kafka V1 Client - Class AclEntry (0.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.1 (latest)](/php/docs/reference/cloud-managedkafka/latest/V1.AclEntry)\n- [0.6.0](/php/docs/reference/cloud-managedkafka/0.6.0/V1.AclEntry)\n- [0.5.0](/php/docs/reference/cloud-managedkafka/0.5.0/V1.AclEntry)\n- [0.4.1](/php/docs/reference/cloud-managedkafka/0.4.1/V1.AclEntry)\n- [0.3.1](/php/docs/reference/cloud-managedkafka/0.3.1/V1.AclEntry)\n- [0.2.3](/php/docs/reference/cloud-managedkafka/0.2.3/V1.AclEntry)\n- [0.1.3](/php/docs/reference/cloud-managedkafka/0.1.3/V1.AclEntry) \nReference documentation and code samples for the Google Cloud Managed Kafka V1 Client class AclEntry.\n\nRepresents the access granted for a given Resource Pattern in an ACL.\n\nGenerated from protobuf message `google.cloud.managedkafka.v1.AclEntry`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ManagedKafka \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPrincipal\n\nRequired. The principal. Specified as Google Cloud account, with the Kafka\nStandardAuthorizer prefix \"User:\". For example:\n\"User:test-kafka-client@test-project.iam.gserviceaccount.com\".\n\nCan be the wildcard \"User:\\*\" to refer to all users.\n\n### setPrincipal\n\nRequired. The principal. Specified as Google Cloud account, with the Kafka\nStandardAuthorizer prefix \"User:\". For example:\n\"User:test-kafka-client@test-project.iam.gserviceaccount.com\".\n\nCan be the wildcard \"User:\\*\" to refer to all users.\n\n### getPermissionType\n\nRequired. The permission type. Accepted values are (case insensitive):\nALLOW, DENY.\n\n### setPermissionType\n\nRequired. The permission type. Accepted values are (case insensitive):\nALLOW, DENY.\n\n### getOperation\n\nRequired. The operation type. Allowed values are (case insensitive): ALL,\nREAD, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION,\nDESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See\n\u003chttps://kafka.apache.org/documentation/#operations_resources_and_protocols\u003e\nfor valid combinations of resource_type and operation for different Kafka\nAPI requests.\n\n### setOperation\n\nRequired. The operation type. Allowed values are (case insensitive): ALL,\nREAD, WRITE, CREATE, DELETE, ALTER, DESCRIBE, CLUSTER_ACTION,\nDESCRIBE_CONFIGS, ALTER_CONFIGS, and IDEMPOTENT_WRITE. See\n\u003chttps://kafka.apache.org/documentation/#operations_resources_and_protocols\u003e\nfor valid combinations of resource_type and operation for different Kafka\nAPI requests.\n\n### getHost\n\nRequired. The host. Must be set to \"\\*\" for Managed Service for Apache\nKafka.\n\n### setHost\n\nRequired. The host. Must be set to \"\\*\" for Managed Service for Apache\nKafka."]]