AccessPolicyAssignmentOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:access_policy_assignment> attribute.
- Inheritance
-
builtins.objectAccessPolicyAssignmentOperations
Constructor
AccessPolicyAssignmentOperations(*args, **kwargs)
Methods
begin_create_update |
Adds the access policy assignment to the specified users. |
begin_delete |
Deletes the access policy assignment from a redis cache. |
get |
Gets the list of assignments for an access policy of a redis cache. |
list |
Gets the list of access policy assignments associated with this redis cache. |
begin_create_update
Adds the access policy assignment to the specified users.
begin_create_update(resource_group_name: str, cache_name: str, access_policy_assignment_name: str, parameters: _models.RedisCacheAccessPolicyAssignment, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.RedisCacheAccessPolicyAssignment]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
cache_name
Required
|
The name of the Redis cache. Required. |
access_policy_assignment_name
Required
|
The name of the access policy assignment. Required. |
parameters
Required
|
Parameters supplied to the Create Update Access Policy Assignment operation. Is either a RedisCacheAccessPolicyAssignment type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either RedisCacheAccessPolicyAssignment or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes the access policy assignment from a redis cache.
begin_delete(resource_group_name: str, cache_name: str, access_policy_assignment_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
cache_name
Required
|
The name of the Redis cache. Required. |
access_policy_assignment_name
Required
|
The name of the access policy assignment. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets the list of assignments for an access policy of a redis cache.
get(resource_group_name: str, cache_name: str, access_policy_assignment_name: str, **kwargs: Any) -> RedisCacheAccessPolicyAssignment
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
cache_name
Required
|
The name of the Redis cache. Required. |
access_policy_assignment_name
Required
|
The name of the access policy assignment. Required. |
Returns
Type | Description |
---|---|
RedisCacheAccessPolicyAssignment or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets the list of access policy assignments associated with this redis cache.
list(resource_group_name: str, cache_name: str, **kwargs: Any) -> Iterable[RedisCacheAccessPolicyAssignment]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
cache_name
Required
|
The name of the Redis cache. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either RedisCacheAccessPolicyAssignment or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.redis.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\redis\\models\\__init__.py'>
Azure SDK for Python