Skip to content

Commit

Permalink
[AutoPR datafactory/resource-manager] Adding refresh and get Integrat…
Browse files Browse the repository at this point in the history
…ionRuntimeObjectMetadata API (#3962)

* Generated from aded924bcbec0926d1f273fdc99b3a8d2d51246b

Adding refresh and get IntegrationRuntimeObjectMetadata API

* Generated from 38fb817c3d29a206d1371a3d4cea5002cc960535

Change ssis to upper case

* Generated from 43c2dab88ba9dd4abfe793fddfe0c1156518c4a9

Fix model validation issue
  • Loading branch information
AutorestCI authored Dec 11, 2018
1 parent 6a480c4 commit 6c41997
Show file tree
Hide file tree
Showing 13 changed files with 541 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from .operations.operations import Operations
from .operations.factories_operations import FactoriesOperations
from .operations.integration_runtimes_operations import IntegrationRuntimesOperations
from .operations.integration_runtime_object_metadata_operations import IntegrationRuntimeObjectMetadataOperations
from .operations.integration_runtime_nodes_operations import IntegrationRuntimeNodesOperations
from .operations.linked_services_operations import LinkedServicesOperations
from .operations.datasets_operations import DatasetsOperations
Expand Down Expand Up @@ -72,6 +73,8 @@ class DataFactoryManagementClient(SDKClient):
:vartype factories: azure.mgmt.datafactory.operations.FactoriesOperations
:ivar integration_runtimes: IntegrationRuntimes operations
:vartype integration_runtimes: azure.mgmt.datafactory.operations.IntegrationRuntimesOperations
:ivar integration_runtime_object_metadata: IntegrationRuntimeObjectMetadata operations
:vartype integration_runtime_object_metadata: azure.mgmt.datafactory.operations.IntegrationRuntimeObjectMetadataOperations
:ivar integration_runtime_nodes: IntegrationRuntimeNodes operations
:vartype integration_runtime_nodes: azure.mgmt.datafactory.operations.IntegrationRuntimeNodesOperations
:ivar linked_services: LinkedServices operations
Expand Down Expand Up @@ -116,6 +119,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.integration_runtimes = IntegrationRuntimesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.integration_runtime_object_metadata = IntegrationRuntimeObjectMetadataOperations(
self._client, self.config, self._serialize, self._deserialize)
self.integration_runtime_nodes = IntegrationRuntimeNodesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.linked_services = LinkedServicesOperations(
Expand Down
14 changes: 14 additions & 0 deletions azure-mgmt-datafactory/azure/mgmt/datafactory/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@
from .operation_metric_specification_py3 import OperationMetricSpecification
from .operation_service_specification_py3 import OperationServiceSpecification
from .operation_py3 import Operation
from .get_ssis_object_metadata_request_py3 import GetSsisObjectMetadataRequest
from .ssis_object_metadata_status_response_py3 import SsisObjectMetadataStatusResponse
from .self_dependency_tumbling_window_trigger_reference_py3 import SelfDependencyTumblingWindowTriggerReference
from .trigger_reference_py3 import TriggerReference
from .tumbling_window_trigger_dependency_reference_py3 import TumblingWindowTriggerDependencyReference
Expand Down Expand Up @@ -360,6 +362,8 @@
from .integration_runtime_compute_properties_py3 import IntegrationRuntimeComputeProperties
from .managed_integration_runtime_py3 import ManagedIntegrationRuntime
from .integration_runtime_node_ip_address_py3 import IntegrationRuntimeNodeIpAddress
from .ssis_object_metadata_py3 import SsisObjectMetadata
from .ssis_object_metadata_list_response_py3 import SsisObjectMetadataListResponse
from .integration_runtime_node_monitoring_data_py3 import IntegrationRuntimeNodeMonitoringData
from .integration_runtime_monitoring_data_py3 import IntegrationRuntimeMonitoringData
from .integration_runtime_auth_keys_py3 import IntegrationRuntimeAuthKeys
Expand Down Expand Up @@ -432,6 +436,8 @@
from .operation_metric_specification import OperationMetricSpecification
from .operation_service_specification import OperationServiceSpecification
from .operation import Operation
from .get_ssis_object_metadata_request import GetSsisObjectMetadataRequest
from .ssis_object_metadata_status_response import SsisObjectMetadataStatusResponse
from .self_dependency_tumbling_window_trigger_reference import SelfDependencyTumblingWindowTriggerReference
from .trigger_reference import TriggerReference
from .tumbling_window_trigger_dependency_reference import TumblingWindowTriggerDependencyReference
Expand Down Expand Up @@ -716,6 +722,8 @@
from .integration_runtime_compute_properties import IntegrationRuntimeComputeProperties
from .managed_integration_runtime import ManagedIntegrationRuntime
from .integration_runtime_node_ip_address import IntegrationRuntimeNodeIpAddress
from .ssis_object_metadata import SsisObjectMetadata
from .ssis_object_metadata_list_response import SsisObjectMetadataListResponse
from .integration_runtime_node_monitoring_data import IntegrationRuntimeNodeMonitoringData
from .integration_runtime_monitoring_data import IntegrationRuntimeMonitoringData
from .integration_runtime_auth_keys import IntegrationRuntimeAuthKeys
Expand Down Expand Up @@ -788,6 +796,7 @@
IntegrationRuntimeSsisCatalogPricingTier,
IntegrationRuntimeLicenseType,
IntegrationRuntimeEdition,
SsisObjectMetadataType,
IntegrationRuntimeAuthKeyName,
)

Expand Down Expand Up @@ -858,6 +867,8 @@
'OperationMetricSpecification',
'OperationServiceSpecification',
'Operation',
'GetSsisObjectMetadataRequest',
'SsisObjectMetadataStatusResponse',
'SelfDependencyTumblingWindowTriggerReference',
'TriggerReference',
'TumblingWindowTriggerDependencyReference',
Expand Down Expand Up @@ -1142,6 +1153,8 @@
'IntegrationRuntimeComputeProperties',
'ManagedIntegrationRuntime',
'IntegrationRuntimeNodeIpAddress',
'SsisObjectMetadata',
'SsisObjectMetadataListResponse',
'IntegrationRuntimeNodeMonitoringData',
'IntegrationRuntimeMonitoringData',
'IntegrationRuntimeAuthKeys',
Expand Down Expand Up @@ -1213,5 +1226,6 @@
'IntegrationRuntimeSsisCatalogPricingTier',
'IntegrationRuntimeLicenseType',
'IntegrationRuntimeEdition',
'SsisObjectMetadataType',
'IntegrationRuntimeAuthKeyName',
]
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,14 @@ class IntegrationRuntimeEdition(str, Enum):
enterprise = "Enterprise"


class SsisObjectMetadataType(str, Enum):

folder = "Folder"
project = "Project"
package = "Package"
environment = "Environment"


class IntegrationRuntimeAuthKeyName(str, Enum):

auth_key1 = "authKey1"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 GetSsisObjectMetadataRequest(Model):
"""The request payload of get SSIS object metadata.
:param metadata_path: Metadata path.
:type metadata_path: str
"""

_attribute_map = {
'metadata_path': {'key': 'metadataPath', 'type': 'str'},
}

def __init__(self, **kwargs):
super(GetSsisObjectMetadataRequest, self).__init__(**kwargs)
self.metadata_path = kwargs.get('metadata_path', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 GetSsisObjectMetadataRequest(Model):
"""The request payload of get SSIS object metadata.
:param metadata_path: Metadata path.
:type metadata_path: str
"""

_attribute_map = {
'metadata_path': {'key': 'metadataPath', 'type': 'str'},
}

def __init__(self, *, metadata_path: str=None, **kwargs) -> None:
super(GetSsisObjectMetadataRequest, self).__init__(**kwargs)
self.metadata_path = metadata_path
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 SsisObjectMetadata(Model):
"""SSIS object metadata.
All required parameters must be populated in order to send to Azure.
:param id: Metadata id.
:type id: long
:param name: Metadata name.
:type name: str
:param description: Metadata description.
:type description: str
:param type: Required. Constant filled by server.
:type type: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'long'},
'name': {'key': 'name', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs):
super(SsisObjectMetadata, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.name = kwargs.get('name', None)
self.description = kwargs.get('description', None)
self.type = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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 SsisObjectMetadataListResponse(Model):
"""A list of SSIS object metadata.
:param value: List of SSIS object metadata.
:type value: list[~azure.mgmt.datafactory.models.SsisObjectMetadata]
:param next_link: The link to the next page of results, if any remaining
results exist.
:type next_link: str
"""

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

def __init__(self, **kwargs):
super(SsisObjectMetadataListResponse, 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,33 @@
# 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 SsisObjectMetadataListResponse(Model):
"""A list of SSIS object metadata.
:param value: List of SSIS object metadata.
:type value: list[~azure.mgmt.datafactory.models.SsisObjectMetadata]
:param next_link: The link to the next page of results, if any remaining
results exist.
:type next_link: str
"""

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

def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None:
super(SsisObjectMetadataListResponse, self).__init__(**kwargs)
self.value = value
self.next_link = next_link
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 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 SsisObjectMetadata(Model):
"""SSIS object metadata.
All required parameters must be populated in order to send to Azure.
:param id: Metadata id.
:type id: long
:param name: Metadata name.
:type name: str
:param description: Metadata description.
:type description: str
:param type: Required. Constant filled by server.
:type type: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'long'},
'name': {'key': 'name', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, *, id: int=None, name: str=None, description: str=None, **kwargs) -> None:
super(SsisObjectMetadata, self).__init__(**kwargs)
self.id = id
self.name = name
self.description = description
self.type = 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 SsisObjectMetadataStatusResponse(Model):
"""The status of the operation.
:param status: The status of the operation.
:type status: str
:param name: The operation name.
:type name: str
:param properties: The operation properties.
:type properties: str
:param error: The operation error message.
:type error: str
"""

_attribute_map = {
'status': {'key': 'status', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'properties': {'key': 'properties', 'type': 'str'},
'error': {'key': 'error', 'type': 'str'},
}

def __init__(self, **kwargs):
super(SsisObjectMetadataStatusResponse, self).__init__(**kwargs)
self.status = kwargs.get('status', None)
self.name = kwargs.get('name', None)
self.properties = kwargs.get('properties', None)
self.error = kwargs.get('error', None)
Loading

0 comments on commit 6c41997

Please sign in to comment.