forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SDK Automation
committed
May 26, 2020
1 parent
cde2a10
commit 2ca7094
Showing
60 changed files
with
3,142 additions
and
2,461 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
64 changes: 64 additions & 0 deletions
64
...anagementgroups/azure-mgmt-managementgroups/azure/mgmt/managementgroups/_configuration.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,64 @@ | ||
# 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 msrestazure import AzureConfiguration | ||
|
||
from .version import VERSION | ||
|
||
|
||
class ManagementGroupsAPIConfiguration(AzureConfiguration): | ||
"""Configuration for ManagementGroupsAPI | ||
Note that all parameters used to create this instance are saved as instance | ||
attributes. | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param operation_result_id: The id of the operation result. Possible | ||
values include: 'create', 'delete' | ||
:type operation_result_id: str | ||
:param skip: Number of entities to skip over when retrieving results. | ||
Passing this in will override $skipToken. | ||
:type skip: int | ||
:param top: Number of elements to return when retrieving results. Passing | ||
this in will override $skipToken. | ||
:type top: int | ||
:param skiptoken: Page continuation token is only used if a previous | ||
operation returned a partial result. | ||
If a previous response contains a nextLink element, the value of the | ||
nextLink element will include a token parameter that specifies a starting | ||
point to use for subsequent calls. | ||
:type skiptoken: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, operation_result_id, skip=None, top=None, skiptoken=None, base_url=None): | ||
|
||
if credentials is None: | ||
raise ValueError("Parameter 'credentials' must not be None.") | ||
if operation_result_id is None: | ||
raise ValueError("Parameter 'operation_result_id' must not be None.") | ||
if not base_url: | ||
base_url = 'https://management.azure.com' | ||
|
||
super(ManagementGroupsAPIConfiguration, self).__init__(base_url) | ||
|
||
# Starting Autorest.Python 4.0.64, make connection pool activated by default | ||
self.keep_alive = True | ||
|
||
self.add_user_agent('azure-mgmt-managementgroups/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.operation_result_id = operation_result_id | ||
self.skip = skip | ||
self.top = top | ||
self.skiptoken = skiptoken |
85 changes: 85 additions & 0 deletions
85
...tgroups/azure-mgmt-managementgroups/azure/mgmt/managementgroups/_management_groups_api.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,85 @@ | ||
# 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.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import ManagementGroupsAPIConfiguration | ||
from .operations import ManagementGroupsAPIOperationsMixin | ||
from .operations import ManagementGroupsOperations | ||
from .operations import ManagementGroupSubscriptionsOperations | ||
from .operations import HierarchySettingsOperations | ||
from .operations import Operations | ||
from .operations import EntitiesOperations | ||
from . import models | ||
|
||
|
||
class ManagementGroupsAPI(ManagementGroupsAPIOperationsMixin, SDKClient): | ||
"""The Azure Management Groups API enables consolidation of multiple | ||
subscriptions/resources into an organizational hierarchy and centrally | ||
manage access control, policies, alerting and reporting for those resources. | ||
:ivar config: Configuration for client. | ||
:vartype config: ManagementGroupsAPIConfiguration | ||
:ivar management_groups: ManagementGroups operations | ||
:vartype management_groups: azure.mgmt.managementgroups.operations.ManagementGroupsOperations | ||
:ivar management_group_subscriptions: ManagementGroupSubscriptions operations | ||
:vartype management_group_subscriptions: azure.mgmt.managementgroups.operations.ManagementGroupSubscriptionsOperations | ||
:ivar hierarchy_settings: HierarchySettings operations | ||
:vartype hierarchy_settings: azure.mgmt.managementgroups.operations.HierarchySettingsOperations | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.managementgroups.operations.Operations | ||
:ivar entities: Entities operations | ||
:vartype entities: azure.mgmt.managementgroups.operations.EntitiesOperations | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param operation_result_id: The id of the operation result. Possible | ||
values include: 'create', 'delete' | ||
:type operation_result_id: str | ||
:param skip: Number of entities to skip over when retrieving results. | ||
Passing this in will override $skipToken. | ||
:type skip: int | ||
:param top: Number of elements to return when retrieving results. Passing | ||
this in will override $skipToken. | ||
:type top: int | ||
:param skiptoken: Page continuation token is only used if a previous | ||
operation returned a partial result. | ||
If a previous response contains a nextLink element, the value of the | ||
nextLink element will include a token parameter that specifies a starting | ||
point to use for subsequent calls. | ||
:type skiptoken: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, operation_result_id, skip=None, top=None, skiptoken=None, base_url=None): | ||
|
||
self.config = ManagementGroupsAPIConfiguration(credentials, operation_result_id, skip, top, skiptoken, base_url) | ||
super(ManagementGroupsAPI, self).__init__(self.config.credentials, self.config) | ||
|
||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} | ||
self.api_version = '2020-02-01' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.management_groups = ManagementGroupsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.management_group_subscriptions = ManagementGroupSubscriptionsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.hierarchy_settings = HierarchySettingsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.entities = EntitiesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
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
Oops, something went wrong.