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.
CodeGen from PR 11722 in Azure/azure-rest-api-specs
[T2] datalakestore for python track2 (Azure#11722) * python track2 * python.md
- Loading branch information
SDKAuto
committed
Nov 20, 2020
1 parent
b94a7a9
commit c95fa97
Showing
15 changed files
with
5,299 additions
and
102 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
50 changes: 50 additions & 0 deletions
50
sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/_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,50 @@ | ||
# 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 DataLakeStoreAccountManagementClientConfiguration(AzureConfiguration): | ||
"""Configuration for DataLakeStoreAccountManagementClient | ||
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 subscription_id: Gets subscription credentials which uniquely | ||
identify Microsoft Azure subscription. The subscription ID forms part of | ||
the URI for every service call. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
if credentials is None: | ||
raise ValueError("Parameter 'credentials' must not be None.") | ||
if subscription_id is None: | ||
raise ValueError("Parameter 'subscription_id' must not be None.") | ||
if not base_url: | ||
base_url = 'https://management.azure.com' | ||
|
||
super(DataLakeStoreAccountManagementClientConfiguration, 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-datalake-store/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
76 changes: 76 additions & 0 deletions
76
...mt-datalake-store/azure/mgmt/datalake/store/_data_lake_store_account_management_client.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,76 @@ | ||
# 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 DataLakeStoreAccountManagementClientConfiguration | ||
from .operations import AccountsOperations | ||
from .operations import FirewallRulesOperations | ||
from .operations import VirtualNetworkRulesOperations | ||
from .operations import TrustedIdProvidersOperations | ||
from .operations import Operations | ||
from .operations import LocationsOperations | ||
from . import models | ||
|
||
|
||
class DataLakeStoreAccountManagementClient(SDKClient): | ||
"""Creates an Azure Data Lake Store account management client. | ||
:ivar config: Configuration for client. | ||
:vartype config: DataLakeStoreAccountManagementClientConfiguration | ||
:ivar accounts: Accounts operations | ||
:vartype accounts: azure.mgmt.datalake.store.operations.AccountsOperations | ||
:ivar firewall_rules: FirewallRules operations | ||
:vartype firewall_rules: azure.mgmt.datalake.store.operations.FirewallRulesOperations | ||
:ivar virtual_network_rules: VirtualNetworkRules operations | ||
:vartype virtual_network_rules: azure.mgmt.datalake.store.operations.VirtualNetworkRulesOperations | ||
:ivar trusted_id_providers: TrustedIdProviders operations | ||
:vartype trusted_id_providers: azure.mgmt.datalake.store.operations.TrustedIdProvidersOperations | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.datalake.store.operations.Operations | ||
:ivar locations: Locations operations | ||
:vartype locations: azure.mgmt.datalake.store.operations.LocationsOperations | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: Gets subscription credentials which uniquely | ||
identify Microsoft Azure subscription. The subscription ID forms part of | ||
the URI for every service call. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
self.config = DataLakeStoreAccountManagementClientConfiguration(credentials, subscription_id, base_url) | ||
super(DataLakeStoreAccountManagementClient, 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 = '2016-11-01' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.accounts = AccountsOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.firewall_rules = FirewallRulesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.virtual_network_rules = VirtualNetworkRulesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.trusted_id_providers = TrustedIdProvidersOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.locations = LocationsOperations( | ||
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
Oops, something went wrong.