PatchSchedulesOperations Class

PatchSchedulesOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
PatchSchedulesOperations

Constructor

PatchSchedulesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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.

create_or_update(resource_group_name: str, name: str, default: Union[str, _models.DefaultName], parameters: _models.RedisPatchSchedule, **kwargs: Any) -> _models.RedisPatchSchedule

Parameters

resource_group_name
str
Required

The name of the resource group.

name
str
Required

The name of the Redis cache.

default
str or DefaultName
Required

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

parameters
RedisPatchSchedule
Required

Parameters to set the patching schedule for Redis cache.

cls
callable

A custom type or function that will be passed the direct response

Returns

RedisPatchSchedule, or the result of cls(response)

Return type

Exceptions

delete

Deletes the patching schedule of a redis cache.

delete(resource_group_name: str, name: str, default: Union[str, _models.DefaultName], **kwargs: Any) -> None

Parameters

resource_group_name
str
Required

The name of the resource group.

name
str
Required

The name of the redis cache.

default
str or DefaultName
Required

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

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets the patching schedule of a redis cache.

get(resource_group_name: str, name: str, default: Union[str, _models.DefaultName], **kwargs: Any) -> _models.RedisPatchSchedule

Parameters

resource_group_name
str
Required

The name of the resource group.

name
str
Required

The name of the redis cache.

default
str or DefaultName
Required

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

cls
callable

A custom type or function that will be passed the direct response

Returns

RedisPatchSchedule, or the result of cls(response)

Return type

Exceptions

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) -> Iterable[_models.RedisPatchScheduleListResult]

Parameters

resource_group_name
str
Required

The name of the resource group.

cache_name
str
Required

The name of the Redis cache.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either RedisPatchScheduleListResult or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.redis.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\redis\\models\\__init__.py'>