-
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.
[AutoPR managementgroups/resource-manager] Remove EntityViewParameter…
… 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
1 parent
8c792e5
commit 420f8b5
Showing
25 changed files
with
522 additions
and
64 deletions.
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
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
...anagementgroups/azure/mgmt/managementgroups/models/create_management_group_request_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 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 |
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
32 changes: 32 additions & 0 deletions
32
azure-mgmt-managementgroups/azure/mgmt/managementgroups/models/error_details_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,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 |
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
41 changes: 41 additions & 0 deletions
41
azure-mgmt-managementgroups/azure/mgmt/managementgroups/models/error_response_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,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) |
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
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
44 changes: 44 additions & 0 deletions
44
...mt-managementgroups/azure/mgmt/managementgroups/models/management_group_child_info_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,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 |
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
41 changes: 41 additions & 0 deletions
41
...-mgmt-managementgroups/azure/mgmt/managementgroups/models/management_group_details_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,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 |
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
57 changes: 57 additions & 0 deletions
57
azure-mgmt-managementgroups/azure/mgmt/managementgroups/models/management_group_info_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,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 |
Oops, something went wrong.