Skip to content

Commit

Permalink
[AutoPR datalake-store/resource-manager/datalake-analytics/resource-m…
Browse files Browse the repository at this point in the history
…anager] [ADLS] Adding vnet to read-only account properties and test examples for each API (#2589)

* Generated from a9e37c450c6c984ce6877073a3873cd5bdc9f5fa

[ADLS] Adding vnet to read-only account properties and adding test examples

* [ADLS] add test_vnet_operations

* update HISTORY.rst

* Fixing tests

* Auto packaging ADL Analytics

* Auto packaging ADL Store

* ADL Store packaging

* ADL Analytics packaging
  • Loading branch information
AutorestCI authored and lmazuel committed Jun 14, 2018
1 parent ad647ed commit af49340
Show file tree
Hide file tree
Showing 166 changed files with 5,671 additions and 2,656 deletions.
45 changes: 41 additions & 4 deletions azure-mgmt-datalake-analytics/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,43 @@
Release History
===============

0.5.0 (2018-06-14)
++++++++++++++++++

**Features**

- Client class can be used as a context manager to keep the underlying HTTP session open for performance

**General Breaking changes**

This version uses a next-generation code generator that *might* introduce breaking changes.

- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments.
To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments.
- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered.
While this is not a breaking change, the distinctions are important, and are documented here:
https://docs.python.org/3/library/enum.html#others
At a glance:

- "is" should not be used at all.
- "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be prefered.

- New Long Running Operation:

- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
the response of the initial call will be returned without polling.
- `polling` parameter accepts instances of subclasses of `msrest.polling.PollingMethod`.
- `add_done_callback` will no longer raise if called after polling is finished, but will instead execute the callback right away.

**Bugfixes**

- Compatibility of the sdist with wheel 0.31.0

0.4.0 (2018-02-12)
++++++++++++++++++

Expand Down Expand Up @@ -83,9 +120,9 @@ Release History
* When submitting jobs, change JobInformation objects to CreateJobParameters.

* When setting the properties for the CreateJobParameters object, be sure to change the USqlJobProperties object to a CreateUSqlJobProperties object.

* When building jobs, change JobInformation objects to BuildJobParameters objects.

* When setting the properties for the BuildJobParameters object, be sure to change the USqlJobProperties object to a CreateUSqlJobProperties object.
* NOTE: The following fields are not a part of the BuildJobParameters object:

Expand Down Expand Up @@ -125,7 +162,7 @@ Release History
* When retrieving account information, an account id field called "accountId" is now included.

* accountId's description: The unique identifier associated with this Data Lake Analytics account.

0.1.6 (2017-06-19)
++++++++++++++++++
* Fixing a regression discovered in 0.1.5. Please update to 0.1.6 to avoid any issues caused by that regression.
Expand All @@ -146,7 +183,7 @@ Release History

* Catalog item get and list support for Packages
* Update to allow listing certain catalog items from within a database (no schema required to list):

* list_tables_by_database
* list_table_valued_functions_by_database
* list_views_by_database
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-datalake-analytics/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first:
Usage
=====

For code examples, see `Azure Data Lake Analytics Management
For code examples, see `Data Lake Analytics Management
<https://docs.microsoft.com/python/api/overview/azure/data-lake-analytics>`__
on docs.microsoft.com.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -57,7 +57,7 @@ def __init__(
self.subscription_id = subscription_id


class DataLakeAnalyticsAccountManagementClient(object):
class DataLakeAnalyticsAccountManagementClient(SDKClient):
"""Creates an Azure Data Lake Analytics account management client.
:ivar config: Configuration for client.
Expand Down Expand Up @@ -92,7 +92,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = DataLakeAnalyticsAccountManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(DataLakeAnalyticsAccountManagementClient, 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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,74 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .sub_resource import SubResource
from .data_lake_store_account_information import DataLakeStoreAccountInformation
from .storage_account_information import StorageAccountInformation
from .compute_policy import ComputePolicy
from .firewall_rule import FirewallRule
from .data_lake_analytics_account import DataLakeAnalyticsAccount
from .data_lake_analytics_account_basic import DataLakeAnalyticsAccountBasic
from .storage_container import StorageContainer
from .sas_token_information import SasTokenInformation
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_list_result import OperationListResult
from .capability_information import CapabilityInformation
from .name_availability_information import NameAvailabilityInformation
from .add_data_lake_store_with_account_parameters import AddDataLakeStoreWithAccountParameters
from .add_storage_account_with_account_parameters import AddStorageAccountWithAccountParameters
from .create_compute_policy_with_account_parameters import CreateComputePolicyWithAccountParameters
from .create_firewall_rule_with_account_parameters import CreateFirewallRuleWithAccountParameters
from .create_data_lake_analytics_account_parameters import CreateDataLakeAnalyticsAccountParameters
from .update_data_lake_store_with_account_parameters import UpdateDataLakeStoreWithAccountParameters
from .update_storage_account_with_account_parameters import UpdateStorageAccountWithAccountParameters
from .update_compute_policy_with_account_parameters import UpdateComputePolicyWithAccountParameters
from .update_firewall_rule_with_account_parameters import UpdateFirewallRuleWithAccountParameters
from .update_data_lake_analytics_account_parameters import UpdateDataLakeAnalyticsAccountParameters
from .add_data_lake_store_parameters import AddDataLakeStoreParameters
from .add_storage_account_parameters import AddStorageAccountParameters
from .update_storage_account_parameters import UpdateStorageAccountParameters
from .create_or_update_compute_policy_parameters import CreateOrUpdateComputePolicyParameters
from .update_compute_policy_parameters import UpdateComputePolicyParameters
from .create_or_update_firewall_rule_parameters import CreateOrUpdateFirewallRuleParameters
from .update_firewall_rule_parameters import UpdateFirewallRuleParameters
from .check_name_availability_parameters import CheckNameAvailabilityParameters
try:
from .resource_py3 import Resource
from .sub_resource_py3 import SubResource
from .data_lake_store_account_information_py3 import DataLakeStoreAccountInformation
from .storage_account_information_py3 import StorageAccountInformation
from .compute_policy_py3 import ComputePolicy
from .firewall_rule_py3 import FirewallRule
from .data_lake_analytics_account_py3 import DataLakeAnalyticsAccount
from .data_lake_analytics_account_basic_py3 import DataLakeAnalyticsAccountBasic
from .storage_container_py3 import StorageContainer
from .sas_token_information_py3 import SasTokenInformation
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .operation_list_result_py3 import OperationListResult
from .capability_information_py3 import CapabilityInformation
from .name_availability_information_py3 import NameAvailabilityInformation
from .add_data_lake_store_with_account_parameters_py3 import AddDataLakeStoreWithAccountParameters
from .add_storage_account_with_account_parameters_py3 import AddStorageAccountWithAccountParameters
from .create_compute_policy_with_account_parameters_py3 import CreateComputePolicyWithAccountParameters
from .create_firewall_rule_with_account_parameters_py3 import CreateFirewallRuleWithAccountParameters
from .create_data_lake_analytics_account_parameters_py3 import CreateDataLakeAnalyticsAccountParameters
from .update_data_lake_store_with_account_parameters_py3 import UpdateDataLakeStoreWithAccountParameters
from .update_storage_account_with_account_parameters_py3 import UpdateStorageAccountWithAccountParameters
from .update_compute_policy_with_account_parameters_py3 import UpdateComputePolicyWithAccountParameters
from .update_firewall_rule_with_account_parameters_py3 import UpdateFirewallRuleWithAccountParameters
from .update_data_lake_analytics_account_parameters_py3 import UpdateDataLakeAnalyticsAccountParameters
from .add_data_lake_store_parameters_py3 import AddDataLakeStoreParameters
from .add_storage_account_parameters_py3 import AddStorageAccountParameters
from .update_storage_account_parameters_py3 import UpdateStorageAccountParameters
from .create_or_update_compute_policy_parameters_py3 import CreateOrUpdateComputePolicyParameters
from .update_compute_policy_parameters_py3 import UpdateComputePolicyParameters
from .create_or_update_firewall_rule_parameters_py3 import CreateOrUpdateFirewallRuleParameters
from .update_firewall_rule_parameters_py3 import UpdateFirewallRuleParameters
from .check_name_availability_parameters_py3 import CheckNameAvailabilityParameters
except (SyntaxError, ImportError):
from .resource import Resource
from .sub_resource import SubResource
from .data_lake_store_account_information import DataLakeStoreAccountInformation
from .storage_account_information import StorageAccountInformation
from .compute_policy import ComputePolicy
from .firewall_rule import FirewallRule
from .data_lake_analytics_account import DataLakeAnalyticsAccount
from .data_lake_analytics_account_basic import DataLakeAnalyticsAccountBasic
from .storage_container import StorageContainer
from .sas_token_information import SasTokenInformation
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_list_result import OperationListResult
from .capability_information import CapabilityInformation
from .name_availability_information import NameAvailabilityInformation
from .add_data_lake_store_with_account_parameters import AddDataLakeStoreWithAccountParameters
from .add_storage_account_with_account_parameters import AddStorageAccountWithAccountParameters
from .create_compute_policy_with_account_parameters import CreateComputePolicyWithAccountParameters
from .create_firewall_rule_with_account_parameters import CreateFirewallRuleWithAccountParameters
from .create_data_lake_analytics_account_parameters import CreateDataLakeAnalyticsAccountParameters
from .update_data_lake_store_with_account_parameters import UpdateDataLakeStoreWithAccountParameters
from .update_storage_account_with_account_parameters import UpdateStorageAccountWithAccountParameters
from .update_compute_policy_with_account_parameters import UpdateComputePolicyWithAccountParameters
from .update_firewall_rule_with_account_parameters import UpdateFirewallRuleWithAccountParameters
from .update_data_lake_analytics_account_parameters import UpdateDataLakeAnalyticsAccountParameters
from .add_data_lake_store_parameters import AddDataLakeStoreParameters
from .add_storage_account_parameters import AddStorageAccountParameters
from .update_storage_account_parameters import UpdateStorageAccountParameters
from .create_or_update_compute_policy_parameters import CreateOrUpdateComputePolicyParameters
from .update_compute_policy_parameters import UpdateComputePolicyParameters
from .create_or_update_firewall_rule_parameters import CreateOrUpdateFirewallRuleParameters
from .update_firewall_rule_parameters import UpdateFirewallRuleParameters
from .check_name_availability_parameters import CheckNameAvailabilityParameters
from .data_lake_analytics_account_basic_paged import DataLakeAnalyticsAccountBasicPaged
from .data_lake_store_account_information_paged import DataLakeStoreAccountInformationPaged
from .storage_account_information_paged import StorageAccountInformationPaged
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class AddDataLakeStoreParameters(Model):
'suffix': {'key': 'properties.suffix', 'type': 'str'},
}

def __init__(self, suffix=None):
super(AddDataLakeStoreParameters, self).__init__()
self.suffix = suffix
def __init__(self, **kwargs):
super(AddDataLakeStoreParameters, self).__init__(**kwargs)
self.suffix = kwargs.get('suffix', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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 AddDataLakeStoreParameters(Model):
"""The parameters used to add a new Data Lake Store account.
:param suffix: The optional suffix for the Data Lake Store account.
:type suffix: str
"""

_attribute_map = {
'suffix': {'key': 'properties.suffix', 'type': 'str'},
}

def __init__(self, *, suffix: str=None, **kwargs) -> None:
super(AddDataLakeStoreParameters, self).__init__(**kwargs)
self.suffix = suffix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ class AddDataLakeStoreWithAccountParameters(Model):
"""The parameters used to add a new Data Lake Store account while creating a
new Data Lake Analytics account.
:param name: The unique name of the Data Lake Store account to add.
All required parameters must be populated in order to send to Azure.
:param name: Required. The unique name of the Data Lake Store account to
add.
:type name: str
:param suffix: The optional suffix for the Data Lake Store account.
:type suffix: str
Expand All @@ -31,7 +34,7 @@ class AddDataLakeStoreWithAccountParameters(Model):
'suffix': {'key': 'properties.suffix', 'type': 'str'},
}

def __init__(self, name, suffix=None):
super(AddDataLakeStoreWithAccountParameters, self).__init__()
self.name = name
self.suffix = suffix
def __init__(self, **kwargs):
super(AddDataLakeStoreWithAccountParameters, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.suffix = kwargs.get('suffix', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 AddDataLakeStoreWithAccountParameters(Model):
"""The parameters used to add a new Data Lake Store account while creating a
new Data Lake Analytics account.
All required parameters must be populated in order to send to Azure.
:param name: Required. The unique name of the Data Lake Store account to
add.
:type name: str
:param suffix: The optional suffix for the Data Lake Store account.
:type suffix: str
"""

_validation = {
'name': {'required': True},
}

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'suffix': {'key': 'properties.suffix', 'type': 'str'},
}

def __init__(self, *, name: str, suffix: str=None, **kwargs) -> None:
super(AddDataLakeStoreWithAccountParameters, self).__init__(**kwargs)
self.name = name
self.suffix = suffix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
class AddStorageAccountParameters(Model):
"""The parameters used to add a new Azure Storage account.
:param access_key: The access key associated with this Azure Storage
account that will be used to connect to it.
All required parameters must be populated in order to send to Azure.
:param access_key: Required. The access key associated with this Azure
Storage account that will be used to connect to it.
:type access_key: str
:param suffix: The optional suffix for the storage account.
:type suffix: str
Expand All @@ -31,7 +33,7 @@ class AddStorageAccountParameters(Model):
'suffix': {'key': 'properties.suffix', 'type': 'str'},
}

def __init__(self, access_key, suffix=None):
super(AddStorageAccountParameters, self).__init__()
self.access_key = access_key
self.suffix = suffix
def __init__(self, **kwargs):
super(AddStorageAccountParameters, self).__init__(**kwargs)
self.access_key = kwargs.get('access_key', None)
self.suffix = kwargs.get('suffix', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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 AddStorageAccountParameters(Model):
"""The parameters used to add a new Azure Storage account.
All required parameters must be populated in order to send to Azure.
:param access_key: Required. The access key associated with this Azure
Storage account that will be used to connect to it.
:type access_key: str
:param suffix: The optional suffix for the storage account.
:type suffix: str
"""

_validation = {
'access_key': {'required': True},
}

_attribute_map = {
'access_key': {'key': 'properties.accessKey', 'type': 'str'},
'suffix': {'key': 'properties.suffix', 'type': 'str'},
}

def __init__(self, *, access_key: str, suffix: str=None, **kwargs) -> None:
super(AddStorageAccountParameters, self).__init__(**kwargs)
self.access_key = access_key
self.suffix = suffix
Loading

0 comments on commit af49340

Please sign in to comment.