1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
# 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
class SourceTrigger(Model):
"""The properties of a source based trigger.
All required parameters must be populated in order to send to Azure.
:param source_repository: Required. The properties that describes the
source(code) for the task.
:type source_repository:
~azure.mgmt.containerregistry.v2018_09_01.models.SourceProperties
:param source_trigger_events: Required. The source event corresponding to
the trigger.
:type source_trigger_events: list[str or
~azure.mgmt.containerregistry.v2018_09_01.models.SourceTriggerEvent]
:param status: The current status of trigger. Possible values include:
'Disabled', 'Enabled'
:type status: str or
~azure.mgmt.containerregistry.v2018_09_01.models.TriggerStatus
:param name: Required. The name of the trigger.
:type name: str
"""
_validation = {
'source_repository': {'required': True},
'source_trigger_events': {'required': True},
'name': {'required': True},
}
_attribute_map = {
'source_repository': {'key': 'sourceRepository', 'type': 'SourceProperties'},
'source_trigger_events': {'key': 'sourceTriggerEvents', 'type': '[str]'},
'status': {'key': 'status', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
}
def __init__(self, **kwargs):
super(SourceTrigger, self).__init__(**kwargs)
self.source_repository = kwargs.get('source_repository', None)
self.source_trigger_events = kwargs.get('source_trigger_events', None)
self.status = kwargs.get('status', None)
self.name = kwargs.get('name', None)
|