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 84 85
|
# 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 AS2SecuritySettings(Model):
"""The AS2 agreement security settings.
All required parameters must be populated in order to send to Azure.
:param override_group_signing_certificate: Required. The value indicating
whether to send or request a MDN.
:type override_group_signing_certificate: bool
:param signing_certificate_name: The name of the signing certificate.
:type signing_certificate_name: str
:param encryption_certificate_name: The name of the encryption
certificate.
:type encryption_certificate_name: str
:param enable_nrr_for_inbound_encoded_messages: Required. The value
indicating whether to enable NRR for inbound encoded messages.
:type enable_nrr_for_inbound_encoded_messages: bool
:param enable_nrr_for_inbound_decoded_messages: Required. The value
indicating whether to enable NRR for inbound decoded messages.
:type enable_nrr_for_inbound_decoded_messages: bool
:param enable_nrr_for_outbound_mdn: Required. The value indicating whether
to enable NRR for outbound MDN.
:type enable_nrr_for_outbound_mdn: bool
:param enable_nrr_for_outbound_encoded_messages: Required. The value
indicating whether to enable NRR for outbound encoded messages.
:type enable_nrr_for_outbound_encoded_messages: bool
:param enable_nrr_for_outbound_decoded_messages: Required. The value
indicating whether to enable NRR for outbound decoded messages.
:type enable_nrr_for_outbound_decoded_messages: bool
:param enable_nrr_for_inbound_mdn: Required. The value indicating whether
to enable NRR for inbound MDN.
:type enable_nrr_for_inbound_mdn: bool
:param sha2_algorithm_format: The Sha2 algorithm format. Valid values are
Sha2, ShaHashSize, ShaHyphenHashSize, Sha2UnderscoreHashSize.
:type sha2_algorithm_format: str
"""
_validation = {
'override_group_signing_certificate': {'required': True},
'enable_nrr_for_inbound_encoded_messages': {'required': True},
'enable_nrr_for_inbound_decoded_messages': {'required': True},
'enable_nrr_for_outbound_mdn': {'required': True},
'enable_nrr_for_outbound_encoded_messages': {'required': True},
'enable_nrr_for_outbound_decoded_messages': {'required': True},
'enable_nrr_for_inbound_mdn': {'required': True},
}
_attribute_map = {
'override_group_signing_certificate': {'key': 'overrideGroupSigningCertificate', 'type': 'bool'},
'signing_certificate_name': {'key': 'signingCertificateName', 'type': 'str'},
'encryption_certificate_name': {'key': 'encryptionCertificateName', 'type': 'str'},
'enable_nrr_for_inbound_encoded_messages': {'key': 'enableNrrForInboundEncodedMessages', 'type': 'bool'},
'enable_nrr_for_inbound_decoded_messages': {'key': 'enableNrrForInboundDecodedMessages', 'type': 'bool'},
'enable_nrr_for_outbound_mdn': {'key': 'enableNrrForOutboundMdn', 'type': 'bool'},
'enable_nrr_for_outbound_encoded_messages': {'key': 'enableNrrForOutboundEncodedMessages', 'type': 'bool'},
'enable_nrr_for_outbound_decoded_messages': {'key': 'enableNrrForOutboundDecodedMessages', 'type': 'bool'},
'enable_nrr_for_inbound_mdn': {'key': 'enableNrrForInboundMdn', 'type': 'bool'},
'sha2_algorithm_format': {'key': 'sha2AlgorithmFormat', 'type': 'str'},
}
def __init__(self, *, override_group_signing_certificate: bool, enable_nrr_for_inbound_encoded_messages: bool, enable_nrr_for_inbound_decoded_messages: bool, enable_nrr_for_outbound_mdn: bool, enable_nrr_for_outbound_encoded_messages: bool, enable_nrr_for_outbound_decoded_messages: bool, enable_nrr_for_inbound_mdn: bool, signing_certificate_name: str=None, encryption_certificate_name: str=None, sha2_algorithm_format: str=None, **kwargs) -> None:
super(AS2SecuritySettings, self).__init__(**kwargs)
self.override_group_signing_certificate = override_group_signing_certificate
self.signing_certificate_name = signing_certificate_name
self.encryption_certificate_name = encryption_certificate_name
self.enable_nrr_for_inbound_encoded_messages = enable_nrr_for_inbound_encoded_messages
self.enable_nrr_for_inbound_decoded_messages = enable_nrr_for_inbound_decoded_messages
self.enable_nrr_for_outbound_mdn = enable_nrr_for_outbound_mdn
self.enable_nrr_for_outbound_encoded_messages = enable_nrr_for_outbound_encoded_messages
self.enable_nrr_for_outbound_decoded_messages = enable_nrr_for_outbound_decoded_messages
self.enable_nrr_for_inbound_mdn = enable_nrr_for_inbound_mdn
self.sha2_algorithm_format = sha2_algorithm_format
|