# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
[docs]class RetentionPolicy(Model):
"""Specifies the retention policy for the log.
All required parameters must be populated in order to send to Azure.
:param enabled: Required. a value indicating whether the retention policy
is enabled.
:type enabled: bool
:param days: Required. the number of days for the retention in days. A
value of 0 will retain the events indefinitely.
:type days: int
"""
_validation = {
'enabled': {'required': True},
'days': {'required': True, 'minimum': 0},
}
_attribute_map = {
'enabled': {'key': 'enabled', 'type': 'bool'},
'days': {'key': 'days', 'type': 'int'},
}
def __init__(self, *, enabled: bool, days: int, **kwargs) -> None:
super(RetentionPolicy, self).__init__(**kwargs)
self.enabled = enabled
self.days = days