Source code for azure.mgmt.managementgroups.models.create_management_group_request_py3

# 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


[docs]class CreateManagementGroupRequest(Model): """Management group creation parameters. 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 :param name: The name of the management group. For example, 00000000-0000-0000-0000-000000000000 :type name: str :ivar tenant_id: The AAD Tenant ID associated with the management group. For example, 00000000-0000-0000-0000-000000000000 :vartype tenant_id: str :param display_name: The friendly name of the management group. If no value is passed then this field will be set to the groupId. :type display_name: str :ivar roles: The roles definitions associated with the management group. :vartype roles: list[str] :param details: Details. :type details: ~azure.mgmt.managementgroups.models.CreateManagementGroupDetails :ivar children: The list of children. :vartype children: list[~azure.mgmt.managementgroups.models.CreateManagementGroupChildInfo] """ _validation = { 'id': {'readonly': True}, 'type': {'readonly': True}, 'tenant_id': {'readonly': True}, 'roles': {'readonly': True}, 'children': {'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'}, 'roles': {'key': 'properties.roles', 'type': '[str]'}, 'details': {'key': 'properties.details', 'type': 'CreateManagementGroupDetails'}, 'children': {'key': 'properties.children', 'type': '[CreateManagementGroupChildInfo]'}, } def __init__(self, *, name: str=None, display_name: str=None, details=None, **kwargs) -> None: super(CreateManagementGroupRequest, self).__init__(**kwargs) self.id = None self.type = None self.name = name self.tenant_id = None self.display_name = display_name self.roles = None self.details = details self.children = None