#[non_exhaustive]pub struct Acl {
pub name: String,
pub acl_entries: Vec<AclEntry>,
pub etag: String,
pub resource_type: String,
pub resource_name: String,
pub pattern_type: String,
/* private fields */
}Expand description
Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The name for the acl. Represents a single Resource Pattern. Structured like: projects/{project}/locations/{location}/clusters/{cluster}/acls/{acl_id}
The structure of acl_id defines the Resource Pattern (resource_type,
resource_name, pattern_type) of the acl. acl_id is structured like one of
the following:
For acls on the cluster:
cluster
For acls on a single resource within the cluster:
topic/{resource_name}
consumerGroup/{resource_name}
transactionalId/{resource_name}
For acls on all resources that match a prefix:
topicPrefixed/{resource_name}
consumerGroupPrefixed/{resource_name}
transactionalIdPrefixed/{resource_name}
For acls on all resources of a given type (i.e. the wildcard literal “*”):
allTopics (represents topic/*)
allConsumerGroups (represents consumerGroup/*)
allTransactionalIds (represents transactionalId/*)
acl_entries: Vec<AclEntry>Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100.
etag: StringOptional. etag is used for concurrency control. An etag is returned in
the response to GetAcl and CreateAcl. Callers are required to put that
etag in the request to UpdateAcl to ensure that their change will be
applied to the same version of the acl that exists in the Kafka Cluster.
A terminal ‘T’ character in the etag indicates that the AclEntries were truncated; more entries for the Acl exist on the Kafka Cluster, but can’t be returned in the Acl due to repeated field limits.
resource_type: StringOutput only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID.
resource_name: StringOutput only. The ACL resource name derived from the name. For cluster resource_type, this is always “kafka-cluster”. Can be the wildcard literal “*”.
pattern_type: StringOutput only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED.
Implementations§
Source§impl Acl
impl Acl
pub fn new() -> Self
Sourcepub fn set_acl_entries<T, V>(self, v: T) -> Self
pub fn set_acl_entries<T, V>(self, v: T) -> Self
Sets the value of acl_entries.
Sourcepub fn set_resource_type<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_type<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_type.
Sourcepub fn set_resource_name<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_name<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_name.
Sourcepub fn set_pattern_type<T: Into<String>>(self, v: T) -> Self
pub fn set_pattern_type<T: Into<String>>(self, v: T) -> Self
Sets the value of pattern_type.