Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR monitor/resource-manager] Add version 2018-11-27-preview to Microsoft.Insights #4139

Merged
merged 1 commit into from
Jan 14, 2019
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
22 changes: 22 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@
from .log_to_metric_action_py3 import LogToMetricAction
from .metric_namespace_name_py3 import MetricNamespaceName
from .metric_namespace_py3 import MetricNamespace
from .proxy_resource_py3 import ProxyResource
from .error_py3 import Error
from .response_with_error_py3 import ResponseWithError, ResponseWithErrorException
from .workspace_info_py3 import WorkspaceInfo
from .data_container_py3 import DataContainer
from .vm_insights_onboarding_status_py3 import VMInsightsOnboardingStatus
except (SyntaxError, ImportError):
from .resource import Resource
from .scale_capacity import ScaleCapacity
Expand Down Expand Up @@ -219,6 +225,12 @@
from .log_to_metric_action import LogToMetricAction
from .metric_namespace_name import MetricNamespaceName
from .metric_namespace import MetricNamespace
from .proxy_resource import ProxyResource
from .error import Error
from .response_with_error import ResponseWithError, ResponseWithErrorException
from .workspace_info import WorkspaceInfo
from .data_container import DataContainer
from .vm_insights_onboarding_status import VMInsightsOnboardingStatus
from .autoscale_setting_resource_paged import AutoscaleSettingResourcePaged
from .incident_paged import IncidentPaged
from .alert_rule_resource_paged import AlertRuleResourcePaged
Expand Down Expand Up @@ -252,6 +264,8 @@
ConditionalOperator,
MetricTriggerType,
AlertSeverity,
OnboardingStatus,
DataStatus,
ResultType,
)

Expand Down Expand Up @@ -360,6 +374,12 @@
'LogToMetricAction',
'MetricNamespaceName',
'MetricNamespace',
'ProxyResource',
'Error',
'ResponseWithError', 'ResponseWithErrorException',
'WorkspaceInfo',
'DataContainer',
'VMInsightsOnboardingStatus',
'AutoscaleSettingResourcePaged',
'IncidentPaged',
'AlertRuleResourcePaged',
Expand Down Expand Up @@ -392,5 +412,7 @@
'ConditionalOperator',
'MetricTriggerType',
'AlertSeverity',
'OnboardingStatus',
'DataStatus',
'ResultType',
]
34 changes: 34 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/data_container.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 DataContainer(Model):
"""Information about a container with data for a given resource.

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

:param workspace: Required. Log Analytics workspace information.
:type workspace: ~azure.mgmt.monitor.models.WorkspaceInfo
"""

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

_attribute_map = {
'workspace': {'key': 'workspace', 'type': 'WorkspaceInfo'},
}

def __init__(self, **kwargs):
super(DataContainer, self).__init__(**kwargs)
self.workspace = kwargs.get('workspace', None)
34 changes: 34 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/data_container_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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 DataContainer(Model):
"""Information about a container with data for a given resource.

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

:param workspace: Required. Log Analytics workspace information.
:type workspace: ~azure.mgmt.monitor.models.WorkspaceInfo
"""

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

_attribute_map = {
'workspace': {'key': 'workspace', 'type': 'WorkspaceInfo'},
}

def __init__(self, *, workspace, **kwargs) -> None:
super(DataContainer, self).__init__(**kwargs)
self.workspace = workspace
38 changes: 38 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/error.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 Error(Model):
"""Error details.

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

:param code: Required. Error code identifying the specific error.
:type code: str
:param message: Error message in the caller's locale.
:type message: str
"""

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

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
38 changes: 38 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/error_py3.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 Error(Model):
"""Error details.

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

:param code: Required. Error code identifying the specific error.
:type code: str
:param message: Error message in the caller's locale.
:type message: str
"""

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

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, code: str, message: str=None, **kwargs) -> None:
super(Error, self).__init__(**kwargs)
self.code = code
self.message = message
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,19 @@ class AlertSeverity(str, Enum):
four = "4"


class OnboardingStatus(str, Enum):

onboarded = "onboarded"
not_onboarded = "notOnboarded"
unknown = "unknown"


class DataStatus(str, Enum):

present = "present"
not_present = "notPresent"


class ResultType(str, Enum):

data = "Data"
Expand Down
45 changes: 45 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/proxy_resource.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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 ProxyResource(Model):
"""An azure resource object.

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

:ivar id: Azure resource Id
:vartype id: str
:ivar name: Azure resource name
:vartype name: str
:ivar type: Azure resource type
:vartype type: str
"""

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

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

def __init__(self, **kwargs):
super(ProxyResource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
45 changes: 45 additions & 0 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/proxy_resource_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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 ProxyResource(Model):
"""An azure resource object.

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

:ivar id: Azure resource Id
:vartype id: str
:ivar name: Azure resource name
:vartype name: str
:ivar type: Azure resource type
:vartype type: str
"""

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

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

def __init__(self, **kwargs) -> None:
super(ProxyResource, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
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.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from msrest.exceptions import HttpOperationError


class ResponseWithError(Model):
"""An error response from the API.

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

:param error: Required. Error information.
:type error: ~azure.mgmt.monitor.models.Error
"""

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

_attribute_map = {
'error': {'key': 'error', 'type': 'Error'},
}

def __init__(self, **kwargs):
super(ResponseWithError, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ResponseWithErrorException(HttpOperationError):
"""Server responsed with exception of type: 'ResponseWithError'.

:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ResponseWithErrorException, self).__init__(deserialize, response, 'ResponseWithError', *args)
Loading