ContextCachesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:context_caches> attribute.
Constructor
ContextCachesOperations(*args, **kwargs)
Methods
| begin_create_or_update |
Create or update a Context Cache. |
| begin_delete |
Delete a Context Cache. |
| begin_update |
Update a Context Cache. |
| get |
Get a Context Cache. |
| list_by_resource_group |
List Context Caches by resource group. |
| list_by_subscription |
List Context Caches by subscription. |
begin_create_or_update
Create or update a Context Cache.
begin_create_or_update(resource_group_name: str, context_cache_name: str, resource: _models.ContextCache, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ContextCache]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
context_cache_name
Required
|
The name of the context cache. Required. |
|
resource
Required
|
Resource create parameters. Is either a ContextCache type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns ContextCache. The ContextCache is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
begin_delete
Delete a Context Cache.
begin_delete(resource_group_name: str, context_cache_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. |
|
context_cache_name
Required
|
The name of the context cache. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
begin_update
Update a Context Cache.
begin_update(resource_group_name: str, context_cache_name: str, properties: _models.ContextCacheUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ContextCache]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
context_cache_name
Required
|
The name of the context cache. Required. |
|
properties
Required
|
The resource properties to be updated. Is either a ContextCacheUpdate type or a IO[bytes] type. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of LROPoller that returns ContextCache. The ContextCache is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
get
Get a Context Cache.
get(resource_group_name: str, context_cache_name: str, **kwargs: Any) -> ContextCache
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
|
context_cache_name
Required
|
The name of the context cache. Required. |
Returns
| Type | Description |
|---|---|
|
ContextCache. The ContextCache is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list_by_resource_group
List Context Caches by resource group.
list_by_resource_group(resource_group_name: str, **kwargs: Any) -> ItemPaged[ContextCache]
Parameters
| Name | Description |
|---|---|
|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
Returns
| Type | Description |
|---|---|
|
An iterator like instance of ContextCache |
Exceptions
| Type | Description |
|---|---|
list_by_subscription
List Context Caches by subscription.
list_by_subscription(**kwargs: Any) -> ItemPaged[ContextCache]
Returns
| Type | Description |
|---|---|
|
An iterator like instance of ContextCache |
Exceptions
| Type | Description |
|---|---|