-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR datafactory/resource-manager] Enable Avro Dataset in public s…
…wagger (#6567) * Generated from ec112148bf30430557ff3fac0c74f0706b1042de Enable Avro Dataset in public swagger * Generated from e41431428e45beaa5bbb12344d3332479c095e31 UPDATE
- Loading branch information
1 parent
85d9892
commit c48179d
Showing
16 changed files
with
551 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/avro_dataset.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# 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 .dataset import Dataset | ||
|
||
|
||
class AvroDataset(Dataset): | ||
"""Avro dataset. | ||
All required parameters must be populated in order to send to Azure. | ||
:param additional_properties: Unmatched properties from the message are | ||
deserialized this collection | ||
:type additional_properties: dict[str, object] | ||
:param description: Dataset description. | ||
:type description: str | ||
:param structure: Columns that define the structure of the dataset. Type: | ||
array (or Expression with resultType array), itemType: DatasetDataElement. | ||
:type structure: object | ||
:param schema: Columns that define the physical type schema of the | ||
dataset. Type: array (or Expression with resultType array), itemType: | ||
DatasetSchemaDataElement. | ||
:type schema: object | ||
:param linked_service_name: Required. Linked service reference. | ||
:type linked_service_name: | ||
~azure.mgmt.datafactory.models.LinkedServiceReference | ||
:param parameters: Parameters for dataset. | ||
:type parameters: dict[str, | ||
~azure.mgmt.datafactory.models.ParameterSpecification] | ||
:param annotations: List of tags that can be used for describing the | ||
Dataset. | ||
:type annotations: list[object] | ||
:param folder: The folder that this Dataset is in. If not specified, | ||
Dataset will appear at the root level. | ||
:type folder: ~azure.mgmt.datafactory.models.DatasetFolder | ||
:param type: Required. Constant filled by server. | ||
:type type: str | ||
:param location: Required. The location of the avro storage. | ||
:type location: ~azure.mgmt.datafactory.models.DatasetLocation | ||
:param avro_compression_codec: Possible values include: 'none', 'deflate', | ||
'snappy', 'xz', 'bzip2' | ||
:type avro_compression_codec: str or | ||
~azure.mgmt.datafactory.models.AvroCompressionCodec | ||
:param avro_compression_level: | ||
:type avro_compression_level: int | ||
""" | ||
|
||
_validation = { | ||
'linked_service_name': {'required': True}, | ||
'type': {'required': True}, | ||
'location': {'required': True}, | ||
'avro_compression_level': {'maximum': 9, 'minimum': 1}, | ||
} | ||
|
||
_attribute_map = { | ||
'additional_properties': {'key': '', 'type': '{object}'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'structure': {'key': 'structure', 'type': 'object'}, | ||
'schema': {'key': 'schema', 'type': 'object'}, | ||
'linked_service_name': {'key': 'linkedServiceName', 'type': 'LinkedServiceReference'}, | ||
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'}, | ||
'annotations': {'key': 'annotations', 'type': '[object]'}, | ||
'folder': {'key': 'folder', 'type': 'DatasetFolder'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'typeProperties.location', 'type': 'DatasetLocation'}, | ||
'avro_compression_codec': {'key': 'typeProperties.avroCompressionCodec', 'type': 'str'}, | ||
'avro_compression_level': {'key': 'typeProperties.avroCompressionLevel', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AvroDataset, self).__init__(**kwargs) | ||
self.location = kwargs.get('location', None) | ||
self.avro_compression_codec = kwargs.get('avro_compression_codec', None) | ||
self.avro_compression_level = kwargs.get('avro_compression_level', None) | ||
self.type = 'Avro' |
83 changes: 83 additions & 0 deletions
83
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/avro_dataset_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# 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 .dataset_py3 import Dataset | ||
|
||
|
||
class AvroDataset(Dataset): | ||
"""Avro dataset. | ||
All required parameters must be populated in order to send to Azure. | ||
:param additional_properties: Unmatched properties from the message are | ||
deserialized this collection | ||
:type additional_properties: dict[str, object] | ||
:param description: Dataset description. | ||
:type description: str | ||
:param structure: Columns that define the structure of the dataset. Type: | ||
array (or Expression with resultType array), itemType: DatasetDataElement. | ||
:type structure: object | ||
:param schema: Columns that define the physical type schema of the | ||
dataset. Type: array (or Expression with resultType array), itemType: | ||
DatasetSchemaDataElement. | ||
:type schema: object | ||
:param linked_service_name: Required. Linked service reference. | ||
:type linked_service_name: | ||
~azure.mgmt.datafactory.models.LinkedServiceReference | ||
:param parameters: Parameters for dataset. | ||
:type parameters: dict[str, | ||
~azure.mgmt.datafactory.models.ParameterSpecification] | ||
:param annotations: List of tags that can be used for describing the | ||
Dataset. | ||
:type annotations: list[object] | ||
:param folder: The folder that this Dataset is in. If not specified, | ||
Dataset will appear at the root level. | ||
:type folder: ~azure.mgmt.datafactory.models.DatasetFolder | ||
:param type: Required. Constant filled by server. | ||
:type type: str | ||
:param location: Required. The location of the avro storage. | ||
:type location: ~azure.mgmt.datafactory.models.DatasetLocation | ||
:param avro_compression_codec: Possible values include: 'none', 'deflate', | ||
'snappy', 'xz', 'bzip2' | ||
:type avro_compression_codec: str or | ||
~azure.mgmt.datafactory.models.AvroCompressionCodec | ||
:param avro_compression_level: | ||
:type avro_compression_level: int | ||
""" | ||
|
||
_validation = { | ||
'linked_service_name': {'required': True}, | ||
'type': {'required': True}, | ||
'location': {'required': True}, | ||
'avro_compression_level': {'maximum': 9, 'minimum': 1}, | ||
} | ||
|
||
_attribute_map = { | ||
'additional_properties': {'key': '', 'type': '{object}'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'structure': {'key': 'structure', 'type': 'object'}, | ||
'schema': {'key': 'schema', 'type': 'object'}, | ||
'linked_service_name': {'key': 'linkedServiceName', 'type': 'LinkedServiceReference'}, | ||
'parameters': {'key': 'parameters', 'type': '{ParameterSpecification}'}, | ||
'annotations': {'key': 'annotations', 'type': '[object]'}, | ||
'folder': {'key': 'folder', 'type': 'DatasetFolder'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'location': {'key': 'typeProperties.location', 'type': 'DatasetLocation'}, | ||
'avro_compression_codec': {'key': 'typeProperties.avroCompressionCodec', 'type': 'str'}, | ||
'avro_compression_level': {'key': 'typeProperties.avroCompressionLevel', 'type': 'int'}, | ||
} | ||
|
||
def __init__(self, *, linked_service_name, location, additional_properties=None, description: str=None, structure=None, schema=None, parameters=None, annotations=None, folder=None, avro_compression_codec=None, avro_compression_level: int=None, **kwargs) -> None: | ||
super(AvroDataset, self).__init__(additional_properties=additional_properties, description=description, structure=structure, schema=schema, linked_service_name=linked_service_name, parameters=parameters, annotations=annotations, folder=folder, **kwargs) | ||
self.location = location | ||
self.avro_compression_codec = avro_compression_codec | ||
self.avro_compression_level = avro_compression_level | ||
self.type = 'Avro' |
69 changes: 69 additions & 0 deletions
69
sdk/datafactory/azure-mgmt-datafactory/azure/mgmt/datafactory/models/avro_sink.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# 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 .copy_sink import CopySink | ||
|
||
|
||
class AvroSink(CopySink): | ||
"""A copy activity Avro sink. | ||
All required parameters must be populated in order to send to Azure. | ||
:param additional_properties: Unmatched properties from the message are | ||
deserialized this collection | ||
:type additional_properties: dict[str, object] | ||
:param write_batch_size: Write batch size. Type: integer (or Expression | ||
with resultType integer), minimum: 0. | ||
:type write_batch_size: object | ||
:param write_batch_timeout: Write batch timeout. Type: string (or | ||
Expression with resultType string), pattern: | ||
((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). | ||
:type write_batch_timeout: object | ||
:param sink_retry_count: Sink retry count. Type: integer (or Expression | ||
with resultType integer). | ||
:type sink_retry_count: object | ||
:param sink_retry_wait: Sink retry wait. Type: string (or Expression with | ||
resultType string), pattern: | ||
((\\d+)\\.)?(\\d\\d):(60|([0-5][0-9])):(60|([0-5][0-9])). | ||
:type sink_retry_wait: object | ||
:param max_concurrent_connections: The maximum concurrent connection count | ||
for the sink data store. Type: integer (or Expression with resultType | ||
integer). | ||
:type max_concurrent_connections: object | ||
:param type: Required. Constant filled by server. | ||
:type type: str | ||
:param store_settings: Avro store settings. | ||
:type store_settings: ~azure.mgmt.datafactory.models.StoreWriteSettings | ||
:param format_settings: Avro format settings. | ||
:type format_settings: ~azure.mgmt.datafactory.models.AvroWriteSettings | ||
""" | ||
|
||
_validation = { | ||
'type': {'required': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'additional_properties': {'key': '', 'type': '{object}'}, | ||
'write_batch_size': {'key': 'writeBatchSize', 'type': 'object'}, | ||
'write_batch_timeout': {'key': 'writeBatchTimeout', 'type': 'object'}, | ||
'sink_retry_count': {'key': 'sinkRetryCount', 'type': 'object'}, | ||
'sink_retry_wait': {'key': 'sinkRetryWait', 'type': 'object'}, | ||
'max_concurrent_connections': {'key': 'maxConcurrentConnections', 'type': 'object'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'store_settings': {'key': 'storeSettings', 'type': 'StoreWriteSettings'}, | ||
'format_settings': {'key': 'formatSettings', 'type': 'AvroWriteSettings'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(AvroSink, self).__init__(**kwargs) | ||
self.store_settings = kwargs.get('store_settings', None) | ||
self.format_settings = kwargs.get('format_settings', None) | ||
self.type = 'AvroSink' |
Oops, something went wrong.