Skip to content
Closed
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
18 changes: 18 additions & 0 deletions azure-mgmt/portal/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 .portal_client import portalClient
from .version import VERSION

__all__ = ['portalClient']

__version__ = VERSION

47 changes: 47 additions & 0 deletions azure-mgmt/portal/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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.
# --------------------------------------------------------------------------

try:
from .dashboard_parts_position_py3 import DashboardPartsPosition
from .dashboard_parts_py3 import DashboardParts
from .dashboard_lens_py3 import DashboardLens
from .dashboard_py3 import Dashboard
from .patchable_dashboard_py3 import PatchableDashboard
from .resource_provider_operation_display_py3 import ResourceProviderOperationDisplay
from .resource_provider_operation_py3 import ResourceProviderOperation
from .error_definition_py3 import ErrorDefinition
from .error_response_py3 import ErrorResponse, ErrorResponseException
except (SyntaxError, ImportError):
from .dashboard_parts_position import DashboardPartsPosition
from .dashboard_parts import DashboardParts
from .dashboard_lens import DashboardLens
from .dashboard import Dashboard
from .patchable_dashboard import PatchableDashboard
from .resource_provider_operation_display import ResourceProviderOperationDisplay
from .resource_provider_operation import ResourceProviderOperation
from .error_definition import ErrorDefinition
from .error_response import ErrorResponse, ErrorResponseException
from .resource_provider_operation_paged import ResourceProviderOperationPaged
from .dashboard_paged import DashboardPaged

__all__ = [
'DashboardPartsPosition',
'DashboardParts',
'DashboardLens',
'Dashboard',
'PatchableDashboard',
'ResourceProviderOperationDisplay',
'ResourceProviderOperation',
'ErrorDefinition',
'ErrorResponse', 'ErrorResponseException',
'ResourceProviderOperationPaged',
'DashboardPaged',
]
64 changes: 64 additions & 0 deletions azure-mgmt/portal/models/dashboard.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# 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 Dashboard(Model):
"""The shared dashboard resource definition.

Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:param lenses: The dashboard lenses.
:type lenses: dict[str, ~microsoft.portal.models.DashboardLens]
:param metadata: The dashboard metadata.
:type metadata: dict[str, object]
:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param location: Required. Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
}

_attribute_map = {
'lenses': {'key': 'properties.lenses', 'type': '{DashboardLens}'},
'metadata': {'key': 'properties.metadata', 'type': '{object}'},
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, **kwargs):
super(Dashboard, self).__init__(**kwargs)
self.lenses = kwargs.get('lenses', None)
self.metadata = kwargs.get('metadata', None)
self.id = None
self.name = None
self.type = None
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
43 changes: 43 additions & 0 deletions azure-mgmt/portal/models/dashboard_lens.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 DashboardLens(Model):
"""A dashboard lens.

All required parameters must be populated in order to send to Azure.

:param order: Required. The lens order.
:type order: int
:param parts: Required. The dashboard parts.
:type parts: dict[str, ~microsoft.portal.models.DashboardParts]
:param metadata: The dashboard len's metadata.
:type metadata: dict[str, object]
"""

_validation = {
'order': {'required': True},
'parts': {'required': True},
}

_attribute_map = {
'order': {'key': 'order', 'type': 'int'},
'parts': {'key': 'parts', 'type': '{DashboardParts}'},
'metadata': {'key': 'metadata', 'type': '{object}'},
}

def __init__(self, **kwargs):
super(DashboardLens, self).__init__(**kwargs)
self.order = kwargs.get('order', None)
self.parts = kwargs.get('parts', None)
self.metadata = kwargs.get('metadata', None)
43 changes: 43 additions & 0 deletions azure-mgmt/portal/models/dashboard_lens_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 DashboardLens(Model):
"""A dashboard lens.

All required parameters must be populated in order to send to Azure.

:param order: Required. The lens order.
:type order: int
:param parts: Required. The dashboard parts.
:type parts: dict[str, ~microsoft.portal.models.DashboardParts]
:param metadata: The dashboard len's metadata.
:type metadata: dict[str, object]
"""

_validation = {
'order': {'required': True},
'parts': {'required': True},
}

_attribute_map = {
'order': {'key': 'order', 'type': 'int'},
'parts': {'key': 'parts', 'type': '{DashboardParts}'},
'metadata': {'key': 'metadata', 'type': '{object}'},
}

def __init__(self, *, order: int, parts, metadata=None, **kwargs) -> None:
super(DashboardLens, self).__init__(**kwargs)
self.order = order
self.parts = parts
self.metadata = metadata
27 changes: 27 additions & 0 deletions azure-mgmt/portal/models/dashboard_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 DashboardPaged(Paged):
"""
A paging container for iterating over a list of :class:`Dashboard <microsoft.portal.models.Dashboard>` object
"""

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

def __init__(self, *args, **kwargs):

super(DashboardPaged, self).__init__(*args, **kwargs)
38 changes: 38 additions & 0 deletions azure-mgmt/portal/models/dashboard_parts.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 DashboardParts(Model):
"""A dashboard part.

All required parameters must be populated in order to send to Azure.

:param position: Required. The dashboard's part position.
:type position: ~microsoft.portal.models.DashboardPartsPosition
:param metadata: The dashboard part's metadata.
:type metadata: dict[str, object]
"""

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

_attribute_map = {
'position': {'key': 'position', 'type': 'DashboardPartsPosition'},
'metadata': {'key': 'metadata', 'type': '{object}'},
}

def __init__(self, **kwargs):
super(DashboardParts, self).__init__(**kwargs)
self.position = kwargs.get('position', None)
self.metadata = kwargs.get('metadata', None)
53 changes: 53 additions & 0 deletions azure-mgmt/portal/models/dashboard_parts_position.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 msrest.serialization import Model


class DashboardPartsPosition(Model):
"""The dashboard's part position.

All required parameters must be populated in order to send to Azure.

:param x: Required. The dashboard's part x coordinate.
:type x: float
:param y: Required. The dashboard's part y coordinate.
:type y: float
:param row_span: Required. The dashboard's part row span.
:type row_span: float
:param col_span: Required. The dashboard's part column span.
:type col_span: float
:param metadata: The dashboard part's metadata.
:type metadata: dict[str, object]
"""

_validation = {
'x': {'required': True},
'y': {'required': True},
'row_span': {'required': True},
'col_span': {'required': True},
}

_attribute_map = {
'x': {'key': 'x', 'type': 'float'},
'y': {'key': 'y', 'type': 'float'},
'row_span': {'key': 'rowSpan', 'type': 'float'},
'col_span': {'key': 'colSpan', 'type': 'float'},
'metadata': {'key': 'metadata', 'type': '{object}'},
}

def __init__(self, **kwargs):
super(DashboardPartsPosition, self).__init__(**kwargs)
self.x = kwargs.get('x', None)
self.y = kwargs.get('y', None)
self.row_span = kwargs.get('row_span', None)
self.col_span = kwargs.get('col_span', None)
self.metadata = kwargs.get('metadata', None)
53 changes: 53 additions & 0 deletions azure-mgmt/portal/models/dashboard_parts_position_py3.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 msrest.serialization import Model


class DashboardPartsPosition(Model):
"""The dashboard's part position.

All required parameters must be populated in order to send to Azure.

:param x: Required. The dashboard's part x coordinate.
:type x: float
:param y: Required. The dashboard's part y coordinate.
:type y: float
:param row_span: Required. The dashboard's part row span.
:type row_span: float
:param col_span: Required. The dashboard's part column span.
:type col_span: float
:param metadata: The dashboard part's metadata.
:type metadata: dict[str, object]
"""

_validation = {
'x': {'required': True},
'y': {'required': True},
'row_span': {'required': True},
'col_span': {'required': True},
}

_attribute_map = {
'x': {'key': 'x', 'type': 'float'},
'y': {'key': 'y', 'type': 'float'},
'row_span': {'key': 'rowSpan', 'type': 'float'},
'col_span': {'key': 'colSpan', 'type': 'float'},
'metadata': {'key': 'metadata', 'type': '{object}'},
}

def __init__(self, *, x: float, y: float, row_span: float, col_span: float, metadata=None, **kwargs) -> None:
super(DashboardPartsPosition, self).__init__(**kwargs)
self.x = x
self.y = y
self.row_span = row_span
self.col_span = col_span
self.metadata = metadata
Loading