Skip to content

Commit

Permalink
Generated from e58725f13e72bf5ed0b17808debf9d7caeac793c (#3207)
Browse files Browse the repository at this point in the history
ResourceGraph Py conf
  • Loading branch information
AutorestCI authored Aug 28, 2018
1 parent 5d4889e commit 37be911
Show file tree
Hide file tree
Showing 38 changed files with 1,759 additions and 0 deletions.
18 changes: 18 additions & 0 deletions azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/__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 .resource_graph_client import ResourceGraphClient
from .version import VERSION

__all__ = ['ResourceGraphClient']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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 .query_request_options_py3 import QueryRequestOptions
from .facet_request_options_py3 import FacetRequestOptions
from .facet_request_py3 import FacetRequest
from .query_request_py3 import QueryRequest
from .column_py3 import Column
from .table_py3 import Table
from .facet_py3 import Facet
from .query_response_py3 import QueryResponse
from .facet_result_py3 import FacetResult
from .error_details_py3 import ErrorDetails
from .facet_error_py3 import FacetError
from .error_py3 import Error
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
except (SyntaxError, ImportError):
from .query_request_options import QueryRequestOptions
from .facet_request_options import FacetRequestOptions
from .facet_request import FacetRequest
from .query_request import QueryRequest
from .column import Column
from .table import Table
from .facet import Facet
from .query_response import QueryResponse
from .facet_result import FacetResult
from .error_details import ErrorDetails
from .facet_error import FacetError
from .error import Error
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_paged import OperationPaged
from .resource_graph_client_enums import (
FacetSortOrder,
ResultTruncated,
ColumnDataType,
)

__all__ = [
'QueryRequestOptions',
'FacetRequestOptions',
'FacetRequest',
'QueryRequest',
'Column',
'Table',
'Facet',
'QueryResponse',
'FacetResult',
'ErrorDetails',
'FacetError',
'Error',
'ErrorResponse', 'ErrorResponseException',
'OperationDisplay',
'Operation',
'OperationPaged',
'FacetSortOrder',
'ResultTruncated',
'ColumnDataType',
]
40 changes: 40 additions & 0 deletions azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/column.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 Column(Model):
"""Query result column descriptor.
All required parameters must be populated in order to send to Azure.
:param name: Required. Column name.
:type name: str
:param type: Required. Column data type. Possible values include:
'string', 'integer', 'number', 'boolean', 'object'
:type type: str or ~azure.mgmt.resourcegraph.models.ColumnDataType
"""

_validation = {
'name': {'required': True},
'type': {'required': True},
}

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

def __init__(self, **kwargs):
super(Column, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 Column(Model):
"""Query result column descriptor.
All required parameters must be populated in order to send to Azure.
:param name: Required. Column name.
:type name: str
:param type: Required. Column data type. Possible values include:
'string', 'integer', 'number', 'boolean', 'object'
:type type: str or ~azure.mgmt.resourcegraph.models.ColumnDataType
"""

_validation = {
'name': {'required': True},
'type': {'required': True},
}

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

def __init__(self, *, name: str, type, **kwargs) -> None:
super(Column, self).__init__(**kwargs)
self.name = name
self.type = type
45 changes: 45 additions & 0 deletions azure-mgmt-resourcegraph/azure/mgmt/resourcegraph/models/error.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 Error(Model):
"""Error info.
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: Required. A human readable error message.
:type message: str
:param details: Error details
:type details: list[~azure.mgmt.resourcegraph.models.ErrorDetails]
"""

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

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'details': {'key': 'details', 'type': '[ErrorDetails]'},
}

def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.details = kwargs.get('details', None)
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 ErrorDetails(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: Required. A human readable error message.
:type message: str
:param additional_properties: Additional custom properties.
:type additional_properties: object
"""

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

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

def __init__(self, **kwargs):
super(ErrorDetails, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
self.additional_properties = kwargs.get('additional_properties', None)
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 ErrorDetails(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: Required. A human readable error message.
:type message: str
:param additional_properties: Additional custom properties.
:type additional_properties: object
"""

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

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

def __init__(self, *, code: str, message: str, additional_properties=None, **kwargs) -> None:
super(ErrorDetails, self).__init__(**kwargs)
self.code = code
self.message = message
self.additional_properties = additional_properties
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 Error(Model):
"""Error info.
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: Required. A human readable error message.
:type message: str
:param details: Error details
:type details: list[~azure.mgmt.resourcegraph.models.ErrorDetails]
"""

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

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'details': {'key': 'details', 'type': '[ErrorDetails]'},
}

def __init__(self, *, code: str, message: str, details=None, **kwargs) -> None:
super(Error, self).__init__(**kwargs)
self.code = code
self.message = message
self.details = details
Loading

0 comments on commit 37be911

Please sign in to comment.