Skip to content

Commit

Permalink
[AutoPR managementgroups/resource-manager] Remove EntityViewParameter…
Browse files Browse the repository at this point in the history
… from Entities Call (#2111)

* Generated from 174778e3f250ad04c3732590fdcb430b1bbc9576

Remove entities-view-parameter from swagger

* Generated from 174778e3f250ad04c3732590fdcb430b1bbc9576

Remove entities-view-parameter from swagger
  • Loading branch information
AutorestCI authored and lmazuel committed Mar 16, 2018
1 parent 8c792e5 commit 420f8b5
Show file tree
Hide file tree
Showing 25 changed files with 522 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,28 @@
# regenerated.
# --------------------------------------------------------------------------

from .error_details import ErrorDetails
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
from .operation import Operation
from .management_group_info import ManagementGroupInfo
from .parent_group_info import ParentGroupInfo
from .management_group_details import ManagementGroupDetails
from .management_group_child_info import ManagementGroupChildInfo
from .management_group import ManagementGroup
from .create_management_group_request import CreateManagementGroupRequest
try:
from .error_details_py3 import ErrorDetails
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .management_group_info_py3 import ManagementGroupInfo
from .parent_group_info_py3 import ParentGroupInfo
from .management_group_details_py3 import ManagementGroupDetails
from .management_group_child_info_py3 import ManagementGroupChildInfo
from .management_group_py3 import ManagementGroup
from .create_management_group_request_py3 import CreateManagementGroupRequest
except (SyntaxError, ImportError):
from .error_details import ErrorDetails
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
from .operation import Operation
from .management_group_info import ManagementGroupInfo
from .parent_group_info import ParentGroupInfo
from .management_group_details import ManagementGroupDetails
from .management_group_child_info import ManagementGroupChildInfo
from .management_group import ManagementGroup
from .create_management_group_request import CreateManagementGroupRequest
from .management_group_info_paged import ManagementGroupInfoPaged
from .operation_paged import OperationPaged

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CreateManagementGroupRequest(Model):
'parent_id': {'key': 'parentId', 'type': 'str'},
}

def __init__(self, display_name=None, parent_id=None):
super(CreateManagementGroupRequest, self).__init__()
self.display_name = display_name
self.parent_id = parent_id
def __init__(self, **kwargs):
super(CreateManagementGroupRequest, self).__init__(**kwargs)
self.display_name = kwargs.get('display_name', None)
self.parent_id = kwargs.get('parent_id', None)
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 CreateManagementGroupRequest(Model):
"""Management group creation parameters.
:param display_name: The friendly name of the management group.
:type display_name: str
:param parent_id: (Optional) The fully qualified ID for the parent
management group. For example,
/providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
:type parent_id: str
"""

_attribute_map = {
'display_name': {'key': 'displayName', 'type': 'str'},
'parent_id': {'key': 'parentId', 'type': 'str'},
}

def __init__(self, *, display_name: str=None, parent_id: str=None, **kwargs) -> None:
super(CreateManagementGroupRequest, self).__init__(**kwargs)
self.display_name = display_name
self.parent_id = parent_id
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ErrorDetails(Model):
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, code=None, message=None):
super(ErrorDetails, self).__init__()
self.code = code
self.message = message
def __init__(self, **kwargs):
super(ErrorDetails, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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):
"""The details of the error.
:param code: One of a server-defined set of error codes.
:type code: str
:param message: A human-readable representation of the error.
:type message: str
"""

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

def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None:
super(ErrorDetails, self).__init__(**kwargs)
self.code = code
self.message = message
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class ErrorResponse(Model):
'error': {'key': 'error', 'type': 'ErrorDetails'},
}

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


class ErrorResponseException(HttpOperationError):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 ErrorResponse(Model):
"""The error object.
:param error: Error.
:type error: ~azure.mgmt.managementgroups.models.ErrorDetails
"""

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

def __init__(self, *, error=None, **kwargs) -> None:
super(ErrorResponse, self).__init__(**kwargs)
self.error = error


class ErrorResponseException(HttpOperationError):
"""Server responsed with exception of type: 'ErrorResponse'.
:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

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

super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args)
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ class ManagementGroup(Model):
'children': {'key': 'properties.children', 'type': '[ManagementGroupChildInfo]'},
}

def __init__(self, tenant_id=None, display_name=None, details=None, children=None):
super(ManagementGroup, self).__init__()
def __init__(self, **kwargs):
super(ManagementGroup, self).__init__(**kwargs)
self.id = None
self.type = None
self.name = None
self.tenant_id = tenant_id
self.display_name = display_name
self.details = details
self.children = children
self.tenant_id = kwargs.get('tenant_id', None)
self.display_name = kwargs.get('display_name', None)
self.details = kwargs.get('details', None)
self.children = kwargs.get('children', None)
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class ManagementGroupChildInfo(Model):
'children': {'key': 'children', 'type': '[ManagementGroupChildInfo]'},
}

def __init__(self, child_type=None, child_id=None, display_name=None, children=None):
super(ManagementGroupChildInfo, self).__init__()
self.child_type = child_type
self.child_id = child_id
self.display_name = display_name
self.children = children
def __init__(self, **kwargs):
super(ManagementGroupChildInfo, self).__init__(**kwargs)
self.child_type = kwargs.get('child_type', None)
self.child_id = kwargs.get('child_id', None)
self.display_name = kwargs.get('display_name', None)
self.children = kwargs.get('children', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 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 ManagementGroupChildInfo(Model):
"""The child information of a management group.
:param child_type: The type of child resource. Possible values include:
'ManagementGroup', 'Subscription'
:type child_type: str or ~azure.mgmt.managementgroups.models.enum
:param child_id: The fully qualified ID for the child resource (management
group or subscription). For example,
/providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
:type child_id: str
:param display_name: The friendly name of the child resource.
:type display_name: str
:param children: The list of children.
:type children:
list[~azure.mgmt.managementgroups.models.ManagementGroupChildInfo]
"""

_attribute_map = {
'child_type': {'key': 'childType', 'type': 'str'},
'child_id': {'key': 'childId', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'children': {'key': 'children', 'type': '[ManagementGroupChildInfo]'},
}

def __init__(self, *, child_type=None, child_id: str=None, display_name: str=None, children=None, **kwargs) -> None:
super(ManagementGroupChildInfo, self).__init__(**kwargs)
self.child_type = child_type
self.child_id = child_id
self.display_name = display_name
self.children = children
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class ManagementGroupDetails(Model):
'parent': {'key': 'parent', 'type': 'ParentGroupInfo'},
}

def __init__(self, version=None, updated_time=None, updated_by=None, parent=None):
super(ManagementGroupDetails, self).__init__()
self.version = version
self.updated_time = updated_time
self.updated_by = updated_by
self.parent = parent
def __init__(self, **kwargs):
super(ManagementGroupDetails, self).__init__(**kwargs)
self.version = kwargs.get('version', None)
self.updated_time = kwargs.get('updated_time', None)
self.updated_by = kwargs.get('updated_by', None)
self.parent = kwargs.get('parent', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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 ManagementGroupDetails(Model):
"""The details of a management group.
:param version: The version number of the object.
:type version: float
:param updated_time: The date and time when this object was last updated.
:type updated_time: datetime
:param updated_by: The identity of the principal or process that updated
the object.
:type updated_by: str
:param parent: Parent.
:type parent: ~azure.mgmt.managementgroups.models.ParentGroupInfo
"""

_attribute_map = {
'version': {'key': 'version', 'type': 'float'},
'updated_time': {'key': 'updatedTime', 'type': 'iso-8601'},
'updated_by': {'key': 'updatedBy', 'type': 'str'},
'parent': {'key': 'parent', 'type': 'ParentGroupInfo'},
}

def __init__(self, *, version: float=None, updated_time=None, updated_by: str=None, parent=None, **kwargs) -> None:
super(ManagementGroupDetails, self).__init__(**kwargs)
self.version = version
self.updated_time = updated_time
self.updated_by = updated_by
self.parent = parent
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ class ManagementGroupInfo(Model):
'display_name': {'key': 'properties.displayName', 'type': 'str'},
}

def __init__(self, tenant_id=None, display_name=None):
super(ManagementGroupInfo, self).__init__()
def __init__(self, **kwargs):
super(ManagementGroupInfo, self).__init__(**kwargs)
self.id = None
self.type = None
self.name = None
self.tenant_id = tenant_id
self.display_name = display_name
self.tenant_id = kwargs.get('tenant_id', None)
self.display_name = kwargs.get('display_name', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 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 ManagementGroupInfo(Model):
"""The management group resource.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar id: The fully qualified ID for the management group. For example,
/providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
:vartype id: str
:ivar type: The type of the resource. For example,
/providers/Microsoft.Management/managementGroups
:vartype type: str
:ivar name: The name of the management group. For example,
00000000-0000-0000-0000-000000000000
:vartype name: str
:param tenant_id: The AAD Tenant ID associated with the management group.
For example, 00000000-0000-0000-0000-000000000000
:type tenant_id: str
:param display_name: The friendly name of the management group.
:type display_name: str
"""

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

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'tenant_id': {'key': 'properties.tenantId', 'type': 'str'},
'display_name': {'key': 'properties.displayName', 'type': 'str'},
}

def __init__(self, *, tenant_id: str=None, display_name: str=None, **kwargs) -> None:
super(ManagementGroupInfo, self).__init__(**kwargs)
self.id = None
self.type = None
self.name = None
self.tenant_id = tenant_id
self.display_name = display_name
Loading

0 comments on commit 420f8b5

Please sign in to comment.