| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, h1, h2, h3, div, span, p, pre, a { |
| 5 |
margin: 0; |
| 6 |
padding: 0; |
| 7 |
border: 0; |
| 8 |
font-weight: inherit; |
| 9 |
font-style: inherit; |
| 10 |
font-size: 100%; |
| 11 |
font-family: inherit; |
| 12 |
vertical-align: baseline; |
| 13 |
} |
| 14 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, h2, h3 { |
| 50 |
border-bottom: solid #CCC 1px; |
| 51 |
} |
| 52 |
|
| 53 |
.toc_element { |
| 54 |
margin-top: 0.5em; |
| 55 |
} |
| 56 |
|
| 57 |
.firstline { |
| 58 |
margin-left: 2 em; |
| 59 |
} |
| 60 |
|
| 61 |
.method { |
| 62 |
margin-top: 1em; |
| 63 |
border: solid 1px #CCC; |
| 64 |
padding: 1em; |
| 65 |
background: #EEE; |
| 66 |
} |
| 67 |
|
| 68 |
.details { |
| 69 |
font-weight: bold; |
| 70 |
font-size: 14px; |
| 71 |
} |
| 72 |
|
| 73 |
</style> |
| 74 |
|
| 75 |
<h1><a href="managedkafka_v1.html">Managed Service for Apache Kafka API</a> . <a href="managedkafka_v1.projects.html">projects</a> . <a href="managedkafka_v1.projects.locations.html">locations</a> . <a href="managedkafka_v1.projects.locations.clusters.html">clusters</a> . <a href="managedkafka_v1.projects.locations.clusters.acls.html">acls</a></h1> |
| 76 |
<h2>Instance Methods</h2> |
| 77 |
<p class="toc_element"> |
| 78 |
<code><a href="#addAclEntry">addAclEntry(acl, body=None, x__xgafv=None)</a></code></p> |
| 79 |
<p class="firstline">Incremental update: Adds an acl entry to an acl. Creates the acl if it does not exist yet.</p> |
| 80 |
<p class="toc_element"> |
| 81 |
<code><a href="#close">close()</a></code></p> |
| 82 |
<p class="firstline">Close httplib2 connections.</p> |
| 83 |
<p class="toc_element"> |
| 84 |
<code><a href="#create">create(parent, aclId=None, body=None, x__xgafv=None)</a></code></p> |
| 85 |
<p class="firstline">Creates a new acl in the given project, location, and cluster.</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 88 |
<p class="firstline">Deletes an acl.</p> |
| 89 |
<p class="toc_element"> |
| 90 |
<code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 91 |
<p class="firstline">Returns the properties of a single acl.</p> |
| 92 |
<p class="toc_element"> |
| 93 |
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 94 |
<p class="firstline">Lists the acls in a given cluster.</p> |
| 95 |
<p class="toc_element"> |
| 96 |
<code><a href="#list_next">list_next()</a></code></p> |
| 97 |
<p class="firstline">Retrieves the next page of results.</p> |
| 98 |
<p class="toc_element"> |
| 99 |
<code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 100 |
<p class="firstline">Updates the properties of a single acl.</p> |
| 101 |
<p class="toc_element"> |
| 102 |
<code><a href="#removeAclEntry">removeAclEntry(acl, body=None, x__xgafv=None)</a></code></p> |
| 103 |
<p class="firstline">Incremental update: Removes an acl entry from an acl. Deletes the acl if its acl entries become empty (i.e. if the removed entry was the last one in the acl).</p> |
| 104 |
<h3>Method Details</h3> |
| 105 |
<div class="method"> |
| 106 |
<code class="details" id="addAclEntry">addAclEntry(acl, body=None, x__xgafv=None)</code> |
| 107 |
<pre>Incremental update: Adds an acl entry to an acl. Creates the acl if it does not exist yet. |
| 108 |
|
| 109 |
Args: |
| 110 |
acl: string, Required. The name of the acl to add the acl entry to. 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. See `Acl.name` for details. (required) |
| 111 |
body: object, The request body. |
| 112 |
The object takes the form of: |
| 113 |
|
| 114 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 115 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 116 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 117 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 118 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 119 |
} |
| 120 |
|
| 121 |
x__xgafv: string, V1 error format. |
| 122 |
Allowed values |
| 123 |
1 - v1 error format |
| 124 |
2 - v2 error format |
| 125 |
|
| 126 |
Returns: |
| 127 |
An object of the form: |
| 128 |
|
| 129 |
{ # Response for AddAclEntry. |
| 130 |
"acl": { # Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type. # The updated acl. |
| 131 |
"aclEntries": [ # Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100. |
| 132 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 133 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 134 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 135 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 136 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 137 |
}, |
| 138 |
], |
| 139 |
"etag": "A String", # Optional. `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. |
| 140 |
"name": "A String", # Identifier. 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/*`) |
| 141 |
"patternType": "A String", # Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED. |
| 142 |
"resourceName": "A String", # Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*". |
| 143 |
"resourceType": "A String", # Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. |
| 144 |
}, |
| 145 |
"aclCreated": True or False, # Whether the acl was created as a result of adding the acl entry. |
| 146 |
}</pre> |
| 147 |
</div> |
| 148 |
|
| 149 |
<div class="method"> |
| 150 |
<code class="details" id="close">close()</code> |
| 151 |
<pre>Close httplib2 connections.</pre> |
| 152 |
</div> |
| 153 |
|
| 154 |
<div class="method"> |
| 155 |
<code class="details" id="create">create(parent, aclId=None, body=None, x__xgafv=None)</code> |
| 156 |
<pre>Creates a new acl in the given project, location, and cluster. |
| 157 |
|
| 158 |
Args: |
| 159 |
parent: string, Required. The parent cluster in which to create the acl. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`. (required) |
| 160 |
body: object, The request body. |
| 161 |
The object takes the form of: |
| 162 |
|
| 163 |
{ # Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type. |
| 164 |
"aclEntries": [ # Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100. |
| 165 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 166 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 167 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 168 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 169 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 170 |
}, |
| 171 |
], |
| 172 |
"etag": "A String", # Optional. `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. |
| 173 |
"name": "A String", # Identifier. 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/*`) |
| 174 |
"patternType": "A String", # Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED. |
| 175 |
"resourceName": "A String", # Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*". |
| 176 |
"resourceType": "A String", # Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. |
| 177 |
} |
| 178 |
|
| 179 |
aclId: string, Required. The ID to use for the acl, which will become the final component of the acl's name. 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/*`) |
| 180 |
x__xgafv: string, V1 error format. |
| 181 |
Allowed values |
| 182 |
1 - v1 error format |
| 183 |
2 - v2 error format |
| 184 |
|
| 185 |
Returns: |
| 186 |
An object of the form: |
| 187 |
|
| 188 |
{ # Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type. |
| 189 |
"aclEntries": [ # Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100. |
| 190 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 191 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 192 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 193 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 194 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 195 |
}, |
| 196 |
], |
| 197 |
"etag": "A String", # Optional. `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. |
| 198 |
"name": "A String", # Identifier. 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/*`) |
| 199 |
"patternType": "A String", # Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED. |
| 200 |
"resourceName": "A String", # Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*". |
| 201 |
"resourceType": "A String", # Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. |
| 202 |
}</pre> |
| 203 |
</div> |
| 204 |
|
| 205 |
<div class="method"> |
| 206 |
<code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 207 |
<pre>Deletes an acl. |
| 208 |
|
| 209 |
Args: |
| 210 |
name: string, Required. The name of the acl to delete. 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. See `Acl.name` for details. (required) |
| 211 |
x__xgafv: string, V1 error format. |
| 212 |
Allowed values |
| 213 |
1 - v1 error format |
| 214 |
2 - v2 error format |
| 215 |
|
| 216 |
Returns: |
| 217 |
An object of the form: |
| 218 |
|
| 219 |
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } |
| 220 |
}</pre> |
| 221 |
</div> |
| 222 |
|
| 223 |
<div class="method"> |
| 224 |
<code class="details" id="get">get(name, x__xgafv=None)</code> |
| 225 |
<pre>Returns the properties of a single acl. |
| 226 |
|
| 227 |
Args: |
| 228 |
name: string, Required. The name of the acl to return. 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. See `Acl.name` for details. (required) |
| 229 |
x__xgafv: string, V1 error format. |
| 230 |
Allowed values |
| 231 |
1 - v1 error format |
| 232 |
2 - v2 error format |
| 233 |
|
| 234 |
Returns: |
| 235 |
An object of the form: |
| 236 |
|
| 237 |
{ # Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type. |
| 238 |
"aclEntries": [ # Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100. |
| 239 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 240 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 241 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 242 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 243 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 244 |
}, |
| 245 |
], |
| 246 |
"etag": "A String", # Optional. `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. |
| 247 |
"name": "A String", # Identifier. 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/*`) |
| 248 |
"patternType": "A String", # Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED. |
| 249 |
"resourceName": "A String", # Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*". |
| 250 |
"resourceType": "A String", # Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. |
| 251 |
}</pre> |
| 252 |
</div> |
| 253 |
|
| 254 |
<div class="method"> |
| 255 |
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 256 |
<pre>Lists the acls in a given cluster. |
| 257 |
|
| 258 |
Args: |
| 259 |
parent: string, Required. The parent cluster whose acls are to be listed. Structured like `projects/{project}/locations/{location}/clusters/{cluster}`. (required) |
| 260 |
pageSize: integer, Optional. The maximum number of acls to return. The service may return fewer than this value. If unset or zero, all acls for the parent is returned. |
| 261 |
pageToken: string, Optional. A page token, received from a previous `ListAcls` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAcls` must match the call that provided the page token. |
| 262 |
x__xgafv: string, V1 error format. |
| 263 |
Allowed values |
| 264 |
1 - v1 error format |
| 265 |
2 - v2 error format |
| 266 |
|
| 267 |
Returns: |
| 268 |
An object of the form: |
| 269 |
|
| 270 |
{ # Response for ListAcls. |
| 271 |
"acls": [ # The list of acls in the requested parent. The order of the acls is unspecified. |
| 272 |
{ # Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type. |
| 273 |
"aclEntries": [ # Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100. |
| 274 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 275 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 276 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 277 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 278 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 279 |
}, |
| 280 |
], |
| 281 |
"etag": "A String", # Optional. `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. |
| 282 |
"name": "A String", # Identifier. 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/*`) |
| 283 |
"patternType": "A String", # Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED. |
| 284 |
"resourceName": "A String", # Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*". |
| 285 |
"resourceType": "A String", # Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. |
| 286 |
}, |
| 287 |
], |
| 288 |
"nextPageToken": "A String", # A token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results. |
| 289 |
}</pre> |
| 290 |
</div> |
| 291 |
|
| 292 |
<div class="method"> |
| 293 |
<code class="details" id="list_next">list_next()</code> |
| 294 |
<pre>Retrieves the next page of results. |
| 295 |
|
| 296 |
Args: |
| 297 |
previous_request: The request for the previous page. (required) |
| 298 |
previous_response: The response from the request for the previous page. (required) |
| 299 |
|
| 300 |
Returns: |
| 301 |
A request object that you can call 'execute()' on to request the next |
| 302 |
page. Returns None if there are no more items in the collection. |
| 303 |
</pre> |
| 304 |
</div> |
| 305 |
|
| 306 |
<div class="method"> |
| 307 |
<code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 308 |
<pre>Updates the properties of a single acl. |
| 309 |
|
| 310 |
Args: |
| 311 |
name: string, Identifier. 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/*`) (required) |
| 312 |
body: object, The request body. |
| 313 |
The object takes the form of: |
| 314 |
|
| 315 |
{ # Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type. |
| 316 |
"aclEntries": [ # Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100. |
| 317 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 318 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 319 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 320 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 321 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 322 |
}, |
| 323 |
], |
| 324 |
"etag": "A String", # Optional. `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. |
| 325 |
"name": "A String", # Identifier. 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/*`) |
| 326 |
"patternType": "A String", # Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED. |
| 327 |
"resourceName": "A String", # Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*". |
| 328 |
"resourceType": "A String", # Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. |
| 329 |
} |
| 330 |
|
| 331 |
updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the Acl resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. |
| 332 |
x__xgafv: string, V1 error format. |
| 333 |
Allowed values |
| 334 |
1 - v1 error format |
| 335 |
2 - v2 error format |
| 336 |
|
| 337 |
Returns: |
| 338 |
An object of the form: |
| 339 |
|
| 340 |
{ # Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type. |
| 341 |
"aclEntries": [ # Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100. |
| 342 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 343 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 344 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 345 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 346 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 347 |
}, |
| 348 |
], |
| 349 |
"etag": "A String", # Optional. `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. |
| 350 |
"name": "A String", # Identifier. 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/*`) |
| 351 |
"patternType": "A String", # Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED. |
| 352 |
"resourceName": "A String", # Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*". |
| 353 |
"resourceType": "A String", # Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. |
| 354 |
}</pre> |
| 355 |
</div> |
| 356 |
|
| 357 |
<div class="method"> |
| 358 |
<code class="details" id="removeAclEntry">removeAclEntry(acl, body=None, x__xgafv=None)</code> |
| 359 |
<pre>Incremental update: Removes an acl entry from an acl. Deletes the acl if its acl entries become empty (i.e. if the removed entry was the last one in the acl). |
| 360 |
|
| 361 |
Args: |
| 362 |
acl: string, Required. The name of the acl to remove the acl entry from. 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. See `Acl.name` for details. (required) |
| 363 |
body: object, The request body. |
| 364 |
The object takes the form of: |
| 365 |
|
| 366 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 367 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 368 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 369 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 370 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 371 |
} |
| 372 |
|
| 373 |
x__xgafv: string, V1 error format. |
| 374 |
Allowed values |
| 375 |
1 - v1 error format |
| 376 |
2 - v2 error format |
| 377 |
|
| 378 |
Returns: |
| 379 |
An object of the form: |
| 380 |
|
| 381 |
{ # Response for RemoveAclEntry. |
| 382 |
"acl": { # Represents the set of ACLs for a given Kafka Resource Pattern, which consists of resource_type, resource_name and pattern_type. # The updated acl. Returned if the removed acl entry was not the last entry in the acl. |
| 383 |
"aclEntries": [ # Required. The ACL entries that apply to the resource pattern. The maximum number of allowed entries 100. |
| 384 |
{ # Represents the access granted for a given Resource Pattern in an ACL. |
| 385 |
"host": "A String", # Required. The host. Must be set to "*" for Managed Service for Apache Kafka. |
| 386 |
"operation": "A 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. See https://kafka.apache.org/documentation/#operations_resources_and_protocols for valid combinations of resource_type and operation for different Kafka API requests. |
| 387 |
"permissionType": "A String", # Required. The permission type. Accepted values are (case insensitive): ALLOW, DENY. |
| 388 |
"principal": "A String", # Required. The principal. Specified as Google Cloud account, with the Kafka StandardAuthorizer prefix "User:". For example: "User:[email protected]". Can be the wildcard "User:*" to refer to all users. |
| 389 |
}, |
| 390 |
], |
| 391 |
"etag": "A String", # Optional. `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. |
| 392 |
"name": "A String", # Identifier. 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/*`) |
| 393 |
"patternType": "A String", # Output only. The ACL pattern type derived from the name. One of: LITERAL, PREFIXED. |
| 394 |
"resourceName": "A String", # Output only. The ACL resource name derived from the name. For cluster resource_type, this is always "kafka-cluster". Can be the wildcard literal "*". |
| 395 |
"resourceType": "A String", # Output only. The ACL resource type derived from the name. One of: CLUSTER, TOPIC, GROUP, TRANSACTIONAL_ID. |
| 396 |
}, |
| 397 |
"aclDeleted": True or False, # Returned with value true if the removed acl entry was the last entry in the acl, resulting in acl deletion. |
| 398 |
}</pre> |
| 399 |
</div> |
| 400 |
|
| 401 |
</body></html> |