Skip to content

Commit

Permalink
Generated from 5dc066ec0112cfbcbb2b9e40f1cc21e734e1035d
Browse files Browse the repository at this point in the history
Add APIs for integration runtime sharing feature.
Add two fields 'pushedVersion' 'latestVersion' into SelfHostedIntegrationRuntimeStatus
Fixed issue Azure/azure-rest-api-specs#2057
  • Loading branch information
AutorestCI committed May 23, 2018
1 parent e28deb2 commit 9ca19ed
Show file tree
Hide file tree
Showing 28 changed files with 575 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,17 @@
from .factory_identity_py3 import FactoryIdentity
from .factory_vsts_configuration_py3 import FactoryVSTSConfiguration
from .factory_py3 import Factory
from .factory_list_response_py3 import FactoryListResponse
from .integration_runtime_py3 import IntegrationRuntime
from .integration_runtime_resource_py3 import IntegrationRuntimeResource
from .integration_runtime_list_response_py3 import IntegrationRuntimeListResponse
from .integration_runtime_reference_py3 import IntegrationRuntimeReference
from .integration_runtime_status_py3 import IntegrationRuntimeStatus
from .integration_runtime_status_response_py3 import IntegrationRuntimeStatusResponse
from .integration_runtime_status_list_response_py3 import IntegrationRuntimeStatusListResponse
from .update_integration_runtime_request_py3 import UpdateIntegrationRuntimeRequest
from .update_integration_runtime_node_request_py3 import UpdateIntegrationRuntimeNodeRequest
from .integration_runtime_permission_request_py3 import IntegrationRuntimePermissionRequest
from .parameter_specification_py3 import ParameterSpecification
from .linked_service_py3 import LinkedService
from .linked_service_resource_py3 import LinkedServiceResource
Expand Down Expand Up @@ -347,14 +350,17 @@
from .factory_identity import FactoryIdentity
from .factory_vsts_configuration import FactoryVSTSConfiguration
from .factory import Factory
from .factory_list_response import FactoryListResponse
from .integration_runtime import IntegrationRuntime
from .integration_runtime_resource import IntegrationRuntimeResource
from .integration_runtime_list_response import IntegrationRuntimeListResponse
from .integration_runtime_reference import IntegrationRuntimeReference
from .integration_runtime_status import IntegrationRuntimeStatus
from .integration_runtime_status_response import IntegrationRuntimeStatusResponse
from .integration_runtime_status_list_response import IntegrationRuntimeStatusListResponse
from .update_integration_runtime_request import UpdateIntegrationRuntimeRequest
from .update_integration_runtime_node_request import UpdateIntegrationRuntimeNodeRequest
from .integration_runtime_permission_request import IntegrationRuntimePermissionRequest
from .parameter_specification import ParameterSpecification
from .linked_service import LinkedService
from .linked_service_resource import LinkedServiceResource
Expand Down Expand Up @@ -743,14 +749,17 @@
'FactoryIdentity',
'FactoryVSTSConfiguration',
'Factory',
'FactoryListResponse',
'IntegrationRuntime',
'IntegrationRuntimeResource',
'IntegrationRuntimeListResponse',
'IntegrationRuntimeReference',
'IntegrationRuntimeStatus',
'IntegrationRuntimeStatusResponse',
'IntegrationRuntimeStatusListResponse',
'UpdateIntegrationRuntimeRequest',
'UpdateIntegrationRuntimeNodeRequest',
'IntegrationRuntimePermissionRequest',
'ParameterSpecification',
'LinkedService',
'LinkedServiceResource',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class IntegrationRuntimeState(str, Enum):
online = "Online"
limited = "Limited"
offline = "Offline"
access_denied = "AccessDenied"


class IntegrationRuntimeAutoUpdate(str, Enum):
Expand Down
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 FactoryListResponse(Model):
"""A list of factory resources.
All required parameters must be populated in order to send to Azure.
:param value: Required. List of factories.
:type value: list[~azure.mgmt.datafactory.models.Factory]
:param next_link: The link to the next page of results, if any remaining
results exist.
:type next_link: str
"""

_validation = {
'value': {'required': True},
}

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

def __init__(self, **kwargs):
super(FactoryListResponse, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
self.next_link = kwargs.get('next_link', None)
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 FactoryListResponse(Model):
"""A list of factory resources.
All required parameters must be populated in order to send to Azure.
:param value: Required. List of factories.
:type value: list[~azure.mgmt.datafactory.models.Factory]
:param next_link: The link to the next page of results, if any remaining
results exist.
:type next_link: str
"""

_validation = {
'value': {'required': True},
}

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

def __init__(self, *, value, next_link: str=None, **kwargs) -> None:
super(FactoryListResponse, self).__init__(**kwargs)
self.value = value
self.next_link = next_link
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 IntegrationRuntimeListResponse(Model):
"""A list of integration runtime resources.
All required parameters must be populated in order to send to Azure.
:param value: Required. List of integration runtimes.
:type value:
list[~azure.mgmt.datafactory.models.IntegrationRuntimeResource]
:param next_link: The link to the next page of results, if any remaining
results exist.
:type next_link: str
"""

_validation = {
'value': {'required': True},
}

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

def __init__(self, **kwargs):
super(IntegrationRuntimeListResponse, self).__init__(**kwargs)
self.value = kwargs.get('value', None)
self.next_link = kwargs.get('next_link', 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 IntegrationRuntimeListResponse(Model):
"""A list of integration runtime resources.
All required parameters must be populated in order to send to Azure.
:param value: Required. List of integration runtimes.
:type value:
list[~azure.mgmt.datafactory.models.IntegrationRuntimeResource]
:param next_link: The link to the next page of results, if any remaining
results exist.
:type next_link: str
"""

_validation = {
'value': {'required': True},
}

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

def __init__(self, *, value, next_link: str=None, **kwargs) -> None:
super(IntegrationRuntimeListResponse, self).__init__(**kwargs)
self.value = value
self.next_link = next_link
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 IntegrationRuntimePermissionRequest(Model):
"""Grant or revoke access to integration runtime request.
All required parameters must be populated in order to send to Azure.
:param factory_identity: Required. The data factory identity.
:type factory_identity: str
"""

_validation = {
'factory_identity': {'required': True},
}

_attribute_map = {
'factory_identity': {'key': 'factoryIdentity', 'type': 'str'},
}

def __init__(self, **kwargs):
super(IntegrationRuntimePermissionRequest, self).__init__(**kwargs)
self.factory_identity = kwargs.get('factory_identity', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 IntegrationRuntimePermissionRequest(Model):
"""Grant or revoke access to integration runtime request.
All required parameters must be populated in order to send to Azure.
:param factory_identity: Required. The data factory identity.
:type factory_identity: str
"""

_validation = {
'factory_identity': {'required': True},
}

_attribute_map = {
'factory_identity': {'key': 'factoryIdentity', 'type': 'str'},
}

def __init__(self, *, factory_identity: str, **kwargs) -> None:
super(IntegrationRuntimePermissionRequest, self).__init__(**kwargs)
self.factory_identity = factory_identity
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class IntegrationRuntimeStatus(Model):
:vartype data_factory_name: str
:ivar state: The state of integration runtime. Possible values include:
'Initial', 'Stopped', 'Started', 'Starting', 'Stopping',
'NeedRegistration', 'Online', 'Limited', 'Offline'
'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied'
:vartype state: str or
~azure.mgmt.datafactory.models.IntegrationRuntimeState
:param type: Required. Constant filled by server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class IntegrationRuntimeStatus(Model):
:vartype data_factory_name: str
:ivar state: The state of integration runtime. Possible values include:
'Initial', 'Stopped', 'Started', 'Starting', 'Stopping',
'NeedRegistration', 'Online', 'Limited', 'Offline'
'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied'
:vartype state: str or
~azure.mgmt.datafactory.models.IntegrationRuntimeState
:param type: Required. Constant filled by server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@


class LinkedIntegrationRuntimeKey(LinkedIntegrationRuntimeProperties):
"""The base definition of a secret type.
"""The key authorization type.
All required parameters must be populated in order to send to Azure.
:param authorization_type: Required. Constant filled by server.
:type authorization_type: str
:param key: Required. Type of the secret.
:param key: Required. The key used for authorization.
:type key: ~azure.mgmt.datafactory.models.SecureString
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@


class LinkedIntegrationRuntimeKey(LinkedIntegrationRuntimeProperties):
"""The base definition of a secret type.
"""The key authorization type.
All required parameters must be populated in order to send to Azure.
:param authorization_type: Required. Constant filled by server.
:type authorization_type: str
:param key: Required. Type of the secret.
:param key: Required. The key used for authorization.
:type key: ~azure.mgmt.datafactory.models.SecureString
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class LinkedIntegrationRuntimeProperties(Model):
"""The base definition of a secret type.
"""The base definition of a linked integration runtime properties.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: LinkedIntegrationRuntimeRbac, LinkedIntegrationRuntimeKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class LinkedIntegrationRuntimeProperties(Model):
"""The base definition of a secret type.
"""The base definition of a linked integration runtime properties.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: LinkedIntegrationRuntimeRbac, LinkedIntegrationRuntimeKey
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@


class LinkedIntegrationRuntimeRbac(LinkedIntegrationRuntimeProperties):
"""The base definition of a secret type.
"""The role based access control (RBAC) authorization type.
All required parameters must be populated in order to send to Azure.
:param authorization_type: Required. Constant filled by server.
:type authorization_type: str
:param resource_id: Required. The resource ID of the integration runtime
to be shared.
:param resource_id: Required. The resource identifier of the integration
runtime to be shared.
:type resource_id: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@


class LinkedIntegrationRuntimeRbac(LinkedIntegrationRuntimeProperties):
"""The base definition of a secret type.
"""The role based access control (RBAC) authorization type.
All required parameters must be populated in order to send to Azure.
:param authorization_type: Required. Constant filled by server.
:type authorization_type: str
:param resource_id: Required. The resource ID of the integration runtime
to be shared.
:param resource_id: Required. The resource identifier of the integration
runtime to be shared.
:type resource_id: str
"""

Expand Down
Loading

0 comments on commit 9ca19ed

Please sign in to comment.