1# coding=utf-8
2# --------------------------------------------------------------------------
3# Copyright (c) Microsoft Corporation. All rights reserved.
4# Licensed under the MIT License. See License.txt in the project root for
5# license information.
6#
7# Code generated by Microsoft (R) AutoRest Code Generator.
8# Changes may cause incorrect behavior and will be lost if the code is
9# regenerated.
10# --------------------------------------------------------------------------
11
12from msrest.serialization import Model
13
14
15class LifetimeAction(Model):
16    """Action and its trigger that will be performed by Key Vault over the
17    lifetime of a certificate.
18
19    :param trigger: The condition that will execute the action.
20    :type trigger: ~azure.keyvault.v2016_10_01.models.Trigger
21    :param action: The action that will be executed.
22    :type action: ~azure.keyvault.v2016_10_01.models.Action
23    """
24
25    _attribute_map = {
26        'trigger': {'key': 'trigger', 'type': 'Trigger'},
27        'action': {'key': 'action', 'type': 'Action'},
28    }
29
30    def __init__(self, *, trigger=None, action=None, **kwargs) -> None:
31        super(LifetimeAction, self).__init__(**kwargs)
32        self.trigger = trigger
33        self.action = action
34