-
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.
Generated from 9771d96d4a2f4caa435cd59ae81736e910b8ee89 (#4139)
Update Python version
- Loading branch information
1 parent
8be506b
commit a132cf5
Showing
18 changed files
with
701 additions
and
1 deletion.
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
34 changes: 34 additions & 0 deletions
34
azure-mgmt-monitor/azure/mgmt/monitor/models/data_container.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,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
34
azure-mgmt-monitor/azure/mgmt/monitor/models/data_container_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,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 |
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 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) |
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 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 |
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
45 changes: 45 additions & 0 deletions
45
azure-mgmt-monitor/azure/mgmt/monitor/models/proxy_resource.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,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
45
azure-mgmt-monitor/azure/mgmt/monitor/models/proxy_resource_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,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 |
47 changes: 47 additions & 0 deletions
47
azure-mgmt-monitor/azure/mgmt/monitor/models/response_with_error.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,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) |
Oops, something went wrong.