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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
# 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 X12EnvelopeOverride(Model):
"""The X12 envelope override settings.
All required parameters must be populated in order to send to Azure.
:param target_namespace: Required. The target namespace on which this
envelope settings has to be applied.
:type target_namespace: str
:param protocol_version: Required. The protocol version on which this
envelope settings has to be applied.
:type protocol_version: str
:param message_id: Required. The message id on which this envelope
settings has to be applied.
:type message_id: str
:param responsible_agency_code: Required. The responsible agency code.
:type responsible_agency_code: str
:param header_version: Required. The header version.
:type header_version: str
:param sender_application_id: Required. The sender application id.
:type sender_application_id: str
:param receiver_application_id: Required. The receiver application id.
:type receiver_application_id: str
:param functional_identifier_code: The functional identifier code.
:type functional_identifier_code: str
:param date_format: Required. The date format. Possible values include:
'NotSpecified', 'CCYYMMDD', 'YYMMDD'
:type date_format: str or ~azure.mgmt.logic.models.X12DateFormat
:param time_format: Required. The time format. Possible values include:
'NotSpecified', 'HHMM', 'HHMMSS', 'HHMMSSdd', 'HHMMSSd'
:type time_format: str or ~azure.mgmt.logic.models.X12TimeFormat
"""
_validation = {
'target_namespace': {'required': True},
'protocol_version': {'required': True},
'message_id': {'required': True},
'responsible_agency_code': {'required': True},
'header_version': {'required': True},
'sender_application_id': {'required': True},
'receiver_application_id': {'required': True},
'date_format': {'required': True},
'time_format': {'required': True},
}
_attribute_map = {
'target_namespace': {'key': 'targetNamespace', 'type': 'str'},
'protocol_version': {'key': 'protocolVersion', 'type': 'str'},
'message_id': {'key': 'messageId', 'type': 'str'},
'responsible_agency_code': {'key': 'responsibleAgencyCode', 'type': 'str'},
'header_version': {'key': 'headerVersion', 'type': 'str'},
'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'},
'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'},
'functional_identifier_code': {'key': 'functionalIdentifierCode', 'type': 'str'},
'date_format': {'key': 'dateFormat', 'type': 'X12DateFormat'},
'time_format': {'key': 'timeFormat', 'type': 'X12TimeFormat'},
}
def __init__(self, **kwargs):
super(X12EnvelopeOverride, self).__init__(**kwargs)
self.target_namespace = kwargs.get('target_namespace', None)
self.protocol_version = kwargs.get('protocol_version', None)
self.message_id = kwargs.get('message_id', None)
self.responsible_agency_code = kwargs.get('responsible_agency_code', None)
self.header_version = kwargs.get('header_version', None)
self.sender_application_id = kwargs.get('sender_application_id', None)
self.receiver_application_id = kwargs.get('receiver_application_id', None)
self.functional_identifier_code = kwargs.get('functional_identifier_code', None)
self.date_format = kwargs.get('date_format', None)
self.time_format = kwargs.get('time_format', None)
|