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.objectPatchSchedulesOperations
Constructor
PatchSchedulesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- default
- str or DefaultName
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
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
- default
- str or DefaultName
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
- default
- str or DefaultName
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
- 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'>
Feedback
Submit and view feedback for