Skip to content

Commit

Permalink
Generated from e7adb40
Browse files Browse the repository at this point in the history
  • Loading branch information
SwaggerToSDK Automation committed Apr 13, 2017
1 parent f4c92d0 commit f222c21
Show file tree
Hide file tree
Showing 13 changed files with 456 additions and 10 deletions.
16 changes: 12 additions & 4 deletions azure-mgmt-logic/azure/mgmt/logic/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from .workflow_trigger_recurrence import WorkflowTriggerRecurrence
from .workflow_trigger import WorkflowTrigger
from .workflow_trigger_filter import WorkflowTriggerFilter
from .workflow_trigger_list_callback_url_queries import WorkflowTriggerListCallbackUrlQueries
from .workflow_trigger_callback_url import WorkflowTriggerCallbackUrl
from .correlation import Correlation
from .content_hash import ContentHash
Expand All @@ -32,8 +33,12 @@
from .workflow_output_parameter import WorkflowOutputParameter
from .workflow_run import WorkflowRun
from .workflow_run_filter import WorkflowRunFilter
from .error_properties import ErrorProperties
from .error_response import ErrorResponse, ErrorResponseException
from .retry_history import RetryHistory
from .workflow_run_action import WorkflowRunAction
from .workflow_run_action_filter import WorkflowRunActionFilter
from .regenerate_action_parameter import RegenerateActionParameter
from .generate_upgraded_definition_parameters import GenerateUpgradedDefinitionParameters
from .integration_account_sku import IntegrationAccountSku
from .integration_account import IntegrationAccount
Expand Down Expand Up @@ -98,8 +103,6 @@
from .integration_account_session import IntegrationAccountSession
from .operation_display import OperationDisplay
from .operation import Operation
from .error_properties import ErrorProperties
from .error_response import ErrorResponse, ErrorResponseException
from .workflow_paged import WorkflowPaged
from .workflow_version_paged import WorkflowVersionPaged
from .workflow_trigger_paged import WorkflowTriggerPaged
Expand Down Expand Up @@ -132,6 +135,7 @@
AgreementType,
HashingAlgorithm,
EncryptionAlgorithm,
SigningAlgorithm,
TrailingSeparatorPolicy,
X12CharacterSet,
SegmentTerminatorSuffix,
Expand All @@ -157,6 +161,7 @@
'WorkflowTriggerRecurrence',
'WorkflowTrigger',
'WorkflowTriggerFilter',
'WorkflowTriggerListCallbackUrlQueries',
'WorkflowTriggerCallbackUrl',
'Correlation',
'ContentHash',
Expand All @@ -167,8 +172,12 @@
'WorkflowOutputParameter',
'WorkflowRun',
'WorkflowRunFilter',
'ErrorProperties',
'ErrorResponse', 'ErrorResponseException',
'RetryHistory',
'WorkflowRunAction',
'WorkflowRunActionFilter',
'RegenerateActionParameter',
'GenerateUpgradedDefinitionParameters',
'IntegrationAccountSku',
'IntegrationAccount',
Expand Down Expand Up @@ -233,8 +242,6 @@
'IntegrationAccountSession',
'OperationDisplay',
'Operation',
'ErrorProperties',
'ErrorResponse', 'ErrorResponseException',
'WorkflowPaged',
'WorkflowVersionPaged',
'WorkflowTriggerPaged',
Expand Down Expand Up @@ -266,6 +273,7 @@
'AgreementType',
'HashingAlgorithm',
'EncryptionAlgorithm',
'SigningAlgorithm',
'TrailingSeparatorPolicy',
'X12CharacterSet',
'SegmentTerminatorSuffix',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class AS2SecuritySettings(Model):
:param enable_nrr_for_inbound_mdn: 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 = {
Expand All @@ -63,9 +66,10 @@ class AS2SecuritySettings(Model):
'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, enable_nrr_for_inbound_encoded_messages, enable_nrr_for_inbound_decoded_messages, enable_nrr_for_outbound_mdn, enable_nrr_for_outbound_encoded_messages, enable_nrr_for_outbound_decoded_messages, enable_nrr_for_inbound_mdn, signing_certificate_name=None, encryption_certificate_name=None):
def __init__(self, override_group_signing_certificate, enable_nrr_for_inbound_encoded_messages, enable_nrr_for_inbound_decoded_messages, enable_nrr_for_outbound_mdn, enable_nrr_for_outbound_encoded_messages, enable_nrr_for_outbound_decoded_messages, enable_nrr_for_inbound_mdn, signing_certificate_name=None, encryption_certificate_name=None, sha2_algorithm_format=None):
self.override_group_signing_certificate = override_group_signing_certificate
self.signing_certificate_name = signing_certificate_name
self.encryption_certificate_name = encryption_certificate_name
Expand All @@ -75,3 +79,4 @@ def __init__(self, override_group_signing_certificate, enable_nrr_for_inbound_en
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ class AS2ValidationSettings(Model):
'AES256'
:type encryption_algorithm: str or :class:`EncryptionAlgorithm
<azure.mgmt.logic.models.EncryptionAlgorithm>`
:param signing_algorithm: The signing algorithm. Possible values include:
'NotSpecified', 'Default', 'SHA1', 'SHA2256', 'SHA2384', 'SHA2512'
:type signing_algorithm: str or :class:`SigningAlgorithm
<azure.mgmt.logic.models.SigningAlgorithm>`
"""

_validation = {
Expand All @@ -68,9 +72,10 @@ class AS2ValidationSettings(Model):
'check_certificate_revocation_list_on_send': {'key': 'checkCertificateRevocationListOnSend', 'type': 'bool'},
'check_certificate_revocation_list_on_receive': {'key': 'checkCertificateRevocationListOnReceive', 'type': 'bool'},
'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'EncryptionAlgorithm'},
'signing_algorithm': {'key': 'signingAlgorithm', 'type': 'str'},
}

def __init__(self, override_message_properties, encrypt_message, sign_message, compress_message, check_duplicate_message, interchange_duplicates_validity_days, check_certificate_revocation_list_on_send, check_certificate_revocation_list_on_receive, encryption_algorithm):
def __init__(self, override_message_properties, encrypt_message, sign_message, compress_message, check_duplicate_message, interchange_duplicates_validity_days, check_certificate_revocation_list_on_send, check_certificate_revocation_list_on_receive, encryption_algorithm, signing_algorithm=None):
self.override_message_properties = override_message_properties
self.encrypt_message = encrypt_message
self.sign_message = sign_message
Expand All @@ -80,3 +85,4 @@ def __init__(self, override_message_properties, encrypt_message, sign_message, c
self.check_certificate_revocation_list_on_send = check_certificate_revocation_list_on_send
self.check_certificate_revocation_list_on_receive = check_certificate_revocation_list_on_receive
self.encryption_algorithm = encryption_algorithm
self.signing_algorithm = signing_algorithm
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,16 @@ class EncryptionAlgorithm(Enum):
aes256 = "AES256"


class SigningAlgorithm(Enum):

not_specified = "NotSpecified"
default = "Default"
sha1 = "SHA1"
sha2256 = "SHA2256"
sha2384 = "SHA2384"
sha2512 = "SHA2512"


class TrailingSeparatorPolicy(Enum):

not_specified = "NotSpecified"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 RegenerateActionParameter(Model):
"""The access key regenerate action content.
:param key_type: The key type. Possible values include: 'NotSpecified',
'Primary', 'Secondary'
:type key_type: str or :class:`KeyType <azure.mgmt.logic.models.KeyType>`
"""

_attribute_map = {
'key_type': {'key': 'keyType', 'type': 'KeyType'},
}

def __init__(self, key_type=None):
self.key_type = key_type
48 changes: 48 additions & 0 deletions azure-mgmt-logic/azure/mgmt/logic/models/retry_history.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 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 RetryHistory(Model):
"""The retry history.
:param start_time: Gets the start time.
:type start_time: datetime
:param end_time: Gets the end time.
:type end_time: datetime
:param code: Gets the status code.
:type code: str
:param client_request_id: Gets the client request Id.
:type client_request_id: str
:param service_request_id: Gets the service request Id.
:type service_request_id: str
:param error: Gets the error response.
:type error: :class:`ErrorResponse
<azure.mgmt.logic.models.ErrorResponse>`
"""

_attribute_map = {
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'end_time': {'key': 'endTime', 'type': 'iso-8601'},
'code': {'key': 'code', 'type': 'str'},
'client_request_id': {'key': 'clientRequestId', 'type': 'str'},
'service_request_id': {'key': 'serviceRequestId', 'type': 'str'},
'error': {'key': 'error', 'type': 'ErrorResponse'},
}

def __init__(self, start_time=None, end_time=None, code=None, client_request_id=None, service_request_id=None, error=None):
self.start_time = start_time
self.end_time = end_time
self.code = code
self.client_request_id = client_request_id
self.service_request_id = service_request_id
self.error = error
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class WorkflowRunAction(SubResource):
<azure.mgmt.logic.models.ContentLink>`
:ivar tracked_properties: Gets the tracked properties.
:vartype tracked_properties: object
:param retry_history: Gets the retry histories.
:type retry_history: list of :class:`RetryHistory
<azure.mgmt.logic.models.RetryHistory>`
:ivar name: Gets the workflow run action name.
:vartype name: str
:ivar type: Gets the workflow run action type.
Expand Down Expand Up @@ -79,11 +82,12 @@ class WorkflowRunAction(SubResource):
'inputs_link': {'key': 'properties.inputsLink', 'type': 'ContentLink'},
'outputs_link': {'key': 'properties.outputsLink', 'type': 'ContentLink'},
'tracked_properties': {'key': 'properties.trackedProperties', 'type': 'object'},
'retry_history': {'key': 'properties.retryHistory', 'type': '[RetryHistory]'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, correlation=None):
def __init__(self, correlation=None, retry_history=None):
super(WorkflowRunAction, self).__init__()
self.start_time = None
self.end_time = None
Expand All @@ -95,5 +99,6 @@ def __init__(self, correlation=None):
self.inputs_link = None
self.outputs_link = None
self.tracked_properties = None
self.retry_history = retry_history
self.name = None
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,40 @@ class WorkflowTriggerCallbackUrl(Model):
:ivar value: Gets the workflow trigger callback URL.
:vartype value: str
:ivar method: Gets the workflow trigger callback URL HTTP method.
:vartype method: str
:ivar base_path: Gets the workflow trigger callback URL base path.
:vartype base_path: str
:ivar relative_path: Gets the workflow trigger callback URL relative path.
:vartype relative_path: str
:param relative_path_parameters: Gets the workflow trigger callback URL
relative path parameters.
:type relative_path_parameters: list of str
:param queries: Gets the workflow trigger callback URL query parameters.
:type queries: :class:`WorkflowTriggerListCallbackUrlQueries
<azure.mgmt.logic.models.WorkflowTriggerListCallbackUrlQueries>`
"""

_validation = {
'value': {'readonly': True},
'method': {'readonly': True},
'base_path': {'readonly': True},
'relative_path': {'readonly': True},
}

_attribute_map = {
'value': {'key': 'value', 'type': 'str'},
'method': {'key': 'method', 'type': 'str'},
'base_path': {'key': 'basePath', 'type': 'str'},
'relative_path': {'key': 'relativePath', 'type': 'str'},
'relative_path_parameters': {'key': 'relativePathParameters', 'type': '[str]'},
'queries': {'key': 'queries', 'type': 'WorkflowTriggerListCallbackUrlQueries'},
}

def __init__(self):
def __init__(self, relative_path_parameters=None, queries=None):
self.value = None
self.method = None
self.base_path = None
self.relative_path = None
self.relative_path_parameters = relative_path_parameters
self.queries = queries
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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 WorkflowTriggerListCallbackUrlQueries(Model):
"""Gets the workflow trigger callback URL query parameters.
:param api_version: The api version.
:type api_version: str
:param sp: The SAS permissions.
:type sp: str
:param sv: The SAS version.
:type sv: str
:param sig: The SAS signature.
:type sig: str
"""

_attribute_map = {
'api_version': {'key': 'api-version', 'type': 'str'},
'sp': {'key': 'sp', 'type': 'str'},
'sv': {'key': 'sv', 'type': 'str'},
'sig': {'key': 'sig', 'type': 'str'},
}

def __init__(self, api_version=None, sp=None, sv=None, sig=None):
self.api_version = api_version
self.sp = sp
self.sv = sv
self.sig = sig
Loading

0 comments on commit f222c21

Please sign in to comment.