Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions azure-mgmt-logic/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,64 @@
Release History
===============

3.0.0 (2018-05-18)
++++++++++++++++++

**Features**

- Model WorkflowTriggerListCallbackUrlQueries has a new parameter se
- Model WorkflowRun has a new parameter wait_end_time
- Model WorkflowRunTrigger has a new parameter scheduled_time
- Added operation IntegrationAccountsOperations.log_tracking_events
- Added operation IntegrationAccountsOperations.regenerate_access_key
- Added operation IntegrationAccountsOperations.list_key_vault_keys
- Added operation WorkflowRunActionsOperations.list_expression_traces
- Added operation PartnersOperations.list_content_callback_url
- Added operation AgreementsOperations.list_content_callback_url
- Added operation SchemasOperations.list_content_callback_url
- Added operation WorkflowsOperations.move
- Added operation WorkflowsOperations.validate_workflow
- Added operation WorkflowsOperations.list_callback_url
- Added operation WorkflowTriggersOperations.get_schema_json
- Added operation WorkflowTriggersOperations.reset
- Added operation WorkflowTriggersOperations.set_state
- Added operation MapsOperations.list_content_callback_url
- Added operation group IntegrationAccountAssembliesOperations
- Added operation group WorkflowRunActionScopedRepetitionsOperations
- Added operation group WorkflowRunActionRepetitionsOperations
- Added operation group IntegrationAccountBatchConfigurationsOperations
- Added operation group WorkflowRunOperations
- Client class can be used as a context manager to keep the underlying HTTP session open for performance

**General Breaking changes**

This version uses a next-generation code generator that *might* introduce breaking changes.

- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments.
To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments.
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered.
While this is not a breaking change, the distinctions are important, and are documented here:
https://docs.python.org/3/library/enum.html#others
At a glance:

- "is" should not be used at all.
- "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be prefered.

- New Long Running Operation:

- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
the response of the initial call will be returned without polling.
- `polling` parameter accepts instances of subclasses of `msrest.polling.PollingMethod`.
- `add_done_callback` will no longer raise if called after polling is finished, but will instead execute the callback right away.

**Bugfixes**

- Compatibility of the sdist with wheel 0.31.0

2.1.0 (2017-04-18)
++++++++++++++++++

Expand Down
16 changes: 11 additions & 5 deletions azure-mgmt-logic/README.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure LogicApps Management Client Library.
This is the Microsoft Azure Logic Apps Management Client Library.

This package has been tested with Python 2.7, 3.3, 3.4 and 3.5.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5 and 3.6.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.

Expand All @@ -30,9 +36,9 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
Usage
=====

For code examples, see `Logic Apps Resource Management
<https://azure-sdk-for-python.readthedocs.org/en/latest/resourcemanagementapps.html>`__
on readthedocs.org.
For code examples, see `Logic Apps Management
<https://docs.microsoft.com/python/api/overview/azure/logic-apps>`__
on docs.microsoft.com.


Provide Feedback
Expand Down
Empty file modified azure-mgmt-logic/azure/mgmt/logic/__init__.py
100755 → 100644
Empty file.
73 changes: 49 additions & 24 deletions azure-mgmt-logic/azure/mgmt/logic/logic_management_client.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand All @@ -22,7 +22,12 @@
from .operations.workflow_trigger_histories_operations import WorkflowTriggerHistoriesOperations
from .operations.workflow_runs_operations import WorkflowRunsOperations
from .operations.workflow_run_actions_operations import WorkflowRunActionsOperations
from .operations.workflow_run_action_repetitions_operations import WorkflowRunActionRepetitionsOperations
from .operations.workflow_run_action_scoped_repetitions_operations import WorkflowRunActionScopedRepetitionsOperations
from .operations.workflow_run_operations import WorkflowRunOperations
from .operations.integration_accounts_operations import IntegrationAccountsOperations
from .operations.integration_account_assemblies_operations import IntegrationAccountAssembliesOperations
from .operations.integration_account_batch_configurations_operations import IntegrationAccountBatchConfigurationsOperations
from .operations.schemas_operations import SchemasOperations
from .operations.maps_operations import MapsOperations
from .operations.partners_operations import PartnersOperations
Expand Down Expand Up @@ -52,52 +57,60 @@ def __init__(
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not isinstance(subscription_id, str):
raise TypeError("Parameter 'subscription_id' must be str.")
if not base_url:
base_url = 'https://management.azure.com'

super(LogicManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('logicmanagementclient/{}'.format(VERSION))
self.add_user_agent('azure-mgmt-logic/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id


class LogicManagementClient(object):
class LogicManagementClient(SDKClient):
"""REST API for Azure Logic Apps.

:ivar config: Configuration for client.
:vartype config: LogicManagementClientConfiguration

:ivar workflows: Workflows operations
:vartype workflows: .operations.WorkflowsOperations
:vartype workflows: azure.mgmt.logic.operations.WorkflowsOperations
:ivar workflow_versions: WorkflowVersions operations
:vartype workflow_versions: .operations.WorkflowVersionsOperations
:vartype workflow_versions: azure.mgmt.logic.operations.WorkflowVersionsOperations
:ivar workflow_triggers: WorkflowTriggers operations
:vartype workflow_triggers: .operations.WorkflowTriggersOperations
:vartype workflow_triggers: azure.mgmt.logic.operations.WorkflowTriggersOperations
:ivar workflow_trigger_histories: WorkflowTriggerHistories operations
:vartype workflow_trigger_histories: .operations.WorkflowTriggerHistoriesOperations
:vartype workflow_trigger_histories: azure.mgmt.logic.operations.WorkflowTriggerHistoriesOperations
:ivar workflow_runs: WorkflowRuns operations
:vartype workflow_runs: .operations.WorkflowRunsOperations
:vartype workflow_runs: azure.mgmt.logic.operations.WorkflowRunsOperations
:ivar workflow_run_actions: WorkflowRunActions operations
:vartype workflow_run_actions: .operations.WorkflowRunActionsOperations
:vartype workflow_run_actions: azure.mgmt.logic.operations.WorkflowRunActionsOperations
:ivar workflow_run_action_repetitions: WorkflowRunActionRepetitions operations
:vartype workflow_run_action_repetitions: azure.mgmt.logic.operations.WorkflowRunActionRepetitionsOperations
:ivar workflow_run_action_scoped_repetitions: WorkflowRunActionScopedRepetitions operations
:vartype workflow_run_action_scoped_repetitions: azure.mgmt.logic.operations.WorkflowRunActionScopedRepetitionsOperations
:ivar workflow_run_operations: WorkflowRunOperations operations
:vartype workflow_run_operations: azure.mgmt.logic.operations.WorkflowRunOperations
:ivar integration_accounts: IntegrationAccounts operations
:vartype integration_accounts: .operations.IntegrationAccountsOperations
:vartype integration_accounts: azure.mgmt.logic.operations.IntegrationAccountsOperations
:ivar integration_account_assemblies: IntegrationAccountAssemblies operations
:vartype integration_account_assemblies: azure.mgmt.logic.operations.IntegrationAccountAssembliesOperations
:ivar integration_account_batch_configurations: IntegrationAccountBatchConfigurations operations
:vartype integration_account_batch_configurations: azure.mgmt.logic.operations.IntegrationAccountBatchConfigurationsOperations
:ivar schemas: Schemas operations
:vartype schemas: .operations.SchemasOperations
:vartype schemas: azure.mgmt.logic.operations.SchemasOperations
:ivar maps: Maps operations
:vartype maps: .operations.MapsOperations
:vartype maps: azure.mgmt.logic.operations.MapsOperations
:ivar partners: Partners operations
:vartype partners: .operations.PartnersOperations
:vartype partners: azure.mgmt.logic.operations.PartnersOperations
:ivar agreements: Agreements operations
:vartype agreements: .operations.AgreementsOperations
:vartype agreements: azure.mgmt.logic.operations.AgreementsOperations
:ivar certificates: Certificates operations
:vartype certificates: .operations.CertificatesOperations
:vartype certificates: azure.mgmt.logic.operations.CertificatesOperations
:ivar sessions: Sessions operations
:vartype sessions: .operations.SessionsOperations
:vartype sessions: azure.mgmt.logic.operations.SessionsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -111,7 +124,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = LogicManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(LogicManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2016-06-01'
Expand All @@ -130,8 +143,18 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_run_actions = WorkflowRunActionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_run_action_repetitions = WorkflowRunActionRepetitionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_run_action_scoped_repetitions = WorkflowRunActionScopedRepetitionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_run_operations = WorkflowRunOperations(
self._client, self.config, self._serialize, self._deserialize)
self.integration_accounts = IntegrationAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.integration_account_assemblies = IntegrationAccountAssembliesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.integration_account_batch_configurations = IntegrationAccountBatchConfigurationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.schemas = SchemasOperations(
self._client, self.config, self._serialize, self._deserialize)
self.maps = MapsOperations(
Expand All @@ -154,20 +177,21 @@ def list_operations(
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:rtype: :class:`OperationPaged
<azure.mgmt.logic.models.OperationPaged>`
:return: An iterator like instance of Operation
:rtype:
~azure.mgmt.logic.models.OperationPaged[~azure.mgmt.logic.models.Operation]
:raises:
:class:`ErrorResponseException<azure.mgmt.logic.models.ErrorResponseException>`
"""
def internal_paging(next_link=None, raw=False):

if not next_link:
# Construct URL
url = '/providers/Microsoft.Logic/operations'
url = self.list_operations.metadata['url']

# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

else:
url = next_link
Expand All @@ -186,7 +210,7 @@ def internal_paging(next_link=None, raw=False):
# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, **operation_config)
request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)
Expand All @@ -202,3 +226,4 @@ def internal_paging(next_link=None, raw=False):
return client_raw_response

return deserialized
list_operations.metadata = {'url': '/providers/Microsoft.Logic/operations'}
Loading