Skip to content

Commit

Permalink
[AutoPR] logic/resource-manager (#2782)
Browse files Browse the repository at this point in the history
* Generated from 95a292d7110d9797050ecf6a7305199ae4fe2d1a (#2777)

Adding in description of available filter options

* Generated from 67a236748ca1406e2afe69d99f39a1c1bb7167c9 (#3118)

Fix for extra / on the end of the triggers endpoint

* Generated from 989e7b0c282b2fd93eda33260b929a28ae975cbe (#3191)

Remove extra prep files, update the readme

* [AutoPR logic/resource-manager] Change some string modelled enums back into enums (#3237)

* Generated from 2b946c42fe05c892efee90f150c5b2b7897d9e8d

Change some string modelled enums back into enums

* Generated from c016726b2b4438bf45bdbebe25f68a67330478b0

Change EDIFACT back to be an enum, not a string

* Packaging update of azure-mgmt-logic

* Generated from 14736179143e9c45f99655ed4066c1ff36c6a98e (#3319)

Remove default response from Sessions to bring them inline with the remaining artifacts

* [AutoPR logic/resource-manager] Add 2 missing endpoints to newest versions Microsoft.Logic (#3693)

* Generated from 6533a0dd2a5dfbe7ec76f3f2b6c407c876d4315d

Add missing endpoints to newest versions

* Packaging update of azure-mgmt-logic

* Generated from 09ee5609f7e335c47444a741f70625da9ce05630

Changing copy error of POST to GET. Added missing page links

* Generated from 1bbdab407fa1f6f3e68f40d006d153dcea4a0b44

Fix for top level properties errir

* Generated from 7ecc9d663ef1e01cd44bd527cc11dfc3f07f6bcb

Rename CloudError to not a potentially reserved name and removed the x-ms-external flag

* Generated from 91bb28bda57ea3c1098996d219975365b5499509

Use already existing error response object

* Generated from 469707fc77ddb1e4989140acd566312a7f170318 (#3807)

Don't make ResourceReference id readonly, it's causing a bug in the SDK where an Logic Apps with integration accounts can't be saved

* Packaging update of azure-mgmt-logic

* Generated from 145604c497541dd3ed7dc990057d1ed6e18513ba (#3995)

Bugfix for swagger/sdk not matching the underlying service API

* Update version.py

* ChangeLog

* Record with latest API
  • Loading branch information
AutorestCI authored and lmazuel committed Dec 11, 2018
1 parent 8af816e commit 432cc6a
Show file tree
Hide file tree
Showing 129 changed files with 1,571 additions and 805 deletions.
36 changes: 35 additions & 1 deletion azure-mgmt-logic/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,40 @@
Release History
===============

4.0.0rc1 (2018-12-10)
+++++++++++++++++++++

**Features**

- Added operation WorkflowsOperations.validate_by_location
- Added operation WorkflowsOperations.validate_by_resource_group
- Added operation IntegrationAccountsOperations.list_callback_url
- Added operation group WorkflowRunActionRequestHistoriesOperations
- Added operation group Operations
- Added operation group WorkflowRunActionScopeRepetitionsOperations
- Added operation group WorkflowVersionTriggersOperations
- Added operation group IntegrationAccountSessionsOperations
- Added operation group IntegrationAccountCertificatesOperations
- Added operation group IntegrationAccountSchemasOperations
- Added operation group WorkflowRunActionRepetitionsRequestHistoriesOperations
- Added operation group IntegrationAccountAgreementsOperations
- Added operation group IntegrationAccountMapsOperations
- Added operation group IntegrationAccountPartnersOperations

**Breaking changes**

- Removed operation WorkflowsOperations.validate_workflow
- Removed operation WorkflowsOperations.validate
- Removed operation WorkflowVersionsOperations.list_callback_url
- Removed operation IntegrationAccountsOperations.get_callback_url
- Removed operation group AgreementsOperations
- Removed operation group SessionsOperations
- Removed operation group CertificatesOperations
- Removed operation group SchemasOperations
- Removed operation group MapsOperations
- Removed operation group WorkflowRunActionScopedRepetitionsOperations
- Removed operation group PartnersOperations

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

Expand Down Expand Up @@ -50,7 +84,7 @@ This version uses a next-generation code generator that *might* introduce breaki

- 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`,
- 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.
Expand Down
3 changes: 3 additions & 0 deletions azure-mgmt-logic/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

141 changes: 49 additions & 92 deletions azure-mgmt-logic/azure/mgmt/logic/logic_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,28 @@
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from msrest.pipeline import ClientRawResponse
from msrestazure.azure_exceptions import CloudError
import uuid
from .operations.workflows_operations import WorkflowsOperations
from .operations.workflow_versions_operations import WorkflowVersionsOperations
from .operations.workflow_triggers_operations import WorkflowTriggersOperations
from .operations.workflow_version_triggers_operations import WorkflowVersionTriggersOperations
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_action_repetitions_request_histories_operations import WorkflowRunActionRepetitionsRequestHistoriesOperations
from .operations.workflow_run_action_request_histories_operations import WorkflowRunActionRequestHistoriesOperations
from .operations.workflow_run_action_scope_repetitions_operations import WorkflowRunActionScopeRepetitionsOperations
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
from .operations.agreements_operations import AgreementsOperations
from .operations.certificates_operations import CertificatesOperations
from .operations.sessions_operations import SessionsOperations
from .operations.integration_account_schemas_operations import IntegrationAccountSchemasOperations
from .operations.integration_account_maps_operations import IntegrationAccountMapsOperations
from .operations.integration_account_partners_operations import IntegrationAccountPartnersOperations
from .operations.integration_account_agreements_operations import IntegrationAccountAgreementsOperations
from .operations.integration_account_certificates_operations import IntegrationAccountCertificatesOperations
from .operations.integration_account_sessions_operations import IntegrationAccountSessionsOperations
from .operations.operations import Operations
from . import models


Expand Down Expand Up @@ -81,6 +82,8 @@ class LogicManagementClient(SDKClient):
:vartype workflow_versions: azure.mgmt.logic.operations.WorkflowVersionsOperations
:ivar workflow_triggers: WorkflowTriggers operations
:vartype workflow_triggers: azure.mgmt.logic.operations.WorkflowTriggersOperations
:ivar workflow_version_triggers: WorkflowVersionTriggers operations
:vartype workflow_version_triggers: azure.mgmt.logic.operations.WorkflowVersionTriggersOperations
:ivar workflow_trigger_histories: WorkflowTriggerHistories operations
:vartype workflow_trigger_histories: azure.mgmt.logic.operations.WorkflowTriggerHistoriesOperations
:ivar workflow_runs: WorkflowRuns operations
Expand All @@ -89,8 +92,12 @@ class LogicManagementClient(SDKClient):
: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_action_repetitions_request_histories: WorkflowRunActionRepetitionsRequestHistories operations
:vartype workflow_run_action_repetitions_request_histories: azure.mgmt.logic.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations
:ivar workflow_run_action_request_histories: WorkflowRunActionRequestHistories operations
:vartype workflow_run_action_request_histories: azure.mgmt.logic.operations.WorkflowRunActionRequestHistoriesOperations
:ivar workflow_run_action_scope_repetitions: WorkflowRunActionScopeRepetitions operations
:vartype workflow_run_action_scope_repetitions: azure.mgmt.logic.operations.WorkflowRunActionScopeRepetitionsOperations
:ivar workflow_run_operations: WorkflowRunOperations operations
:vartype workflow_run_operations: azure.mgmt.logic.operations.WorkflowRunOperations
:ivar integration_accounts: IntegrationAccounts operations
Expand All @@ -99,18 +106,20 @@ class LogicManagementClient(SDKClient):
: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: azure.mgmt.logic.operations.SchemasOperations
:ivar maps: Maps operations
:vartype maps: azure.mgmt.logic.operations.MapsOperations
:ivar partners: Partners operations
:vartype partners: azure.mgmt.logic.operations.PartnersOperations
:ivar agreements: Agreements operations
:vartype agreements: azure.mgmt.logic.operations.AgreementsOperations
:ivar certificates: Certificates operations
:vartype certificates: azure.mgmt.logic.operations.CertificatesOperations
:ivar sessions: Sessions operations
:vartype sessions: azure.mgmt.logic.operations.SessionsOperations
:ivar integration_account_schemas: IntegrationAccountSchemas operations
:vartype integration_account_schemas: azure.mgmt.logic.operations.IntegrationAccountSchemasOperations
:ivar integration_account_maps: IntegrationAccountMaps operations
:vartype integration_account_maps: azure.mgmt.logic.operations.IntegrationAccountMapsOperations
:ivar integration_account_partners: IntegrationAccountPartners operations
:vartype integration_account_partners: azure.mgmt.logic.operations.IntegrationAccountPartnersOperations
:ivar integration_account_agreements: IntegrationAccountAgreements operations
:vartype integration_account_agreements: azure.mgmt.logic.operations.IntegrationAccountAgreementsOperations
:ivar integration_account_certificates: IntegrationAccountCertificates operations
:vartype integration_account_certificates: azure.mgmt.logic.operations.IntegrationAccountCertificatesOperations
:ivar integration_account_sessions: IntegrationAccountSessions operations
:vartype integration_account_sessions: azure.mgmt.logic.operations.IntegrationAccountSessionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.logic.operations.Operations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -127,7 +136,7 @@ def __init__(
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'
self.api_version = '2018-07-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand All @@ -137,6 +146,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_triggers = WorkflowTriggersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_version_triggers = WorkflowVersionTriggersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_trigger_histories = WorkflowTriggerHistoriesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_runs = WorkflowRunsOperations(
Expand All @@ -145,7 +156,11 @@ def __init__(
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.workflow_run_action_repetitions_request_histories = WorkflowRunActionRepetitionsRequestHistoriesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_run_action_request_histories = WorkflowRunActionRequestHistoriesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_run_action_scope_repetitions = WorkflowRunActionScopeRepetitionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.workflow_run_operations = WorkflowRunOperations(
self._client, self.config, self._serialize, self._deserialize)
Expand All @@ -155,75 +170,17 @@ def __init__(
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.integration_account_schemas = IntegrationAccountSchemasOperations(
self._client, self.config, self._serialize, self._deserialize)
self.maps = MapsOperations(
self.integration_account_maps = IntegrationAccountMapsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.partners = PartnersOperations(
self.integration_account_partners = IntegrationAccountPartnersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.agreements = AgreementsOperations(
self.integration_account_agreements = IntegrationAccountAgreementsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.certificates = CertificatesOperations(
self.integration_account_certificates = IntegrationAccountCertificatesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.sessions = SessionsOperations(
self.integration_account_sessions = IntegrationAccountSessionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)

def list_operations(
self, custom_headers=None, raw=False, **operation_config):
"""Lists all of the available Logic REST API operations.
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
: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 = self.list_operations.metadata['url']

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

else:
url = next_link
query_parameters = {}

# Construct headers
header_parameters = {}
header_parameters['Content-Type'] = 'application/json; charset=utf-8'
if self.config.generate_client_request_id:
header_parameters['x-ms-client-request-id'] = str(uuid.uuid1())
if custom_headers:
header_parameters.update(custom_headers)
if self.config.accept_language is not None:
header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str')

# Construct and send request
request = self._client.get(url, query_parameters)
response = self._client.send(
request, header_parameters, stream=False, **operation_config)

if response.status_code not in [200]:
raise models.ErrorResponseException(self._deserialize, response)

return response

# Deserialize response
deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies)

if raw:
header_dict = {}
client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict)
return client_raw_response

return deserialized
list_operations.metadata = {'url': '/providers/Microsoft.Logic/operations'}
19 changes: 14 additions & 5 deletions azure-mgmt-logic/azure/mgmt/logic/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
from .tracking_event_error_info_py3 import TrackingEventErrorInfo
from .tracking_event_py3 import TrackingEvent
from .tracking_events_definition_py3 import TrackingEventsDefinition
from .access_key_regenerate_action_definition_py3 import AccessKeyRegenerateActionDefinition
from .set_trigger_state_action_definition_py3 import SetTriggerStateActionDefinition
from .expression_root_py3 import ExpressionRoot
from .azure_resource_error_info_py3 import AzureResourceErrorInfo
Expand All @@ -132,6 +131,10 @@
from .batch_release_criteria_py3 import BatchReleaseCriteria
from .batch_configuration_properties_py3 import BatchConfigurationProperties
from .batch_configuration_py3 import BatchConfiguration
from .request_py3 import Request
from .response_py3 import Response
from .request_history_properties_py3 import RequestHistoryProperties
from .request_history_py3 import RequestHistory
except (SyntaxError, ImportError):
from .resource import Resource
from .sub_resource import SubResource
Expand Down Expand Up @@ -234,7 +237,6 @@
from .tracking_event_error_info import TrackingEventErrorInfo
from .tracking_event import TrackingEvent
from .tracking_events_definition import TrackingEventsDefinition
from .access_key_regenerate_action_definition import AccessKeyRegenerateActionDefinition
from .set_trigger_state_action_definition import SetTriggerStateActionDefinition
from .expression_root import ExpressionRoot
from .azure_resource_error_info import AzureResourceErrorInfo
Expand All @@ -255,6 +257,10 @@
from .batch_release_criteria import BatchReleaseCriteria
from .batch_configuration_properties import BatchConfigurationProperties
from .batch_configuration import BatchConfiguration
from .request import Request
from .response import Response
from .request_history_properties import RequestHistoryProperties
from .request_history import RequestHistory
from .workflow_paged import WorkflowPaged
from .workflow_version_paged import WorkflowVersionPaged
from .workflow_trigger_paged import WorkflowTriggerPaged
Expand All @@ -263,6 +269,7 @@
from .workflow_run_action_paged import WorkflowRunActionPaged
from .expression_root_paged import ExpressionRootPaged
from .workflow_run_action_repetition_definition_paged import WorkflowRunActionRepetitionDefinitionPaged
from .request_history_paged import RequestHistoryPaged
from .integration_account_paged import IntegrationAccountPaged
from .key_vault_key_paged import KeyVaultKeyPaged
from .assembly_definition_paged import AssemblyDefinitionPaged
Expand Down Expand Up @@ -305,7 +312,6 @@
TrackEventsOperationOptions,
EventLevel,
TrackingRecordType,
AccessKeyType,
)

__all__ = [
Expand Down Expand Up @@ -410,7 +416,6 @@
'TrackingEventErrorInfo',
'TrackingEvent',
'TrackingEventsDefinition',
'AccessKeyRegenerateActionDefinition',
'SetTriggerStateActionDefinition',
'ExpressionRoot',
'AzureResourceErrorInfo',
Expand All @@ -431,6 +436,10 @@
'BatchReleaseCriteria',
'BatchConfigurationProperties',
'BatchConfiguration',
'Request',
'Response',
'RequestHistoryProperties',
'RequestHistory',
'WorkflowPaged',
'WorkflowVersionPaged',
'WorkflowTriggerPaged',
Expand All @@ -439,6 +448,7 @@
'WorkflowRunActionPaged',
'ExpressionRootPaged',
'WorkflowRunActionRepetitionDefinitionPaged',
'RequestHistoryPaged',
'IntegrationAccountPaged',
'KeyVaultKeyPaged',
'AssemblyDefinitionPaged',
Expand Down Expand Up @@ -480,5 +490,4 @@
'TrackEventsOperationOptions',
'EventLevel',
'TrackingRecordType',
'AccessKeyType',
]
Loading

0 comments on commit 432cc6a

Please sign in to comment.