-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 78c1d019bfd4816ca21ad4f3cbebe6b9aed3175d (#2436)
Fix for Azure/azure-rest-api-specs#2907
- Loading branch information
1 parent
6635aea
commit 50975bc
Showing
11 changed files
with
774 additions
and
3 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
36 changes: 36 additions & 0 deletions
36
azure-mgmt-web/azure/mgmt/web/models/data_table_response_column.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,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 DataTableResponseColumn(Model): | ||
"""Column definition. | ||
:param column_name: Name of the column | ||
:type column_name: str | ||
:param data_type: Data type which looks like 'String' or 'Int32'. | ||
:type data_type: str | ||
:param column_type: Column Type | ||
:type column_type: str | ||
""" | ||
|
||
_attribute_map = { | ||
'column_name': {'key': 'columnName', 'type': 'str'}, | ||
'data_type': {'key': 'dataType', 'type': 'str'}, | ||
'column_type': {'key': 'columnType', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, column_name=None, data_type=None, column_type=None): | ||
super(DataTableResponseColumn, self).__init__() | ||
self.column_name = column_name | ||
self.data_type = data_type | ||
self.column_type = column_type |
36 changes: 36 additions & 0 deletions
36
azure-mgmt-web/azure/mgmt/web/models/data_table_response_object.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,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 DataTableResponseObject(Model): | ||
"""Data Table which defines columns and raw row values. | ||
:param table_name: Name of the table | ||
:type table_name: str | ||
:param columns: List of columns with data types | ||
:type columns: list[~azure.mgmt.web.models.DataTableResponseColumn] | ||
:param rows: Raw row values | ||
:type rows: list[list[str]] | ||
""" | ||
|
||
_attribute_map = { | ||
'table_name': {'key': 'tableName', 'type': 'str'}, | ||
'columns': {'key': 'columns', 'type': '[DataTableResponseColumn]'}, | ||
'rows': {'key': 'rows', 'type': '[[str]]'}, | ||
} | ||
|
||
def __init__(self, table_name=None, columns=None, rows=None): | ||
super(DataTableResponseObject, self).__init__() | ||
self.table_name = table_name | ||
self.columns = columns | ||
self.rows = rows |
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,50 @@ | ||
# 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 DetectorInfo(Model): | ||
"""Definition of Detector. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar description: Short description of the detector and its purpose | ||
:vartype description: str | ||
:ivar category: Support Category | ||
:vartype category: str | ||
:ivar sub_category: Support Sub Category | ||
:vartype sub_category: str | ||
:ivar support_topic_id: Support Topic Id | ||
:vartype support_topic_id: str | ||
""" | ||
|
||
_validation = { | ||
'description': {'readonly': True}, | ||
'category': {'readonly': True}, | ||
'sub_category': {'readonly': True}, | ||
'support_topic_id': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'description': {'key': 'description', 'type': 'str'}, | ||
'category': {'key': 'category', 'type': 'str'}, | ||
'sub_category': {'key': 'subCategory', 'type': 'str'}, | ||
'support_topic_id': {'key': 'supportTopicId', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self): | ||
super(DetectorInfo, self).__init__() | ||
self.description = None | ||
self.category = None | ||
self.sub_category = None | ||
self.support_topic_id = None |
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,53 @@ | ||
# 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 .proxy_only_resource import ProxyOnlyResource | ||
|
||
|
||
class DetectorResponse(ProxyOnlyResource): | ||
"""Class representing Response from Detector. | ||
Variables are only populated by the server, and will be ignored when | ||
sending a request. | ||
:ivar id: Resource Id. | ||
:vartype id: str | ||
:ivar name: Resource Name. | ||
:vartype name: str | ||
:param kind: Kind of resource. | ||
:type kind: str | ||
:ivar type: Resource type. | ||
:vartype type: str | ||
:param metadata: metadata for the detector | ||
:type metadata: ~azure.mgmt.web.models.DetectorInfo | ||
:param dataset: Data Set | ||
:type dataset: list[~azure.mgmt.web.models.DiagnosticData] | ||
""" | ||
|
||
_validation = { | ||
'id': {'readonly': True}, | ||
'name': {'readonly': True}, | ||
'type': {'readonly': True}, | ||
} | ||
|
||
_attribute_map = { | ||
'id': {'key': 'id', 'type': 'str'}, | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'kind': {'key': 'kind', 'type': 'str'}, | ||
'type': {'key': 'type', 'type': 'str'}, | ||
'metadata': {'key': 'properties.metadata', 'type': 'DetectorInfo'}, | ||
'dataset': {'key': 'properties.dataset', 'type': '[DiagnosticData]'}, | ||
} | ||
|
||
def __init__(self, kind=None, metadata=None, dataset=None): | ||
super(DetectorResponse, self).__init__(kind=kind) | ||
self.metadata = metadata | ||
self.dataset = dataset |
27 changes: 27 additions & 0 deletions
27
azure-mgmt-web/azure/mgmt/web/models/detector_response_paged.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,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 DetectorResponsePaged(Paged): | ||
""" | ||
A paging container for iterating over a list of :class:`DetectorResponse <azure.mgmt.web.models.DetectorResponse>` object | ||
""" | ||
|
||
_attribute_map = { | ||
'next_link': {'key': 'nextLink', 'type': 'str'}, | ||
'current_page': {'key': 'value', 'type': '[DetectorResponse]'} | ||
} | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(DetectorResponsePaged, self).__init__(*args, **kwargs) |
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,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 DiagnosticData(Model): | ||
"""Set of data with rendering instructions. | ||
:param table: Data in table form | ||
:type table: ~azure.mgmt.web.models.DataTableResponseObject | ||
:param rendering_properties: Properties that describe how the table should | ||
be rendered | ||
:type rendering_properties: ~azure.mgmt.web.models.Rendering | ||
""" | ||
|
||
_attribute_map = { | ||
'table': {'key': 'table', 'type': 'DataTableResponseObject'}, | ||
'rendering_properties': {'key': 'renderingProperties', 'type': 'Rendering'}, | ||
} | ||
|
||
def __init__(self, table=None, rendering_properties=None): | ||
super(DiagnosticData, self).__init__() | ||
self.table = table | ||
self.rendering_properties = rendering_properties |
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,38 @@ | ||
# 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 Rendering(Model): | ||
"""Instructions for rendering the data. | ||
:param rendering_type: Rendering Type. Possible values include: 'NoGraph', | ||
'Table', 'TimeSeries', 'TimeSeriesPerInstance' | ||
:type rendering_type: str or ~azure.mgmt.web.models.RenderingType | ||
:param title: Title of data | ||
:type title: str | ||
:param description: Description of the data that will help it be | ||
interpreted | ||
:type description: str | ||
""" | ||
|
||
_attribute_map = { | ||
'rendering_type': {'key': 'renderingType', 'type': 'RenderingType'}, | ||
'title': {'key': 'title', 'type': 'str'}, | ||
'description': {'key': 'description', 'type': 'str'}, | ||
} | ||
|
||
def __init__(self, rendering_type=None, title=None, description=None): | ||
super(Rendering, self).__init__() | ||
self.rendering_type = rendering_type | ||
self.title = title | ||
self.description = description |
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
Oops, something went wrong.