Skip to content

Commit

Permalink
[AutoPR logic/resource-manager] Add 2 missing endpoints to newest ver…
Browse files Browse the repository at this point in the history
…sions 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
  • Loading branch information
AutorestCI authored Nov 15, 2018
1 parent c729294 commit 5876bfd
Show file tree
Hide file tree
Showing 20 changed files with 767 additions and 66 deletions.
4 changes: 3 additions & 1 deletion azure-mgmt-logic/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include *.rst
include azure_bdist_wheel.py
include azure/__init__.py
include azure/mgmt/__init__.py

2 changes: 1 addition & 1 deletion azure-mgmt-logic/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
2 changes: 1 addition & 1 deletion azure-mgmt-logic/azure/mgmt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__import__('pkg_resources').declare_namespace(__name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
10 changes: 10 additions & 0 deletions azure-mgmt-logic/azure/mgmt/logic/logic_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
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_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
Expand Down Expand Up @@ -90,6 +92,10 @@ 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_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
Expand Down Expand Up @@ -150,6 +156,10 @@ 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_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(
Expand Down
14 changes: 14 additions & 0 deletions azure-mgmt-logic/azure/mgmt/logic/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,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 @@ -253,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 @@ -261,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 @@ -427,6 +436,10 @@
'BatchReleaseCriteria',
'BatchConfigurationProperties',
'BatchConfiguration',
'Request',
'Response',
'RequestHistoryProperties',
'RequestHistory',
'WorkflowPaged',
'WorkflowVersionPaged',
'WorkflowTriggerPaged',
Expand All @@ -435,6 +448,7 @@
'WorkflowRunActionPaged',
'ExpressionRootPaged',
'WorkflowRunActionRepetitionDefinitionPaged',
'RequestHistoryPaged',
'IntegrationAccountPaged',
'KeyVaultKeyPaged',
'AssemblyDefinitionPaged',
Expand Down
36 changes: 36 additions & 0 deletions azure-mgmt-logic/azure/mgmt/logic/models/request.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 Request(Model):
"""A request.
:param headers: A list of all the headers attached to the request.
:type headers: object
:param uri: The destination for the request.
:type uri: str
:param method: The HTTP method used for the request.
:type method: str
"""

_attribute_map = {
'headers': {'key': 'headers', 'type': 'object'},
'uri': {'key': 'uri', 'type': 'str'},
'method': {'key': 'method', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Request, self).__init__(**kwargs)
self.headers = kwargs.get('headers', None)
self.uri = kwargs.get('uri', None)
self.method = kwargs.get('method', None)
52 changes: 52 additions & 0 deletions azure-mgmt-logic/azure/mgmt/logic/models/request_history.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 .resource import Resource


class RequestHistory(Resource):
"""The request history.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: The resource id.
:vartype id: str
:ivar name: Gets the resource name.
:vartype name: str
:ivar type: Gets the resource type.
:vartype type: str
:param location: The resource location.
:type location: str
:param tags: The resource tags.
:type tags: dict[str, str]
:param properties: The request history properties.
:type properties: ~azure.mgmt.logic.models.RequestHistoryProperties
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'properties': {'key': 'properties', 'type': 'RequestHistoryProperties'},
}

def __init__(self, **kwargs):
super(RequestHistory, self).__init__(**kwargs)
self.properties = kwargs.get('properties', None)
27 changes: 27 additions & 0 deletions azure-mgmt-logic/azure/mgmt/logic/models/request_history_paged.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.paging import Paged


class RequestHistoryPaged(Paged):
"""
A paging container for iterating over a list of :class:`RequestHistory <azure.mgmt.logic.models.RequestHistory>` object
"""

_attribute_map = {
'next_link': {'key': 'nextLink', 'type': 'str'},
'current_page': {'key': 'value', 'type': '[RequestHistory]'}
}

def __init__(self, *args, **kwargs):

super(RequestHistoryPaged, self).__init__(*args, **kwargs)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 RequestHistoryProperties(Model):
"""The request history.
:param start_time: The time the request started.
:type start_time: datetime
:param end_time: The time the request ended.
:type end_time: datetime
:param request: The request.
:type request: ~azure.mgmt.logic.models.Request
:param response: The response.
:type response: ~azure.mgmt.logic.models.Response
"""

_attribute_map = {
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'end_time': {'key': 'endTime', 'type': 'iso-8601'},
'request': {'key': 'request', 'type': 'Request'},
'response': {'key': 'response', 'type': 'Response'},
}

def __init__(self, **kwargs):
super(RequestHistoryProperties, self).__init__(**kwargs)
self.start_time = kwargs.get('start_time', None)
self.end_time = kwargs.get('end_time', None)
self.request = kwargs.get('request', None)
self.response = kwargs.get('response', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 RequestHistoryProperties(Model):
"""The request history.
:param start_time: The time the request started.
:type start_time: datetime
:param end_time: The time the request ended.
:type end_time: datetime
:param request: The request.
:type request: ~azure.mgmt.logic.models.Request
:param response: The response.
:type response: ~azure.mgmt.logic.models.Response
"""

_attribute_map = {
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
'end_time': {'key': 'endTime', 'type': 'iso-8601'},
'request': {'key': 'request', 'type': 'Request'},
'response': {'key': 'response', 'type': 'Response'},
}

def __init__(self, *, start_time=None, end_time=None, request=None, response=None, **kwargs) -> None:
super(RequestHistoryProperties, self).__init__(**kwargs)
self.start_time = start_time
self.end_time = end_time
self.request = request
self.response = response
52 changes: 52 additions & 0 deletions azure-mgmt-logic/azure/mgmt/logic/models/request_history_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 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 .resource_py3 import Resource


class RequestHistory(Resource):
"""The request history.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: The resource id.
:vartype id: str
:ivar name: Gets the resource name.
:vartype name: str
:ivar type: Gets the resource type.
:vartype type: str
:param location: The resource location.
:type location: str
:param tags: The resource tags.
:type tags: dict[str, str]
:param properties: The request history properties.
:type properties: ~azure.mgmt.logic.models.RequestHistoryProperties
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'properties': {'key': 'properties', 'type': 'RequestHistoryProperties'},
}

def __init__(self, *, location: str=None, tags=None, properties=None, **kwargs) -> None:
super(RequestHistory, self).__init__(location=location, tags=tags, **kwargs)
self.properties = properties
36 changes: 36 additions & 0 deletions azure-mgmt-logic/azure/mgmt/logic/models/request_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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 Request(Model):
"""A request.
:param headers: A list of all the headers attached to the request.
:type headers: object
:param uri: The destination for the request.
:type uri: str
:param method: The HTTP method used for the request.
:type method: str
"""

_attribute_map = {
'headers': {'key': 'headers', 'type': 'object'},
'uri': {'key': 'uri', 'type': 'str'},
'method': {'key': 'method', 'type': 'str'},
}

def __init__(self, *, headers=None, uri: str=None, method: str=None, **kwargs) -> None:
super(Request, self).__init__(**kwargs)
self.headers = headers
self.uri = uri
self.method = method
Loading

0 comments on commit 5876bfd

Please # to comment.