PatchSchedulesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

RedisManagementClient's

<xref:patch_schedules> attribute.

Inheritance
builtins.object
PatchSchedulesOperations

Constructor

PatchSchedulesOperations(*args, **kwargs)

Methods

create_or_update

Create or replace the patching schedule for Redis cache.

delete

Deletes the patching schedule of a redis cache.

get

Gets the patching schedule of a redis cache.

list_by_redis_resource

Gets all patch schedules in the specified redis cache (there is only one).

create_or_update

Create or replace the patching schedule for Redis cache.

async create_or_update(resource_group_name: str, name: str, default: str | _models.DefaultName, parameters: _models.RedisPatchSchedule, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RedisPatchSchedule

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

The name of the Redis cache. Required.

default
Required

Default string modeled as parameter for auto generation to work correctly. "default" Required.

parameters
Required

Parameters to set the patching schedule for Redis cache. Is either a RedisPatchSchedule type or a IO[bytes] type. Required.

Returns

Type Description

RedisPatchSchedule or the result of cls(response)

Exceptions

Type Description

delete

Deletes the patching schedule of a redis cache.

async delete(resource_group_name: str, name: str, default: str | DefaultName, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

The name of the redis cache. Required.

default
Required

Default string modeled as parameter for auto generation to work correctly. "default" Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Gets the patching schedule of a redis cache.

async get(resource_group_name: str, name: str, default: str | DefaultName, **kwargs: Any) -> RedisPatchSchedule

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

name
Required
str

The name of the redis cache. Required.

default
Required

Default string modeled as parameter for auto generation to work correctly. "default" Required.

Returns

Type Description

RedisPatchSchedule or the result of cls(response)

Exceptions

Type Description

list_by_redis_resource

Gets all patch schedules in the specified redis cache (there is only one).

list_by_redis_resource(resource_group_name: str, cache_name: str, **kwargs: Any) -> AsyncIterable[RedisPatchSchedule]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

cache_name
Required
str

The name of the Redis cache. Required.

Returns

Type Description

An iterator like instance of either RedisPatchSchedule 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'>