Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 6 commits into from
Nov 15, 2018
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
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