Skip to content
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
16 changes: 16 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@
from .response_meta_data import ResponseMetaData
from .analysis_data import AnalysisData
from .analysis_definition import AnalysisDefinition
from .data_table_response_column import DataTableResponseColumn
from .data_table_response_object import DataTableResponseObject
from .detector_info import DetectorInfo
from .rendering import Rendering
from .diagnostic_data import DiagnosticData
from .detector_response import DetectorResponse
from .diagnostic_analysis import DiagnosticAnalysis
from .diagnostic_category import DiagnosticCategory
from .diagnostic_detector_response import DiagnosticDetectorResponse
Expand Down Expand Up @@ -226,6 +232,7 @@
from .tld_legal_agreement_paged import TldLegalAgreementPaged
from .certificate_paged import CertificatePaged
from .deleted_site_paged import DeletedSitePaged
from .detector_response_paged import DetectorResponsePaged
from .diagnostic_category_paged import DiagnosticCategoryPaged
from .analysis_definition_paged import AnalysisDefinitionPaged
from .detector_definition_paged import DetectorDefinitionPaged
Expand Down Expand Up @@ -301,6 +308,7 @@
OperationStatus,
IssueType,
SolutionType,
RenderingType,
ResourceScopeType,
NotificationLevel,
Channels,
Expand Down Expand Up @@ -439,6 +447,12 @@
'ResponseMetaData',
'AnalysisData',
'AnalysisDefinition',
'DataTableResponseColumn',
'DataTableResponseObject',
'DetectorInfo',
'Rendering',
'DiagnosticData',
'DetectorResponse',
'DiagnosticAnalysis',
'DiagnosticCategory',
'DiagnosticDetectorResponse',
Expand Down Expand Up @@ -547,6 +561,7 @@
'TldLegalAgreementPaged',
'CertificatePaged',
'DeletedSitePaged',
'DetectorResponsePaged',
'DiagnosticCategoryPaged',
'AnalysisDefinitionPaged',
'DetectorDefinitionPaged',
Expand Down Expand Up @@ -621,6 +636,7 @@
'OperationStatus',
'IssueType',
'SolutionType',
'RenderingType',
'ResourceScopeType',
'NotificationLevel',
'Channels',
Expand Down
36 changes: 36 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/data_table_response_column.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 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 azure-mgmt-web/azure/mgmt/web/models/data_table_response_object.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 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
50 changes: 50 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/detector_info.py
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
53 changes: 53 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/detector_response.py
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 azure-mgmt-web/azure/mgmt/web/models/detector_response_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 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)
33 changes: 33 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/diagnostic_data.py
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
38 changes: 38 additions & 0 deletions azure-mgmt-web/azure/mgmt/web/models/rendering.py
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
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,14 @@ class SolutionType(Enum):
best_practices = "BestPractices"


class RenderingType(Enum):

no_graph = "NoGraph"
table = "Table"
time_series = "TimeSeries"
time_series_per_instance = "TimeSeriesPerInstance"


class ResourceScopeType(Enum):

server_farm = "ServerFarm"
Expand Down
Loading