Source code for azure.keyvault.models.lifetime_action

# 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 LifetimeAction(Model): """Action and its trigger that will be performed by Key Vault over the lifetime of a certificate. :param trigger: The condition that will execute the action. :type trigger: :class:`Trigger <azure.keyvault.models.Trigger>` :param action: The action that will be executed. :type action: :class:`Action <azure.keyvault.models.Action>` """ _attribute_map = { 'trigger': {'key': 'trigger', 'type': 'Trigger'}, 'action': {'key': 'action', 'type': 'Action'}, } def __init__(self, trigger=None, action=None): self.trigger = trigger self.action = action